<commit_before>#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Wurstmineberg: All The Items
"""

import sys

sys.path.append('/opt/py')

import api #TODO import dev api if is_dev
import bottle
import json
import os.path
import wurstminebot.commands #TODO remove wurstminebot dependency

bottle.debug()

try:
    import uwsgi
    is_dev = uwsgi.opt['is_dev'] == 'true'
except:
    is_dev = False

if is_dev:
    assets_root = '/opt/git/github.com/wurstmineberg/assets.wurstmineberg.de/branch/dev'
    document_root = '/opt/git/github.com/wurstmineberg/alltheitems.wurstmineberg.de/branch/dev'
    host = 'dev.wurstmineberg.de'<commit_msg>Monkeypatch api.CONFIG_PATH for the dev website<commit_after>#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Wurstmineberg: All The Items
"""

import sys

sys.path.append('/opt/py')

import api
import bottle
import json
import os.path
import wurstminebot.commands #TODO remove wurstminebot dependency

bottle.debug()

try:
    import uwsgi
    is_dev = uwsgi.opt['is_dev'] == 'true'
except:
    is_dev = False

if is_dev:
    assets_root = '/opt/git/github.com/wurstmineberg/assets.wurstmineberg.de/branch/dev'
    document_root = '/opt/git/github.com/wurstmineberg/alltheitems.wurstmineberg.de/branch/dev'
    host = 'dev.wurstmineberg.de'
    api.CONFIG_PATH = '/opt/wurstmineberg/config/api.json'
{'fraction_non_alphanumeric': 0.13189269746646795, 'fraction_numerical': 0.0029806259314456036, 'mean_word_length': 4.0111940298507465, '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': '734925', 'n_tokens_mistral': 497, 'n_tokens_neox': 504, 'n_words': 98}