<commit_before># Copyright (C) <NAME> <<EMAIL>>
# See LICENSE for details.

import json
import logging.config
import os
from time import tzset


VERSION = (0, 3, 0)
__version__ = ".".join([str(s) for s in VERSION])

__title__ = "platformio-api"
__description__ = ("An API for PlatformIO")
__url__ = "https://github.com/ivankravets/platformio-api"

__author__ = "<NAME>"
__email__ = "<EMAIL>"

__license__ = "MIT License"
__copyright__ = "Copyright (C) 2014-2015 <NAME>"

config = dict(
    SQLALCHEMY_DATABASE_URI=None,
    GITHUB_LOGIN=None,
    GITHUB_PASSWORD=<PASSWORD>,
    DL_PIO_DIR=None,
    DL_PIO_URL=None,
    MAX_DLFILE_SIZE=1024*1024*20,  # 20 Mb
    LOGGING=dict(version=1)
)

assert "PIOAPI_CONFIG_PATH" in os.environ
with open(os.environ.get("PIOAPI_CONFIG_PATH")) as f:
    config.update(json.load(f))

# configure logging for packages
logging.basicConfig()
logging.config.dictConfig(config['LOGGING'])

# setup time zone to UTC globally
os.environ['TZ'] = "+00:00"
tzset()
<commit_msg>Increase lib repo size to 50Mb<commit_after># Copyright (C) <NAME> <<EMAIL>>
# See LICENSE for details.

import json
import logging.config
import os
from time import tzset


VERSION = (0, 3, 0)
__version__ = ".".join([str(s) for s in VERSION])

__title__ = "platformio-api"
__description__ = ("An API for PlatformIO")
__url__ = "https://github.com/ivankravets/platformio-api"

__author__ = "<NAME>"
__email__ = "<EMAIL>"

__license__ = "MIT License"
__copyright__ = "Copyright (C) 2014-2015 <NAME>"

config = dict(
    SQLALCHEMY_DATABASE_URI=None,
    GITHUB_LOGIN=None,
    GITHUB_PASSWORD=None,
    DL_PIO_DIR=None,
    DL_PIO_URL=None,
    MAX_DLFILE_SIZE=1024*1024*50,  # 50 Mb
    LOGGING=dict(version=1)
)

assert "PIOAPI_CONFIG_PATH" in os.environ
with open(os.environ.get("PIOAPI_CONFIG_PATH")) as f:
    config.update(json.load(f))

# configure logging for packages
logging.basicConfig()
logging.config.dictConfig(config['LOGGING'])

# setup time zone to UTC globally
os.environ['TZ'] = "+00:00"
tzset()

{'fraction_non_alphanumeric': 0.13584531482399603, 'fraction_numerical': 0.02875557759048091, 'mean_word_length': 5.005952380952381, 'pattern_counts': {'":': 0, '<': 16, '<?xml version=': 0, '>': 16, 'https://': 2, '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': '893608', 'n_tokens_mistral': 792, 'n_tokens_neox': 749, 'n_words': 175}