<commit_before>document.addEventListener('DOMContentLoaded', async () => {
	function formatDate(date) {
		let month = date.getMonth() + 1;
		if (month < 10) month = `0${month}`;

		return `${date.getDate()}.${month}.${date.getFullYear()}`;
	}

	function updateSounds(s) {
		s.forEach(snd => {
			if (!snd.displayname) snd.displayname = '';
			if (!snd.source) snd.source = '';
		});

		sounds = s.sort((a, b) => a.source === b.source ? a.displayname.localeCompare(b.displayname) : a.source.localeCompare(b.source));
		// Sort primarily by season and secondarily alphabetically within seasons

		const options = sounds.map(sound => {
			const source = sound.source ? `From ${sound.source}` : 'No source';
			const theme = `associated with "${sound.theme}"`;
			return `
				<option value=${sound.id}>
					${sound.displayname} (${sound.filename}.mp3, ${source}, ${sound.count} clicks, ${theme})
				</option>
			`;
		});
		options.unshift('<option value="">No sound selected</option>');

		const uploadThemeOptions = themes.map(theme => `<option value=${theme.name}>${theme.name}</option>`);
		const modifyThemeOptions = themes.map(theme => `<option value=${theme.name}>${theme.name}</option>`);
		modifyThemeOptions.unshift('<option value="removeTheme">Remove theme</option>');
		modifyThemeOptions.unshift('<option value="">No change</option>');

		document.getElementById('soundModify-id-select').innerHTML = options.join('');
		document.getElementById('soundDelete-id-select').innerHTML = options.join('');
		document.getElementById('milestoneAdd-soundID-select').innerHTML = options.join('');
		document.getElementById('milestoneModify-soundID-select').innerHTML = options.join('');

		document.getElementById('soundUpload-theme-select').innerHTML = uploadThemeOptions.join('');<commit_msg>Rename option<commit_after>document.addEventListener('DOMContentLoaded', async () => {
	function formatDate(date) {
		let month = date.getMonth() + 1;
		if (month < 10) month = `0${month}`;

		return `${date.getDate()}.${month}.${date.getFullYear()}`;
	}

	function updateSounds(s) {
		s.forEach(snd => {
			if (!snd.displayname) snd.displayname = '';
			if (!snd.source) snd.source = '';
		});

		sounds = s.sort((a, b) => a.source === b.source ? a.displayname.localeCompare(b.displayname) : a.source.localeCompare(b.source));
		// Sort primarily by season and secondarily alphabetically within seasons

		const options = sounds.map(sound => {
			const source = sound.source ? `From ${sound.source}` : 'No source';
			const theme = `associated with "${sound.theme}"`;
			return `
				<option value=${sound.id}>
					${sound.displayname} (${sound.filename}.mp3, ${source}, ${sound.count} clicks, ${theme})
				</option>
			`;
		});
		options.unshift('<option value="">No sound selected</option>');

		const uploadThemeOptions = themes.map(theme => `<option value=${theme.name}>${theme.name}</option>`);
		const modifyThemeOptions = themes.map(theme => `<option value=${theme.name}>${theme.name}</option>`);
		modifyThemeOptions.unshift('<option value="megumin">Default theme</option>');
		modifyThemeOptions.unshift('<option value="">No change</option>');

		document.getElementById('soundModify-id-select').innerHTML = options.join('');
		document.getElementById('soundDelete-id-select').innerHTML = options.join('');
		document.getElementById('milestoneAdd-soundID-select').innerHTML = options.join('');
		document.getElementById('milestoneModify-soundID-select').innerHTML = options.join('');

		document.getElementById('soundUpload-theme-select').innerHTML = uploadThemeOptions.join('');
{'fraction_non_alphanumeric': 0.1913528591352859, 'fraction_numerical': 0.002789400278940028, 'mean_word_length': 5.2473867595818815, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 39, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7189138', 'n_tokens_mistral': 1164, 'n_tokens_neox': 1058, 'n_words': 190}