<commit_before>﻿using System;
using System.Collections.Generic;
using System.Globalization;
using System.Runtime.CompilerServices;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Input;
using NuGetPackageExplorer.Types;
using PackageExplorer.Properties;
using PackageExplorerViewModel;

namespace PackageExplorer
{
    /// <summary>
    /// Interaction logic for PackageViewer.xaml
    /// </summary>
    public partial class PackageViewer : UserControl
    {
        private const string PackageFileDataFormat = "PackageFileContent";

        private static readonly Dictionary<string, string[]> _frameworkFolders =
            new Dictionary<string, string[]>
            {
                {
                    "Portable Library",
                    new string[0]
                },
                {
                    "Native",
                    new []
                    {
                        "(no version)", "native"
                    }
                },   
                {
                    "ASP.NET 5",
                    new []
                    {
                        "dnxcore", "dnxcore50", 
                        "dotnet5.4","dotnet5.4"
                    }
                },

                {
                    "Mono",
                    new[]
                    {
                        "Android", "MonoAndroid", 
                        "Mono", "Mono", 
                        "iOS", "MonoTouch", 
                        "OSX", "MonoMac"
                    }
                },
                {
                    "Xamarin",
                    new[]
                    {
                        "Mac", "Xamarin.Mac", 
                        "iOS", "Xamarin.iOS10", 
                    }
                },
                {
                    "Windows Phone (Windows Runtime)",
                    new []
                    {
                        "(no version)", "wpa", 
                        "v8.1", "wpa81"
                    }
                },
                  {
                    "Windows Phone (appx)", 
                    new[] {
                        "v8.1", "wpa81", 
                    }
                },
                {
                    "Windows Phone (Silverlight)", 
                    new[] {
                        "v7.0", "sl3-wp", 
                        "v7.1 (Mango)", "sl4-wp71", 
                        "v8.0", "wp8", 
                        "v8.1", "wp81"}
                },

                {
                    "Silverlight",
                    new[]
                    {
                        "(no version)", "sl", 
                        "v2.0", "sl2", 
                        "v3.0", "sl30", 
                        "v4.0", "sl40", 
                        "v5.0", "sl50"
                    }
                },
                {
                    "Windows Store", 
                    new[] {
                        "(no version)", "netcore", 
                        "Windows 8", "netcore45", 
                        "Windows 8.1", "netcore451", 
                        "Windows 10", "uap10.0", 
                    }
                },
                {
                    ".NET Client profile",
                    new []
                    {
                        "v3.5 client", "net35-client", 
                        "v4.0 client", "net40-client"
                    }
                },

                {
                    
                    ".NET Platform Standard",
                    new []
                    {
                        ".NET Platform Standard 1.0","netstandard1.0",
                        ".NET Platform Standard 1.1","netstandard1.1",
                        ".NET Platform Standard 1.2","netstandard1.2",
                        ".NET Platform Standard 1.3","netstandard1.3",
                        ".NET Platform Standard 1.4","netstandard1.4",
                    }

                }
                ,


                {
                    ".NET",
                    new[]
                    {
                        "(no version)", "net", 
                        "dotnet", "dotnet", 
                        "v1.0", "net10", 
                        "v1.1", "net11",
                        "v2.0", "net20", 
                        "v3.0", "net30", 
                        "v3.5", "net35", 
                        "v4.0", "net40", 
                        "v4.5", "net45", 
                        "v4.5.1", "net451",
                        "v4.5.2", "net452",
                        "v4.6", "net46",
                        "v4.6.1", "net461",
                    }
                }
            };

        private double _analysisPaneWidth = 250; // default width for package analysis pane
        private TreeViewItem _dragItem;
        private System.Windows.Point _dragPoint;
        private bool _isDragging, _isPressing;

        public PackageViewer(IUIServices messageBoxServices, IPackageChooser packageChooser)<commit_msg>Added new monikers for .NET<commit_after>﻿using System;
using System.Collections.Generic;
using System.Globalization;
using System.Runtime.CompilerServices;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Input;
using NuGetPackageExplorer.Types;
using PackageExplorer.Properties;
using PackageExplorerViewModel;

namespace PackageExplorer
{
    /// <summary>
    /// Interaction logic for PackageViewer.xaml
    /// </summary>
    public partial class PackageViewer : UserControl
    {
        private const string PackageFileDataFormat = "PackageFileContent";

