<commit_before><?php
	function createFT($ua,$match,$title,$prefix = '',$note = '') {
		print "<table class=\"zebra-striped span9\">
			<thead>
				<tr>
					<th>".$title."</th>
					<th>Your Browser</th>
					<th>Detector Profile</th>
				</tr>
			</thead>
			<tbody>";
		foreach($ua as $key => $value) {
			if (preg_match($match,$key)) {
				if (is_object($value)) {
					foreach ($value as $vkey => $vvalue) {
						print "<tr>";
						print "<th class=\"span7\">".$key."->".$vkey.":</th>";
						if (Detector::$foundIn == "archive") {
							print "<td class=\"span1\"><span class='label'>N/A</span></td>";
						} else {
							print "<td class=\"span1\">
									<script type=\"text/javascript\">
										if (Modernizr['".$prefix.$key."']['".$vkey."'] == true) { 
											document.write(\"<span class='label success'>\"+Modernizr['".$prefix.$key."']['".$vkey."']+\"</span>\"); 
										} else if (Modernizr['".$prefix.$key."']['".$vkey."']) {
											document.write(\"<span class='label warning'>\"+Modernizr['".$prefix.$key."']['".$vkey."']+\"</span>\"); 
										} else { 
											document.write(\"<span class='label important'>false</span>\"); 
										}
									</script>
								   </td>";
						}
						print "<td class=\"span1\">".convertTF($vvalue)."</td>";
						print "</tr>";
					}
				} else {
					print "<tr>";	
					print "<th class=\"span7\">".$key.":</th>";
					if (Detector::$foundIn == "archive") {
						print "<td class=\"span1\"><span class='label'>N/A</span></td>";
					} else {
						print "<td class=\"span1\">
								<script type=\"text/javascript\">
									if (Modernizr['".$prefix.$key."']) { 
										document.write(\"<span class='label success'>\"+Modernizr['".$prefix.$key."']+\"</span>\"); 
									} else { 
										document.write(\"<span class='label important'>false</span>\"); 
									}
								</script>
							   </td>";
					}
					print "<td class=\"span1\">".convertTF($value)."</td>";
					print "</tr>";
				}
			}
		}
		print "</tbody>";
		print "</table>";
		if ($note != '') {
			print "<div class=\"featureNote span9\">";
			print "<small><em>".$note."</em></small>";
			print "</div>";
		}
	}
?><commit_msg>if no features match their is a default message shown<commit_after><?php
	function createFT($ua,$match,$title,$prefix = '',$note = '') {
		print "<table class=\"zebra-striped span9\">
			<thead>
				<tr>
					<th>".$title."</th>
					<th>Your Browser</th>
					<th>Detector Profile</th>
				</tr>
			</thead>
			<tbody>";
		$check = 0;
		foreach($ua as $key => $value) {
			if (preg_match($match,$key)) {
				$check = 1;
				if (is_object($value)) {
					foreach ($value as $vkey => $vvalue) {
						print "<tr>";
						print "<th class=\"span7\">".$key."->".$vkey.":</th>";
						if (Detector::$foundIn == "archive") {
							print "<td class=\"span1\"><span class='label'>N/A</span></td>";
						} else {
							print "<td class=\"span1\">
									<script type=\"text/javascript\">
										if (Modernizr['".$prefix.$key."']['".$vkey."'] == true) { 
											document.write(\"<span class='label success'>\"+Modernizr['".$prefix.$key."']['".$vkey."']+\"</span>\"); 
										} else if (Modernizr['".$prefix.$key."']['".$vkey."']) {
											document.write(\"<span class='label warning'>\"+Modernizr['".$prefix.$key."']['".$vkey."']+\"</span>\"); 
										} else { 
											document.write(\"<span class='label important'>false</span>\"); 
										}
									</script>
								   </td>";
						}
						print "<td class=\"span1\">".convertTF($vvalue)."</td>";
						print "</tr>";
					}
				} else {
					print "<tr>";	
					print "<th class=\"span7\">".$key.":</th>";
					if (Detector::$foundIn == "archive") {
						print "<td class=\"span1\"><span class='label'>N/A</span></td>";
					} else {
						print "<td class=\"span1\">
								<script type=\"text/javascript\">
									if (Modernizr['".$prefix.$key."']) { 
										document.write(\"<span class='label success'>\"+Modernizr['".$prefix.$key."']+\"</span>\"); 
									} else { 
										document.write(\"<span class='label important'>false</span>\"); 
									}
								</script>
							   </td>";
					}
					print "<td class=\"span1\">".convertTF($value)."</td>";
					print "</tr>";
				}
			}
		}
		if ($check == 0) {
			print "<tr>";	
			print "<td class=\"span9\" colspan=\"3\">This browser didn't support JavaScript so these features haven't been recorded.</td>";
			print "</tr>";
		}
		print "</tbody>";
		print "</table>";
		if ($note != '') {
			print "<div class=\"featureNote span9\">";
			print "<small><em>".$note."</em></small>";
			print "</div>";
		}
	}
?>
{'fraction_non_alphanumeric': 0.2692638829100301, 'fraction_numerical': 0.005380972879896685, 'mean_word_length': 2.3698332124728063, 'pattern_counts': {'":': 4, '<': 125, '<?xml version=': 0, '>': 131, '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': '2467858', 'n_tokens_mistral': 2171, 'n_tokens_neox': 1567, 'n_words': 276}