<commit_before><?php

// requirements
require 'vendor/autoload.php';
require_once 'config.php';
// file_get_contents('https://api.telegram.org/bot'.$token.'/sendMessage?chat_id=92454&text=debug');
require 'main-controller.php';
use Telegram\Bot\Api;

// connecting
$telegram = new Api($token);
// get user message
$updates = $telegram->getWebhookUpdates();
$message = $updates->getMessage();
$callback_query = $updates->getCallbackQuery();

//messages
if ($message != null) {
	$chat_id = (int) $message->getChat()->getId();
	$text = $message->getText();
	$message_id = $message->getMessageId();
	$username = $message->getFrom()->getUsername();
	$user = $message->getFrom();
	$username = $user->getUsername();
	$fullname = $user->getFirstName() . ' ' . $user->getLastName();
	try {
		$db = new Database($db_name, $db_user, $db_pass, $chat_id, $message_id);
		// vahid tests
		/*if ($chat_id == 92454) {
		}*/
		// mamad tests
		/*if ($chat_id == 117990761) {
		}*/
		// shahryar tests
		/*if ($chat_id == 97778738) {<commit_msg>added a global variable for my chat_id :D<commit_after><?php

// requirements
require 'vendor/autoload.php';
require_once 'config.php';
// file_get_contents('https://api.telegram.org/bot'.$token.'/sendMessage?chat_id=92454&text=debug');
require 'main-controller.php';
use Telegram\Bot\Api;

$MAMAD_ID = 117990761;

// connecting
$telegram = new Api($token);
// get user message
$updates = $telegram->getWebhookUpdates();
$message = $updates->getMessage();
$callback_query = $updates->getCallbackQuery();

//messages
if ($message != null) {
	$chat_id = (int) $message->getChat()->getId();
	$text = $message->getText();
	$message_id = $message->getMessageId();
	$username = $message->getFrom()->getUsername();
	$user = $message->getFrom();
	$username = $user->getUsername();
	$fullname = $user->getFirstName() . ' ' . $user->getLastName();
	try {
		$db = new Database($db_name, $db_user, $db_pass, $chat_id, $message_id);
		// vahid tests
		/*if ($chat_id == 92454) {
		}*/
		// mamad tests
		/*if ($chat_id == 117990761) {
		}*/
		// shahryar tests
		/*if ($chat_id == 97778738) {
{'fraction_non_alphanumeric': 0.2060778727445394, 'fraction_numerical': 0.029914529914529916, 'mean_word_length': 4.663978494623656, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 29, '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': '3335106', 'n_tokens_mistral': 819, 'n_tokens_neox': 768, 'n_words': 143}