        private static readonly Dictionary<string, string[]> _frameworkFolders =
            new Dictionary<string, string[]>
            {
                {
                    "Portable Library",
                    new string[0]
                },
                {
                    "Native",
                    new []
                    {
                        "(no version)", "native"
                    }
                },   
                {
                    "ASP.NET 5",
                    new []
                    {
                        "dnxcore", "dnxcore50", 
                        "dotnet5.4","dotnet5.4"
                    }
                },

                {
                    "Mono",
                    new[]
                    {
                        "Android", "MonoAndroid", 
                        "Mono", "Mono", 
                        "iOS", "MonoTouch", 
                        "OSX", "MonoMac"
                    }
                },
                {
                    "Xamarin",
                    new[]
                    {
                        "Mac", "Xamarin.Mac", 
                        "iOS", "Xamarin.iOS10", 
                    }
                },
                {
                    "Windows Phone (Windows Runtime)",
                    new []
                    {
                        "(no version)", "wpa", 
                        "v8.1", "wpa81"
                    }
                },
                  {
                    "Windows Phone (appx)", 
                    new[] {
                        "v8.1", "wpa81", 
                    }
                },
                {
                    "Windows Phone (Silverlight)", 
                    new[] {
                        "v7.0", "sl3-wp", 
                        "v7.1 (Mango)", "sl4-wp71", 
                        "v8.0", "wp8", 
                        "v8.1", "wp81"}
                },

                {
                    "Silverlight",
                    new[]
                    {
                        "(no version)", "sl", 
                        "v2.0", "sl2", 
                        "v3.0", "sl30", 
                        "v4.0", "sl40", 
                        "v5.0", "sl50"
                    }
                },
                {
                    "Windows Store", 
                    new[] {
                        "(no version)", "netcore", 
                        "Windows 8", "netcore45", 
                        "Windows 8.1", "netcore451", 
                        "Windows 10", "uap10.0", 
                    }
                },
                {
                    ".NET Client profile",
                    new []
                    {
                        "v3.5 client", "net35-client", 
                        "v4.0 client", "net40-client"
                    }
                },

                {
                    
                    ".NET Platform Standard",
                    new []
                    {
                        ".NET Platform Standard 1.0","netstandard1.0",
                        ".NET Platform Standard 1.1","netstandard1.1",
                        ".NET Platform Standard 1.2","netstandard1.2",
                        ".NET Platform Standard 1.3","netstandard1.3",
                        ".NET Platform Standard 1.4","netstandard1.4",
                        ".NET Platform Standard 1.5","netstandard1.5",
                        ".NET Platform Standard 1.6","netstandard1.6",
                    }

                }
                ,


                {
                    ".NET",
                    new[]
                    {
                        "(no version)", "net", 
                        "dotnet", "dotnet", 
                        "v1.0", "net10", 
                        "v1.1", "net11",
                        "v2.0", "net20", 
                        "v3.0", "net30", 
                        "v3.5", "net35", 
                        "v4.0", "net40", 
                        "v4.5", "net45", 
                        "v4.5.1", "net451",
                        "v4.5.2", "net452",
                        "v4.6", "net46",
                        "v4.6.1", "net461",
                        "v4.6.2", "net462",
                    }
                }
            };

        private double _analysisPaneWidth = 250; // default width for package analysis pane
        private TreeViewItem _dragItem;
        private System.Windows.Point _dragPoint;
        private bool _isDragging, _isPressing;

        public PackageViewer(IUIServices messageBoxServices, IPackageChooser packageChooser)
{'fraction_non_alphanumeric': 0.10719118499903345, 'fraction_numerical': 0.02880340228107481, 'mean_word_length': 0.7051746868820039, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '2475708', 'n_tokens_mistral': 2725, 'n_tokens_neox': 2295, 'n_words': 463}