<commit_before>from __future__ import absolute_import
import os
from wallstreet import base
from wallstreet import config

LOG_ROOT = os.path.abspath(os.path.dirname(__file__) + "../../../logs")
base.wise_mk_dir(LOG_ROOT)


CELERY_LOGGING = {
    'version': 1,
    'disable_existing_loggers': False,
    'formatters': {
        'normal': {
                'format': '[%(asctime)s]%(levelname)s,%(funcName)s,%(lineno)d,%(message)s'
            },
        },
    'handlers': {
        'console': {
            'formatter': 'normal',
            'class': 'logging.StreamHandler',
            'level': 'DEBUG'
        },
        'zocket': {
            'formatter': 'normal',
            'class': 'logging.handlers.SocketHandler',
            'level': 'DEBUG',
            'host': config.get("log_server", "host"),
            'port': config.get_int("log_server", "port")
        }
    },
    'loggers': {
        'wallstreet.tasks.stock_history_tasks': {
            'handlers': ['console', 'zocket'],
            'level': 'DEBUG'
        },
        'wallstreet.tasks.stock_storage_tasks': {
            'handlers': ['console', 'zocket'],
            'level': 'DEBUG'
        }
    }
}

LOGGING = {
    'version': 1,
    'disable_existing_loggers': False,
    'formatters': {
        'normal': {
                'format': '[%(asctime)s]%(levelname)s,%(funcName)s,%(lineno)d,%(message)s'
            },<commit_msg>=fix bugs<commit_after>from __future__ import absolute_import
import os
from wallstreet import base
from wallstreet import config

LOG_ROOT = os.path.abspath(os.path.dirname(__file__) + "../../../logs")
base.wise_mk_dir(LOG_ROOT)


CELERY_LOGGING = {
    'version': 1,
    'disable_existing_loggers': False,
    'formatters': {
        'normal': {
                'format': '[%(asctime)s]%(levelname)s,%(funcName)s,%(lineno)d,%(message)s'
            },
        },
    'handlers': {
        'console': {
            'formatter': 'normal',
            'class': 'logging.StreamHandler',
            'level': 'DEBUG'
        },
        'zocket': {
            'formatter': 'normal',
            'class': 'logging.handlers.SocketHandler',
            'level': 'DEBUG',
            'host': config.get("log_server", "host"),
            'port': config.get_int("log_server", "port")
        }
    },
    'loggers': {
        'wallstreet.tasks.stock_history_tasks': {
            'handlers': ['zocket'],
            'level': 'DEBUG'
        },
        'wallstreet.tasks.stock_storage_tasks': {
            'handlers': ['zocket'],
            'level': 'DEBUG'
        }
    }
}

LOGGING = {
    'version': 1,
    'disable_existing_loggers': False,
    'formatters': {
        'normal': {
                'format': '[%(asctime)s]%(levelname)s,%(funcName)s,%(lineno)d,%(message)s'
            },
{'fraction_non_alphanumeric': 0.17716535433070865, 'fraction_numerical': 0.0014316392269148174, 'mean_word_length': 2.1055555555555556, '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': '5910919', 'n_tokens_mistral': 926, 'n_tokens_neox': 893, 'n_words': 139}