<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-

##
# Defines logging formats and logger instance
##

import logging
import os

##
# Default log message formatting string.
format = '%(name)s %(asctime)s %(levelname)-9.9s %(message)s'

##
# Default log date formatting string.
datefmt = '%d-%b-%y %H:%M:%S'

##
# Default log level.  Set IBPY_LOGLEVEL environment variable to
# change this default.
level = int(os.environ.get('IBPY_LOGLEVEL', logging.DEBUG))


def logger(name='ibpy', level=level, format=format,
               datefmt=datefmt):
    """ Configures and returns a logging instance.

    @param name ignored
    @param level logging level
    @param format format string for log messages
    @param datefmt format string for log dates
    @return logging instance (the module)
    """
    logging.basicConfig(level=level, format=format, datefmt=datefmt)
    return logging.getLogger(name)
<commit_msg>Removed name from logging channel output.<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-

##
# Defines logging formats and logger instance
##

import logging
import os

##
# Default log message formatting string.
format = '%(asctime)s %(levelname)-9.9s %(message)s'

##
# Default log date formatting string.
datefmt = '%d-%b-%y %H:%M:%S'

##
# Default log level.  Set IBPY_LOGLEVEL environment variable to
# change this default.
level = int(os.environ.get('IBPY_LOGLEVEL', logging.DEBUG))


def logger(name='ibpy', level=level, format=format,
               datefmt=datefmt):
    """ Configures and returns a logging instance.

    @param name ignored
    @param level logging level
    @param format format string for log messages
    @param datefmt format string for log dates
    @return logging instance (the module)
    """
    logging.basicConfig(level=level, format=format, datefmt=datefmt)
    return logging.getLogger(name)

{'fraction_non_alphanumeric': 0.1207910208444682, 'fraction_numerical': 0.003206841261357563, 'mean_word_length': 3.900523560209424, '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': '6670592', 'n_tokens_mistral': 568, 'n_tokens_neox': 559, 'n_words': 180}