<commit_before><?php 
	// Template for Semester Types.
	$semesters = array('Fall',
					   'Winter',
					   'Spring',
					   'May',
					   'Summer');
	
	$terms = array(
		0 => '16 Week',
		1 => '12 Week',
		2 => '8 Week'
	);

	$current_year = date("Y");
	$years = array();
	for($i = -1; $i < 3; $i++) {
		$years[] = ($current_year + $i);
	}

	$months = array(
		1 => 'January',
		2 => 'February',
		3 => 'March',
		4 => 'April',
		5 => 'May',
		6 => 'June',
		7 => 'July',
		8 => 'August',
		9 => 'September',
		10 => 'October',
		11 => 'November',
		12 => 'December'
	);
?>
<table class="form_table" id="tbl_widget_content">
	<input type="hidden" value="<?php print $DOMAIN; ?>" id="DOMAIN" />
	<tbody>
		<!--<tr>
			<td class="label_cell">Timer <em>(in seconds)</em></td>
			<td class="data_cell"><input type="text" value="6.5" id="image_carousel_timer" class="field" size="12"></td>
		</tr>-->
		<tr>
			<td class="label_cell"></td>
			<td class="data_cell"><input type="button" onclick="addWidgetEvent();" class="button" value="Add Event"></td>
		</tr>		
		<tr>
			<td colspan="2">
				<table id="date_widget_table" class="form_table">
					<tbody id="date_widget_dates" style="">
						<tr><td class="label_cell">Pick Year/Semester:</td>
							<td class="data_cell">
								<select id="picker_year"><?php foreach($years as $year) {
									printf('<option value="%s"%s>%s</option>', $year, ($year === $current_year ? ' selected' : ''), $year);
									} ?>
								</select>
								<select id="picker_semester"><?php foreach($semesters as $id => $semester): ?>
									<option value="<?php echo strtolower($semester) ?>"><?php echo $semester ?></option>
									<?php endforeach; ?>
								</select>
								<input type="button" onclick="filterRows();" value="Show Events" class="button">
							</td>
						</tr>
						<?php foreach($years as $y) {
								foreach($semesters as $sem) {
									//foreach($terms as $i => $t) {
										printf('<tr id="%s_%s" class="filter_dates" style="display:none;"><td class="label_cell" colspan="2" style="text-align: center;">%s - %s</td></tr>', 
											   $y, strtolower($sem), $y, $sem);
									//}
								}
							} ?>
					</tbody>
				</table>
			</td>
		</tr>
	</tbody>
   	<tfoot style="">
		<tr>
			<td class="label_cell">Event Start Month</td>
			<td class="data_cell">
				<select id="event_start_month">
					<?php foreach($months as $m => $month): ?>
					<option value="<?php echo $month; ?>"><?php echo $month; ?></option>
					<?php endforeach; ?>
				</select>
			</td>
		</tr>
		<tr>
			<td class="label_cell">Event Start Day</td>
			<td class="data_cell">
				<input type="text" value="" id="event_start_day" class="field" size="3">
			</td>
		</tr>
		<tr>
			<td class="label_cell">Event End Month</td>
			<td class="data_cell">
				<select id="event_end_month">
					<?php foreach($months as $m => $month): ?>
					<option value="<?php echo $month; ?>"><?php echo $month; ?></option>
					<?php endforeach; ?>
				</select>
			</td>
		</tr>
		<tr>
			<td class="label_cell">Event End Day</td>
			<td class="data_cell">
				<input type="text" value="" id="event_end_day" class="field" size="3">
			</td>
		</tr>
		<tr>
			<td class="label_cell">Event Name</td>
			<td class="data_cell"><input type="text" value="" id="event_name" class="field" size="12"></td>
		</tr>
		<tr>
			<td class="label_cell">Semester</td>
			<td class="data_cell"><select id="event_semester">
				<?php foreach($semesters as $id => $semester): ?>
					<option value="<?php echo strtolower($semester); ?>"><?php echo $semester ?></option>
				<?php endforeach; ?>
			</select></td>
		</tr>
		<tr>
			<td class="label_cell">Year</td>
			<td class="data_cell"><select id="event_year">
				<?php foreach($years as $year) {
					printf('<option value="%s"%s>%s</option>', $year, ($year === $current_year ? ' selected' : ''), $year);
				} ?>
			</select></td>
		</tr>
		<tr>
			<td class="label_cell">Term</td>
			<td class="data_cell"><?php foreach($terms as $termid => $term): ?>
				<input type="checkbox" class="event_terms" id="term-<?php echo $termid; ?>" value="<?php echo $termid; ?>"><?php echo $term; ?> &nbsp;
			<?php endforeach; ?></td>
		</tr>
		<tr>
			<td class="label_cell">Highlight Event</td>
			<td class="data_cell"><input type="checkbox" id="event_highlight" value="1"> Add a special highlight to the event listing.</td><commit_msg>Moved year to the first input of the settings. Added dropdown for days.<commit_after><?php 
	// Template for Semester Types.
	$semesters = array('Fall',
					   'Winter',
					   'Spring',
					   'May',
					   'Summer');
	
	$terms = array(
		0 => '16 Week',
		1 => '12 Week',
		2 => '8 Week'
	);

	$current_year = date("Y");
	$years = array();
	for($i = -1; $i < 3; $i++) {
		$years[] = ($current_year + $i);
	}

	$months = array(
		1 => 'January',
		2 => 'February',
		3 => 'March',
		4 => 'April',
		5 => 'May',
		6 => 'June',
		7 => 'July',
		8 => 'August',
		9 => 'September',
		10 => 'October',
		11 => 'November',
		12 => 'December'
	);
