<commit_before>#!/usr/bin/python

import os
import re
import sys

localSrcDir = os.environ['LOCAL_SRC']
curDir = os.getcwd()

# match to find the subdirectory within the local source root
pattern = re.compile("(" + localSrcDir + ")(.+)")
m = pattern.match(curDir)
subDir = m.group(2)

# create the path on the raspberry pi
rPiPath = os.environ['RPI_SRC'] + subDir
print "rpi path: " + rPiPath

# rsync over to the pi
file = sys.argv[1]
cmd = "rsync -a -e ssh " + curDir + "/ pi@10.0.0.40:" + rPiPath
print "cmd: " + cmd
os.system(cmd)

# execute the remote command
cmd = 'ssh -t pi@10.0.0.40 "' + "cd " + rPiPath + " ; sudo ./" + file + '"'
print cmd
os.system(cmd)<commit_msg>removes more debugging<commit_after>#!/usr/bin/python

import os
import re
import sys

localSrcDir = os.environ['LOCAL_SRC']
curDir = os.getcwd()

# match to find the subdirectory within the local source root
pattern = re.compile("(" + localSrcDir + ")(.+)")
m = pattern.match(curDir)
subDir = m.group(2)

# create the path on the raspberry pi
rPiPath = os.environ['RPI_SRC'] + subDir

# rsync over to the pi
file = sys.argv[1]
cmd = "rsync -a -e ssh " + curDir + "/ pi@10.0.0.40:" + rPiPath
os.system(cmd)

# execute the remote command
cmd = 'ssh -t pi@10.0.0.40 "' + "cd " + rPiPath + " ; sudo ./" + file + '"'
os.system(cmd)
{'fraction_non_alphanumeric': 0.16411042944785276, 'fraction_numerical': 0.02147239263803681, 'mean_word_length': 3.7282608695652173, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, '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': '387029', 'n_tokens_mistral': 518, 'n_tokens_neox': 499, 'n_words': 144}