<commit_before>import test from 'ava'
import commit from './'
import child from 'child_process'

test('main', t => {
	try {
		child.execSync('mkdir -p temp && cd temp && touch what && git init && git add -A && git commit -m "fuck"')
		t.is(commit('temp')[1], 'fuck')
		child.execSync('rm -rf temp')
	} catch (e) {
		child.execSync('rm -rf temp')
		t.fail(e.message)
	}
})<commit_msg>fix test<commit_after>import test from 'ava'
import commit from './'
import child from 'child_process'

test('main', t => {
	try {
		child.execSync(`
			mkdir -p temp
			cd temp
			touch what
			git init
			git config user.email "<EMAIL>"
	  	git config user.name "<NAME>"
			git add -A
			git commit -m "fuck"
		`)
		t.is(commit('temp')[1], 'fuck')
		child.execSync('rm -rf temp')
	} catch (e) {
		child.execSync('rm -rf temp')
		t.fail(e.message)
	}
})
{'fraction_non_alphanumeric': 0.1768219832735962, 'fraction_numerical': 0.0023894862604540022, 'mean_word_length': 3.2755102040816326, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '1279925', 'n_tokens_mistral': 343, 'n_tokens_neox': 314, 'n_words': 92}