<commit_before>container = document.getElementById('listener');
container.addEventListener('message', (e) ->
	console.log e.data
, true)

$('embed').on('progress', (e) ->
	val = (e.originalEvent.loaded / e.originalEvent.total) * 100
	$('.progress-bar').attr('aria-valuenow', Math.floor(val)).css('width', val + '%')
	.find('span').html Math.floor(val) + '%'
).on('load', (e) ->
	$('#progressbar').hide()
	getPerson localStorage.username, (xml, code) ->
		if code is 200
			document.querySelector('embed').postMessage(xml.root[i].quantity > 0 for i of xml.root)
		else
			console.warn "No item for this user"
)

fbShare = (score) ->
	FB.ui({
		method: "share_open_graph",
		action_type: "games.passes",
		action_properties: JSON.stringify({
			game: "http://arkanoid.herokuapp.com/",
			score: score,
			passed_users: localStorage.username
		})
	}, (response) -> console.log response)
<commit_msg>Ajout d'une action custom<commit_after>container = document.getElementById('listener');
container.addEventListener('message', (e) ->
	console.log e.data
, true)

$('embed').on('progress', (e) ->
	val = (e.originalEvent.loaded / e.originalEvent.total) * 100
	$('.progress-bar').attr('aria-valuenow', Math.floor(val)).css('width', val + '%')
	.find('span').html Math.floor(val) + '%'
).on('load', (e) ->
	$('#progressbar').hide()
	getPerson localStorage.username, (xml, code) ->
		if code is 200
			document.querySelector('embed').postMessage(xml.root[i].quantity > 0 for i of xml.root)
		else
			console.warn "No item for this user"
)

fbShare = (score) ->
	FB.ui(
		method: "share_open_graph"
		action_type: "arkanovoid:score"
		action_properties: JSON.stringify(
			game: "http://arkanoid.herokuapp.com/"
			score: score
		)
		, (response) -> console.log response
	)

{'fraction_non_alphanumeric': 0.1933106575963719, 'fraction_numerical': 0.007936507936507936, 'mean_word_length': 4.4813664596273295, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, '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': '5274319', 'n_tokens_mistral': 653, 'n_tokens_neox': 606, 'n_words': 121}