<commit_before>$(document).keydown((e) ->
	switch e.which
		when 37
			input = "l"
		when 39
			input = "r"
	server.postMessage "-#{input}"
	return
).keyup((e) ->
	switch e.which
		when 37
			input = "l"
		when 39
			input = "r"
	server.postMessage "-#{input}"
	return
).on "mousemove", (e) ->
	x = Math.abs(e.clientX - window.innerWidth)/window.innerWidth
	y = Math.abs(e.clientY - window.innerHeight)/window.innerHeight
	movement = (e.originalEvent.movementX or e.originalEvent.webkitMovementX or 0)/(two.width/100)
	server.postMessage "m#{movement}"
	requestAnimationFrame ->
		$('#viewport').css 'background-position', (x * 15) + '% ' + (y * 15) + '%, ' + (x * 10) + '% ' + (y * 10) + '%, ' + (x * 5) + '% ' + (y * 5) + '%'
	return
<commit_msg>Ajout du nouveau format d'events<commit_after>$(document).keydown((e) ->
	server.postMessage {name: "+", data: e.which}
	return
).keyup((e) ->
	server.postMessage {name: "-", data: e.which}
	return
).on "mousemove", (e) ->
	movement = (e.originalEvent.movementX or e.originalEvent.webkitMovementX or 0)/(two.width/100)
	server.postMessage {name: "m", data: movement}
	x = Math.abs(e.clientX - window.innerWidth)/window.innerWidth
	y = Math.abs(e.clientY - window.innerHeight)/window.innerHeight
	requestAnimationFrame ->
		$('#viewport').css 'background-position', (x * 15) + '% ' + (y * 15) + '%, ' + (x * 10) + '% ' + (y * 10) + '%, ' + (x * 5) + '% ' + (y * 5) + '%'
	return

{'fraction_non_alphanumeric': 0.21248246844319776, 'fraction_numerical': 0.025245441795231416, 'mean_word_length': 3.618122977346278, 'pattern_counts': {'":': 0, '<': 3, '<?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': '4398880', 'n_tokens_mistral': 591, 'n_tokens_neox': 543, 'n_words': 113}