<commit_before>﻿using System;
using System.Diagnostics;
using System.IO;
using System.IO.Compression;
using System.Linq;
using System.Net;
using System.Threading;
using System.Threading.Tasks;
using ConanExilesUpdater.Models;
using ConanExilesUpdater.Models.Messages;
using Newtonsoft.Json;
using Octokit;
using Serilog;

namespace ConanExilesUpdater.Services
{
    public class Updater
    {
        #region Private Properties

        private ManualResetEvent _quitEvent;
        private Settings _settings;
        private Messages _messages;
        private TwitchService _twitchClient;
        private DiscordService _discordClient;
        private GeneralServices _general;
        private bool _runUpdates = true;
        private const double _version = 1.92;
        #endregion

        #region Constructor

        public Updater(string StartupPath)
        {
            #region Load Settings & Messages

            if (File.Exists(Path.Combine(StartupPath, "config.json")))
            {
                _settings = JsonConvert.DeserializeObject<Settings>(File.ReadAllText(Path.Combine(StartupPath, "config.json")));
                Log.Information("Loaded settings from file: {settings}", "config.json");
            }
            else
            {
                Utils.SaveSettings(StartupPath, new Settings());
                Log.Information("No settings existed. Created new settings file: {settings}", "config.json");
            }
<commit_msg>Version++<commit_after>﻿using System;
using System.Diagnostics;
using System.IO;
using System.IO.Compression;
using System.Linq;
using System.Net;
using System.Threading;
using System.Threading.Tasks;
using ConanExilesUpdater.Models;
using ConanExilesUpdater.Models.Messages;
using Newtonsoft.Json;
using Octokit;
using Serilog;

namespace ConanExilesUpdater.Services
{
    public class Updater
    {
        #region Private Properties

        private ManualResetEvent _quitEvent;
        private Settings _settings;
        private Messages _messages;
        private TwitchService _twitchClient;
        private DiscordService _discordClient;
        private GeneralServices _general;
        private bool _runUpdates = true;
        private const double _version = 1.93;
        #endregion

        #region Constructor

        public Updater(string StartupPath)
        {
            #region Load Settings & Messages

            if (File.Exists(Path.Combine(StartupPath, "config.json")))
            {
                _settings = JsonConvert.DeserializeObject<Settings>(File.ReadAllText(Path.Combine(StartupPath, "config.json")));
                Log.Information("Loaded settings from file: {settings}", "config.json");
            }
            else
            {
                Utils.SaveSettings(StartupPath, new Settings());
                Log.Information("No settings existed. Created new settings file: {settings}", "config.json");
            }

{'fraction_non_alphanumeric': 0.08207934336525308, 'fraction_numerical': 0.002051983584131327, 'mean_word_length': 2.651685393258427, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5985801', 'n_tokens_mistral': 768, 'n_tokens_neox': 763, 'n_words': 192}