<commit_before>﻿using AssemblyPropertiesViewer.Analyzers.BasicAnalyzers.Base;
using AssemblyPropertiesViewer.Analyzers.Interfaces;
using AssemblyPropertiesViewer.Analyzers.Models;
using System.Reflection;
using System.Runtime.Versioning;

namespace AssemblyPropertiesViewer.Analyzers.BasicAnalyzers
{
    public class AssemblyFrameworkAnalyzer : AnalyzerBase, IAssemblyAnalyzer
    {
        public string Name => "Target framework analyzer";

        public AnalysisResult Analyze(Assembly assembly)
        {
            var result = new AnalysisResult("Target framework");

            var assemblyTargetFramework = GetAssemblyAttributeConstructorArgumentValueOrDefault<TargetFrameworkAttribute, string>(assembly, 0);
            result.Value = assemblyTargetFramework;

            return result;
        }
    }
}<commit_msg>Value from Assembly.ImageRuntimeVersion attribute added to AssemblyFrameworkAnalyzer results.<commit_after>﻿using AssemblyPropertiesViewer.Analyzers.BasicAnalyzers.Base;
using AssemblyPropertiesViewer.Analyzers.Interfaces;
using AssemblyPropertiesViewer.Analyzers.Models;
using System.Reflection;
using System.Runtime.Versioning;

namespace AssemblyPropertiesViewer.Analyzers.BasicAnalyzers
{
    public class AssemblyFrameworkAnalyzer : AnalyzerBase, IAssemblyAnalyzer
    {
        public string Name => "Target framework analyzer";

        public AnalysisResult Analyze(Assembly assembly)
        {
            var result = new AnalysisResult("Target framework");
            var assemblyTargetFramework = GetAssemblyAttributeConstructorArgumentValueOrDefault<TargetFrameworkAttribute, string>(assembly, 0);
            result.Value = $"{assemblyTargetFramework} (image runtime version: {assembly.ImageRuntimeVersion})";

            return result;
        }
    }
}
{'fraction_non_alphanumeric': 0.06722222222222222, 'fraction_numerical': 0.0011111111111111111, 'mean_word_length': 4.392215568862276, 'pattern_counts': {'":': 0, '<': 5, '<?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': '2897411', 'n_tokens_mistral': 428, 'n_tokens_neox': 413, 'n_words': 93}