<commit_before><?php

/**
 * This file is part of the Propel package.
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 *
 * @license    MIT License
 */

require_once dirname(__FILE__) . '/yaml/sfYaml.php';

/**
 * YAML parser. Converts data between associative array and YAML formats
 *
 * @author     <NAME>
 * @package    propel.runtime.parser
 */
class PropelYAMLParser extends PropelParser
{

	/**
	 * Converts data from an associative array to YAML.
	 *
	 * @param  array $array Source data to convert 
	 * @return string Converted data, as a YAML string
	 */
	public function fromArray($array)
	{
		return sfYaml::dump($array, 3);
	}
	<commit_msg>[1.6] Fixed incompatibility between Propel and symfony over sfYaml (closes #1356)<commit_after><?php

/**
 * This file is part of the Propel package.
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 *
 * @license    MIT License
 */

if (!class_exists('sfYaml')) {
	require_once dirname(__FILE__) . '/yaml/sfYaml.php';
}

/**
 * YAML parser. Converts data between associative array and YAML formats
 *
 * @author     <NAME>
 * @package    propel.runtime.parser
 */
class PropelYAMLParser extends PropelParser
{

	/**
	 * Converts data from an associative array to YAML.
	 *
	 * @param  array $array Source data to convert 
	 * @return string Converted data, as a YAML string
	 */
	public function fromArray($array)
	{
		return sfYaml::dump($array, 3);
	}
	
{'fraction_non_alphanumeric': 0.10025542784163474, 'fraction_numerical': 0.005108556832694764, 'mean_word_length': 3.542028985507246, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3818307', 'n_tokens_mistral': 498, 'n_tokens_neox': 463, 'n_words': 174}