<commit_before>﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;
using Newtonsoft.Json;

public class IceCreamConfirm : ComponentSolver
{
	public IceCreamConfirm(BombCommander bombCommander, BombComponent bombComponent) :
	base(bombCommander, bombComponent)
	{
		_component = bombComponent.GetComponent(_componentType);
		modInfo = ComponentSolverFactory.GetModuleInfo(GetModuleType());
		KMModSettings modSettings = bombComponent.GetComponent<KMModSettings>();
		settings = JsonConvert.DeserializeObject<Settings>(modSettings.Settings);<commit_msg>Add safety to ice cream hours.<commit_after>﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;
using Newtonsoft.Json;

public class IceCreamConfirm : ComponentSolver
{
	public IceCreamConfirm(BombCommander bombCommander, BombComponent bombComponent) :
	base(bombCommander, bombComponent)
	{
		_component = bombComponent.GetComponent(_componentType);
		modInfo = ComponentSolverFactory.GetModuleInfo(GetModuleType());
		KMModSettings modSettings = bombComponent.GetComponent<KMModSettings>();
		try
		{
			settings = JsonConvert.DeserializeObject<Settings>(modSettings.Settings);
		}
		catch (Exception ex)
		{
			DebugHelper.LogException(ex, "Could not deserialize ice cream settings:");
			TwitchPlaySettings.data.ShowHours = false;
			TwitchPlaySettings.WriteDataToFile();
		}
{'fraction_non_alphanumeric': 0.08854860186418109, 'fraction_numerical': 0.0, 'mean_word_length': 7.258241758241758, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '2894061', 'n_tokens_mistral': 440, 'n_tokens_neox': 416, 'n_words': 86}