<commit_before>from subprocess import Popen
import sys
import time
import datetime

iterations=int(sys.argv[1])
loop=int(sys.argv[2])
size=sys.argv[3]
hub=sys.argv[4]

iter=0
browsers=1
while (iter < loop):
        while (browsers < iterations):
                print('browsers:'+str(browsers))
                #Popen('python gridExecuteCapacity.py '+str(browsers)+' 0 www.sciencedirect.com 5 '+hub+' >> '+size+'-'+str(browsers), shell=True).wait()
                #Popen('python gridExecuteCapacity.py '+str(browsers)+' 0 cdc311-www.sciencedirect.com 5 '+hub+' '+size+' >> '+size, shell=True).wait()
                Popen('python gridExecuteCapacity.py '+str(browsers)+' 0 www.sciencedirect.com 15 '+hub+' '+size+' >> InstanceCapTest', shell=True).wait()
                browsers=browsers+1
                if browsers < iterations:
                        print(' rest for 10 seconds')
                        time.sleep(10)
        iter=iter+1
        time.sleep(300)
<commit_msg>fixed loop variables for capacity test script<commit_after>from subprocess import Popen
import sys
import time
import datetime

iterations=int(sys.argv[1])
loop=int(sys.argv[2])
size=sys.argv[3]
hub=sys.argv[4]

iter=0
while (iter < loop):
	browsers=1
        while (browsers < iterations):
                print('browsers:'+str(browsers))
                #Popen('python gridExecuteCapacity.py '+str(browsers)+' 0 www.sciencedirect.com 5 '+hub+' >> '+size+'-'+str(browsers), shell=True).wait()
                #Popen('python gridExecuteCapacity.py '+str(browsers)+' 0 cdc311-www.sciencedirect.com 5 '+hub+' '+size+' >> '+size, shell=True).wait()
                Popen('python gridExecuteCapacity.py '+str(browsers)+' 0 www.sciencedirect.com 15 '+hub+' '+size+' >> InstanceCapTest', shell=True).wait()
                browsers=browsers+1
                if browsers < iterations:
                        print(' rest for 10 seconds')
                        time.sleep(10)
        iter=iter+1
        time.sleep(300)

{'fraction_non_alphanumeric': 0.14907453726863432, 'fraction_numerical': 0.02501250625312656, 'mean_word_length': 2.787878787878788, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, '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': '5954819', 'n_tokens_mistral': 688, 'n_tokens_neox': 625, 'n_words': 134}