<commit_before>using AsmSpy.Core.Native;
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Reflection;

namespace AsmSpy.Core
{
    public class DependencyAnalyzer : IDependencyAnalyzer
    {
        public virtual IEnumerable<FileInfo> Files { get; }

        protected virtual AppDomain AppDomainWithBindingRedirects { get; }

        public bool SkipSystem { get; set; }

        public string ReferencedStartsWith { get; set; }

        public DependencyAnalyzer(IEnumerable<FileInfo> files, AppDomain appDomainWithBindingRedirects = null)
        {
            Files = files;
            AppDomainWithBindingRedirects = appDomainWithBindingRedirects;
        }

        private AssemblyReferenceInfo GetAssemblyReferenceInfo(IDictionary<string, AssemblyReferenceInfo> assemblies, AssemblyName assemblyName)
        {
            if (SkipSystem && AssemblyInformationProvider.IsSystemAssembly(assemblyName))
            {
                return null;
            }

            if (!string.IsNullOrEmpty(ReferencedStartsWith) && !assemblyName.FullName.StartsWith(ReferencedStartsWith, StringComparison.OrdinalIgnoreCase))
            {
                return null;
            }

            var assemblyFullName = AppDomainWithBindingRedirects != null ? AppDomainWithBindingRedirects.ApplyPolicy(assemblyName.FullName) : assemblyName.FullName;

            AssemblyReferenceInfo assemblyReferenceInfo;
            if (assemblies.TryGetValue(assemblyFullName, out assemblyReferenceInfo))
            {<commit_msg>Inline declaration.<commit_after>using AsmSpy.Core.Native;
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Reflection;

namespace AsmSpy.Core
{
    public class DependencyAnalyzer : IDependencyAnalyzer
    {
        public virtual IEnumerable<FileInfo> Files { get; }

        protected virtual AppDomain AppDomainWithBindingRedirects { get; }

        public bool SkipSystem { get; set; }

        public string ReferencedStartsWith { get; set; }

        public DependencyAnalyzer(IEnumerable<FileInfo> files, AppDomain appDomainWithBindingRedirects = null)
        {
            Files = files;
            AppDomainWithBindingRedirects = appDomainWithBindingRedirects;
        }

        private AssemblyReferenceInfo GetAssemblyReferenceInfo(IDictionary<string, AssemblyReferenceInfo> assemblies, AssemblyName assemblyName)
        {
            if (SkipSystem && AssemblyInformationProvider.IsSystemAssembly(assemblyName))
            {
                return null;
            }

            if (!string.IsNullOrEmpty(ReferencedStartsWith) && !assemblyName.FullName.StartsWith(ReferencedStartsWith, StringComparison.OrdinalIgnoreCase))
            {
                return null;
            }

            var assemblyFullName = AppDomainWithBindingRedirects != null ? AppDomainWithBindingRedirects.ApplyPolicy(assemblyName.FullName) : assemblyName.FullName;

            if (assemblies.TryGetValue(assemblyFullName, out AssemblyReferenceInfo assemblyReferenceInfo))
            {
{'fraction_non_alphanumeric': 0.0659270998415214, 'fraction_numerical': 0.0, 'mean_word_length': 3.0987012987012985, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '798105', 'n_tokens_mistral': 782, 'n_tokens_neox': 760, 'n_words': 160}