<commit_before># imports - compatibility imports
from __future__ import unicode_literals

# imports - standard imports
import logging
import os
from logging.handlers import RotatingFileHandler

# imports - third party imports
from six import text_type

# imports - module imports
import frappe


default_log_level = logging.DEBUG


def get_logger(module, with_more_info=False, allow_site=True, filter=None, max_size=100_000, file_count=20):
	"""Application Logger for your given module

	Args:
		module (str): Name of your logger and consequently your log file.
		with_more_info (bool, optional): Will log the form dict using the SiteContextFilter. Defaults to False.
		allow_site ((str, bool), optional): Pass site name to explicitly log under it's logs. If True and unspecified, guesses which site the logs would be saved under. Defaults to True.
		filter (function, optional): Add a filter function for your logger. Defaults to None.
		max_size (int, optional): Max file size of each log file in kB. Defaults to 100_000.<commit_msg>chore: Typo<commit_after># imports - compatibility imports
from __future__ import unicode_literals

# imports - standard imports
import logging
import os
from logging.handlers import RotatingFileHandler

# imports - third party imports
from six import text_type

# imports - module imports
import frappe


default_log_level = logging.DEBUG


def get_logger(module, with_more_info=False, allow_site=True, filter=None, max_size=100_000, file_count=20):
	"""Application Logger for your given module

	Args:
		module (str): Name of your logger and consequently your log file.
		with_more_info (bool, optional): Will log the form dict using the SiteContextFilter. Defaults to False.
		allow_site ((str, bool), optional): Pass site name to explicitly log under it's logs. If True and unspecified, guesses which site the logs would be saved under. Defaults to True.
		filter (function, optional): Add a filter function for your logger. Defaults to None.
		max_size (int, optional): Max file size of each log file in bytes. Defaults to 100_000.
{'fraction_non_alphanumeric': 0.06325446644133269, 'fraction_numerical': 0.013520038628681796, 'mean_word_length': 4.954022988505747, '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': '1166729', 'n_tokens_mistral': 599, 'n_tokens_neox': 554, 'n_words': 260}