<commit_before><!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<title>Welcome to your test!</title>
	
	<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
	
	<link rel="stylesheet" type="text/css" href="../assets/css/test.css">
	<script type="text/javascript" src="../assets/js/test.js"></script>
	

</head>
<body>
	
<div id="overlay"></div>

<div id="intro">

	<div class="button">
	
	</div>
	
	<div class="contents">
	
		<fieldset id="key">
			<legend>Scoring</legend>
			
			<table>
				<tr>
					<td class="question_type">
						<strong>Single</strong> Answer Questions<br>
						("<em>Select one answer.</em>")
					</td>
					<td class="answers">
						<span class="correct">Correct</span><br>
						<span class="incorrect">Incorrect</span><br>
					</td>
					<td class="score">
						 <span class="correct">+ 1</span><br>
						 <span class="incorrect">- &frac12;</span>
					</td>
				</tr>
					<td class="question_type">
						<strong>Multiple</strong> Answer Questions<br>
						("<em>Select all correct answers.</em>")
					</td>
					<td class="answers">
						<span class="correct">All Correct</span><br>
						Some Correct</span><br>
						<span class="incorrect"><strong><em>Any</em></strong> Incorrect</span>
					</td>
					<td class="score">
						 <span class="correct">+ 1<br>
						 + &frac12;<br>
						 <span class="incorrect">- &frac12;</span>
					</td>
				<tr>
				</tr>
				<tr>
					<td colspan="3">
						<em>No question will score more than <span class="correct"><strong>+ 1</strong></span> or less than <span class="incorrect"><strong>- &frac12;</span>
					</td> 	
				</tr>
			</table>
		</fieldset>
		
		<?php if ($review): ?>
			<fieldset class="review">
				<legend>Question Difficulty Levels</legend>
			 	Who will answer this question correctly:
				<ol>
					<li><strong>Basic:</strong> Any programmer</li>
					<li><strong>Essential:</strong> Any Java programmer</li>
					<li><strong>Competent:</strong> A Java programmer with college-level experience</li>
					<li><strong>Experienced:</strong> A Java programmer with some professional experience</li>
					<li><strong>Excellent:</strong> A senior Java programmer</li>
					<li><strong>Obscure:</strong> Someone who memorized the Java API?</li>
				</o>
			</fieldset>			
		<?php endif ?>	
	
	</div>

</div>

<div id="main">
	
	<div id="name">
		<?=$test_name?>
	</div>
	
	<form id="exam" action="submit" method="post">
	
		<ol id="questions">
			<?php $qnum = 1?>
		
			<?php foreach ($questions as $qid => $question): ?>
		    	<li class="question" data-number="<?=$qnum?>">
		    		<?php if ($review): ?>
		    			<div class="review">
		    				Original Question #: <?=$qid?><br>
		    				Question Difficulty Level: <?=$question->getLevel()?>
		    			</div>
		    		<?php endif ?>
		    		
		    		<div class="text">
		    			<?=$question->getText()?>
		    		</div>
		    			    		
		    		<ol class="answers">
		    		
		    			<span class="instruction">
		    				<?= ($question->hasMultipleAnswers())?
		    					"Select all correct answers." :
		    					"Select one answer."
		    				?>
		    			</span>
		    			
		    			<?php foreach ($question->getAnswers($shuffle) as $aid => $answer): ?>
		    				<li class="answer">
		    				
		    					<section class="input">
			    					<input 
				    					id="<?=$answer->getId()?>"
				 		    			<?= $question->hasMultipleAnswers()?
						    				'type="checkbox" name="' .$aid. '"' :
						    				'type="radio" name="' .$qid. '"'
						    			?> 
						    			value="<?=$aid?>"
						    			<?php if ($review && $answer->isCorrect()): ?>
						    				checked="checked"
						    			<?php endif ?>
						    		>
						    	</section>
				    			
				    			<section class="label">
		    						<label for="<?=$aid?>"><?=$answer->getText()?></label>
		    					</section>
		    					
		    					<div style="clear:both"></div>
		    				</li>
		    			<?php endforeach ?>
		    			
		    			<?php $qnum++; ?>
		    		</ol>
		    		
		    		<div class="decline">
		    			<input type="checkbox" id="<?=$qid?>_decline" name="<?=$qid?>" value="decline">
		    			<label for="<?=$qid?>_decline">Decline to answer this question</label>
		    		</div>
		    	</li>
			<?php endforeach ?>
			
		</ol>
		
		<input type="submit">
		
	</form>

</div>

</body>
</html><commit_msg>Making checkbox names into array, using UIDs for IDs<commit_after><!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<title>Welcome to your test!</title>
	
	<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
	
	<link rel="stylesheet" type="text/css" href="../assets/css/test.css">
	<script type="text/javascript" src="../assets/js/test.js"></script>
	

