<commit_before>﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Xml;
using CoreTweet;
using Dbot.CommonModels;
using Dbot.Data;
using Dbot.Utility;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;

namespace Dbot.Processor {
  public class Commander {
    private readonly string _text;
    private readonly Message _message;
    private readonly Dictionary<List<string>, Func<string>> _commandDictionary;
    private readonly MessageProcessor _messageProcessor;

    public Commander(Message message, MessageProcessor messageProcessor) {
      _message = message;
      _text = message.SanitizedText.Substring(1);
      _messageProcessor = messageProcessor;
      _commandDictionary = new Dictionary<List<string>, Func<string>> {
      { new List<string> { "playlist" },
        () => "Playlist at last.fm/user/StevenBonnellII" },
      { new List<string> { "rules", "unmoddharma" },
        () => "github.com/destinygg/bot" },
      { new List<string> { "refer", "sponsor" },
        () => "destiny.gg/amazon ☜(ﾟヮﾟ☜) Amazon referral ☜(⌒▽⌒)☞ 25$ off Sprint network (☞ﾟヮﾟ)☞ destiny.gg/ting\r\nGo from this ⑁ to this 💺 destiny.gg/chair Record and share gameplay videos 	🎮 📺 destiny.gg/forge" },
      { new List<string> { "irc" },
        () => "IRC will be implemented Soon™. For now, chat is echoed to Rizon IRC at qchat.rizon.net/?channels=#destinyecho . Forwarding of IRC chat to Destiny.gg Chat is available" },
      { new List<string> { "time" },
        () =>
          $"{TimeZoneInfo.ConvertTimeBySystemTimeZoneId(DateTime.UtcNow, Settings.Timezone).ToShortTimeString()} Central Steven Time"
      },
      { new List<string> { "live" },
        () => Tools.LiveStatus() },
      { new List<string> { "blog", "blag" },
        () => Tools.FallibleCode(Blog) },
      { new List<string> { "sch", "calen" },
        Tools.Schedule },
      { new List<string> { "starcraft", "sc" },
        () => Tools.FallibleCode(Starcraft) },
      { new List<string> { "song" },
        () => Tools.FallibleCode(Song) },
      { new List<string> { "pastsong", "lastsong", "previoussong", "earliersong" },
        () => Tools.FallibleCode(EarlierSong) },
      { new List<string> { "twitter", "tweet", "twatter" },
        () => Tools.FallibleCode(() => Twitter("OmniDestiny")) },
      { new List<string> { "youtube", "yt" },
        () => Tools.FallibleCode(Youtube) },
      { new List<string> { "strim", "stream", "overrustle" },
        () => Tools.FallibleCode(Overrustle) },
      { new List<string> { "randomaslan", "randomcat", "cat" },
        () => Tools.FallibleCode(RandomAslan) },
      { new List<string> { "aslan" },
        () => Twitter("AslanVondran") },<commit_msg>Updating sponsor message<commit_after>﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Xml;
using CoreTweet;
using Dbot.CommonModels;
using Dbot.Data;
using Dbot.Utility;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;

namespace Dbot.Processor {
  public class Commander {
    private readonly string _text;
    private readonly Message _message;
    private readonly Dictionary<List<string>, Func<string>> _commandDictionary;
    private readonly MessageProcessor _messageProcessor;

    public Commander(Message message, MessageProcessor messageProcessor) {
      _message = message;
      _text = message.SanitizedText.Substring(1);
      _messageProcessor = messageProcessor;
      _commandDictionary = new Dictionary<List<string>, Func<string>> {
      { new List<string> { "playlist" },
        () => "Playlist at last.fm/user/StevenBonnellII" },
      { new List<string> { "rules", "unmoddharma" },
        () => "github.com/destinygg/bot" },
      { new List<string> { "refer", "sponsor" },
        () => "If you want to buy anything on Amazon (☞ﾟヮﾟ)☞ destiny.gg/amazon ☜(ﾟヮﾟ☜) Consider a Blue microphone\r\nGo from this ⑁ to this 💺 destiny.gg/chair ☜(⌒▽⌒)☞  destiny.gg/ting 25$ off Sprint network" },
      { new List<string> { "irc" },
        () => "IRC will be implemented Soon™. For now, chat is echoed to Rizon IRC at qchat.rizon.net/?channels=#destinyecho . Forwarding of IRC chat to Destiny.gg Chat is available" },
      { new List<string> { "time" },
        () =>
          $"{TimeZoneInfo.ConvertTimeBySystemTimeZoneId(DateTime.UtcNow, Settings.Timezone).ToShortTimeString()} Central Steven Time"
      },
      { new List<string> { "live" },
        () => Tools.LiveStatus() },
      { new List<string> { "blog", "blag" },
        () => Tools.FallibleCode(Blog) },
      { new List<string> { "sch", "calen" },
        Tools.Schedule },
      { new List<string> { "starcraft", "sc" },
        () => Tools.FallibleCode(Starcraft) },
      { new List<string> { "song" },
        () => Tools.FallibleCode(Song) },
      { new List<string> { "pastsong", "lastsong", "previoussong", "earliersong" },
        () => Tools.FallibleCode(EarlierSong) },
      { new List<string> { "twitter", "tweet", "twatter" },
        () => Tools.FallibleCode(() => Twitter("OmniDestiny")) },
      { new List<string> { "youtube", "yt" },
        () => Tools.FallibleCode(Youtube) },
      { new List<string> { "strim", "stream", "overrustle" },
        () => Tools.FallibleCode(Overrustle) },
      { new List<string> { "randomaslan", "randomcat", "cat" },
        () => Tools.FallibleCode(RandomAslan) },
      { new List<string> { "aslan" },
        () => Twitter("AslanVondran") },
{'fraction_non_alphanumeric': 0.1588513267902581, 'fraction_numerical': 0.0010905125408942203, 'mean_word_length': 3.3025801407349493, 'pattern_counts': {'":': 0, '<': 47, '<?xml version=': 0, '>': 79, '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': '2944355', 'n_tokens_mistral': 1834, 'n_tokens_neox': 1760, 'n_words': 394}