<commit_before>﻿using System;
using System.IO;
//using Newtonsoft.Json;

//BotApi specific
using Telegram.Bot;
using Telegram.Bot.Args;
//using Telegram.Bot.Types;
using Telegram.Bot.Types.Enums;
//using Telegram.Bot.Types.InlineQueryResults;
//using Telegram.Bot.Types.InputMessageContents;
//using Telegram.Bot.Types.ReplyMarkups;


namespace Jun
{
	static class MainClass
	{
		//static string settingsFile = "Settings.Json";
		static Settings settings;
        static TelegramBotClient Bot;

        public static void Main (string[] args)
		{
            //checks if the token file exists and reads it, otherwise creates it.
            if (File.Exists("token"))
            {
                string token = System.IO.File.ReadAllText("token");
                if (token == string.Empty){
                    System.Console.WriteLine("No token found in the file. Please put your bot token on the token file and restart this program.");
                    Console.ReadLine();
                    return;
                }

                Bot = new TelegramBotClient(token);

                //delegates here
                Bot.OnMessage += Ping;

                var me = Bot.GetMeAsync().Result;
                Console.Title = me.Username;

                Bot.StartReceiving();
                Console.ReadLine();
                Bot.StopReceiving();
            }else{
                File.Create("token");
                System.Console.WriteLine("Please put your bot token on the token file and restart this program.");
                Console.ReadLine();
            }
		}

        static async void Ping(object sender, MessageEventArgs e) {
            if (e.Message == null || e.Message.Type != MessageType.TextMessage) return;
            string message = e.Message?.Text;
            if (message?.ToLower() == "ping")
                await Bot.SendTextMessageAsync(e.Message.Chat.Id, "I'm up and running!");
        }
    }
}<commit_msg>Added stub for autoupdate function<commit_after>﻿using System;
using System.IO;
//using Newtonsoft.Json;

//BotApi specific
using Telegram.Bot;
using Telegram.Bot.Args;
//using Telegram.Bot.Types;
using Telegram.Bot.Types.Enums;
//using Telegram.Bot.Types.InlineQueryResults;
//using Telegram.Bot.Types.InputMessageContents;
//using Telegram.Bot.Types.ReplyMarkups;


namespace Jun
{
	static class MainClass
	{
		//static string settingsFile = "Settings.Json";
		static Settings settings;
        static TelegramBotClient Bot;

        public static void Main (string[] args)
		{
            //checks if the token file exists and reads it, otherwise creates it.
            if (File.Exists("token"))
            {
                string token = System.IO.File.ReadAllText("token");
                if (token == string.Empty){
                    System.Console.WriteLine("No token found in the file. Please put your bot token on the token file and restart this program.");
                    Console.ReadLine();
                    return;
                }

                Bot = new TelegramBotClient(token);

                //delegates here
                Bot.OnMessage += Ping;
                Bot.OnMessage += AutoUpdate;

                var me = Bot.GetMeAsync().Result;
                Console.Title = me.Username;

                Bot.StartReceiving();
                Console.ReadLine();
                Bot.StopReceiving();
            }else{
                File.Create("token");
                System.Console.WriteLine("Please put your bot token on the token file and restart this program.");
                Console.ReadLine();
            }
		}

        static async void Ping(object sender, MessageEventArgs e) {
            if (e.Message == null || e.Message.Type != MessageType.TextMessage) return;
            string message = e.Message?.Text;
            if (message?.ToLower() == "ping")
                await Bot.SendTextMessageAsync(e.Message.Chat.Id, "I'm up and running!");
        }

        static async void AutoUpdate(object sender, MessageEventArgs e) {
          if (e.Message == null || e.Message.Type != MessageType.TextMessage) return;
            string message = e.Message?.Text;
            if (message?.ToLower() == "/autoupdate"){
                await Bot.SendTextMessageAsync(e.Message.Chat.Id, "Beginning autoupdate procedure! \n *NOTE:* _This is a stub and will change soon_", parseMode:ParseMode.Markdown);
            }
         }
    }
}
{'fraction_non_alphanumeric': 0.10493132177437514, 'fraction_numerical': 0.0, 'mean_word_length': 1.895697522816167, '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': '2302920', 'n_tokens_mistral': 1187, 'n_tokens_neox': 1121, 'n_words': 321}