<commit_before>package compiler

func scancodeForModifier(m string) string {
	return scancodes[m][2:]
}

var scancodes = map[string]string{
	"LCTRL":              "0x01",
	"LSHIFT":             "0x02",
	"LALT":               "0x04",
	"LMETA":              "0x08",
	"RCTRL":              "0x10",
	"RSHIFT":             "0x20",
	"RALT":               "0x40",
	"RMETA":              "0x80",
	"NONE":               "0x00",
	"ERR_OVF":            "0x01",
	"A":                  "0x04",
	"B":                  "0x05",
	"C":                  "0x06",
	"D":                  "0x07",
	"E":                  "0x08",
	"F":                  "0x09",
	"G":                  "0x0a",
	"H":                  "0x0b",
	"I":                  "0x0c",
	"J":                  "0x0d",
	"K":                  "0x0e",
	"L":                  "0x0f",
	"M":                  "0x10",
	"N":                  "0x11",
	"O":                  "0x12",
	"P":                  "0x13",
	"Q":                  "0x14",
	"R":                  "0x15",
	"S":                  "0x16",
	"T":                  "0x17",
	"U":                  "0x18",
	"V":                  "0x19",
	"W":                  "0x1a",
	"X":                  "0x1b",
	"Y":                  "0x1c",
	"Z":                  "0x1d",
	"1":                  "0x1e",
	"2":                  "0x1f",
	"3":                  "0x20",
	"4":                  "0x21",
	"5":                  "0x22",
	"6":                  "0x23",
	"7":                  "0x24",
	"8":                  "0x25",
	"9":                  "0x26",
	"0":                  "0x27",
	"ENTER":              "0x28",
	"ESC":                "0x29",
	"BACKSPACE":          "0x2a",
	"TAB":                "0x2b",
	"SPACE":              "0x2c",
	"MINUS":              "0x2d",
	"EQUAL":              "0x2e",
	"LEFTBRACE":          "0x2f",
	"RIGHTBRACE":         "0x30",
	"BACKSLASH":          "0x31",
	"HASHTILDE":          "0x32",
	"SEMICOLON":          "0x33",
	"APOSTROPHE":         "0x34",
	"GRAVE":              "0x35",
	"COMMA":              "0x36",
	"DOT":                "0x37",
	"SLASH":              "0x38",
	"CAPSLOCK":           "0x39",
	"F1":                 "0x3a",
	"F2":                 "0x3b",
	"F3":                 "0x3c",
	"F4":                 "0x3d",
	"F5":                 "0x3e",
	"F6":                 "0x3f",
	"F7":                 "0x40",
	"F8":                 "0x41",
	"F9":                 "0x42",
	"F10":                "0x43",
	"F11":                "0x44",<commit_msg>hacky hacky stuff to match space scancode<commit_after>package compiler

func scancodeForModifier(m string) string {
	return scancodes[m][2:]
}

var scancodes = map[string]string{
	"LCTRL":              "0x01",
	"LSHIFT":             "0x02",
	"LALT":               "0x04",
	"LMETA":              "0x08",
	"RCTRL":              "0x10",
	"RSHIFT":             "0x20",
	"RALT":               "0x40",
	"RMETA":              "0x80",
	"NONE":               "0x00",
	"ERR_OVF":            "0x01",
	"A":                  "0x04",
	"B":                  "0x05",
	"C":                  "0x06",
	"D":                  "0x07",
	"E":                  "0x08",
	"F":                  "0x09",
	"G":                  "0x0a",
	"H":                  "0x0b",
	"I":                  "0x0c",
	"J":                  "0x0d",
	"K":                  "0x0e",
	"L":                  "0x0f",
	"M":                  "0x10",
	"N":                  "0x11",
	"O":                  "0x12",
	"P":                  "0x13",
	"Q":                  "0x14",
	"R":                  "0x15",
	"S":                  "0x16",
	"T":                  "0x17",
	"U":                  "0x18",
	"V":                  "0x19",
	"W":                  "0x1a",
	"X":                  "0x1b",
	"Y":                  "0x1c",
	"Z":                  "0x1d",
	"1":                  "0x1e",
	"2":                  "0x1f",
	"3":                  "0x20",
	"4":                  "0x21",
	"5":                  "0x22",
	"6":                  "0x23",
	"7":                  "0x24",
	"8":                  "0x25",
	"9":                  "0x26",
	"0":                  "0x27",
	"ENTER":              "0x28",
	"ESC":                "0x29",
	"BACKSPACE":          "0x2a",
	"TAB":                "0x2b",
	" ":                  "0x2c",
	"MINUS":              "0x2d",
	"EQUAL":              "0x2e",
	"LEFTBRACE":          "0x2f",
	"RIGHTBRACE":         "0x30",
	"BACKSLASH":          "0x31",
	"HASHTILDE":          "0x32",
	"SEMICOLON":          "0x33",
	"APOSTROPHE":         "0x34",
	"GRAVE":              "0x35",
	"COMMA":              "0x36",
	"DOT":                "0x37",
	"SLASH":              "0x38",
	"CAPSLOCK":           "0x39",
	"F1":                 "0x3a",
	"F2":                 "0x3b",
	"F3":                 "0x3c",
	"F4":                 "0x3d",
	"F5":                 "0x3e",
	"F6":                 "0x3f",
	"F7":                 "0x40",
	"F8":                 "0x41",
	"F9":                 "0x42",
	"F10":                "0x43",
	"F11":                "0x44",
{'fraction_non_alphanumeric': 0.18714859437751005, 'fraction_numerical': 0.09036144578313253, 'mean_word_length': 0.8192111029948868, 'pattern_counts': {'":': 150, '<': 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': '3585457', 'n_tokens_mistral': 2104, 'n_tokens_neox': 1913, 'n_words': 326}