<commit_before>﻿<controls:MetroWindow
  x:Class="MarkdownEdit.MainWindow"
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:controls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
  xmlns:local="clr-namespace:MarkdownEdit"
  Title="{Binding TitleName}"
  TitleCaps="False"
  SaveWindowPosition="True"
  WindowTitleBrush="{DynamicResource GrayBrush2}"
  GlowBrush="{DynamicResource GrayBrush2}"
  ResizeMode="CanResizeWithGrip"
  IgnoreTaskbarOnMaximize="True"
  WindowTransitionsEnabled="False"
  DataContext="{Binding RelativeSource={RelativeSource Self}}"
  Background="{DynamicResource GrayBrush4}"
  >
  
  <controls:MetroWindow.Resources>
    <local:BooleanToScrollBarVisibilityConverter x:Key="VisibilityConverter" />
    <local:NumberFormatConverter x:Key="NumberFormatConverter" />
  </controls:MetroWindow.Resources>

  <controls:MetroWindow.RightWindowCommands>
    <controls:WindowCommands>
      <StackPanel Orientation="Horizontal"
                  Margin="10 0"
                  VerticalAlignment="Center">
        <TextBlock ToolTip="Word Count"
                   Foreground="{StaticResource SemiTransparentWhiteBrush}"
                   Text="{Binding Path=WordCount, ElementName=Preview, Converter={StaticResource NumberFormatConverter}}" />
      </StackPanel>
    </controls:WindowCommands>
  </controls:MetroWindow.RightWindowCommands>
  
  <Grid>
    <UniformGrid x:Name="UniformGrid" Columns="2">
      <local:Editor
        x:Name="Editor" 
        Padding="5 10 5 3" 
        Margin="{Binding Path=EditorMargins, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}}"
        Theme="{Binding Path=Theme, Source={x:Static local:App.UserSettings}}"
        FontFamily="{Binding Path=EditorFontFamily, Source={x:Static local:App.UserSettings}}"
        FontSize="{Binding Path=EditorFontSize, Source={x:Static local:App.UserSettings}}"
        Background="{Binding Path=Theme.EditorBackground, Source={x:Static local:App.UserSettings}}"
        VerticalScrollBarVisibility="{Binding Path=EditorVerticalScrollBarVisible, Source={x:Static local:App.UserSettings}, Converter={StaticResource VisibilityConverter}}"
        ShowEndOfLine="{Binding Path=EditorShowEndOfLine, Source={x:Static local:App.UserSettings}}"
        ShowSpaces="{Binding Path=EditorShowSpaces, Source={x:Static local:App.UserSettings}}"
        ShowTabs="{Binding Path=EditorShowTabs, Source={x:Static local:App.UserSettings}}"
        /><commit_msg>Add spell check enabled indicator<commit_after>﻿<controls:MetroWindow
  x:Class="MarkdownEdit.MainWindow"
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:controls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
  xmlns:local="clr-namespace:MarkdownEdit"
  Title="{Binding TitleName}"
  TitleCaps="False"
  SaveWindowPosition="True"
  WindowTitleBrush="{DynamicResource GrayBrush2}"
  GlowBrush="{DynamicResource GrayBrush2}"
  ResizeMode="CanResizeWithGrip"
  IgnoreTaskbarOnMaximize="True"
  WindowTransitionsEnabled="False"
  DataContext="{Binding RelativeSource={RelativeSource Self}}"
  Background="{DynamicResource GrayBrush4}"
  >
  
  <controls:MetroWindow.Resources>
    <BooleanToVisibilityConverter x:Key="VisibilityConverter" />
    <local:BooleanToScrollBarVisibilityConverter x:Key="ScrollbarVisibilityConverter" />
    <local:NumberFormatConverter x:Key="NumberFormatConverter" />
  </controls:MetroWindow.Resources>

  <controls:MetroWindow.RightWindowCommands>
    <controls:WindowCommands>
      <StackPanel Orientation="Horizontal"
                  Margin="10 0"
                  VerticalAlignment="Center">
        <TextBlock ToolTip="Word Count"
                   Foreground="{StaticResource SemiTransparentWhiteBrush}"
                   Text="{Binding Path=WordCount, ElementName=Preview, Converter={StaticResource NumberFormatConverter}}" />
        <TextBlock ToolTip="Spell Check Enabled"
                   Margin="10 0 0 0"
                   Foreground="{StaticResource SemiTransparentWhiteBrush}"
                   Text="&#xfc;"
                   FontFamily="Wingdings"
                   VerticalAlignment="Bottom"
                   Visibility="{Binding Path=SpellCheck, ElementName=Editor, Converter={StaticResource VisibilityConverter}}" />
      </StackPanel>
    </controls:WindowCommands>
  </controls:MetroWindow.RightWindowCommands>
  
  <Grid>
    <UniformGrid x:Name="UniformGrid" Columns="2">
      <local:Editor
        x:Name="Editor" 
        Padding="5 10 5 3" 
        Margin="{Binding Path=EditorMargins, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}}"
        Theme="{Binding Path=Theme, Source={x:Static local:App.UserSettings}}"
        FontFamily="{Binding Path=EditorFontFamily, Source={x:Static local:App.UserSettings}}"
        FontSize="{Binding Path=EditorFontSize, Source={x:Static local:App.UserSettings}}"
        Background="{Binding Path=Theme.EditorBackground, Source={x:Static local:App.UserSettings}}"
        VerticalScrollBarVisibility="{Binding Path=EditorVerticalScrollBarVisible, Source={x:Static local:App.UserSettings}, Converter={StaticResource ScrollbarVisibilityConverter}}"
        ShowEndOfLine="{Binding Path=EditorShowEndOfLine, Source={x:Static local:App.UserSettings}}"
        ShowSpaces="{Binding Path=EditorShowSpaces, Source={x:Static local:App.UserSettings}}"
        ShowTabs="{Binding Path=EditorShowTabs, Source={x:Static local:App.UserSettings}}"
        />
{'fraction_non_alphanumeric': 0.12136782423812899, 'fraction_numerical': 0.007973068745570517, 'mean_word_length': 4.777891504605937, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 35, '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': '2741594', 'n_tokens_mistral': 1666, 'n_tokens_neox': 1548, 'n_words': 220}