?>
<table class="form_table" id="tbl_widget_content">
	<input type="hidden" value="<?php print $DOMAIN; ?>" id="DOMAIN" />
	<tbody>
		<!--<tr>
			<td class="label_cell">Timer <em>(in seconds)</em></td>
			<td class="data_cell"><input type="text" value="6.5" id="image_carousel_timer" class="field" size="12"></td>
		</tr>-->
		<tr>
			<td class="label_cell"></td>
			<td class="data_cell"><input type="button" onclick="addWidgetEvent();" class="button" value="Add Event"></td>
		</tr>		
		<tr>
			<td colspan="2">
				<table id="date_widget_table" class="form_table">
					<tbody id="date_widget_dates" style="">
						<tr><td class="label_cell">Pick Year/Semester:</td>
							<td class="data_cell">
								<select id="picker_year"><?php foreach($years as $year) {
									printf('<option value="%s"%s>%s</option>', $year, ($year === $current_year ? ' selected' : ''), $year);
									} ?>
								</select>
								<select id="picker_semester"><?php foreach($semesters as $id => $semester): ?>
									<option value="<?php echo strtolower($semester) ?>"><?php echo $semester ?></option>
									<?php endforeach; ?>
								</select>
								<input type="button" onclick="filterRows();" value="Show Events" class="button">
							</td>
						</tr>
						<?php foreach($years as $y) {
								foreach($semesters as $sem) {
									//foreach($terms as $i => $t) {
										printf('<tr id="%s_%s" class="filter_dates" style="display:none;"><td class="label_cell" colspan="2" style="text-align: center;">%s - %s</td></tr>', 
											   $y, strtolower($sem), $y, $sem);
									//}
								}
							} ?>
					</tbody>
				</table>
			</td>
		</tr>
	</tbody>
   	<tfoot style="">
   		<tr>
			<td class="label_cell">Year</td>
			<td class="data_cell"><select id="event_year">
				<?php foreach($years as $year) {
					printf('<option value="%s"%s>%s</option>', $year, ($year === $current_year ? ' selected' : ''), $year);
				} ?>
			</select></td>
		</tr>
		<tr>
			<td class="label_cell">Event Start Month</td>
			<td class="data_cell">
				<select id="event_start_month">
					<?php foreach($months as $m => $month): ?>
					<option value="<?php echo $month; ?>"><?php echo $month; ?></option>
					<?php endforeach; ?>
				</select>
			</td>
		</tr>
		<tr>
			<td class="label_cell">Event Start Day</td>
			<td class="data_cell">
				<select id="event_start_day">
					<?php for($i = 1; $i <= 31; $i++): ?>
					<option value="<?php echo $i; ?>"><?php echo $i; ?></option>
					<?php endfor; ?>
				</select>
			</td>
		</tr>
		<tr>
			<td class="label_cell">Event End Month</td>
			<td class="data_cell">
				<select id="event_end_month">
					<?php foreach($months as $m => $month): ?>
					<option value="<?php echo $month; ?>"><?php echo $month; ?></option>
					<?php endforeach; ?>
				</select>
			</td>
		</tr>
		<tr>
			<td class="label_cell">Event End Day</td>
			<td class="data_cell">
				<select id="event_end_day">
					<?php for($i = 1; $i <= 31; $i++): ?>
					<option value="<?php echo $i; ?>"><?php echo $i; ?></option>
					<?php endfor; ?>
				</select>
			</td>
		</tr>
		<tr>
			<td class="label_cell">Event Name</td>
			<td class="data_cell"><input type="text" value="" id="event_name" class="field" size="12"></td>
		</tr>
		<tr>
			<td class="label_cell">Semester</td>
			<td class="data_cell"><select id="event_semester">
				<?php foreach($semesters as $id => $semester): ?>
					<option value="<?php echo strtolower($semester); ?>"><?php echo $semester ?></option>
				<?php endforeach; ?>
			</select></td>
		</tr>
		<tr>
			<td class="label_cell">Term</td>
			<td class="data_cell"><?php foreach($terms as $termid => $term): ?>
				<input type="checkbox" class="event_terms" id="term-<?php echo $termid; ?>" value="<?php echo $termid; ?>"><?php echo $term; ?> &nbsp;
			<?php endforeach; ?></td>
		</tr>
		<tr>
			<td class="label_cell">Highlight Event</td>
			<td class="data_cell"><input type="checkbox" id="event_highlight" value="1"> Add a special highlight to the event listing.</td>
{'fraction_non_alphanumeric': 0.23164152812947264, 'fraction_numerical': 0.008367279533193878, 'mean_word_length': 3.3092979127134723, 'pattern_counts': {'":': 0, '<': 319, '<?xml version=': 0, '>': 357, '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': '3332781', 'n_tokens_mistral': 4053, 'n_tokens_neox': 3255, 'n_words': 753}