<commit_before># -*- coding:utf8 -*-

import os

GLOBAL={

    "Host": os.environ.get("interest.blog.host", "0.0.0.0"),
    #Application run network address, you can set it `0.0.0.0`, `127.0.0.1`, or someone IP

    "Port": int(os.environ.get("interest.blog.port", 10140)),
    #Application run port, default port

    "LogLevel": os.environ.get("interest.blog.loglevel", "DEBUG"),
    #Write log's level, current is DEBUG，INFO，WARNING，ERROR，CRITICAL
}

PRODUCT={

    "ProcessName": "Interest.blog",
    #Custom process, you can see it with "ps aux|grep ProcessName"(with setproctitle module)

    "ProductType": os.environ.get("interest.blog.producttype", "tornado"),
    #Production environment starting method, optional: `gevent`, `tornado`
}

SSO={

    "SSO.URL": "https://passport.saintic.com",
    #The passport(SSO Authentication System) Web Site URL.

    "SSO.PROJECT": PRODUCT["ProcessName"],
    #SSO request application.
}

PLUGINS={

    "CodeHighlighting": True,

    "BaiduAutoPush": True,

    "DuoshuoComment": True,

    "Weather": True,

    "RealProbability": False,

    "BaiduStatistics": True,

    "BaiduShare": True,
}

BLOG={

    "AdminPrefix": "/admin",
}

MYSQL={
    "Host": "127.0.0.1",
    "Port": 3306,
    "Database": "saintic",
    "User": "root",
    "Passwd": "<PASSWORD>",
    "Charset": "utf8",
    "Timezone": "+8:00",
    #MySQL连接信息，格式可包括在()、[]、{}内，分别填写主机名或IP、端口、数据库、用户、密码、字符集、时区等，其中port默认3306、字符集默认utf8、时区默认东八区，注意必须写在一行内！
}<commit_msg>update config.py for os.getenv<commit_after># -*- coding:utf8 -*-

import os

GLOBAL={

    "Host": os.environ.get("interest.blog.Host", "0.0.0.0"),
    #Application run network address, you can set it `0.0.0.0`, `127.0.0.1`, or someone IP

    "Port": int(os.environ.get("interest.blog.Port", 10140)),
    #Application run port, default port

    "LogLevel": os.environ.get("interest.blog.LogLevel", "DEBUG"),
    #Write log's level, current is DEBUG，INFO，WARNING，ERROR，CRITICAL
}

PRODUCT={

    "ProcessName": "Interest.blog",
    #Custom process, you can see it with "ps aux|grep ProcessName"(with setproctitle module)

    "ProductType": os.environ.get("interest.blog.ProductType", "tornado"),
    #Production environment starting method, optional: `gevent`, `tornado`
}

SSO={

    "SSO.URL": "https://passport.saintic.com",
    #The passport(SSO Authentication System) Web Site URL.

    "SSO.PROJECT": PRODUCT["ProcessName"],
    #SSO request application.
}

PLUGINS={

    "CodeHighlighting": os.environ.get("interest.blog.CodeHighlighting", True),

    "BaiduAutoPush": os.environ.get("interest.blog.BaiduAutoPush", True),

    "DuoshuoComment": os.environ.get("interest.blog.DuoshuoComment", True),

    "Weather": os.environ.get("interest.blog.Weather", True),

    "RealProbability": os.environ.get("interest.blog.RealProbability", False),

    "BaiduStatistics": os.environ.get("interest.blog.BaiduStatistics", True),

    "BaiduShare": os.environ.get("interest.blog.BaiduShare", True),
}

BLOG={

    "AdminPrefix": os.environ.get("interest.blog.AdminPrefix", "/admin"),
}

MYSQL="mysql://host:port:user:password:database?charset=utf8&timezone=+8:00"
#Format is mysql://host:port:user:password:database?charset=&timezone=
{'fraction_non_alphanumeric': 0.176049766718507, 'fraction_numerical': 0.019595645412130637, 'mean_word_length': 4.2894736842105265, 'pattern_counts': {'":': 37, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, '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': '1710685', 'n_tokens_mistral': 1216, 'n_tokens_neox': 1190, 'n_words': 223}