<commit_before>$(function () {
	'use strict';
	// FastClick
	FastClick.attach(document.body);
	// Goodnight
	Goodnight.css('assets/stylesheets/dark.css');
	var
	// User's input
	y,
	// Newtab contains page to be opened
	newtab,
	// Modules
	modules = {
		'random': false,
		'entertainment': false
	};
	// Evaluation of modules cookie
	if (Cookies.get('modules') !== undefined) {
		modules = eval('(' + Cookies.get('modules') + ')');
	}
	// Entertainment image toggle
	$(document).on('click', '.toggle', function () {
		// $(this).parent().children() to target specifically the image in the same paragraph
		$(this).parent().children().toggle();
	});
	// Input for app
	$('input').keydown(function (e) {
		if (e.which === 13 && $(this).val() !== '') {
			// Parsing of user input for display
			y = $(this).val();
			y = y.replace(/^\s+|\s+$/gm,'');
			y = y.replace(/\s\s+/g, ' ');
			y = y.charAt(0).toUpperCase() + y.slice(1);
			y = y.split('<').join('&lt;');
			y = y.split(' i ').join(' I ');
			$(this).val('').blur();
			$('<div class="conversation you">' + y + '</div>').appendTo('#conversation-box').fadeIn('slow', function () {
				y = y.split('&lt;').join('<');
				app(y);
			});
		}
	});
	// Runs all modules
	function app (y) {
		y = parse(y);
		if (settings(y)) {
			if (random(y)) {
				if (entertainment(y)) {
					core(y);
				}
			}
		}
		// Scrolls after response
		$('html, body').animate({scrollTop: $(document).height()}, 2000);
	}
	// Parses string to be evaluated
	function parse (y) {
		y = y.toLowerCase();
		y = y.split('?').join('');
		y = y.split('!').join('');
		y = y.split('what\'s').join('what is');
		y = y.split('you\'re').join('you are');
		y = y.split('i\'m').join('i am');
		if (y.slice(-1) === '.') {
			y = y.slice(0, y.length - 1);
		}
		console.log('String has been interpreted as: "' + y + '".');
		return y;
	}
	// [Mandatory] Settings module
	function settings (y) {
		var onoff;
		if (y === 'toggle goodnight' || y === 'goodnight.toggle();' || y === 'goodnight.toggle()') {<commit_msg>Improved parsing again<commit_after>$(function () {
	'use strict';
	// FastClick
	FastClick.attach(document.body);
	// Goodnight
	Goodnight.css('assets/stylesheets/dark.css');
	var
	// User's input
	y,
	// Newtab contains page to be opened
	newtab,
	// Modules
	modules = {
		'random': false,
		'entertainment': false
	};
	// Evaluation of modules cookie
	if (Cookies.get('modules') !== undefined) {
		modules = eval('(' + Cookies.get('modules') + ')');
	}
	// Entertainment image toggle
	$(document).on('click', '.toggle', function () {
		// $(this).parent().children() to target specifically the image in the same paragraph
		$(this).parent().children().toggle();
	});
	// Input for app
	$('input').keydown(function (e) {
		if (e.which === 13 && $(this).val() !== '') {
			// Parsing of user input for display
			y = $(this).val();
			y = y.replace(/^\s+|\s+$/gm,'');
			y = y.replace(/\s\s+/g, ' ');
			y = y.charAt(0).toUpperCase() + y.slice(1);
			y = y.split('<').join('&lt;');
			y = y.split(' i ').join(' I ');
			$(this).val('').blur();
			$('<div class="conversation you">' + y + '</div>').appendTo('#conversation-box').fadeIn('slow', function () {
				y = y.split('&lt;').join('<');
				app(y);
			});
		}
	});
	// Runs all modules
	function app (y) {
		y = parse(y);
		if (settings(y)) {
			if (random(y)) {
				if (entertainment(y)) {
					core(y);
				}
			}
		}
		// Scrolls after response
		$('html, body').animate({scrollTop: $(document).height()}, 2000);
	}
	// Parses string to be evaluated
	function parse (y) {
		y = y.toLowerCase();
		y = y.split('?').join('');
		y = y.split('!').join('');
		y = y.split('what\'s').join('what is');
		y = y.split('you\'re').join('you are');
		y = y.split('i\'m').join('i am');
		while (y.slice(-1) === '.') {
			y = y.slice(0, -1);
		}
		y = y.replace(/^\s+|\s+$/gm,'');
		console.log('String has been interpreted as: "' + y + '".');
		return y;
	}
	// [Mandatory] Settings module
	function settings (y) {
		var onoff;
		if (y === 'toggle goodnight' || y === 'goodnight.toggle();' || y === 'goodnight.toggle()') {
{'fraction_non_alphanumeric': 0.2526213118751524, 'fraction_numerical': 0.0053645452328700315, 'mean_word_length': 3.151821862348178, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 7, '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': '2448436', 'n_tokens_mistral': 1681, 'n_tokens_neox': 1512, 'n_words': 337}