<commit_before>﻿<Window 
	x:Class="GitMind.Features.Committing.CommitDialog"
	Name="CommitDialogWindow"
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	xmlns:repositoryViews="clr-namespace:GitMind.RepositoryViews"
	xmlns:commiting="clr-namespace:GitMind.Features.Committing"
	mc:Ignorable="d"
	Title="Commit" 
	Width="500" Height="380" Background="Black"
	WindowStyle="None" AllowsTransparency="True"
	BorderBrush="{StaticResource BorderBrush}" BorderThickness="3"		
	WindowStartupLocation="CenterOwner">

	<!-- Enable "normal" windows behavior with drag and resize,
	this does require WindowChrome.IsHitTestVisibleInChrome="True" in controls below -->
	<Window.Resources>
		<Style TargetType="{x:Type commiting:CommitDialog}">
			<Setter Property="WindowChrome.WindowChrome">
				<Setter.Value>
					<WindowChrome />
				</Setter.Value>
			</Setter>
		</Style>
	</Window.Resources>

	<Window.InputBindings>
		<KeyBinding Key="Escape" Command="{Binding CancelCommand}" CommandParameter="{Binding ElementName=CommitDialogWindow}" />
		<KeyBinding Modifiers="Control" Key="D" Command="{Binding ShowUncommittedDiffCommand}" />
		<KeyBinding Modifiers="Control" Key="Enter" Command="{Binding ShowUncommittedDiffCommand}" />
	</Window.InputBindings>


	<Grid Background="Black">
		<Grid.RowDefinitions>
			<!-- Title and tool bar -->
			<RowDefinition Height="Auto" />
			<!-- Dialog contents -->
			<RowDefinition Height="*" />
		</Grid.RowDefinitions>

		<!-- Title and tool bar -->
		<Border Grid.Row="0" BorderBrush="{StaticResource BorderBrush}" BorderThickness="2">
			<Grid>
				<StackPanel 
					HorizontalAlignment="Left"	
					Orientation="Horizontal">

					<TextBlock Text="{Binding BranchText}" 							
						Foreground="{StaticResource TextLowBrush}"
						Margin="10, 5"/>
					
					<!-- diff button -->
					<Button 
						Content="&#xE915;"
						KeyboardNavigation.IsTabStop="False"
						HorizontalAlignment="Left"	
						Style="{StaticResource IconButtonStyle}"			
						Foreground="{StaticResource TextLowBrush}"					
						Command="{Binding ShowUncommittedDiffCommand}"
						ToolTip="Show diff of uncommitted changes ... (Ctrl-Enter)" 
						WindowChrome.IsHitTestVisibleInChrome="True"/>
					
				</StackPanel>
				
				<!-- Close Button -->
				<Button HorizontalAlignment="Right" WindowChrome.IsHitTestVisibleInChrome="True"
						Style="{StaticResource IconButtonStyle}"
						KeyboardNavigation.IsTabStop="False"
						Content="&#xE14C;" 
						FontSize="16"
						Command="{Binding CancelCommand}"
						CommandParameter="{Binding ElementName=CommitDialogWindow}"/>
			</Grid>
		</Border>

		<!-- Dialog contents -->
		<Grid Grid.Row="1">
			<Grid.RowDefinitions>
				<!-- Commit Message -->
				<RowDefinition Height="140" />
				<!-- Grid splitter -->
				<RowDefinition Height="Auto" />
				<!-- Commit files -->
				<RowDefinition Height="*" />
				<!-- OK and Cancel buttons -->
				<RowDefinition Height="Auto" />
			</Grid.RowDefinitions>

			<!-- Commit Message -->
			<Grid Grid.Row="0" Margin="10,10,10,5">
				<Grid.RowDefinitions>
					<!-- Subject header -->
					<RowDefinition Height="Auto" />
					<!-- Subject -->
					<RowDefinition Height="Auto" />
				
					<!-- Description textbox -->
					<RowDefinition Height="*" />
				</Grid.RowDefinitions>

				<TextBlock Grid.Row="0" Text="Message:" Foreground="{StaticResource TextBrush}" Margin="0,0,0,5"/>

				<TextBox Grid.Row="1" Name="SubjectText"
					Text="{Binding Subject, UpdateSourceTrigger=PropertyChanged}"
					KeyboardNavigation.TabIndex="0"
					Margin="0"
					Width="330"
					HorizontalAlignment="Left"	
					Background="Transparent"
					BorderBrush="{StaticResource BorderBrush}" BorderThickness="1"
					Foreground="{StaticResource TextBrush}"
					CaretBrush="{StaticResource TextBrush}">
					<TextBox.InputBindings>
						<KeyBinding 
							Key="Enter" 
							Command="{Binding OkCommand}" 
							CommandParameter="{Binding ElementName=CommitDialogWindow}"/>
					</TextBox.InputBindings>
				</TextBox>
				
				<TextBox Grid.Row="3" Name="DescriptionText"
					Text="{Binding Description, UpdateSourceTrigger=PropertyChanged}"
					KeyboardNavigation.TabIndex="0"
					VerticalAlignment="Stretch"
					Margin="0,8,0,5"
					Background="Transparent"
					BorderBrush="{StaticResource BorderBrush}" BorderThickness="1"
					Foreground="{StaticResource TextBrush}"
					CaretBrush="{StaticResource TextBrush}"
					VerticalScrollBarVisibility="Auto"
					TextWrapping="Wrap" 
					AcceptsReturn="True"/>
				
			</Grid>

			<GridSplitter
				Grid.Row="1"		
				Background="Transparent"
				HorizontalAlignment="Stretch"
				VerticalAlignment="Center"
				Height="2"
				KeyboardNavigation.IsTabStop="False"/>

			<Grid Grid.Row="2"  Margin="10,0">
					<Grid.RowDefinitions>
						<RowDefinition Height="Auto" />
						<RowDefinition Height="*" />
					</Grid.RowDefinitions>
				
					<TextBlock Grid.Row="0" Text="Files:" Foreground="{StaticResource TextBrush}" Margin="0,0,0,5"/>

				<Border	Grid.Row="1"
					CornerRadius="0" 
					BorderThickness="1" 
					BorderBrush="{StaticResource BorderBrush}">

					<ListBox 
						Background="Transparent"<commit_msg>Add shift enter in commit dialog description filed<commit_after>﻿<Window 
	x:Class="GitMind.Features.Committing.CommitDialog"
	Name="CommitDialogWindow"
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	xmlns:repositoryViews="clr-namespace:GitMind.RepositoryViews"
	xmlns:commiting="clr-namespace:GitMind.Features.Committing"
	mc:Ignorable="d"
	Title="Commit" 
	Width="500" Height="380" Background="Black"
	WindowStyle="None" AllowsTransparency="True"
	BorderBrush="{StaticResource BorderBrush}" BorderThickness="3"		
	WindowStartupLocation="CenterOwner">

	<!-- Enable "normal" windows behavior with drag and resize,
	this does require WindowChrome.IsHitTestVisibleInChrome="True" in controls below -->
	<Window.Resources>
		<Style TargetType="{x:Type commiting:CommitDialog}">
			<Setter Property="WindowChrome.WindowChrome">
				<Setter.Value>
					<WindowChrome />
				</Setter.Value>
			</Setter>
		</Style>
	</Window.Resources>

	<Window.InputBindings>
		<KeyBinding Key="Escape" Command="{Binding CancelCommand}" CommandParameter="{Binding ElementName=CommitDialogWindow}" />
		<KeyBinding Modifiers="Control" Key="D" Command="{Binding ShowUncommittedDiffCommand}" />
		<KeyBinding Modifiers="Control" Key="Enter" Command="{Binding ShowUncommittedDiffCommand}" />
	</Window.InputBindings>


	<Grid Background="Black">
		<Grid.RowDefinitions>
			<!-- Title and tool bar -->
			<RowDefinition Height="Auto" />
			<!-- Dialog contents -->
			<RowDefinition Height="*" />
		</Grid.RowDefinitions>

		<!-- Title and tool bar -->
		<Border Grid.Row="0" BorderBrush="{StaticResource BorderBrush}" BorderThickness="2">
			<Grid>
				<StackPanel 
					HorizontalAlignment="Left"	
					Orientation="Horizontal">

					<TextBlock Text="{Binding BranchText}" 							
						Foreground="{StaticResource TextLowBrush}"
						Margin="10, 5"/>
					
					<!-- diff button -->
					<Button 
						Content="&#xE915;"
						KeyboardNavigation.IsTabStop="False"
						HorizontalAlignment="Left"	
						Style="{StaticResource IconButtonStyle}"			
						Foreground="{StaticResource TextLowBrush}"					
						Command="{Binding ShowUncommittedDiffCommand}"
						ToolTip="Show diff of uncommitted changes ... (Ctrl-Enter)" 
						WindowChrome.IsHitTestVisibleInChrome="True"/>
					
				</StackPanel>
				
				<!-- Close Button -->
				<Button HorizontalAlignment="Right" WindowChrome.IsHitTestVisibleInChrome="True"
						Style="{StaticResource IconButtonStyle}"
						KeyboardNavigation.IsTabStop="False"
						Content="&#xE14C;" 
						FontSize="16"
						Command="{Binding CancelCommand}"
						CommandParameter="{Binding ElementName=CommitDialogWindow}"/>
			</Grid>
		</Border>

		<!-- Dialog contents -->
		<Grid Grid.Row="1">
			<Grid.RowDefinitions>
				<!-- Commit Message -->
				<RowDefinition Height="140" />
				<!-- Grid splitter -->
				<RowDefinition Height="Auto" />
				<!-- Commit files -->
				<RowDefinition Height="*" />
				<!-- OK and Cancel buttons -->
				<RowDefinition Height="Auto" />
			</Grid.RowDefinitions>

			<!-- Commit Message -->
			<Grid Grid.Row="0" Margin="10,10,10,5">
				<Grid.RowDefinitions>
					<!-- Subject header -->
					<RowDefinition Height="Auto" />
					<!-- Subject -->
					<RowDefinition Height="Auto" />
				
					<!-- Description textbox -->
					<RowDefinition Height="*" />
				</Grid.RowDefinitions>

				<TextBlock Grid.Row="0" Text="Message:" Foreground="{StaticResource TextBrush}" Margin="0,0,0,5"/>

				<TextBox Grid.Row="1" Name="SubjectText"
					Text="{Binding Subject, UpdateSourceTrigger=PropertyChanged}"
					KeyboardNavigation.TabIndex="0"
					Margin="0"
					Width="330"
					HorizontalAlignment="Left"	
					Background="Transparent"
					BorderBrush="{StaticResource BorderBrush}" BorderThickness="1"
					Foreground="{StaticResource TextBrush}"
					CaretBrush="{StaticResource TextBrush}">
					<TextBox.InputBindings>
						<KeyBinding 
							Key="Enter" 
							Command="{Binding OkCommand}" 
							CommandParameter="{Binding ElementName=CommitDialogWindow}"/>
					</TextBox.InputBindings>
				</TextBox>
				
				<TextBox Grid.Row="3" Name="DescriptionText"
					Text="{Binding Description, UpdateSourceTrigger=PropertyChanged}"
					KeyboardNavigation.TabIndex="0"
					VerticalAlignment="Stretch"
					Margin="0,8,0,5"
					Background="Transparent"
					BorderBrush="{StaticResource BorderBrush}" BorderThickness="1"
					Foreground="{StaticResource TextBrush}"
					CaretBrush="{StaticResource TextBrush}"
					VerticalScrollBarVisibility="Auto"
					TextWrapping="Wrap" 
					AcceptsReturn="True">
					<TextBox.InputBindings>
						<KeyBinding 
							Modifiers="Shift" Key="Enter" 
							Command="{Binding OkCommand}" 
							CommandParameter="{Binding ElementName=CommitDialogWindow}"/>
					</TextBox.InputBindings>
				</TextBox>
				
			</Grid>

			<GridSplitter
				Grid.Row="1"		
				Background="Transparent"
				HorizontalAlignment="Stretch"
				VerticalAlignment="Center"
				Height="2"
				KeyboardNavigation.IsTabStop="False"/>

			<Grid Grid.Row="2"  Margin="10,0">
					<Grid.RowDefinitions>
						<RowDefinition Height="Auto" />
						<RowDefinition Height="*" />
					</Grid.RowDefinitions>
				
					<TextBlock Grid.Row="0" Text="Files:" Foreground="{StaticResource TextBrush}" Margin="0,0,0,5"/>

				<Border	Grid.Row="1"
					CornerRadius="0" 
					BorderThickness="1" 
					BorderBrush="{StaticResource BorderBrush}">

					<ListBox 
						Background="Transparent"
{'fraction_non_alphanumeric': 0.14837251356238698, 'fraction_numerical': 0.014466546112115732, 'mean_word_length': 3.8301310043668124, 'pattern_counts': {'":': 0, '<': 155, '<?xml version=': 0, '>': 153, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 14}, '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': '2357881', 'n_tokens_mistral': 4368, 'n_tokens_neox': 3172, 'n_words': 538}