original_string: public function apply_recipes(array $data) {
  
          $cooked = array();
  
          foreach ($data as $name => $value) {
              // lower case rocks!
              $name = strtolower($name);
  
              if (is_array($value)) {
                  if ($this->is_grouped()) {
                      $value = $this->apply_recipes($value);
                  } else {
                      throw new convert_path_exception('non_grouped_path_with_array_values');
                  }
              }
  
              // drop legacy fields
              if (in_array($name, $this->dropfields)) {
                  continue;
              }
  
              // fields renaming
              if (array_key_exists($name, $this->renamefields)) {
                  $name = $this->renamefields[$name];
              }
  
              $cooked[$name] = $value;
          }
  
          // adding new fields
          foreach ($this->newfields as $name => $value) {
              $cooked[$name] = $value;
          }
  
          return $cooked;
      }
code: public function apply_recipes(array $data) {
  
          $cooked = array();
  
          foreach ($data as $name => $value) {
              // lower case rocks!
              $name = strtolower($name);
  
              if (is_array($value)) {
                  if ($this->is_grouped()) {
                      $value = $this->apply_recipes($value);
                  } else {
                      throw new convert_path_exception('non_grouped_path_with_array_values');
                  }
              }
  
              // drop legacy fields
              if (in_array($name, $this->dropfields)) {
                  continue;
              }
  
              // fields renaming
              if (array_key_exists($name, $this->renamefields)) {
                  $name = $this->renamefields[$name];
              }
  
              $cooked[$name] = $value;
          }
  
          // adding new fields
          foreach ($this->newfields as $name => $value) {
              $cooked[$name] = $value;
          }
  
          return $cooked;
      }
code_tokens: public function apply_recipes ( array $ data ) { $ cooked = array ( ) ; foreach ( $ data as $ name => $ value ) { // lower case rocks! $ name = strtolower ( $ name ) ; if ( is_array ( $ value ) ) { if ( $ this -> is_grouped ( ) ) { $ value = $ this -> apply_recipes ( $ value ) ; } else { throw new convert_path_exception ( 'non_grouped_path_with_array_values' ) ; } } // drop legacy fields if ( in_array ( $ name , $ this -> dropfields ) ) { continue ; } // fields renaming if ( array_key_exists ( $ name , $ this -> renamefields ) ) { $ name = $ this -> renamefields [ $ name ] ; } $ cooked [ $ name ] = $ value ; } // adding new fields foreach ( $ this -> newfields as $ name => $ value ) { $ cooked [ $ name ] = $ value ; } return $ cooked ; }
docstring: Cooks the parsed tags data by applying known recipes
  
  Recipes are used for common trivial operations like adding new fields
  or renaming fields. The handler's processing method receives cooked
  data.
  
  @param array $data the contents of the element
  @return array
docstring_tokens: Cooks the parsed tags data by applying known recipes