<commit_before># coding=utf-8
from os import environ
import urllib
from flask import Flask, request, jsonify
import re
from random import randint
app = Flask(__name__)
app.config['DEBUG'] = False

try:
    from bot_token import BOT_TOKEN
except ImportError:
    BOT_TOKEN = environ["TOKEN"]

URL = "https://api.telegram.org/bot%s/" % BOT_TOKEN
MyURL = "https://xye-bot.appspot.com"

NON_LETTERS = re.compile(ur'[^а-яё \-]+', flags=re.UNICODE)
PREFIX = re.compile(u"^[бвгджзйклмнпрстфхцчшщ]+", flags=re.UNICODE)

DELAY = {}

def error():
    return 'Hello World! I am XyE_bot (https://telegram.me/xye_bot)'


@app.route('/', methods=['POST', 'GET'])
def index():
    if request.method == 'GET':
        return error()
    else:
        if 'Content-Type' not in request.headers:
            return error()
        if request.headers['Content-Type'] != 'application/json':
            return error()
        try:<commit_msg>remove unnecessary code<commit_after># coding=utf-8
from os import environ
import urllib
from flask import Flask, request, jsonify
import re
from random import randint
app = Flask(__name__)
app.config['DEBUG'] = False

NON_LETTERS = re.compile(ur'[^а-яё \-]+', flags=re.UNICODE)
PREFIX = re.compile(u"^[бвгджзйклмнпрстфхцчшщ]+", flags=re.UNICODE)

DELAY = {}

def error():
    return 'Hello World! I am XyE_bot (https://telegram.me/xye_bot)'


@app.route('/', methods=['POST', 'GET'])
def index():
    if request.method == 'GET':
        return error()
    else:
        if 'Content-Type' not in request.headers:
            return error()
        if request.headers['Content-Type'] != 'application/json':
            return error()
        try:
{'fraction_non_alphanumeric': 0.15126050420168066, 'fraction_numerical': 0.0012004801920768306, 'mean_word_length': 3.4572192513368982, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '1926541', 'n_tokens_mistral': 592, 'n_tokens_neox': 584, 'n_words': 143}