<commit_before>#!/usr/bin/env python3
# _*_coding:utf-8_*_
import os

import motor.motor_tornado
import tornadoredis

from common.logManageLib import get_logger

settings = dict(
    template_path=os.path.join(os.path.dirname(__file__), "templates"),
    static_path=os.path.join(os.path.dirname(__file__), "static"),
    cookie_secret="<KEY>
    login_url="/admin/login",
    xsrf_cookies=True,
    debug=True,

)

# 设置mongodb的连接
client = motor.motor_tornado.MotorClient('mongodb://172.16.17.32:27017')

# 设置redis的连接
# g_redis_db = tornadoredis.Client(host='10.2.0.54', port=6379, password="<PASSWORD>", selected_db=9)
g_redis_db = tornadoredis.Client(host='172.16.17.32', port=6379, password=None, selected_db=1)

g_redis_time_5m = 5 * 60
g_redis_time_10m = 10 * 60
g_redis_time_30m = 30 * 60
g_redis_time_1h = 1 * 60 * 60
g_redis_time_2h = 2 * 60 * 60
g_redis_time_5h = 5 * 60 * 60
g_redis_time_1d = 24 * 60 * 60
g_redis_time_1w = 7 * 24 * 60 * 60

# 日志配置
logger = get_logger(strFileName="smartSearch.log", debug=20, showStreamLog=True, saveLogPath=None)

# domain 域名配置
domain = "http://127.0.0.1:8000/"




<commit_msg>xiugai domain<commit_after>#!/usr/bin/env python3
# _*_coding:utf-8_*_
import os

import motor.motor_tornado
import tornadoredis

from common.logManageLib import get_logger

settings = dict(
    template_path=os.path.join(os.path.dirname(__file__), "templates"),
    static_path=os.path.join(os.path.dirname(__file__), "static"),
    cookie_secret="<KEY>
    login_url="/admin/login",
    xsrf_cookies=True,
    debug=True,

)

# 设置mongodb的连接
client = motor.motor_tornado.MotorClient('mongodb://172.16.17.32:27017')

# 设置redis的连接
# g_redis_db = tornadoredis.Client(host='10.2.0.54', port=6379, password="<PASSWORD>", selected_db=9)
g_redis_db = tornadoredis.Client(host='172.16.17.32', port=6379, password=None, selected_db=1)

g_redis_time_5m = 5 * 60
g_redis_time_10m = 10 * 60
g_redis_time_30m = 30 * 60
g_redis_time_1h = 1 * 60 * 60
g_redis_time_2h = 2 * 60 * 60
g_redis_time_5h = 5 * 60 * 60
g_redis_time_1d = 24 * 60 * 60
g_redis_time_1w = 7 * 24 * 60 * 60

# 日志配置
logger = get_logger(strFileName="smartSearch.log", debug=20, showStreamLog=True, saveLogPath=None)

# domain 域名配置
domain = "http://www.liuhub.com/"





{'fraction_non_alphanumeric': 0.14069456812110417, 'fraction_numerical': 0.08637577916295637, 'mean_word_length': 4.992, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 7, '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': '1239336', 'n_tokens_mistral': 1107, 'n_tokens_neox': 964, 'n_words': 155}