<commit_before># coding: utf-8
"""Dummy app to spam a log messages for testing the logging system."""
import logging
import sys
import time


def main():
    """Log to stdout using python logging in a while loop"""
    log = logging.getLogger('SIP.examples.log_spammer')
    log.setLevel(logging.DEBUG)

    handler = logging.StreamHandler(stream=sys.stdout)
    formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s '
                                  '- %(message)s')
    handler.setFormatter(formatter)
    log.addHandler(handler)

    counter = 0
    try:
        while True:
            log.info('Hello %i', counter)
            log.debug('Hello again %i', counter)
            counter += 1
            time.sleep(0.001)
    except KeyboardInterrupt:
        log.info('Exiting...')


if __name__ == '__main__':
    main()
<commit_msg>decreased log spamming rate<commit_after># coding: utf-8
"""Dummy app to spam a log messages for testing the logging system."""
import logging
import sys
import time


def main():
    """Log to stdout using python logging in a while loop"""
    log = logging.getLogger('SIP.examples.log_spammer')
    log.setLevel(logging.DEBUG)

    handler = logging.StreamHandler(stream=sys.stdout)
    formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s '
                                  '- %(message)s')
    handler.setFormatter(formatter)
    log.addHandler(handler)

    counter = 0
    try:
        while True:
            log.info('Hello %i', counter)
            log.debug('Hello again %i', counter)
            counter += 1
            time.sleep(0.1)
    except KeyboardInterrupt:
        log.info('Exiting...')


if __name__ == '__main__':
    main()

{'fraction_non_alphanumeric': 0.1254355400696864, 'fraction_numerical': 0.006968641114982578, 'mean_word_length': 2.446, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7372900', 'n_tokens_mistral': 534, 'n_tokens_neox': 505, 'n_words': 137}