<commit_before>Kyela = {
	init: function()
	{
		$("button.participation").click(Kyela.onParticipationClick);
	},
	onParticipationClick: function ()
	{
		var participationCell = $(this).closest("td");
		participationCell.find("img.ajaxloader").show();
		participationCell.find("button").hide();
		$.get($(this).data("url"), null, function(data) {
			Kyela.onParticipationUpdateResponse(data, participationCell);
		});

	},
	onParticipationUpdateResponse: function(data, participationCell)
	{
		participationCell.html(data);
		var score = participationCell.find("div").data("score");
		participationCell.closest("tbody").next("tfoot").find("th").eq(participationCell.index()).html(score);
		participationCell.find("button.participation").click(Kyela.onParticipationClick);
	}
}

$(document).ready(function () {
	Kyela.init();
});<commit_msg>fix score update in event summary<commit_after>Kyela = {
	init: function()
	{
		$("button.participation").click(Kyela.onParticipationClick);
	},
	onParticipationClick: function ()
	{
		var participationCell = $(this).closest("td");
		participationCell.find("img.ajaxloader").show();
		participationCell.find("button").hide();
		$.get($(this).data("url"), null, function(data) {
			Kyela.onParticipationUpdateResponse(data, participationCell);
		});

	},
	onParticipationUpdateResponse: function(data, participationCell)
	{
		participationCell.html(data);
		var score = participationCell.find("div").data("score");
		participationCell.closest("tbody").next("tfoot").find("th").eq(participationCell.index()).html(score);
		$("div.list-group").find("span.badge").eq(participationCell.index()-1).html(score);
		participationCell.find("button.participation").click(Kyela.onParticipationClick);
	}
}

$(document).ready(function () {
	Kyela.init();
});
{'fraction_non_alphanumeric': 0.18721973094170405, 'fraction_numerical': 0.0005605381165919282, 'mean_word_length': 6.863436123348017, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5872161', 'n_tokens_mistral': 622, 'n_tokens_neox': 557, 'n_words': 60}