<commit_before>﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Security;
using System.Security.Permissions;
using System.Text;
using System.Threading.Tasks;
using UlteriusPlugins;


namespace UlteriusServer.Plugins
{
    public static class PluginLoader<T>
    {
        private static string path = System.Environment.CurrentDirectory + "/data/plugins/";
        public static List<string> BrokenPlugins = new List<string>(); 

        public static ICollection<IPlugin> LoadPlugins()
        {
            if (!Directory.Exists(path))
            {
                Console.WriteLine("Plugin folder does not exisit");
                return null;
            }<commit_msg>Make it work with path<commit_after>﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Security;
using System.Security.Permissions;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using UlteriusPlugins;


namespace UlteriusServer.Plugins
{
    public static class PluginLoader<T>
    {
        private static string path = Path.GetDirectoryName(System.Reflection.Assembly.GetEntryAssembly().Location) + @"\data\plugins\";
        public static List<string> BrokenPlugins = new List<string>(); 

        public static ICollection<IPlugin> LoadPlugins()
        {

            if (!Directory.Exists(path))
            {
                Console.WriteLine("Plugin folder does not exisit");
                return null;
            }
{'fraction_non_alphanumeric': 0.09293443666454487, 'fraction_numerical': 0.0, 'mean_word_length': 3.0307692307692307, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '5615403', 'n_tokens_mistral': 415, 'n_tokens_neox': 408, 'n_words': 108}