<commit_before><!doctype html>
<html>
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<title>{{feature}} - Mocha test suite for polyfill-service</title>


	<!-- Test and expectation libraries -->
	<link rel="stylesheet" href="/test/libs/mocha/mocha.css" />
	<script src="/test/libs/mocha/mocha.js"></script>
	<script src="/test/libs/expect/index.js"></script>

	<!-- Initalise Mocha -->
	<script>mocha.setup('bdd')</script>

	{{#loadPolyfill}}
		<!-- Code under test -->
		<script src='/v2/polyfill.js?flags=gated{{#forceAlways}},always{{/forceAlways}}&amp;features={{#features}}{{feature}},{{/features}}'></script>
	{{/loadPolyfill}}

	<!-- Tests -->
	<script>
	{{#features}}
	describe('{{feature}}', function() {
		it('has testing suite', function() {
			expect(true).to.be(true);
		});
		{{#detect}}
		it('has feature detection', function() {
			expect((function() {
				return ({{{.}}});
			}).call(window)).to.be.ok();
		});
		{{/detect}}
		{{#tests}}
			{{{.}}}
		{{/tests}}
	});
	{{/features}}
	</script>
</head>
<body>

	<div id="mocha"></div>

	<script>

	// Given a test, get the first level suite that it is contained within
	// Not the top level, the first one down.
	function getFirstLevelSuite(test) {
		var parent = test;

		while (parent && parent.parent && parent.parent.parent) {
			parent = parent.parent;
		}

		return parent.title;
	}
<commit_msg>This has been annoying me for ages.<commit_after><!doctype html>
<html>
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<title>{{feature}} - Mocha test suite for polyfill-service</title>


	<!-- Test and expectation libraries -->
	<link rel="stylesheet" href="/test/libs/mocha/mocha.css" />
	<script src="/test/libs/mocha/mocha.js"></script>
	<script src="/test/libs/expect/index.js"></script>

	<!-- Initalise Mocha -->
	<script>mocha.setup('bdd')</script>

	{{#loadPolyfill}}
		<!-- Code under test -->
		<script src='/v2/polyfill.js?flags=gated{{#forceAlways}},always{{/forceAlways}}&amp;features={{#features}}{{feature}},{{/features}}'></script>
	{{/loadPolyfill}}

	<!-- Tests -->
	<script>
	{{#features}}
	describe('{{feature}}', function() {
		it('is running the test framework', function() {
			expect(true).to.be(true);
		});
		{{#detect}}
		it('passes a feature detect', function() {
			expect((function() {
				return ({{{.}}});
			}).call(window)).to.be.ok();
		});
		{{/detect}}
		{{#tests}}
			{{{.}}}
		{{/tests}}
	});
	{{/features}}
	</script>
</head>
<body>

	<div id="mocha"></div>

	<script>

	// Given a test, get the first level suite that it is contained within
	// Not the top level, the first one down.
	function getFirstLevelSuite(test) {
		var parent = test;

		while (parent && parent.parent && parent.parent.parent) {
			parent = parent.parent;
		}

		return parent.title;
	}

{'fraction_non_alphanumeric': 0.22701754385964912, 'fraction_numerical': 0.0014035087719298245, 'mean_word_length': 3.9582608695652173, 'pattern_counts': {'":': 0, '<': 57, '<?xml version=': 0, '>': 57, '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': '2630679', 'n_tokens_mistral': 1097, 'n_tokens_neox': 982, 'n_words': 205}