<commit_before>(function () {
	'use strict';

	// Create the client and the connection
    var serverIP = 'http://192.168.3.11:3000';
	yustClient.create({ id: 'control', uri: serverIP });

	// Using jQuery for the hackathon speed needs lol
	$(document).on('ready', function () {
		function toggleButton(el, ev) {
			// I put setTimeOut to chunck it all but I don't really know why... just to be sure
			setTimeout(function () {
				yustClient.emit(ev, el.dataset.value);
				
				el.classList.toggle('is-active');
				if (el.dataset.shine) {
					$(el.dataset.shine).toggleClass('is-active');
				}
			}, 0);
		}

		$('.button, .arrow, .arrow-d').on('touchstart', function () {
				toggleButton(this, 'press');
		});

		$('.button, .arrow, .arrow-d').on('touchend', function () {
			toggleButton(this, 'release');
		});

		$(window).trigger('resize');
	});

	$(window).on('resize', function () {
		  var content_width, screen_dimension;

		  if (window.orientation == 0 || window.orientation == 180) {
		    // portrait
		    content_width = 630;
		    screen_dimension = screen.width * 0.98; // fudge factor was necessary in my case
		  } else if (window.orientation == 90 || window.orientation == -90) {
		    // landscape
		    content_width = 950;
		    screen_dimension = screen.height;
		  }

		  var viewport_scale = screen_dimension / content_width;

		  // resize viewport
		  $('meta[name=viewport]').attr('content',
		    'width=' + content_width + ',' +
		    'minimum-scale=' + viewport_scale + ', maximum-scale=' + viewport_scale);
	});

}());
<commit_msg>No chuncking click fn<commit_after>(function () {
	'use strict';

	// Create the client and the connection
    var serverIP = 'http://192.168.3.11:3000';
	yustClient.create({ id: 'control', uri: serverIP });

	// Using jQuery for the hackathon speed needs lol
	$(document).on('ready', function () {
		function toggleButton(el, ev) {
			yustClient.emit(ev, el.dataset.value);
			
			el.classList.toggle('is-active');
			if (el.dataset.shine) {
				$(el.dataset.shine).toggleClass('is-active');
			}
		}

		$('.button, .arrow, .arrow-d').on('touchstart', function () {
				toggleButton(this, 'press');
		});

		$('.button, .arrow, .arrow-d').on('touchend', function () {
			toggleButton(this, 'release');
		});

		$(window).trigger('resize');
	});

	$(window).on('resize', function () {
		  var content_width, screen_dimension;

		  if (window.orientation == 0 || window.orientation == 180) {
		    // portrait
		    content_width = 630;
		    screen_dimension = screen.width * 0.98; // fudge factor was necessary in my case
		  } else if (window.orientation == 90 || window.orientation == -90) {
		    // landscape
		    content_width = 950;
		    screen_dimension = screen.height;
		  }

		  var viewport_scale = screen_dimension / content_width;

		  // resize viewport
		  $('meta[name=viewport]').attr('content',
		    'width=' + content_width + ',' +
		    'minimum-scale=' + viewport_scale + ', maximum-scale=' + viewport_scale);
	});

}());

{'fraction_non_alphanumeric': 0.1756711965528671, 'fraction_numerical': 0.020218760357971495, 'mean_word_length': 3.1285909712722297, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '209820', 'n_tokens_mistral': 1150, 'n_tokens_neox': 943, 'n_words': 214}