<commit_before><?php namespace Cartalyst\Converter\Tests;
/**
 * Part of the Converter package.
 *
 * NOTICE OF LICENSE
 *
 * Licensed under the 3-clause BSD License.
 *
 * This source file is subject to the 3-clause BSD License that is
 * bundled with this package in the LICENSE file.  It is also available at
 * the following URL: http://www.opensource.org/licenses/BSD-3-Clause
 *
 * @package    Converter
 * @version    1.0.0
 * @author     Cartalyst LLC
 * @license    BSD License (3-clause)
 * @copyright  (c) 2011-2014, Cartalyst LLC
 * @link       http://cartalyst.com
 */

use Cartalyst\Converter\Converter;
use Cartalyst\Converter\Exchangers\NativeExchanger;
use Mockery as m;
use PHPUnit_Framework_TestCase;

class ConverterTest extends PHPUnit_Framework_TestCase {

	/**
	 * Holds the converter instance.
	 *
	 * @var \Cartalyst\Converter\Converter
	 */
	protected $converter;

	/**
	 * Close mockery.
	 *
	 * @return void
	 */
	public function tearDown()
	{
		m::close();
	}

	/**
	 * Setup resources and dependencies
	 */
	public function setUp()
	{
		$this->converter = new Converter(new NativeExchanger);

		$this->converter->setMeasurements(array(

			'area' => array(

				'sqm' => array(
					'format' => '1,00.00 SQM',
					'unit'   => 1,
				),

				'acre' => array(
					'format' => '1,00.000 Acres',
					'unit'   => 0.000247105,
				),

			),

			'currency' => array(

				'usd' => array(
					'format'   => '$1,0.00',
					'negative' => '($1,0.00)',
					'unit'     => 1,
				),

				'eur' => array(
					'format' => '&euro;1,0.00',
					'unit'   => 0.727204,
				),

				'gbp' => array(
					'format' => '&pound;1,0.00',
				),

			),

			'lengths' => array(

				'km' => array(
					'format' => '1,0.000 KM',
					'unit'   => 1.00,
				),

				'mile' => array(
					'format' => '1,0.000 Miles',
					'unit'   => 0.621371,
				),

				'cm' => array(
					'format' => '1!0 centimeters',
					'unit'   => 100000
				),

				'mm' => array(
					'format' => '1,0.00 millimeters',
					'unit'   => 1000000
				),

				'ft' => array(
					'format' => '1,0.00 feet',
					'unit'   => 3280.84
				),

			),

			'weights' => array(

				'kg' => array(
					'format' => '1.0,00 KG',
					'unit'   => 1.00,
				),

				'g' => array(
					'format' => '(1,0.00 grams)',
					'unit'   => 1000.00,
				),

				'lb' => array(
					'format' => '1 lb',
					'unit'   => 2.20462,
				),

			),

		));

	}
<commit_msg>remove extra line from the tests<commit_after><?php namespace Cartalyst\Converter\Tests;
/**
 * Part of the Converter package.
 *
 * NOTICE OF LICENSE
 *
 * Licensed under the 3-clause BSD License.
 *
 * This source file is subject to the 3-clause BSD License that is
 * bundled with this package in the LICENSE file.  It is also available at
 * the following URL: http://www.opensource.org/licenses/BSD-3-Clause
 *
 * @package    Converter
 * @version    1.0.0
 * @author     Cartalyst LLC
 * @license    BSD License (3-clause)
 * @copyright  (c) 2011-2014, Cartalyst LLC
 * @link       http://cartalyst.com
 */

use Cartalyst\Converter\Converter;
use Cartalyst\Converter\Exchangers\NativeExchanger;
use Mockery as m;
use PHPUnit_Framework_TestCase;

class ConverterTest extends PHPUnit_Framework_TestCase {

	/**
	 * Holds the converter instance.
	 *
	 * @var \Cartalyst\Converter\Converter
	 */
	protected $converter;

	/**
	 * Close mockery.
	 *
	 * @return void
	 */
	public function tearDown()
	{
		m::close();
	}

	/**
	 * Setup resources and dependencies
	 */
	public function setUp()
	{
		$this->converter = new Converter(new NativeExchanger);

		$this->converter->setMeasurements(array(

			'area' => array(

				'sqm' => array(
					'format' => '1,00.00 SQM',
					'unit'   => 1,
				),

				'acre' => array(
					'format' => '1,00.000 Acres',
					'unit'   => 0.000247105,
				),

			),

			'currency' => array(

				'usd' => array(
					'format'   => '$1,0.00',
					'negative' => '($1,0.00)',
					'unit'     => 1,
				),

				'eur' => array(
					'format' => '&euro;1,0.00',
					'unit'   => 0.727204,
				),

				'gbp' => array(
					'format' => '&pound;1,0.00',
				),

			),

			'lengths' => array(

				'km' => array(
					'format' => '1,0.000 KM',
					'unit'   => 1.00,
				),

				'mile' => array(
					'format' => '1,0.000 Miles',
					'unit'   => 0.621371,
				),

				'cm' => array(
					'format' => '1!0 centimeters',
					'unit'   => 100000
				),

				'mm' => array(
					'format' => '1,0.00 millimeters',
					'unit'   => 1000000
				),

				'ft' => array(
					'format' => '1,0.00 feet',
					'unit'   => 3280.84
				),

			),

			'weights' => array(

				'kg' => array(
					'format' => '1.0,00 KG',
					'unit'   => 1.00,
				),

				'g' => array(
					'format' => '(1,0.00 grams)',
					'unit'   => 1000.00,
				),

				'lb' => array(
					'format' => '1 lb',
					'unit'   => 2.20462,
				),

			),

		));
	}

{'fraction_non_alphanumeric': 0.18529170090386196, 'fraction_numerical': 0.05505341002465078, 'mean_word_length': 2.218109715796431, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 95, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '480250', 'n_tokens_mistral': 2425, 'n_tokens_neox': 1783, 'n_words': 409}