<commit_before><?php

	class TimberSiteTest extends WP_UnitTestCase {

		function testStandardThemeLocation(){
			$site = new TimberSite();
			$this->assertEquals(WP_CONTENT_SUBDIR.'/themes/twentyfourteen', $site->theme->path);
		}

		function testChildParentThemeLocation(){
			TestTimberLoader::_setupChildTheme();
			$this->assertFileExists(WP_CONTENT_DIR.'/themes/fake-child-theme/style.css');
			switch_theme('fake-child-theme');
			$site = new TimberSite();
			$this->assertEquals(WP_CONTENT_SUBDIR.'/themes/fake-child-theme', $site->theme->path);
			$this->assertEquals(WP_CONTENT_SUBDIR.'/themes/twentythirteen', $site->theme->parent->path);
		}

		function testLegacyThemeDir(){
			$context = Timber::get_context();
			switch_theme('twentyfourteen');
			$this->assertEquals(WP_CONTENT_SUBDIR.'/themes/twentyfourteen', $context['theme_dir']);
		}

		function testThemeFromContext(){
			$context = Timber::get_context();
			switch_theme('twentyfourteen');
			$this->assertEquals('twentyfourteen', $context['theme']->slug);
		}

		function testThemeFromSiteContext(){
			$context = Timber::get_context();
			switch_theme('twentyfourteen');
			$this->assertEquals('twentyfourteen', $context['site']->theme->slug);
		}


	}
<commit_msg>changed tested theme to twenty thirteen for WP 3.7 tests<commit_after><?php

	class TimberSiteTest extends WP_UnitTestCase {

		function testStandardThemeLocation(){
			switch_theme('twentythirteen');
			$site = new TimberSite();
			$this->assertEquals(WP_CONTENT_SUBDIR.'/themes/twentythirteen', $site->theme->path);
		}

		function testChildParentThemeLocation(){
			TestTimberLoader::_setupChildTheme();
			$this->assertFileExists(WP_CONTENT_DIR.'/themes/fake-child-theme/style.css');
			switch_theme('fake-child-theme');
			$site = new TimberSite();
			$this->assertEquals(WP_CONTENT_SUBDIR.'/themes/fake-child-theme', $site->theme->path);
			$this->assertEquals(WP_CONTENT_SUBDIR.'/themes/twentythirteen', $site->theme->parent->path);
		}

		function testLegacyThemeDir(){
			$context = Timber::get_context();
			switch_theme('twentythirteen');
			$this->assertEquals(WP_CONTENT_SUBDIR.'/themes/twentythirteen', $context['theme_dir']);
		}

		function testThemeFromContext(){
			$context = Timber::get_context();
			switch_theme('twentythirteen');
			$this->assertEquals('twentythirteen', $context['theme']->slug);
		}

		function testThemeFromSiteContext(){
			$context = Timber::get_context();
			switch_theme('twentythirteen');
			$this->assertEquals('twentythirteen', $context['site']->theme->slug);
		}


	}

{'fraction_non_alphanumeric': 0.163408913213448, 'fraction_numerical': 0.0007818608287724785, 'mean_word_length': 5.8975741239892185, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 37, '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': '3071763', 'n_tokens_mistral': 920, 'n_tokens_neox': 828, 'n_words': 100}