<commit_before>#!/usr/bin/python


import matplotlib.pyplot as plt
import numpy as np

rtidata=np.loadtxt("res_rti_latency.txt",delimiter=',')
eprodata=np.loadtxt("res_epro_latency.txt",delimiter=',')

label=['Stdev','Mean','Min','50% ','90%','99%','99.99%','Max']
dim = len(eprodata[:,0])
w = 0.25
xpos = np.arange(len(eprodata[:,0]))+1
xpos2=xpos+w
for col in range(1,9):
	plt.figure()
	plt.bar(xpos2,eprodata[:,col]/2,w,color='b',label='eProsima')
	plt.bar(xpos,rtidata[:,col]/2,w,color='yellow',label='RTI-DDS')
	plt.title(r'$Mean\ Latency$')
	plt.xlim(0.5,10)
	plt.xlabel(r'$Payload\ size\ (bytes)$',fontsize=15)
	plt.ylabel(r'$Time\ (\mu\ s)$',fontsize=15)
	plt.xticks(xpos2,eprodata[:,0].astype(int))
	plt.legend(loc='upper left')
	plt.savefig(label[col-1]+'.png', bbox_inches='tight')
#plt.show()

	
<commit_msg>Changed plot file to plot lines<commit_after>#!/usr/bin/python


import matplotlib.pyplot as plt
import numpy as np

rtidata=np.loadtxt("res_rti_latency_2_1.txt",delimiter=',')
eprodata=np.loadtxt("res_epr_latency_2_3.txt",delimiter=',')

label=['Stdev','Mean','Min','50% ','90%','99%','99.99%','Max']
dim = len(eprodata[:,0])
w = 0.25
xpos = np.arange(len(eprodata[:,0]))+1
xpos2=xpos+w
for col in range(2,3):
	#plt.figure()
	#plt.bar(xpos2,eprodata[:,col]/2,w,color='b',label='eProsima')
	#plt.bar(xpos,rtidata[:,col]/2,w,color='green',label='RTI-DDS')
	#plt.title(r'$Mean\ Latency$')
	#plt.xlim(0.5,11)
	#plt.xlabel(r'$Payload\ size\ (bytes)$',fontsize=15)
	#plt.ylabel(r'$Time\ (\mu\ s)$',fontsize=15)
	#plt.xticks(xpos2,eprodata[:,0].astype(int))
	#plt.legend(loc='upper left')
	#plt.savefig(label[col-1]+'.png', bbox_inches='tight')
	#LINE PLOT
	plt.figure()
	plt.plot(xpos,eprodata[:,col],'-o',color='b',label='eProsima')
	plt.plot(xpos,rtidata[:,col],'-o',color='green',label='RTI-DDS')
	plt.title(r'$Mean\ Round-Trip\ Time$')
	plt.xlim(0.5,11)
	plt.xlabel(r'$Payload\ size\ (bytes)$',fontsize=15)
	plt.ylabel(r'$Time\ (\mu\ s)$',fontsize=15)
	plt.xticks(xpos2,eprodata[:,0].astype(int))
	plt.legend(loc='upper left')
	plt.savefig(label[col-1]+'.png', bbox_inches='tight')
	#plt.show()
#plt.show()

	

{'fraction_non_alphanumeric': 0.2545796148426491, 'fraction_numerical': 0.0380460310004697, 'mean_word_length': 7.223938223938224, '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': '6953558', 'n_tokens_mistral': 1052, 'n_tokens_neox': 988, 'n_words': 110}