<commit_before><?php

class phpunit_MapTest extends phpunit_bootstrap{


	/**
	 * Test
	 */
	public function testMap(){
		echo "\nBegin Tests";

		$less_file			= $this->fixtures_dir.'/bootstrap3-sourcemap/less/bootstrap.less';
		$map_file			= $this->fixtures_dir.'/bootstrap3-sourcemap/expected/bootstrap.map';
		$map_destination	= $this->cache_dir.'/bootstrap.map';



		$options['sourceMap']			= true;
		$options['sourceMapWriteTo']	= $map_destination;
		$options['sourceMapURL']		= '/';


		$parser = new Less_Parser($options);
		$parser->parseFile($less_file);
		$css = $parser->getCss();

		$expected_map	= file_get_contents($map_file);
		$generated_map	= file_get_contents($map_destination);
		$this->assertEquals( $expected_map, $generated_map );

	}
<commit_msg>set sourceMapBasepath<commit_after><?php

class phpunit_MapTest extends phpunit_bootstrap{


	/**
	 * Test
	 */
	public function testMap(){
		echo "\nBegin Tests";

		$less_file			= $this->fixtures_dir.'/bootstrap3-sourcemap/less/bootstrap.less';
		$map_file			= $this->fixtures_dir.'/bootstrap3-sourcemap/expected/bootstrap.map';
		$map_destination	= $this->cache_dir.'/bootstrap.map';



		$options['sourceMap']			= true;
		$options['sourceMapWriteTo']	= $map_destination;
		$options['sourceMapURL']		= '/';
		$options['sourceMapBasepath']	= dirname(dirname($less_file));


		$parser = new Less_Parser($options);
		$parser->parseFile($less_file);
		$css = $parser->getCss();

		$expected_map	= file_get_contents($map_file);
		$generated_map	= file_get_contents($map_destination);
		$this->assertEquals( $expected_map, $generated_map );

	}

{'fraction_non_alphanumeric': 0.16377171215880892, 'fraction_numerical': 0.0024813895781637717, 'mean_word_length': 5.133079847908745, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, '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': '1845554', 'n_tokens_mistral': 611, 'n_tokens_neox': 557, 'n_words': 75}