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


# server
LISTEN_PORT = 27850

# common
CWD = pathlib.PurePath(__file__).parents[0]
LOG_NAME = 'gargantua'
LOG_PATH = '/tmp/gargantua-blog.log'
suffix = 0

# web signal
OK = 0
ERROR = 1

# db
DB_HOST = 'localhost'
DB_PORT = 27016
DB_NAME = 'blog'

# search
ES_HOST = 'localhost'
ES_PORT = 17200

# posts
N_POST_PER_PAGE = 10

# sentry
SENTRY_HOST = 'localhost'
SENTRY_PORT = 9000
SENTRY_NAME = '2'

# mail
MAIL_HOST = 'smtp.gmail.com'
MAIL_PORT = 587
MAIL_SUBJECT = 'Gargantua Error'
FROM_ADDR = '<EMAIL>'
TO_ADDRS = ('<EMAIL>',)
MAIL_USERNAME = '<EMAIL>'
MAIL_PASSWD = '<PASSWORD>'

# test
DB_PORT = 27017<commit_msg>* 测试数据库端口为 27016<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-
import pathlib


# server
LISTEN_PORT = 27850

# common
CWD = pathlib.PurePath(__file__).parents[0]
LOG_NAME = 'gargantua'
LOG_PATH = '/tmp/gargantua-blog.log'
suffix = 0

# web signal
OK = 0
ERROR = 1

# db
DB_HOST = 'localhost'
DB_PORT = 27016
DB_NAME = 'blog'

# search
ES_HOST = 'localhost'
ES_PORT = 17200

# posts
N_POST_PER_PAGE = 10

# sentry
SENTRY_HOST = 'localhost'
SENTRY_PORT = 9000
SENTRY_NAME = '2'

# mail
MAIL_HOST = 'smtp.gmail.com'
MAIL_PORT = 587
MAIL_SUBJECT = 'Gargantua Error'
FROM_ADDR = '<EMAIL>'
TO_ADDRS = ('<EMAIL>',)
MAIL_USERNAME = '<EMAIL>'
MAIL_PASSWD = '<PASSWORD>'
{'fraction_non_alphanumeric': 0.14390065741417093, 'fraction_numerical': 0.05113221329437546, 'mean_word_length': 4.502008032128514, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '2449705', 'n_tokens_mistral': 636, 'n_tokens_neox': 589, 'n_words': 128}