<commit_before>#!/usr/bin/python

import unittest
from flipText import flipText

class testFileParsing(unittest.TestCase):

	def test_normal_file(self):
		flipText('test1.txt')
		with open('test1out.txt') as f:
			fixed_text = f.readlines()
		self.assertEqual('asdf', fixed_text)

	def test_white_space(self):
		flipText('test2.txt')
		with open('test2out.txt') as f:
			fixed_text = f.readlines()
		self.assertEqual('asdf', fixed_text)

	def test_weird_chars(self):
		flipText('test3.txt')
		with open('test1out.txt') as f:
			fixed_text = f.readlines()
		self.assertEqual('asdf', fixed_text)
<commit_msg>updated tests to remove the output files.<commit_after>#!/usr/bin/python

import unittest
from flipText import flipText
import os

class testFileParsing(unittest.TestCase):

	def test_normal_file(self):
		flipText('test1.txt', 'test1out.txt')
		with open('test1out.txt') as f:
			fixed_text = f.readlines()
		self.assertEqual("['<NAME>\tare you\table?\n', 'biz\tbar\tfoo\n']", fixed_text)
		os.remove('test1out.txt')

	def test_blank_lines(self):
		flipText('test2.txt', 'test2out.txt')
		with open('test2out.txt') as f:
			fixed_text = f.readlines()
		self.assertEqual("['\n', '\n', '<NAME>\tare you\table?\n', '\n', '\n', 'biz\tbar\tfoo\n', '\n', '\n']", fixed_text)
		os.remove('test2out.txt')				

	def test_double_tabs(self):
		flipText('test3.txt', 'test2out.txt')
		with open('test1out.txt') as f:
			fixed_text = f.readlines()
		self.assertEqual("['<NAME>\tare you\t\table?\n', 'biz\t\tbar\tfoo\n', '\n', '\n']", fixed_text)
		os.remove('test3out.txt')
{'fraction_non_alphanumeric': 0.17943805874840357, 'fraction_numerical': 0.011494252873563218, 'mean_word_length': 4.847014925373134, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, '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': '7424465', 'n_tokens_mistral': 651, 'n_tokens_neox': 597, 'n_words': 112}