<commit_before>﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using RequestifyTF2;
using RequestifyTF2.Api;

namespace RequesifyCLI
{
    internal class Program
    {
        private static bool started;

        private static void Main(string[] args)
        {
            var _plugins = new Dictionary<string, IRequestifyPlugin>();
            if (!Directory.Exists(Path.GetDirectoryName(AppDomain.CurrentDomain.BaseDirectory) + "/plugins/")
            )
                Directory.CreateDirectory(Path.GetDirectoryName(AppDomain.CurrentDomain.BaseDirectory) + "/plugins/");
            Instance.Config.AhkPath = Path.GetDirectoryName(AppDomain.CurrentDomain.BaseDirectory) +
                                      "/plugins/ahk/ahk.exe";

            var plugins =
                PluginLoader<IRequestifyPlugin>.LoadPlugins(
                    Path.GetDirectoryName(AppDomain.CurrentDomain.BaseDirectory) +
                    "/plugins/");

            foreach (var item in plugins)
            {
                Instance.ActivePlugins.Add(item);
                _plugins.Add(item.Name, item);
            }

            AppConfig.Load();
            GetHelp();
            PrintPlugins();
            while (true)
            {
                var key = Console.ReadLine();
                if (key.StartsWith("reverse"))
                {
                    if (!Instance.Config.IgnoredReversed)
                    {
                        Logger.Write(Logger.Status.Info,"WhiteList activated");
                    }
                    else
                    {
                        Logger.Write(Logger.Status.Info,"BlackList activated");
                    }

                    Instance.Config.IgnoredReversed = !Instance.Config.IgnoredReversed;
                }

                if (key.StartsWith("help"))
                {
                   GetHelp();
                }
                if (key.StartsWith("dir") && key.Split(null).Length > 1) SetDirectory(key.Replace("dir", null));
                if (key.StartsWith("code")) Console.WriteLine(Instance.Config.Chiper);
                if (key.StartsWith("blacklist")) PrintBlackList();
                if (key.StartsWith("remove"))
                    if (key.Split(null).Length > 1)
                    {
                        var i = 0;
                        if (int.TryParse(key.Split()[1], out i))
                        {
                            var allplg = Instance.Config.Ignored;
                            if (i >= 0 && i < allplg.Count)<commit_msg>Nothing<commit_after>﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using RequestifyTF2;
using RequestifyTF2.Api;

namespace RequesifyCLI
{
    internal class Program
    {
        private static bool started;

        private static void Main(string[] args)
        {
            var _plugins = new Dictionary<string, IRequestifyPlugin>();
            if (!Directory.Exists(Path.GetDirectoryName(AppDomain.CurrentDomain.BaseDirectory) + "/plugins/")
            )
                Directory.CreateDirectory(Path.GetDirectoryName(AppDomain.CurrentDomain.BaseDirectory) + "/plugins/");
            Instance.Config.AhkPath = Path.GetDirectoryName(AppDomain.CurrentDomain.BaseDirectory) +
                                      "/plugins/ahk/ahk.exe";

            var plugins =
                PluginLoader<IRequestifyPlugin>.LoadPlugins(
                    Path.GetDirectoryName(AppDomain.CurrentDomain.BaseDirectory) +
                    "/plugins/");

            foreach (var item in plugins)
            {
                Instance.ActivePlugins.Add(item);
                _plugins.Add(item.Name, item);
            }

            AppConfig.Load();
            GetHelp();
            PrintPlugins();
            while (true)
            {
                var key = Console.ReadLine();
                if (key.StartsWith("reverse"))
                {
                    if (!Instance.Config.IgnoredReversed)
                    {
                        Logger.Write(Logger.Status.Info,"WhiteList activated");
                    }
                    else
                    {
                        Logger.Write(Logger.Status.Info,"BlackList activated");
                    }

                    Instance.Config.IgnoredReversed = !Instance.Config.IgnoredReversed;
                }

                if (key.StartsWith("help"))
                {
                   GetHelp();

                }
                if (key.StartsWith("dir") && key.Split(null).Length > 1) SetDirectory(key.Replace("dir", null));
                if (key.StartsWith("code")) Console.WriteLine(Instance.Config.Chiper);
                if (key.StartsWith("blacklist")) PrintBlackList();
                if (key.StartsWith("remove"))
                    if (key.Split(null).Length > 1)
                    {
                        var i = 0;
                        if (int.TryParse(key.Split()[1], out i))
                        {
                            var allplg = Instance.Config.Ignored;
                            if (i >= 0 && i < allplg.Count)
{'fraction_non_alphanumeric': 0.10385584189110637, 'fraction_numerical': 0.0027126525867080024, 'mean_word_length': 1.3527803099361897, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4869039', 'n_tokens_mistral': 1300, 'n_tokens_neox': 1215, 'n_words': 211}