<commit_before>import telebot
import wikipedia
from telebot import util


API_TOKEN = open("../token", "rb").read()

bot = telebot.TeleBot(API_TOKEN)

id_lang = {}

def loggin(id):
    if not id_lang.get(id):
        id_lang[id] = "en"
	return "en"
    else:
	return id_lang[id]

def set_lang(id):
    wikipedia.set_lang(loggin(id))

def del_comand(command, mes):
    return mes.text.replace('/' + command + ' ', '')

explein = "this bot search in wikipedia www.wikipedia.org \nyou can ask me by sending these commands: \n"
<commit_msg>open file<commit_after>import telebot
import wikipedia
from telebot import util

file = open("../token", "rb")
API_TOKEN = file.read().replace("\n", "")
file.close()
bot = telebot.TeleBot(API_TOKEN)

id_lang = {}

def loggin(id):
    if not id_lang.get(id):
        id_lang[id] = "en"
	return "en"
    else:
	return id_lang[id]

def set_lang(id):
    wikipedia.set_lang(loggin(id))

def del_comand(command, mes):
    return mes.text.replace('/' + command + ' ', '')

explein = "this bot search in wikipedia www.wikipedia.org \nyou can ask me by sending these commands: \n"

{'fraction_non_alphanumeric': 0.14697926059513075, 'fraction_numerical': 0.0, 'mean_word_length': 3.8684210526315788, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '5138847', 'n_tokens_mistral': 409, 'n_tokens_neox': 403, 'n_words': 106}