<commit_before>﻿using System;
using System.Diagnostics;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
using System.Windows.Media;

using AlekseyNagovitsyn.BuildVision.Core.Logging;
using AlekseyNagovitsyn.BuildVision.Helpers;
using AlekseyNagovitsyn.BuildVision.Tool.Building;
using AlekseyNagovitsyn.BuildVision.Tool.Views.Extensions;

using ProjectItem = AlekseyNagovitsyn.BuildVision.Tool.Models.ProjectItem;
using UIElement = System.Windows.UIElement;

namespace AlekseyNagovitsyn.BuildVision.Tool.Views
{
    public partial class ProjectItemDetailsView : UserControl
    {
        private ScrollViewer _errorsGridScrollViewer;

        public static readonly DependencyProperty ProjectItemProperty = 
            DependencyProperty.Register("ProjectItem", typeof(ProjectItem), typeof(ProjectItemDetailsView));

        public ProjectItem ProjectItem
        {
            get { return (ProjectItem)GetValue(ProjectItemProperty); }
            set { SetValue(ProjectItemProperty, value); }
        }

        public ProjectItemDetailsView()
        {
            InitializeComponent();
        }

        private void ProjectItemDetailsViewOnLoaded(object sender, RoutedEventArgs e)
        {
            _errorsGridScrollViewer = VisualHelper.FindVisualChild<ScrollViewer>(ErrorsGrid);
            Debug.Assert(_errorsGridScrollViewer != null);
        }

        private void ErrorsGridRowOnMouseLeftButtonUp(object sender, MouseButtonEventArgs e)
        {
            try
            {
                var row = (DataGridRow)sender;
                var errorItem = (ErrorItem)row.Item;
                errorItem.Project.NavigateToErrorItem(errorItem);<commit_msg>Removed unused namespaces<commit_after>﻿using System;
using System.Diagnostics;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
using System.Windows.Media;

using AlekseyNagovitsyn.BuildVision.Core.Logging;
using AlekseyNagovitsyn.BuildVision.Helpers;
using AlekseyNagovitsyn.BuildVision.Tool.Building;
using AlekseyNagovitsyn.BuildVision.Tool.Views.Extensions;

using ProjectItem = AlekseyNagovitsyn.BuildVision.Tool.Models.ProjectItem;
using UIElement = System.Windows.UIElement;

namespace AlekseyNagovitsyn.BuildVision.Tool.Views
{
    public partial class ProjectItemDetailsView : UserControl
    {
        private ScrollViewer _errorsGridScrollViewer;

        public static readonly DependencyProperty ProjectItemProperty = 
            DependencyProperty.Register("ProjectItem", typeof(ProjectItem), typeof(ProjectItemDetailsView));

        public ProjectItem ProjectItem
        {
            get { return (ProjectItem)GetValue(ProjectItemProperty); }
            set { SetValue(ProjectItemProperty, value); }
        }

        public ProjectItemDetailsView()
        {
            InitializeComponent();
        }

        private void ProjectItemDetailsViewOnLoaded(object sender, RoutedEventArgs e)
        {
            _errorsGridScrollViewer = VisualHelper.FindVisualChild<ScrollViewer>(ErrorsGrid);
            Debug.Assert(_errorsGridScrollViewer != null);
        }

        private void ErrorsGridRowOnMouseLeftButtonUp(object sender, MouseButtonEventArgs e)
        {
            try
            {
                var row = (DataGridRow)sender;
                var errorItem = (ErrorItem)row.Item;
                errorItem.GoToError();
{'fraction_non_alphanumeric': 0.07212246099499559, 'fraction_numerical': 0.0, 'mean_word_length': 3.22636815920398, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6815635', 'n_tokens_mistral': 918, 'n_tokens_neox': 893, 'n_words': 161}