<commit_before>import subprocess
import os.path

print("start process")
nameList = []
numOfMachine = 1
machineBaseName = 'machine'
for i in range(numOfMachine):
    machineName = machineBaseName + str(i)
    subprocess.call("docker-machine create " + machineName + " --driver virtualbox", shell=True)
    nameList.append(machineName)

for name in nameList:
    print("name: ", name)
    subprocess.call("chmod +x SearchScanLoop.sh", shell=True)
    subprocess.call("machineName="+name+" ./SearchScanLoop.sh", shell=True)<commit_msg>modify to create with amazon ec2 instance<commit_after>import subprocess
import os.path

print("start process")
nameList = []
numOfMachine = 1
machineBaseName = 'machine'
for i in range(numOfMachine):
    machineName = machineBaseName + str(i)
    subprocess.call("docker-machine create " + machineName + " --driver amazonec2 --amazonec2-region us-west-2 --amazonec2-instance-type c4.xlarge --amazonec2-root-size 256 --amazonec2-access-key $AWS_ACCESS_KEY_ID --amazonec2-secret-key $AWS_SECRET_ACCESS_KEY", shell=True)
    nameList.append(machineName)

for name in nameList:
    print("name: ", name)
    subprocess.call("chmod +x SearchScanLoop.sh", shell=True)
    subprocess.call("machineName="+name+" ./SearchScanLoop.sh", shell=True)
{'fraction_non_alphanumeric': 0.12913385826771653, 'fraction_numerical': 0.011023622047244094, 'mean_word_length': 5.023696682464455, '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': '3804732', 'n_tokens_mistral': 417, 'n_tokens_neox': 410, 'n_words': 91}