<commit_before>"""
Project: META-SHARE prototype implementation
Author: <NAME> <<EMAIL>>
"""
from os.path import abspath, dirname, join
ROOT_PATH = abspath(dirname(__file__))

import os
import tempfile
import logging
from logging.handlers import RotatingFileHandler

# Import local settings, i.e., DEBUG, TEMPLATE_DEBUG, TIME_ZONE,
# DATABASE_* settings, ADMINS, etc.
from local_settings import *

# Logging settings for this Django project.
LOG_LEVEL = logging.INFO
#LOG_FILENAME = join(tempfile.gettempdir(), "metashare.log")
LOG_FORMAT = "[%(asctime)s] %(name)s::%(levelname)s %(message)s"
LOG_DATE = "%m/%d/%Y @ %H:%M:%S"
LOG_FORMATTER = logging.Formatter(LOG_FORMAT, LOG_DATE)

# Allows to disable check for duplicate instances.
CHECK_FOR_DUPLICATE_INSTANCES = True

# work around a problem on non-posix-compliant platforms by not using any
# RotatingFileHandler there
if os.name == "posix":
    LOG_HANDLER = RotatingFileHandler(filename=LOG_FILENAME, mode="a",
        maxBytes=1024*1024, backupCount=5, encoding="utf-8")
else:
    LOG_HANDLER = logging.FileHandler(filename=LOG_FILENAME, mode="a",
        encoding="utf-8")
LOG_HANDLER.setLevel(level=LOG_LEVEL)
LOG_HANDLER.setFormatter(LOG_FORMATTER)

# Maximum size of files uploaded as resrouce data.
# The default is a cautious value in order to protect the server
# against resource starvation; if you think your server can handle
# bigger files, feel free to try and increase this value.
MAXIMUM_UPLOAD_SIZE = 10 * 1024 * 1024

# Synchronization info:
SYNC_NEEDS_AUTHENTICATION = True
<commit_msg>Fix error<commit_after>"""
Project: META-SHARE prototype implementation
Author: <NAME> <<EMAIL>>
"""
from os.path import abspath, dirname, join
ROOT_PATH = abspath(dirname(__file__))

import os
import tempfile
import logging
from logging.handlers import RotatingFileHandler

# Import local settings, i.e., DEBUG, TEMPLATE_DEBUG, TIME_ZONE,
# DATABASE_* settings, ADMINS, etc.
from local_settings import *

# Logging settings for this Django project.
LOG_LEVEL = logging.INFO
LOG_FILENAME = join(tempfile.gettempdir(), "metashare.log")
LOG_FORMAT = "[%(asctime)s] %(name)s::%(levelname)s %(message)s"
LOG_DATE = "%m/%d/%Y @ %H:%M:%S"
LOG_FORMATTER = logging.Formatter(LOG_FORMAT, LOG_DATE)

# Allows to disable check for duplicate instances.
CHECK_FOR_DUPLICATE_INSTANCES = True

# work around a problem on non-posix-compliant platforms by not using any
# RotatingFileHandler there
if os.name == "posix":
    LOG_HANDLER = RotatingFileHandler(filename=LOG_FILENAME, mode="a",
        maxBytes=1024*1024, backupCount=5, encoding="utf-8")
else:
    LOG_HANDLER = logging.FileHandler(filename=LOG_FILENAME, mode="a",
        encoding="utf-8")
LOG_HANDLER.setLevel(level=LOG_LEVEL)
LOG_HANDLER.setFormatter(LOG_FORMATTER)

# Maximum size of files uploaded as resrouce data.
# The default is a cautious value in order to protect the server
# against resource starvation; if you think your server can handle
# bigger files, feel free to try and increase this value.
MAXIMUM_UPLOAD_SIZE = 10 * 1024 * 1024

# Synchronization info:
SYNC_NEEDS_AUTHENTICATION = True

{'fraction_non_alphanumeric': 0.10298363811357074, 'fraction_numerical': 0.013474494706448507, 'mean_word_length': 5.748917748917749, 'pattern_counts': {'":': 2, '<': 9, '<?xml version=': 0, '>': 9, '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': '4081170', 'n_tokens_mistral': 1065, 'n_tokens_neox': 1006, 'n_words': 295}