<commit_before>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using BSU.Sync.FileTypes;
using System.IO;
using System.Net;
using System.Threading;
using NLog;

namespace BSU.Sync
{
    public struct ModFolderHash
    {
        internal ModFolder ModName;
        internal List<HashType> Hashes;
        internal ModFolderHash(ModFolder modName, List<HashType> hashes)
        {
            ModName = modName;
            Hashes = hashes;
        }
    }

    public class Server
    {

        public delegate void ProgressUpdateEventHandler(object sender, ProgressUpdateEventArguments e);
        public delegate void FetchProgressUpdateEventHandler(object sender, ProgressUpdateEventArguments e);

        public event ProgressUpdateEventHandler ProgressUpdateEvent;
        public event FetchProgressUpdateEventHandler FetchProgessUpdateEvent;

        protected virtual void OnProgressUpdateEvent(ProgressUpdateEventArguments e)
        {
            ProgressUpdateEvent?.Invoke(this, e);
        }

        protected virtual void OnFetchProgressUpdateEvent(ProgressUpdateEventArguments e)
        {
            FetchProgessUpdateEvent?.Invoke(this, e);
        }<commit_msg>Make ModFolderHash struct immutable<commit_after>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using BSU.Sync.FileTypes;
using System.IO;
using System.Net;
using System.Threading;
using NLog;

namespace BSU.Sync
{
    public struct ModFolderHash
    {
        internal readonly ModFolder ModName;
        internal readonly List<HashType> Hashes;
        internal ModFolderHash(ModFolder modName, List<HashType> hashes)
        {
            ModName = modName;
            Hashes = hashes;
        }
    }

    public class Server
    {

        public delegate void ProgressUpdateEventHandler(object sender, ProgressUpdateEventArguments e);
        public delegate void FetchProgressUpdateEventHandler(object sender, ProgressUpdateEventArguments e);

        public event ProgressUpdateEventHandler ProgressUpdateEvent;
        public event FetchProgressUpdateEventHandler FetchProgessUpdateEvent;

        protected virtual void OnProgressUpdateEvent(ProgressUpdateEventArguments e)
        {
            ProgressUpdateEvent?.Invoke(this, e);
        }

        protected virtual void OnFetchProgressUpdateEvent(ProgressUpdateEventArguments e)
        {
            FetchProgessUpdateEvent?.Invoke(this, e);
        }
{'fraction_non_alphanumeric': 0.0584, 'fraction_numerical': 0.0, 'mean_word_length': 3.196308724832215, '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': '1000287', 'n_tokens_mistral': 613, 'n_tokens_neox': 613, 'n_words': 159}