<commit_before>import logging
import logging.handlers
import sys
from settings import LOGGING_LEVEL, LOGGING_LEVEL_TEST

logger = logging.getLogger('sendinel')

if 'test' in sys.argv:
  # set logging level for tests
  logger.setLevel(LOGGING_LEVEL_TEST)
else:
  # set logging level for anything else
  if len(logger.handlers) < 1:
    logger.setLevel(LOGGING_LEVEL)    
    LOG_MSG_FORMAT = '%(asctime)s %(levelname)s %(filename)s#%(lineno)d %(message)s'
    handler = logging.StreamHandler()
    formatter = logging.Formatter(LOG_MSG_FORMAT)
    handler.setFormatter(formatter)
    logger.addHandler(handler)<commit_msg>Minor change to Logging<commit_after>import logging
import logging.handlers
import sys
from settings import LOGGING_LEVEL, LOGGING_LEVEL_TEST

logger = logging.getLogger('sendinel')
LOG_MSG_FORMAT = '%(asctime)s %(levelname)s %(filename)s#%(lineno)d %(message)s'

if 'test' in sys.argv:
  # set logging level for tests
  logger.setLevel(LOGGING_LEVEL_TEST)
else:
  # set logging level for anything else
  if len(logger.handlers) < 1:
    logger.setLevel(LOGGING_LEVEL)    
    handler = logging.StreamHandler()
    formatter = logging.Formatter(LOG_MSG_FORMAT)
    handler.setFormatter(formatter)
    logger.addHandler(handler)
{'fraction_non_alphanumeric': 0.09935897435897435, 'fraction_numerical': 0.0016025641025641025, 'mean_word_length': 5.308080808080808, 'pattern_counts': {'":': 0, '<': 5, '<?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': '6229899', 'n_tokens_mistral': 415, 'n_tokens_neox': 403, 'n_words': 92}