<commit_before># encoding=utf8  

#import for telegram
import sys
import time
import telepot
import ConfigParser
from functions import check_iv_cp, show_map, gps

#config
config = ConfigParser.ConfigParser()
config.readfp(open('config.ini'))

allowed_list = eval(config.get('Telegram', 'allow_list'))
bot_token = config.get('Telegram', 'bot_token')
bot = telepot.Bot(bot_token)


def handle(msg):
    global ac_sum

    #Access Control
    if msg['chat']['id'] in allowed_list:
        check_iv_cp(msg)
        gps(msg)
        show_map(msg)
    else:
        gps(msg)
        show_map(msg)

bot.message_loop({'chat': handle})
print('Listening ...')

while 1:
    time.sleep(10)<commit_msg>wecatch(msg)<commit_after># encoding=utf8  

#import for telegram
import sys
import time
import telepot
import ConfigParser
from functions import check_iv_cp, show_map, gps

#config
config = ConfigParser.ConfigParser()
config.readfp(open('config.ini'))

allowed_list = eval(config.get('Telegram', 'allow_list'))
bot_token = config.get('Telegram', 'bot_token')
bot = telepot.Bot(bot_token)


def handle(msg):
    global ac_sum

    #Access Control
    if msg['chat']['id'] in allowed_list:
        check_iv_cp(msg)
        gps(msg)
        show_map(msg)
        wecatch(msg)
    else:
        gps(msg)
        show_map(msg)
        wecatch(msg)

bot.message_loop({'chat': handle})
print('Listening ...')

while 1:
    time.sleep(10)
{'fraction_non_alphanumeric': 0.12807881773399016, 'fraction_numerical': 0.005629838142153413, 'mean_word_length': 3.8203389830508474, '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': '6127551', 'n_tokens_mistral': 496, 'n_tokens_neox': 484, 'n_words': 107}