original_string: private function determinePrimaries( $indexes )
      {
          $primaries = array();
          foreach ( $indexes as $index )
          {
              if ( $index->primary )
              {
                  foreach ( $index->indexFields as $field => $definiton )
                  {
                      $primaries[$field] = true;
                  }
              }
          }
          return $primaries;
      }
code: private function determinePrimaries( $indexes )
      {
          $primaries = array();
          foreach ( $indexes as $index )
          {
              if ( $index->primary )
              {
                  foreach ( $index->indexFields as $field => $definiton )
                  {
                      $primaries[$field] = true;
                  }
              }
          }
          return $primaries;
      }
code_tokens: private function determinePrimaries ( $ indexes ) { $ primaries = array ( ) ; foreach ( $ indexes as $ index ) { if ( $ index -> primary ) { foreach ( $ index -> indexFields as $ field => $ definiton ) { $ primaries [ $ field ] = true ; } } } return $ primaries ; }
docstring: Extract primary keys from an index definition.
  This method extracts the names of all primary keys from the index
  defintions of a table.
  
  @param array(string=>ezcDbSchemaIndex) $indexes Indices.
  @return array(string=>bool) The primary keys.
docstring_tokens: Extract primary keys from an index definition . This method extracts the names of all primary keys from the index defintions of a table .