<commit_before>var prefMenu = {
	currentSelection : 0,
	defPreflist : [false,false,2,true,0,50],
	preflist : [false,false,2,true,0,50],
	namelist : [
		"Flip rotation buttons",
		"Show framerate",
		"Show level bar",
		"Force 60 FPS",
		"Tileset",
		"SFX volume"
	]
};

function inputPreferences() {
	if (keys[controls.keyCodes[8]]) {
		//up arrow
		prefMenu.currentSelection--;
		if (prefMenu.currentSelection < 0) {
			prefMenu.currentSelection = prefMenu.preflist.length-1;
		}
		keys[controls.keyCodes[8]] = false;
	}

	if (keys[controls.keyCodes[9]]) {
		//down arrow
		prefMenu.currentSelection++;
		if (prefMenu.currentSelection > prefMenu.preflist.length-1) {
			prefMenu.currentSelection = 0;
		}
		keys[controls.keyCodes[9]] = false;
	}

	if (keys[controls.keyCodes[10]]) {
		//enter
		switch (prefMenu.currentSelection) {
			case 0:
				prefMenu.preflist[0] = !prefMenu.preflist[0];
				break;
			case 1:
				prefMenu.preflist[1] = !prefMenu.preflist[1];
				break;
			case 2:
				prefMenu.preflist[2]++;
				if (prefMenu.preflist[2] > 2) {
					prefMenu.preflist[2] = 0;
				}
				break;
			case 3:
				prefMenu.preflist[3] = !prefMenu.preflist[3];
				break;
			case 4:
				prefMenu.preflist[4]++;
				if (prefMenu.preflist[4] > tiles.length-1) {
					prefMenu.preflist[4] = 0;
				}
				break;
			case 5:
				prefMenu.preflist[5] += 10;
				if (prefMenu.preflist[5] > 100) {
					prefMenu.preflist[5] = 0;
				}
				Howler.volume(prefMenu.preflist[5]/100);
				break;
			default:

		}
		currentProfile.preferences = prefMenu.preflist.slice();
		saveProfile(currentProfile.name);
		keys[controls.keyCodes[10]] = false;
	}

	if (keys[controls.keyCodes[11]]) {
		//escape
		gamestate = 0;
	}
}<commit_msg>quickfix<commit_after>var prefMenu = {
	currentSelection : 0,
	defPreflist : [false,false,2,true,0,50],
	preflist : [false,false,2,true,0,50],
	namelist : [
		"Flip rotation buttons",
		"Show framerate",
		"Show level bar",
		"Force 60 FPS",
		"Tileset",
		"SFX volume"
	]
};

function inputPreferences() {
	if (keys[controls.keyCodes[8]]) {
		//up arrow
		prefMenu.currentSelection--;
		if (prefMenu.currentSelection < 0) {
			prefMenu.currentSelection = prefMenu.preflist.length-1;
		}
		keys[controls.keyCodes[8]] = false;
	}

	if (keys[controls.keyCodes[9]]) {
		//down arrow
		prefMenu.currentSelection++;
		if (prefMenu.currentSelection > prefMenu.preflist.length-1) {
			prefMenu.currentSelection = 0;
		}
		keys[controls.keyCodes[9]] = false;
	}

	if (keys[controls.keyCodes[10]]) {
		//enter
		switch (prefMenu.currentSelection) {
			case 0:
				prefMenu.preflist[0] = !prefMenu.preflist[0];
				break;
			case 1:
				prefMenu.preflist[1] = !prefMenu.preflist[1];
				break;
			case 2:
				prefMenu.preflist[2]++;
				if (prefMenu.preflist[2] > 2) {
					prefMenu.preflist[2] = 0;
				}
				break;
			case 3:
				prefMenu.preflist[3] = !prefMenu.preflist[3];
				break;
			case 4:
				prefMenu.preflist[4]++;
				if (prefMenu.preflist[4] > tiles.length-1) {
					prefMenu.preflist[4] = 0;
				}
				break;
			case 5:
				prefMenu.preflist[5] += 10;
				if (prefMenu.preflist[5] > 100) {
					prefMenu.preflist[5] = 0;
				}
				Howler.volume = prefMenu.preflist[5]/100;
				break;
			default:

		}
		currentProfile.preferences = prefMenu.preflist.slice();
		saveProfile(currentProfile.name);
		keys[controls.keyCodes[10]] = false;
	}

	if (keys[controls.keyCodes[11]]) {
		//escape
		gamestate = 0;
	}
}
{'fraction_non_alphanumeric': 0.15898483080513418, 'fraction_numerical': 0.03558926487747958, 'mean_word_length': 3.3132075471698115, 'pattern_counts': {'":': 0, '<': 5, '<?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': '3602857', 'n_tokens_mistral': 1596, 'n_tokens_neox': 1335, 'n_words': 219}