<commit_before>#!/usr/bin/python

import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
import sys

if len(sys.argv) < 2:
	sys.exit("Please give the path to a log file.")

fileName = str(sys.argv[1])
logFile = open(fileName, 'r')

print logFile

xGroundTruth = []
yGroundTruth = []
zGroundTruth = []

for line in logFile:
	coords = line.split(" ")
	xGroundTruth.append(float(coords[1]))
	yGroundTruth.append(float(coords[2]))
	zGroundTruth.append(float(coords[3]))

fig = plt.figure()
ax = Axes3D(fig)

ax.plot(xGroundTruth, yGroundTruth, zGroundTruth)
plt.show()<commit_msg>Extended python script to accept three log files for comparison.<commit_after>#!/usr/bin/python

import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
import sys

if len(sys.argv) < 4:
	sys.exit("Please give the paths to three log files.")

logFile0 = open(str(sys.argv[1]), 'r')
logFile1 = open(str(sys.argv[2]), 'r')
logFile2 = open(str(sys.argv[3]), 'r')

#logfile 0
xPos0 = []
yPos0 = []
zPos0 = []
for line in logFile0:
	coords = line.split(" ")
	xPos0.append(float(coords[1]))
	yPos0.append(float(coords[2]))
	zPos0.append(float(coords[3]))
#logfile 1
xPos1 = []
yPos1 = []
zPos1 = []
for line in logFile1:
	coords = line.split(" ")
	xPos1.append(float(coords[1]))
	yPos1.append(float(coords[2]))
	zPos1.append(float(coords[3]))
#logfile 2
xPos2 = []
yPos2 = []
zPos2 = []
for line in logFile2:
	coords = line.split(" ")
	xPos2.append(float(coords[1]))
	yPos2.append(float(coords[2]))
	zPos2.append(float(coords[3]))

#draw
fig = plt.figure()
ax = Axes3D(fig)

ax.plot(xPos0, yPos0, zPos0, color="blue")
ax.plot(xPos1, yPos1, zPos1, color="red")
ax.plot(xPos2, yPos2, zPos2, color="green")
plt.show()
{'fraction_non_alphanumeric': 0.1700640652300524, 'fraction_numerical': 0.034944670937682006, 'mean_word_length': 5.41044776119403, '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': '5216813', 'n_tokens_mistral': 741, 'n_tokens_neox': 736, 'n_words': 148}