<commit_before><form id="quiz-form" class="form-horizontal row-fluid isites-form" action="/quiz/create">
	<fieldset>
		<legend>Create Quiz</legend>

		<?php echo $this->renderPartial('_form', array('collection_id'=>$collection_id, 'title'=>$title, 'description'=>$description, 'state'=>$state, 'start_date'=>$start_date, 'end_date'=>$end_date,)); ?>
	</fieldset>
</form>


<script>
$(document).ready(function(){
	
	$('#quiz-form').attr('onsubmit', '');
	
	$('#quiz-form_default').submit(function() {
		// validate data
		if ($("input:#title").val() == "") {
			$("#title-control-group p.help-inline").text("Error: title required").show();
			$("#title-control-group").addClass("error");
			return false;
		} else {
			$("#title-control-group p.help-inline").text("").show();			
			$("#title-control-group").removeClass("error");
		}<commit_msg>quick fix, getting rid of isites debugging measure<commit_after><form id="quiz-form" class="form-horizontal row-fluid isites-form" action="/quiz/create">
	<fieldset>
		<legend>Create Quiz</legend>

		<?php echo $this->renderPartial('_form', array('collection_id'=>$collection_id, 'title'=>$title, 'description'=>$description, 'state'=>$state, 'start_date'=>$start_date, 'end_date'=>$end_date,)); ?>
	</fieldset>
</form>


<script>
$(document).ready(function(){
		
	$('#quiz-form_default').submit(function() {
		// validate data
		if ($("input:#title").val() == "") {
			$("#title-control-group p.help-inline").text("Error: title required").show();
			$("#title-control-group").addClass("error");
			return false;
		} else {
			$("#title-control-group p.help-inline").text("").show();			
			$("#title-control-group").removeClass("error");
		}
{'fraction_non_alphanumeric': 0.2427299703264095, 'fraction_numerical': 0.0, 'mean_word_length': 5.690476190476191, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 33, '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': '235439', 'n_tokens_mistral': 596, 'n_tokens_neox': 552, 'n_words': 84}