<commit_before><?php
require_once "html.php";
head(); ?>

<?php
$thisisaquiz = !array_key_exists("author", $_GET);

if($thisisaquiz)
	echo "<h2>Quiz Instructions</h2>
		<p>For each proposition, decide your level of agreement with it.
		No answer is right or wrong. However, you cannot remain neutral. This test is to
		help gauge your particular ideology surrounding free and open source
		culture.</p>";
else
	echo "<h2>" . $authors[$_GET["author"]]->get_auth_name() . "</h2>
		<p>This is how we believe the author would have completed the survey.
		The rightmost column lists the relevant references, as enumerated on the <a href=\"readlist.php\">Reading List</a> page.</p>";
 
$tobedisplayed = $survey;
if(!$thisisaquiz) {
	$tobedisplayed = $authors[$_GET["author"]]->get_all_the_things();
}

echo "<form id=\"quiz\" action=\"result.php\" onsubmit=\"return 
validateForm();\" action=\"get\">"; // TODO validate the results
echo "<table width=\"100%\">";
foreach($tobedisplayed as &$question)
	echo $question;
if($thisisaquiz)
	//echo "<tr><td class=\"centered\" colspan=\"2\"><input type=\"submit\"/></td></tr>";
	echo "<tr><td class=\"centered\" colspan=\"2\"><button type=\"button\"
	onclick=\"mySubmit();\"/>Submit</button></td></tr>";
echo "</table>";

foot();
?><commit_msg>A better label, a better Button<commit_after><?php
require_once "html.php";
head(); ?>

<?php
$thisisaquiz = !array_key_exists("author", $_GET);

if($thisisaquiz)
	echo "<h2>Quiz Instructions</h2>
		<p>For each proposition, decide your level of agreement with it.
		No answer is right or wrong. However, you cannot remain neutral. This test is to
		help gauge your particular ideology surrounding free and open source
		culture.</p>";
else
	echo "<h2>" . $authors[$_GET["author"]]->get_auth_name() . "</h2>
		<p>This is how we believe the author would have completed the survey.
		The rightmost column lists the relevant references, as enumerated on the <a href=\"readlist.php\">Reading List</a> page.</p>";
 
$tobedisplayed = $survey;
if(!$thisisaquiz) {
	$tobedisplayed = $authors[$_GET["author"]]->get_all_the_things();
}

echo "<form id=\"quiz\" action=\"result.php\" onsubmit=\"return 
validateForm();\" action=\"get\">"; // TODO validate the results
echo "<table width=\"100%\">";
foreach($tobedisplayed as &$question)
	echo $question;
if($thisisaquiz)
	echo "<tr><td class=\"centered\" colspan=\"2\"><button type=\"button\"
	onclick=\"mySubmit();\">Submit</button></td></tr>";
echo "</table>";

foot();
?>
{'fraction_non_alphanumeric': 0.1904570970328789, 'fraction_numerical': 0.00681635926222935, 'mean_word_length': 5.115196078431373, 'pattern_counts': {'":': 0, '<': 50, '<?xml version=': 0, '>': 54, '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': '429814', 'n_tokens_mistral': 830, 'n_tokens_neox': 800, 'n_words': 240}