</head>
<body>
	
<div id="overlay"></div>

<div id="intro">

	<div class="button">
	
	</div>
	
	<div class="contents">
	
		<fieldset id="key">
			<legend>Scoring</legend>
			
			<table>
				<tr>
					<td class="question_type">
						<strong>Single</strong> Answer Questions<br>
						("<em>Select one answer.</em>")
					</td>
					<td class="answers">
						<span class="correct">Correct</span><br>
						<span class="incorrect">Incorrect</span><br>
					</td>
					<td class="score">
						 <span class="correct">+ 1</span><br>
						 <span class="incorrect">- &frac12;</span>
					</td>
				</tr>
					<td class="question_type">
						<strong>Multiple</strong> Answer Questions<br>
						("<em>Select all correct answers.</em>")
					</td>
					<td class="answers">
						<span class="correct">All Correct</span><br>
						Some Correct</span><br>
						<span class="incorrect"><strong><em>Any</em></strong> Incorrect</span>
					</td>
					<td class="score">
						 <span class="correct">+ 1<br>
						 + &frac12;<br>
						 <span class="incorrect">- &frac12;</span>
					</td>
				<tr>
				</tr>
				<tr>
					<td colspan="3">
						<em>No question will score more than <span class="correct"><strong>+ 1</strong></span> or less than <span class="incorrect"><strong>- &frac12;</span>
					</td> 	
				</tr>
			</table>
		</fieldset>
		
		<?php if ($review): ?>
			<fieldset class="review">
				<legend>Question Difficulty Levels</legend>
			 	Who will answer this question correctly:
				<ol>
					<li><strong>Basic:</strong> Any programmer</li>
					<li><strong>Essential:</strong> Any Java programmer</li>
					<li><strong>Competent:</strong> A Java programmer with college-level experience</li>
					<li><strong>Experienced:</strong> A Java programmer with some professional experience</li>
					<li><strong>Excellent:</strong> A senior Java programmer</li>
					<li><strong>Obscure:</strong> Someone who memorized the Java API?</li>
				</o>
			</fieldset>			
		<?php endif ?>	
	
	</div>

</div>

<div id="main">
	
	<div id="name">
		<?=$test_name?>
	</div>
	
	<form id="exam" action="submit" method="post">
	
		<ol id="questions">
			<?php $qnum = 1?>
		
			<?php foreach ($questions as $qid => $question): ?>
		    	<li class="question" data-number="<?=$qnum?>">
		    		<?php if ($review): ?>
		    			<div class="review">
		    				Original Question #: <?=$qid?><br>
		    				Question Difficulty Level: <?=$question->getLevel()?>
		    			</div>
		    		<?php endif ?>
		    		
		    		<div class="text">
		    			<?=$question->getText()?>
		    		</div>
		    			    		
		    		<ol class="answers">
		    		
		    			<span class="instruction">
		    				<?= ($question->hasMultipleAnswers())?
		    					"Select all correct answers." :
		    					"Select one answer."
		    				?>
		    			</span>
		    			
		    			<?php foreach ($question->getAnswers($shuffle) as $aid => $answer): ?>
		    				<li class="answer">
		    				
		    					<section class="input">
			    					<input
			    						<?= $question->hasMultipleAnswers()?
						    				'type="checkbox"' : 'type="radio"' 
						    			?> 
						    			id="<?=$answer->getUid()?>" name="<?=$qid?>[]" value="<?=$aid?>"
						    			<?php if ($review && $answer->isCorrect()): ?>
						    				checked="checked"
						    			<?php endif ?>
						    		>
						    	</section>
				    			
				    			<section class="label">
		    						<label for="<?=$answer->getUid()?>"><?=$answer->getText()?></label>
		    					</section>
		    					
		    					<div style="clear:both"></div>
		    				</li>
		    			<?php endforeach ?>
		    			
		    			<?php $qnum++; ?>
		    		</ol>
		    		
		    		<div class="decline">
		    			<input type="checkbox" id="<?=$qid?>_decline" name="<?=$qid?>" value="decline">
		    			<label for="<?=$qid?>_decline">Decline to answer this question</label>
		    		</div>
		    	</li>
			<?php endforeach ?>
			
		</ol>
		
		<input type="submit">
		
	</form>

</div>

<footer>
	<?=$version?>
</footer>

</body>
</html>
{'fraction_non_alphanumeric': 0.20086393088552915, 'fraction_numerical': 0.0040923041946117995, 'mean_word_length': 2.298837645294338, 'pattern_counts': {'":': 0, '<': 379, '<?xml version=': 0, '>': 400, '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': '2545330', 'n_tokens_mistral': 3994, 'n_tokens_neox': 2956, 'n_words': 593}