<commit_before>﻿<mahapps:MetroWindow x:Class="Pickles.UserInterface.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="clr-namespace:Pickles.UserInterface"
        xmlns:mahapps="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
        Title="Pickles" Height="450" Width="800" Loaded="MetroWindow_Loaded" Closed="MetroWindow_Closed">
    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Colours.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Fonts.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/Green.xaml" />
        <ResourceDictionary>
          <Color x:Key="AccentDarkColor">#CC2F8200</Color>

          <BooleanToVisibilityConverter x:Key="booleanToVisibilityConverter" />

        </ResourceDictionary>

          <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/BaseLight.xaml" />
        <ResourceDictionary Source="CoolCheckBox.xaml" />
      </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Window.Resources>
    <Window.DataContext>
        <local:MainWindowViewModel />
    </Window.DataContext>
  <mahapps:MetroWindow.WindowCommands>
    <mahapps:WindowCommands>
      <Button Content="open output folder" Command="{Binding Path=OpenOutputDirectory}" />
    </mahapps:WindowCommands>
  </mahapps:MetroWindow.WindowCommands>
  <Grid Margin="0,0,0,20">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition />
            <RowDefinition />
            <RowDefinition />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
      <ColumnDefinition />
      <ColumnDefinition Width="Auto"  />
      <ColumnDefinition Width="Auto" />
      <ColumnDefinition Width="130" />
    </Grid.ColumnDefinitions>

        <Label Content="Feature Directory" Grid.Column="0" Grid.Row="0" />
        <TextBox Text="{Binding FeatureFolder}" Grid.Column="1" Grid.Row="0" mahapps:TextboxHelper.Watermark="Browse To The Location Of Your Feature Files" />
        <Button Command="{Binding BrowseForFeatureFolder}" Content="Browse ..." Grid.Row="0" Grid.Column="2" />
        <CheckBox Template="{StaticResource ResourceKey=myCheckBox}" Grid.Column="3" Grid.Row="0" IsChecked="{Binding Path=IsFeatureDirectoryValid}"/>

    <Label Content="Output Directory" Grid.Column="0" Grid.Row="1" />
        <TextBox Text="{Binding OutputFolder}" Grid.Column="1" Grid.Row="1" mahapps:TextboxHelper.Watermark="Browse To The Location Of The Living Documentation" />
        <Button Command="{Binding BrowseForOutputFolder}" Content="Browse ..." Grid.Column="2" Grid.Row="1" />
    <CheckBox Template="{StaticResource ResourceKey=myCheckBox}" Grid.Column="3" Grid.Row="1" IsChecked="{Binding Path=IsOutputDirectoryValid}"/>


    <ListBox ItemsSource="{Binding DocumentationFormatValues}" Grid.Column="4" Grid.Row="0" Grid.ColumnSpan="1" Grid.RowSpan="11">
            <ListBox.ItemsPanel>
                <ItemsPanelTemplate>
            <StackPanel Orientation="Vertical" HorizontalAlignment="Stretch" />
                </ItemsPanelTemplate>
            </ListBox.ItemsPanel>
            <ListBox.ItemTemplate>
                <DataTemplate>
          <mahapps:ToggleSwitch Header="{Binding Path=Item}" IsChecked="{Binding Path=IsSelected, Mode=TwoWay}" Width="120" />
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>

        <Label Content="Project Name" Grid.Column="0" Grid.Row="2" />
        <TextBox Text="{Binding ProjectName}" Grid.Column="1" Grid.Row="2" Grid.ColumnSpan="2" mahapps:TextboxHelper.Watermark="Enter The Name Of Your Project Here" />
        <CheckBox Template="{StaticResource ResourceKey=myCheckBox}" Grid.Column="3" Grid.Row="2" IsChecked="{Binding Path=IsProjectNameValid}"/>

    <Label Content="Project Version" Grid.Column="0" Grid.Row="3" />
        <TextBox Text="{Binding ProjectVersion}" Grid.Column="1" Grid.Row="3" Grid.ColumnSpan="2" mahapps:TextboxHelper.Watermark="Enter The Version Of Your Project Here" />
    <CheckBox Template="{StaticResource ResourceKey=myCheckBox}" Grid.Column="3" Grid.Row="3" IsChecked="{Binding Path=IsProjectVersionValid}"/>

    <Label Content="Include Test Results" Grid.Column="0" Grid.Row="5" Visibility="Hidden" />
    <mahapps:ToggleSwitch Header="Include Test Results" Grid.Row="4" Grid.Column="1" Grid.ColumnSpan="2" IsChecked="{Binding Path=IncludeTests, Mode=TwoWay}" />

      <Label Content="Test Results File" Grid.Column="0" Grid.Row="5" />
        <TextBox Text="{Binding TestResultsFile}" Grid.Column="1" Grid.Row="5" IsEnabled="{Binding Path=IncludeTests}" mahapps:TextboxHelper.Watermark="Browse To The Location Of Your Test Results File" />
      <Button Command="{Binding BrowseForTestResultsFile}" Content="Browse" Grid.Row="5" Grid.Column="2" IsEnabled="{Binding Path=IncludeTests}" />
    <CheckBox Template="{StaticResource ResourceKey=myCheckBox}" Grid.Column="3" Grid.Row="5" IsChecked="{Binding Path=IsTestResultsFileValid}" Visibility="{Binding Path=IncludeTests, Converter={StaticResource ResourceKey=booleanToVisibilityConverter}}"/>

    <Label Content="Test Results Format" Grid.Column="0"  Grid.Row="6"/>
    <ListBox ItemsSource="{Binding TestResultsFormatValues}" Grid.Column="1" Grid.Row="6" Grid.ColumnSpan="2" IsEnabled="{Binding Path=IncludeTests}">
            <ListBox.ItemsPanel>
                <ItemsPanelTemplate>
                    <StackPanel Orientation="Horizontal" />
                </ItemsPanelTemplate>
            </ListBox.ItemsPanel>
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <RadioButton Content="{Binding Path=Item}" GroupName="testResultsFormat" IsChecked="{Binding Path=IsSelected}"></RadioButton>
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>
    <CheckBox Template="{StaticResource ResourceKey=myCheckBox}" Grid.Column="3" Grid.Row="6" IsChecked="{Binding Path=IsTestResultsFormatValid}" Visibility="{Binding Path=IncludeTests, Converter={StaticResource ResourceKey=booleanToVisibilityConverter}}"/>

    <Label Content="Language" Grid.Column="0" Grid.Row="7" />
        <ComboBox ItemsSource="{Binding LanguageValues}" Grid.Column="1" SelectedItem="{Binding SelectedLanguage}" Grid.Row="7"  Grid.ColumnSpan="2" DisplayMemberPath="NativeName"/>
    <CheckBox Template="{StaticResource ResourceKey=myCheckBox}" Grid.Column="3" Grid.Row="7" IsChecked="{Binding Path=IsLanguageValid}"/><commit_msg>Adapt "Language" Label to "Gherkin Language"<commit_after>﻿<mahapps:MetroWindow x:Class="Pickles.UserInterface.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="clr-namespace:Pickles.UserInterface"
        xmlns:mahapps="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
        Title="Pickles" Height="450" Width="800" Loaded="MetroWindow_Loaded" Closed="MetroWindow_Closed">
    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Colours.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Fonts.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/Green.xaml" />
        <ResourceDictionary>
          <Color x:Key="AccentDarkColor">#CC2F8200</Color>

          <BooleanToVisibilityConverter x:Key="booleanToVisibilityConverter" />

        </ResourceDictionary>

          <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/BaseLight.xaml" />
        <ResourceDictionary Source="CoolCheckBox.xaml" />
      </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Window.Resources>
    <Window.DataContext>
        <local:MainWindowViewModel />
    </Window.DataContext>
  <mahapps:MetroWindow.WindowCommands>
    <mahapps:WindowCommands>
      <Button Content="open output folder" Command="{Binding Path=OpenOutputDirectory}" />
    </mahapps:WindowCommands>
  </mahapps:MetroWindow.WindowCommands>
  <Grid Margin="0,0,0,20">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition />
            <RowDefinition />
            <RowDefinition />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
      <ColumnDefinition />
      <ColumnDefinition Width="Auto"  />
      <ColumnDefinition Width="Auto" />
      <ColumnDefinition Width="130" />
    </Grid.ColumnDefinitions>

        <Label Content="Feature Directory" Grid.Column="0" Grid.Row="0" />
        <TextBox Text="{Binding FeatureFolder}" Grid.Column="1" Grid.Row="0" mahapps:TextboxHelper.Watermark="Browse To The Location Of Your Feature Files" />
        <Button Command="{Binding BrowseForFeatureFolder}" Content="Browse ..." Grid.Row="0" Grid.Column="2" />
        <CheckBox Template="{StaticResource ResourceKey=myCheckBox}" Grid.Column="3" Grid.Row="0" IsChecked="{Binding Path=IsFeatureDirectoryValid}"/>

    <Label Content="Output Directory" Grid.Column="0" Grid.Row="1" />
        <TextBox Text="{Binding OutputFolder}" Grid.Column="1" Grid.Row="1" mahapps:TextboxHelper.Watermark="Browse To The Location Of The Living Documentation" />
        <Button Command="{Binding BrowseForOutputFolder}" Content="Browse ..." Grid.Column="2" Grid.Row="1" />
    <CheckBox Template="{StaticResource ResourceKey=myCheckBox}" Grid.Column="3" Grid.Row="1" IsChecked="{Binding Path=IsOutputDirectoryValid}"/>


    <ListBox ItemsSource="{Binding DocumentationFormatValues}" Grid.Column="4" Grid.Row="0" Grid.ColumnSpan="1" Grid.RowSpan="11">
            <ListBox.ItemsPanel>
                <ItemsPanelTemplate>
            <StackPanel Orientation="Vertical" HorizontalAlignment="Stretch" />
                </ItemsPanelTemplate>
            </ListBox.ItemsPanel>
            <ListBox.ItemTemplate>
                <DataTemplate>
          <mahapps:ToggleSwitch Header="{Binding Path=Item}" IsChecked="{Binding Path=IsSelected, Mode=TwoWay}" Width="120" />
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>

        <Label Content="Project Name" Grid.Column="0" Grid.Row="2" />
        <TextBox Text="{Binding ProjectName}" Grid.Column="1" Grid.Row="2" Grid.ColumnSpan="2" mahapps:TextboxHelper.Watermark="Enter The Name Of Your Project Here" />
        <CheckBox Template="{StaticResource ResourceKey=myCheckBox}" Grid.Column="3" Grid.Row="2" IsChecked="{Binding Path=IsProjectNameValid}"/>

    <Label Content="Project Version" Grid.Column="0" Grid.Row="3" />
        <TextBox Text="{Binding ProjectVersion}" Grid.Column="1" Grid.Row="3" Grid.ColumnSpan="2" mahapps:TextboxHelper.Watermark="Enter The Version Of Your Project Here" />
    <CheckBox Template="{StaticResource ResourceKey=myCheckBox}" Grid.Column="3" Grid.Row="3" IsChecked="{Binding Path=IsProjectVersionValid}"/>

    <Label Content="Include Test Results" Grid.Column="0" Grid.Row="5" Visibility="Hidden" />
    <mahapps:ToggleSwitch Header="Include Test Results" Grid.Row="4" Grid.Column="1" Grid.ColumnSpan="2" IsChecked="{Binding Path=IncludeTests, Mode=TwoWay}" />

      <Label Content="Test Results File" Grid.Column="0" Grid.Row="5" />
        <TextBox Text="{Binding TestResultsFile}" Grid.Column="1" Grid.Row="5" IsEnabled="{Binding Path=IncludeTests}" mahapps:TextboxHelper.Watermark="Browse To The Location Of Your Test Results File" />
      <Button Command="{Binding BrowseForTestResultsFile}" Content="Browse" Grid.Row="5" Grid.Column="2" IsEnabled="{Binding Path=IncludeTests}" />
    <CheckBox Template="{StaticResource ResourceKey=myCheckBox}" Grid.Column="3" Grid.Row="5" IsChecked="{Binding Path=IsTestResultsFileValid}" Visibility="{Binding Path=IncludeTests, Converter={StaticResource ResourceKey=booleanToVisibilityConverter}}"/>

    <Label Content="Test Results Format" Grid.Column="0"  Grid.Row="6"/>
    <ListBox ItemsSource="{Binding TestResultsFormatValues}" Grid.Column="1" Grid.Row="6" Grid.ColumnSpan="2" IsEnabled="{Binding Path=IncludeTests}">
            <ListBox.ItemsPanel>
                <ItemsPanelTemplate>
                    <StackPanel Orientation="Horizontal" />
                </ItemsPanelTemplate>
            </ListBox.ItemsPanel>
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <RadioButton Content="{Binding Path=Item}" GroupName="testResultsFormat" IsChecked="{Binding Path=IsSelected}"></RadioButton>
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>
    <CheckBox Template="{StaticResource ResourceKey=myCheckBox}" Grid.Column="3" Grid.Row="6" IsChecked="{Binding Path=IsTestResultsFormatValid}" Visibility="{Binding Path=IncludeTests, Converter={StaticResource ResourceKey=booleanToVisibilityConverter}}"/>

    <Label Content="Gherkin Language" Grid.Column="0" Grid.Row="7" />
        <ComboBox ItemsSource="{Binding LanguageValues}" Grid.Column="1" SelectedItem="{Binding SelectedLanguage}" Grid.Row="7"  Grid.ColumnSpan="2" DisplayMemberPath="NativeName"/>
    <CheckBox Template="{StaticResource ResourceKey=myCheckBox}" Grid.Column="3" Grid.Row="7" IsChecked="{Binding Path=IsLanguageValid}"/>
{'fraction_non_alphanumeric': 0.14434653931526198, 'fraction_numerical': 0.01237640411649963, 'mean_word_length': 3.797676669893514, 'pattern_counts': {'":': 0, '<': 201, '<?xml version=': 0, '>': 201, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 8}, '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': '7242929', 'n_tokens_mistral': 4308, 'n_tokens_neox': 4055, 'n_words': 693}