<commit_before>using System;
using System.Collections.Generic;

using EE.Internal;

namespace EE {
    public enum Plugin {
        Adjust,
        AdMob,
        AppLovin,
        AppsFlyer,
        Facebook,
        FacebookAds,
        IronSource,
        Play,
        UnityAds,
        Vungle,
    }

    public static class PluginManager {
        private static readonly Dictionary<Plugin, string> _pluginNames = new Dictionary<Plugin, string> {
            [Plugin.Adjust] = "Adjust",
            [Plugin.AdMob] = "AdMob",
            [Plugin.AppLovin] = "AppLovin",
            [Plugin.AppsFlyer] = "AppsFlyer",
            [Plugin.Facebook] = "Facebook",
            [Plugin.FacebookAds] = "FacebookAds",
            [Plugin.IronSource] = "IronSource",
            [Plugin.Play] = "Play",
            [Plugin.UnityAds] = "UnityAds",
            [Plugin.Vungle] = "Vungle"
        };

        private static readonly Dictionary<Type, (Plugin, Func<IMessageBridge, IPlugin>)> _pluginTypes
            = new Dictionary<Type, (Plugin, Func<IMessageBridge, IPlugin>)> {
                [typeof(IAdjust)] = (Plugin.Adjust, bridge => new Adjust(bridge)),
                [typeof(IAdMob)] = (Plugin.AdMob, bridge => new AdMob(bridge)),
                [typeof(IFacebookAds)] = (Plugin.IronSource, bridge => new FacebookAds(bridge)),
                [typeof(IIronSource)] = (Plugin.IronSource, bridge => new IronSource(bridge)),
                [typeof(IUnityAds)] = (Plugin.IronSource, bridge => new UnityAds(bridge)),
            };

        private static readonly Dictionary<Plugin, IPlugin> _plugins = new Dictionary<Plugin, IPlugin>();

        private static readonly IPluginManagerImpl _impl =
#if UNITY_EDITOR
            new PluginManagerImplEditor();
#elif UNITY_ANDROID
            new PluginManagerImplAndroid();
#elif UNITY_IOS
            new PluginManagerImplIos();
#endif

        private static IMessageBridge _bridge;

        public static bool InitializePlugins() {
            if (!_impl.InitializePlugins()) {
                return false;
            }
            _bridge = MessageBridge.Instance;
            Thread.Initialize();
            Platform.RegisterHandlers(_bridge);
            return true;
        }<commit_msg>Fix incorrect plugin types.<commit_after>using System;
using System.Collections.Generic;

using EE.Internal;

namespace EE {
    public enum Plugin {
        Adjust,
        AdMob,
        AppLovin,
        AppsFlyer,
        Facebook,
        FacebookAds,
        IronSource,
        Play,
        UnityAds,
        Vungle,
    }

    public static class PluginManager {
        private static readonly Dictionary<Plugin, string> _pluginNames = new Dictionary<Plugin, string> {
            [Plugin.Adjust] = "Adjust",
            [Plugin.AdMob] = "AdMob",
            [Plugin.AppLovin] = "AppLovin",
            [Plugin.AppsFlyer] = "AppsFlyer",
            [Plugin.Facebook] = "Facebook",
            [Plugin.FacebookAds] = "FacebookAds",
            [Plugin.IronSource] = "IronSource",
            [Plugin.Play] = "Play",
            [Plugin.UnityAds] = "UnityAds",
            [Plugin.Vungle] = "Vungle"
        };

        private static readonly Dictionary<Type, (Plugin, Func<IMessageBridge, IPlugin>)> _pluginTypes
            = new Dictionary<Type, (Plugin, Func<IMessageBridge, IPlugin>)> {
                [typeof(IAdjust)] = (Plugin.Adjust, bridge => new Adjust(bridge)),
                [typeof(IAdMob)] = (Plugin.AdMob, bridge => new AdMob(bridge)),
                [typeof(IFacebookAds)] = (Plugin.FacebookAds, bridge => new FacebookAds(bridge)),
                [typeof(IIronSource)] = (Plugin.IronSource, bridge => new IronSource(bridge)),
                [typeof(IUnityAds)] = (Plugin.UnityAds, bridge => new UnityAds(bridge)),
            };

        private static readonly Dictionary<Plugin, IPlugin> _plugins = new Dictionary<Plugin, IPlugin>();

        private static readonly IPluginManagerImpl _impl =
#if UNITY_EDITOR
            new PluginManagerImplEditor();
#elif UNITY_ANDROID
            new PluginManagerImplAndroid();
#elif UNITY_IOS
            new PluginManagerImplIos();
#endif

        private static IMessageBridge _bridge;

        public static bool InitializePlugins() {
            if (!_impl.InitializePlugins()) {
                return false;
            }
            _bridge = MessageBridge.Instance;
            Thread.Initialize();
            Platform.RegisterHandlers(_bridge);
            return true;
        }
{'fraction_non_alphanumeric': 0.10830564784053157, 'fraction_numerical': 0.0, 'mean_word_length': 2.182522903453136, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 29, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 17, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3813648', 'n_tokens_mistral': 1300, 'n_tokens_neox': 1216, 'n_words': 277}