<commit_before># <NAME>, 2015-11-10
# Reads in a dataframe in the form of a simple text file and 
# plots the mean of each column in the y- axis, and then saves the plot  

# import libraries
import pandas as pd
import sys
import matplotlib as plt

def main ():
# assign variables
	filename = sys.argv[1]
	savename = sys.argv[2]

	# load the data
	data = pd.read_csv(filename, delimiter=',')

	# call process to get values from data
	values = process(data)

	#output data
	print(values)
	
def process(data):
	#Defining what to do with the dataframe
	out = data.mean(axis = 1)
	return out
	
	#Saving the figure 
	plt.savefig(savename)
		
#def plot(plot_data, savename):
	#plot data
	#plt.plot(plot_data)
	#save plot 
	#plt.savefig(savename)
	#show plot
	#plt.show()
	

main()<commit_msg>Got rid of the print(values), because we do not need to print the values as a list of numbers<commit_after># <NAME>, 2015-11-10
# Reads in a dataframe in the form of a simple text file and 
# plots the mean of each column in the y- axis, and then saves the plot  

# import libraries
import pandas as pd
import sys
import matplotlib as plt

def main ():
# assign variables
	filename = sys.argv[1]
	savename = sys.argv[2]

	# load the data
	data = pd.read_csv(filename, delimiter=',')

	# call process to get values from data
	values = process(data)
	
def process(data):
	#Defining what to do with the dataframe
	out = data.mean(axis = 1)
	return out
	
	#Saving the figure 
	plt.savefig(savename)
	

main()
{'fraction_non_alphanumeric': 0.09121395036887994, 'fraction_numerical': 0.014755197853789403, 'mean_word_length': 3.782051282051282, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '38939', 'n_tokens_mistral': 545, 'n_tokens_neox': 497, 'n_words': 202}