<commit_before>// Check for user selected color, set if undefined
var colorCookie = $.cookie('color');
if (typeof colorCookie === 'undefined') {
	$.cookie('color', 'bar_blueribbon', { expires: 365, path: '/' });
}

function updateAllEvents(setTimer) {
	"use strict";
	$('.bar').each(function () {
		var box, countDown, eventTypeData, eventOffsetData, eventDurationData, eventOffset2Data, eventDuration2Data, eventRepeatData,
			eventHappening, eventStart, eventEnd, eventDuration, eventComplete, percent, eventDayStartData, eventDayStartData2,
			eventOffsetData2, days, eventWarning, eventWarningEnd, remaining, eventRemaining, uid;
		box = $(this);
		countDown = box.find('.bar_timer');
		eventTypeData = parseInt(box.data('type'), 10);

		// Hourly
		if (eventTypeData === 1) {
			eventOffsetData = parseInt(box.data('offset'), 10);
			eventDurationData = parseInt(box.data('duration'), 10);
			eventOffset2Data = parseInt(box.data('offset2'), 10);
			eventDuration2Data = parseInt(box.data('duration2'), 10);
			eventRepeatData = 3600;
			if (eventOffset2Data > eventOffsetData) {
				eventRepeatData = eventOffset2Data - eventOffsetData;
			}
			eventHappening = false;

			if (eventOffsetData === 0 && eventDurationData === 0) {
				return;
			}<commit_msg>Update script.js<commit_after>// Check for user selected color, set if undefined
var colorCookie = $.cookie('color');
if (typeof colorCookie === 'undefined') {
	$.cookie('color', 'bar_blueribbon', { expires: 365, path: '/' });
}

function updateAllEvents(setTimer) {
	//"use strict";
	$('.bar').each(function () {
		console.log("update bars")
		var box, countDown, eventTypeData, eventOffsetData, eventDurationData, eventOffset2Data, eventDuration2Data, eventRepeatData,
			eventHappening, eventStart, eventEnd, eventDuration, eventComplete, percent, eventDayStartData, eventDayStartData2,
			eventOffsetData2, days, eventWarning, eventWarningEnd, remaining, eventRemaining, uid;
		box = $(this);
		countDown = box.find('.bar_timer');
		eventTypeData = parseInt(box.data('type'), 10);

		// Hourly
		if (eventTypeData === 1) {
			eventOffsetData = parseInt(box.data('offset'), 10);
			eventDurationData = parseInt(box.data('duration'), 10);
			eventOffset2Data = parseInt(box.data('offset2'), 10);
			eventDuration2Data = parseInt(box.data('duration2'), 10);
			eventRepeatData = 3600;
			if (eventOffset2Data > eventOffsetData) {
				eventRepeatData = eventOffset2Data - eventOffsetData;
			}
			eventHappening = false;

			if (eventOffsetData === 0 && eventDurationData === 0) {
				return;
			}
{'fraction_non_alphanumeric': 0.1421875, 'fraction_numerical': 0.0234375, 'mean_word_length': 5.276960784313726, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '6132031', 'n_tokens_mistral': 895, 'n_tokens_neox': 784, 'n_words': 181}