<commit_before>local xacc = 2
local yacc = 1

function update(obj, current_time)
	local horinp = input.get('horizontal') * xacc
	local vertinp = input.get('vertical') * yacc

	obj:apply_force(vector.new(horinp,
				   vertinp))
end

coroutine.yield()

<commit_msg>Apply an impulse instead of a force<commit_after>local xacc = 2
local yacc = 1

function update(obj, current_time)
	local horinp = input.get('horizontal') * xacc
	local vertinp = input.get('vertical') * yacc

	obj:apply_impulse(vector.new(horinp,
				   vertinp))
end

coroutine.yield()


{'fraction_non_alphanumeric': 0.11594202898550725, 'fraction_numerical': 0.007246376811594203, 'mean_word_length': 4.701030927835052, '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': '4917622', 'n_tokens_mistral': 215, 'n_tokens_neox': 198, 'n_words': 48}