<commit_before>


def read_file(fileToRead)
	txt = open(fileToRead)
  puts "Here's your file #{fileToRead}:"
  print txt.read
end


filename = "example.txt"

read_file(filename)


<commit_msg>Project method created, just needs filling in<commit_after>

# Reads in a file with given location
def read_file(fileToRead)
	return open(fileToRead, "rb")
end

# ouputs a string into the correct output file
def output_file(fileToOutput)
	outputLoc = "outExample.txt"
	outputFile = File.new("outputLoc", "w")
	outputFile.puts(fileToOutput)
end

# Convert file to a string
def file_to_string(file)
	fileContent = file.read	
end

# TODO add user input for text file
filename = "example.txt"

# read in the file
read_file(filename)

# parse the file


# Add in html tags


# convert to string


# output



{'fraction_non_alphanumeric': 0.0880503144654088, 'fraction_numerical': 0.0, 'mean_word_length': 4.566433566433567, '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': '3930696', 'n_tokens_mistral': 278, 'n_tokens_neox': 269, 'n_words': 88}