<commit_before>require 'helper'

class TestTreasurer < Test::Unit::TestCase
	def testfolder
		'test/myaccount'
	end
	def test_setup
		FileUtils.rm_r(testfolder) if FileTest.exist? testfolder
		Treasurer.init_root_folder('test/myaccount', {})
		Dir.chdir('test/myaccount') do
			Treasurer.add_file('../bankaccountstatement.csv', 'FirstBank', {})
			Treasurer.status
			Treasurer.add_file('../otheraccountstatement.csv', 'SecondBank', {})
			Treasurer.add_folder('../multiple')
			Treasurer.status h: :component
			Treasurer.report t: Date.parse('2010-09-07'), b: 40, a: 35
		end
	end
end<commit_msg>--Delete testfolder afterwards<commit_after>require 'helper'

class TestTreasurer < Test::Unit::TestCase
	def testfolder
		'test/myaccount'
	end
	def test_setup
		FileUtils.rm_r(testfolder) if FileTest.exist? testfolder
		Treasurer.init_root_folder('test/myaccount', {})
		Dir.chdir('test/myaccount') do
			Treasurer.add_file('../bankaccountstatement.csv', 'FirstBank', {})
			Treasurer.status
			Treasurer.add_file('../otheraccountstatement.csv', 'SecondBank', {})
			Treasurer.add_folder('../multiple')
			Treasurer.status h: :component
			Treasurer.report t: Date.parse('2010-09-07'), b: 40, a: 35
		end
		FileUtils.rm_r(testfolder) if FileTest.exist? testfolder
	end
end
{'fraction_non_alphanumeric': 0.14386792452830188, 'fraction_numerical': 0.018867924528301886, 'mean_word_length': 4.976525821596244, 'pattern_counts': {'":': 0, '<': 5, '<?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': '5073615', 'n_tokens_mistral': 508, 'n_tokens_neox': 444, 'n_words': 79}