<commit_before><?php
	$uid = isset($_GET["uid"]) ? $_GET["uid"] : "";
	if (strlen($uid) != 40) {
		$uid = isset($_COOKIE["uid"]) ? $_COOKIE["uid"] : "";
		if (strlen($uid) != 40) {
			header("Location: /saveme");
			die();
		}
	}
?>
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8" />
	<title>Peter Planner</title>
	<meta name="description" content="Peter Planner is a prerequisite tracker and scheduling tool for UCI students." />
	<meta name="robots" content="index, follow" />
	<link rel="stylesheet" type="text/css" href="assets/stylesheets/style.css">
	<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/themes/smoothness/jquery-ui.css">
	<link rel="stylesheet" type="text/css" href="https://antplanner.appspot.com/static/css/jquery.weekcalendar.css">
	<!--[if IE]><script type="text/javascript" src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
	<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no" />
	<script type="text/javascript">
		var uid = <?php echo "\"$uid\""; ?>;
		var classesDict = {};
		function toggleSelected(element) {
			event.preventDefault();
			var c = classesDict[element.id];
			var isSelected = element.classList.toggle("selected");
			if (isSelected) {
				var timeStart = new Date(c.time.start);
				var timeEnd = new Date(c.time.end);
				$("#cal").weekCalendar("scrollToHour", timeStart.getUTCHours(), true);
				for (var i = 0; i < c.days.length; i++) {
					var title = c.course.department + " " + c.course.number + "<br />" + c.type + " " + c.section + " (" + c.code + ")";
					var day = c.days[i];
					var calEvent = {
						id: element.id + day,
						groupId: element.id,
						start: new Date(2012, 9, day, timeStart.getUTCHours(), timeStart.getUTCMinutes()),
						end: new Date(2012, 9, day, timeEnd.getUTCHours(), timeEnd.getUTCMinutes()),
						title: title,
					};
					$("#cal").weekCalendar("updateEvent", calEvent);
				}
				var colorPair = getRandomColorPair();
              $('.wc-cal-event').each(function(index, el) {
                var c = $(el).data().calEvent
                if( c.groupId.indexOf(courseCode) != -1 ) {
                  colorEvent(el, colorPair);
                }
              });
			} else {
				for (var i = 0; i < c.days.length; i++) {
					var day = c.days[i];<commit_msg>Class Colors<commit_after><?php
	$uid = isset($_GET["uid"]) ? $_GET["uid"] : "";
	if (strlen($uid) != 40) {
		$uid = isset($_COOKIE["uid"]) ? $_COOKIE["uid"] : "";
		if (strlen($uid) != 40) {
			header("Location: /saveme");
			die();
		}
	}
?>
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8" />
	<title>Peter Planner</title>
	<meta name="description" content="Peter Planner is a prerequisite tracker and scheduling tool for UCI students." />
	<meta name="robots" content="index, follow" />
	<link rel="stylesheet" type="text/css" href="assets/stylesheets/style.css">
	<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/themes/smoothness/jquery-ui.css">
	<link rel="stylesheet" type="text/css" href="https://antplanner.appspot.com/static/css/jquery.weekcalendar.css">
	<!--[if IE]><script type="text/javascript" src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
	<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no" />
	<script type="text/javascript">
		var uid = <?php echo "\"$uid\""; ?>;
		var classesDict = {};
		function toggleSelected(element) {
			event.preventDefault();
			var c = classesDict[element.id];
			var isSelected = element.classList.toggle("selected");
			if (isSelected) {
				var timeStart = new Date(c.time.start);
				var timeEnd = new Date(c.time.end);
				$("#cal").weekCalendar("scrollToHour", timeStart.getUTCHours(), true);
				for (var i = 0; i < c.days.length; i++) {
					var title = c.course.department + " " + c.course.number + "<br />" + c.type + " " + c.section + " (" + c.code + ")";
					var day = c.days[i];
					var calEvent = {
						id: element.id + day,
						groupId: element.id,
						start: new Date(2012, 9, day, timeStart.getUTCHours(), timeStart.getUTCMinutes()),
						end: new Date(2012, 9, day, timeEnd.getUTCHours(), timeEnd.getUTCMinutes()),
						title: title,
					};
					$("#cal").weekCalendar("updateEvent", calEvent);
				}
				var colorPair = getRandomColorPair();
              $('.wc-cal-event').each(function(index, el) {
                var c = $(el).data().calEvent
                if( c.groupId.indexOf(c.code) != -1 ) {
                  colorEvent(el, colorPair);
                }
              });
			} else {
				for (var i = 0; i < c.days.length; i++) {
					var day = c.days[i];
{'fraction_non_alphanumeric': 0.19848771266540643, 'fraction_numerical': 0.010922075194286915, 'mean_word_length': 3.255585344057194, 'pattern_counts': {'":': 0, '<': 47, '<?xml version=': 0, '>': 43, 'https://': 4, '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': '2420234', 'n_tokens_mistral': 1858, 'n_tokens_neox': 1625, 'n_words': 324}