<commit_before>﻿using System;
using Steamworks;
using SDG.Unturned;
using System.Collections.Generic;
using System.IO;

namespace Loadout
{
	public class JsonManager
	{
		public static Dictionary<CSteamID, LoadoutList> Deseralize()
		{
			try
			{
				if (!ReadWrite.fileExists(Rocket.Core.Environment.PluginDirectory + "/loadout.json", false))
					return null;



				return ReadWrite.deserializeJSON<Dictionary<CSteamID, LoadoutList>>(Rocket.Core.Environment.PluginDirectory + "loadout.json", false);


			}
			catch { return null; }
		}

		public static void Seralize(Dictionary<CSteamID, LoadoutList> loadouts)
		{
			try
			{
				if (!ReadWrite.fileExists(Rocket.Core.Environment.PluginDirectory + "/loadout.json", false))
					File.AppendText(Rocket.Core.Environment.PluginDirectory + "/loadout.json");


				ReadWrite.serializeJSON(Rocket.Core.Environment.PluginDirectory + "/loadout.json", false, loadouts);
			}
			catch { }'
		}
	}
}
<commit_msg>Fixed stupid af '<commit_after>﻿using System;
using Steamworks;
using SDG.Unturned;
using System.Collections.Generic;
using System.IO;

namespace Loadout
{
	public class JsonManager
	{
		public static Dictionary<CSteamID, LoadoutList> Deseralize()
		{
			try
			{
				if (!ReadWrite.fileExists(Rocket.Core.Environment.PluginDirectory + "/loadout.json", false))
					return null;



				return ReadWrite.deserializeJSON<Dictionary<CSteamID, LoadoutList>>(Rocket.Core.Environment.PluginDirectory + "loadout.json", false);


			}
			catch { return null; }
		}

		public static void Seralize(Dictionary<CSteamID, LoadoutList> loadouts)
		{
			try
			{
				if (!ReadWrite.fileExists(Rocket.Core.Environment.PluginDirectory + "/loadout.json", false))
					File.AppendText(Rocket.Core.Environment.PluginDirectory + "/loadout.json");


				ReadWrite.serializeJSON(Rocket.Core.Environment.PluginDirectory + "/loadout.json", false, loadouts);
			}
			catch { }
		}
	}
}

{'fraction_non_alphanumeric': 0.11997913406364111, 'fraction_numerical': 0.0, 'mean_word_length': 4.240437158469946, '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': '7340221', 'n_tokens_mistral': 698, 'n_tokens_neox': 601, 'n_words': 109}