<commit_before>-- Test the left/right keys
test.open('1_100.txt')
local lineno = test.lineno
local colno = test.colno
local assertEq = test.assertEq
local log = test.log
test.key('j', 'l')
assertEq(colno(), 0) assertEq(lineno(), 1)
test.key('H')
assertEq(colno(), 0) assertEq(lineno(), 0)
test.key('M')
assertEq(colno(), 0) assertEq(lineno(), 10)
test.key('L')
assertEq(colno(), 0) assertEq(lineno(), 20)
test.key('H')
assertEq(colno(), 0) assertEq(lineno(), 0)
test.key('M')
assertEq(colno(), 0) assertEq(lineno(), 10)
test.key('L')
assertEq(colno(), 0) assertEq(lineno(), 20)
<commit_msg>Fix the H/M/L tests.  Not sure why the results are different to TA 9.<commit_after>-- Test the left/right keys
test.open('1_100.txt')
local lineno = test.lineno
local colno = test.colno
local assertEq = test.assertEq
local log = test.log
test.key('j', 'l')
assertEq(colno(), 0) assertEq(lineno(), 1)
test.key('H')
assertEq(colno(), 0) assertEq(lineno(), 0)
test.key('M')
assertEq(colno(), 0) assertEq(lineno(), 11)
test.key('L')
assertEq(colno(), 0) assertEq(lineno(), 21)
test.key('H')
assertEq(colno(), 0) assertEq(lineno(), 0)
test.key('M')
assertEq(colno(), 0) assertEq(lineno(), 11)
test.key('L')
assertEq(colno(), 0) assertEq(lineno(), 21)

{'fraction_non_alphanumeric': 0.21035598705501618, 'fraction_numerical': 0.03640776699029126, 'mean_word_length': 6.407185628742515, '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': '7106175', 'n_tokens_mistral': 528, 'n_tokens_neox': 483, 'n_words': 121}