<commit_before>import requests
import random
import time
import logging

logger = logging.getLogger(__name__)
logger.setLevel(logging.INFO)

handler = logging.FileHandler('demo.log')
handler.setLevel(logging.INFO)

formatter = logging.Formatter("%(levelname)s;%(asctime)s;%(message)s", "%s")
handler.setFormatter(formatter)

logger.addHandler(handler)

while True:
    dosleep=random.randint(0,100)
    spin=random.randint(0,2)
    #print "spin is: ", str(spin)

    if dosleep == 50:
        time.sleep(1)

    if spin == 0:
        requests.get('http://12172.16.31.10:8080')
        logger.info('Got /')
    elif spin == 1:
        requests.get('http://127.0.0.1:8080/about')
        logger.info('Got /about')
    else:
        requests.get('http://127.0.0.1:8080/other')
        logger.info('Got /other')
<commit_msg>faster<commit_after>import requests
import random
import time
import logging

logger = logging.getLogger(__name__)
logger.setLevel(logging.INFO)

handler = logging.FileHandler('demo.log')
handler.setLevel(logging.INFO)

formatter = logging.Formatter("%(levelname)s;%(asctime)s;%(message)s", "%s")
handler.setFormatter(formatter)

logger.addHandler(handler)

while True:
    dosleep=random.randint(0,500)
    spin=random.randint(0,2)
    #print "spin is: ", str(spin)

    if dosleep == 250:
        time.sleep(1)

    if spin == 0:
        requests.get('http://127.0.0.1:8080')
        logger.info('Got /')
    elif spin == 1:
        requests.get('http://127.0.0.1:8080/about')
        logger.info('Got /about')
    else:
        requests.get('http://127.0.0.1:8080/other')
        logger.info('Got /other')

{'fraction_non_alphanumeric': 0.16697360343769183, 'fraction_numerical': 0.05402087170042971, 'mean_word_length': 3.4173441734417342, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 6, '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': '4350068', 'n_tokens_mistral': 620, 'n_tokens_neox': 553, 'n_words': 92}