<commit_before>﻿using System;
using System.Net.Http;
using FFImageLoading.Helpers;
using FFImageLoading.Cache;
using FFImageLoading.Work;

namespace FFImageLoading.Config
{
    public class Configuration
    {
        public Configuration(int maxCacheSize = 0, HttpClient httpClient = null, IWorkScheduler scheduler = null, IMiniLogger logger = null,
			IDiskCache diskCache = null, IDownloadCache downloadCache = null, bool loadWithTransparencyChannel = false, bool fadeAnimationEnabled=false)
        {
            MaxCacheSize = maxCacheSize;
            HttpClient = httpClient;
            Scheduler = scheduler;
            Logger = logger;
            DiskCache = diskCache;
            DownloadCache = downloadCache;
			LoadWithTransparencyChannel = loadWithTransparencyChannel;
			FadeAnimationEnabled = fadeAnimationEnabled;
        }

        /// <summary>
        /// Gets the maximum size of the cache in bytes.
        /// </summary>
        /// <value>The maximum size of the cache in bytes.</value>
        public int MaxCacheSize { get; private set; }

        /// <summary>
        /// Gets the HttpClient used for web requests.
        /// </summary>
        /// <value>The HttpClient used for web requests.</value>
        public HttpClient HttpClient { get; private set; }

        /// <summary>
        /// Gets the scheduler used to organize/schedule image loading tasks.<commit_msg>Default FadeAnimationEnabled set to true (compatibility)<commit_after>﻿using System;
using System.Net.Http;
using FFImageLoading.Helpers;
using FFImageLoading.Cache;
using FFImageLoading.Work;

namespace FFImageLoading.Config
{
    public class Configuration
    {
        public Configuration(int maxCacheSize = 0, HttpClient httpClient = null, IWorkScheduler scheduler = null, IMiniLogger logger = null,
			IDiskCache diskCache = null, IDownloadCache downloadCache = null, bool loadWithTransparencyChannel = false, bool fadeAnimationEnabled=true)
        {
            MaxCacheSize = maxCacheSize;
            HttpClient = httpClient;
            Scheduler = scheduler;
            Logger = logger;
            DiskCache = diskCache;
            DownloadCache = downloadCache;
			LoadWithTransparencyChannel = loadWithTransparencyChannel;
			FadeAnimationEnabled = fadeAnimationEnabled;
        }

        /// <summary>
        /// Gets the maximum size of the cache in bytes.
        /// </summary>
        /// <value>The maximum size of the cache in bytes.</value>
        public int MaxCacheSize { get; private set; }

        /// <summary>
        /// Gets the HttpClient used for web requests.
        /// </summary>
        /// <value>The HttpClient used for web requests.</value>
        public HttpClient HttpClient { get; private set; }

        /// <summary>
        /// Gets the scheduler used to organize/schedule image loading tasks.
{'fraction_non_alphanumeric': 0.08339173090399439, 'fraction_numerical': 0.000700770847932726, 'mean_word_length': 2.5246913580246915, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3621837', 'n_tokens_mistral': 727, 'n_tokens_neox': 697, 'n_words': 226}