<commit_before>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using PropertyChanged;
using HostmanUI.ViewModels;

namespace HostmanUI
{
  /// <summary>
  /// Interaction logic for MainWindow.xaml
  /// </summary>
  [ImplementPropertyChanged]
  public partial class MainWindow : Window
  {
    public MainWindow()
    {
      InitializeComponent();
    }

    private void ProfileListDoubleClicked(object sender, MouseButtonEventArgs e)
    {
        if (this.DataContext is MainWinViewModel)
        {
            var mainWindowVM = (MainWinViewModel)this.DataContext;

            if (mainWindowVM.EditSelectedProfileCommand.CanExecute(null))
            {
                mainWindowVM.EditSelectedProfileCommand.Execute(null);
            }

        }

    }

    private void CloseButtonClicked(object sender, RoutedEventArgs e)
    {
        App.Current.Shutdown();
    }

    private void TitleBarLeftButtonDown(object sender, MouseButtonEventArgs e)
    {
        this.DragMove();
    }
  }
}<commit_msg>Quick correction of main window xaml.<commit_after>﻿using HostmanUI.ViewModels;
using PropertyChanged;
using System.Windows;
using System.Windows.Input;

namespace HostmanUI
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    [ImplementPropertyChanged]
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
        }

        private void ProfileListDoubleClicked(object sender, MouseButtonEventArgs e)
        {
            if (this.DataContext is MainWinViewModel)
            {
                var mainWindowVM = (MainWinViewModel)this.DataContext;

                if (mainWindowVM.EditSelectedProfileCommand.CanExecute(null))
                {
                    mainWindowVM.EditSelectedProfileCommand.Execute(null);
                }

            }

        }

        private void CloseButtonClicked(object sender, RoutedEventArgs e)
        {
            App.Current.Shutdown();
        }

        private void TitleBarLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            this.DragMove();
        }
    }
}
{'fraction_non_alphanumeric': 0.08407798537774168, 'fraction_numerical': 0.0, 'mean_word_length': 2.4592696629213484, 'pattern_counts': {'":': 0, '<': 7, '<?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': '3280883', 'n_tokens_mistral': 658, 'n_tokens_neox': 634, 'n_words': 137}