<commit_before>(function ($) {
	"use strict";
	
	var startButton = $("#start"),
		log = $("#log"),
		intervalField = $("#post-interval"),
		running = false,
		timerId = null,
		updateStatus,
		createStatus;
	
	updateStatus = function (status) {
		$.ajax("/temperature/twitter?update=true", {
			type: "POST",
			data: {
				status: status
			}
		}).done(function () {
			log.append("Posting success!<br/>");
		}).fail(function () {
			log.append("Posting failure.<br/>");
		});
	};
	
	createStatus = function () {
		$.getJSON("/temperature/rest/get", function (data) {
			var twitterStatus = "";
			
			for (var i in data.list) {
				var temp = data.list[i];
				
				twitterStatus += temp.placeName + ": " + temp.temperature + " C, " + temp.humidity + " %.\n";
			}
			
			updateStatus(twitterStatus);
		});
	};
	
	startButton.click(function () {
		if (running) {
			clearInterval(timerId);
			log.append("Timer stopped.<br/>");
			
			intervalField.prop("disabled", false);
			startButton.text("Start");
		} else {
			log.append("Timer started.<br/>");
			
			// Update immediately
			createStatus();
			
			// Get the input value and convert it from minutes to milliseconds
			timerId = setInterval(createStatus, intervalField.val() * 60 * 1000);
			
			intervalField.prop("disabled", true);
			startButton.text("Stop");
		}
		running = !running;
	});
	
}(jQuery));<commit_msg>Change encoding.<commit_after>(function ($) {
	"use strict";
	
	var startButton = $("#start"),
		log = $("#log"),
		intervalField = $("#post-interval"),
		running = false,
		timerId = null,
		updateStatus,
		createStatus;
	
	updateStatus = function (status) {
		$.ajax("/temperature/twitter?update=true", {
			type: "POST",
			data: {
				status: status
			}
		}).done(function () {
			log.append("Posting success!<br/>");
		}).fail(function () {
			log.append("Posting failure.<br/>");
		});
	};
	
	createStatus = function () {
		$.getJSON("/temperature/rest/get", function (data) {
			var twitterStatus = "";
			
			for (var i in data.list) {
				var temp = data.list[i];
				
				twitterStatus += temp.placeName + ": " + temp.temperature + " °C, " + temp.humidity + " %.\n";
			}
			
			updateStatus(twitterStatus);
		});
	};
	
	startButton.click(function () {
		if (running) {
			clearInterval(timerId);
			log.append("Timer stopped.<br/>");
			
			intervalField.prop("disabled", false);
			startButton.text("Start");
		} else {
			log.append("Timer started.<br/>");
			
			// Update immediately
			createStatus();
			
			// Get the input value and convert it from minutes to milliseconds
			timerId = setInterval(createStatus, intervalField.val() * 60 * 1000);
			
			intervalField.prop("disabled", true);
			startButton.text("Stop");
		}
		running = !running;
	});
	
}(jQuery));
{'fraction_non_alphanumeric': 0.18306801736613604, 'fraction_numerical': 0.004341534008683068, 'mean_word_length': 3.1578947368421053, 'pattern_counts': {'":': 2, '<': 11, '<?xml version=': 0, '>': 11, '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': '98463', 'n_tokens_mistral': 1073, 'n_tokens_neox': 858, 'n_words': 180}