<commit_before>(() => {"use strict";// This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
	loginPromise.then(login => {
		const loadMore = () => makeXHR('GET', $link.href, {Accept: 'application/json', Authorization: login.token}, xhr => {
			if (xhr.status < 200 || xhr.status >= 300 || !xhr.getResponseHeader('Content-Type').startsWith('application/json')) {return}
			const json = JSON.parse(xhr.responseText);
			json.games_.map(showGame(login)).forEach(el => $list.appendChild(el));
			if (json.next_) {
				$link.href = json.next_;	// TODO: resolve relative URIs
			} else {
				$link.parentNode.removeChild($link);
			}
		}).send();
		const $section = document.getElementById('closed-games');
		const $link = $section.querySelector('a[rel=next]');
		const $list = $section.querySelector('ul');
		if (!$link) return;
		loadMore();
		$link.addEventListener('click', ev => {ev.preventDefault();loadMore()});
	});
})();<commit_msg>stats: fix fresh players<commit_after>(() => {"use strict";// This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
	loginPromise.then(login => {
		const loadMore = () => makeXHR('GET', $link.href, {Accept: 'application/json', Authorization: login.token}, xhr => {
			if (xhr.status < 200 || xhr.status >= 300 || !xhr.getResponseHeader('Content-Type').startsWith('application/json')) {return}
			const json = JSON.parse(xhr.responseText);
			json.games_.map(showGame(login)).forEach(el => $list.appendChild(el));
			if (json.next_) {
				$link.href = json.next_;	// TODO: resolve relative URIs
			} else {
				$link.parentNode.removeChild($link);
			}
		}).send();
		const $section = document.getElementById('closed-games');
		if (!$section) {return}
		const $link = $section.querySelector('a[rel=next]');
		const $list = $section.querySelector('ul');
		if (!$link) {return}
		loadMore();
		$link.addEventListener('click', ev => {ev.preventDefault();loadMore()});
	});
})();
{'fraction_non_alphanumeric': 0.1846435100548446, 'fraction_numerical': 0.009140767824497258, 'mean_word_length': 4.404938271604938, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 17, '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': '7564413', 'n_tokens_mistral': 756, 'n_tokens_neox': 689, 'n_words': 178}