<commit_before>﻿<UserControl x:Class="Paymetheus.RenameAccountDialogView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:local="clr-namespace:Paymetheus"
             mc:Ignorable="d" 
             d:DesignHeight="200" d:DesignWidth="500">
    <DockPanel FocusManager.FocusedElement="{Binding ElementName=textBox}">
        <StackPanel DockPanel.Dock="Bottom" Orientation="Horizontal" HorizontalAlignment="Right">
            <Button Content="Rename" IsDefault="True" Command="{Binding Rename}" Width="100" Margin="6 12 3 6" Padding="10 2"/>
            <Button Content="Cancel" IsCancel="True" Command="{Binding HideDialogCommand}" Width="100" Margin="3 12 6 6" Padding="10 2"/>
        </StackPanel>
        <StackPanel>
            <Label FontSize="18">
                <TextBlock>
                    <Run Text="Rename account"/>
                    <Run Text="{Binding CurrentAccountName, Mode=OneWay}"/>
                </TextBlock>
            </Label>
            <Label Content="New name:"/>
            <TextBox Name="textBox" Text="{Binding NewAccountName, UpdateSourceTrigger=Default}" Margin="6 2" Padding="2" KeyDown="textBox_KeyDown"/>
        </StackPanel>
    </DockPanel>
</UserControl>
<commit_msg>Disable rename account dialog if name is empty.<commit_after>﻿<UserControl x:Class="Paymetheus.RenameAccountDialogView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:local="clr-namespace:Paymetheus"
             mc:Ignorable="d" 
             d:DesignHeight="200" d:DesignWidth="500">
    <DockPanel FocusManager.FocusedElement="{Binding ElementName=textBox}">
        <StackPanel DockPanel.Dock="Bottom" Orientation="Horizontal" HorizontalAlignment="Right">
            <Button Content="Rename" IsDefault="True" Command="{Binding Rename}" Width="100" Margin="6 12 3 6" Padding="10 2">
                <Button.Style>
                    <Style TargetType="{x:Type Button}">
                        <Style.Triggers>
                            <DataTrigger Binding="{Binding Text, ElementName=textBox}" Value="">
                                <Setter Property="IsEnabled" Value="False"/>
                            </DataTrigger>
                        </Style.Triggers>
                    </Style>
                </Button.Style>
            </Button>
            <Button Content="Cancel" IsCancel="True" Command="{Binding HideDialogCommand}" Width="100" Margin="3 12 6 6" Padding="10 2"/>
        </StackPanel>
        <StackPanel>
            <Label FontSize="18">
                <TextBlock>
                    <Run Text="Rename account"/>
                    <Run Text="{Binding CurrentAccountName, Mode=OneWay}"/>
                </TextBlock>
            </Label>
            <Label Content="New name:"/>
            <TextBox Name="textBox" Text="{Binding NewAccountName, UpdateSourceTrigger=Default}" Margin="6 2" Padding="2" KeyDown="textBox_KeyDown"/>
        </StackPanel>
    </DockPanel>
</UserControl>

{'fraction_non_alphanumeric': 0.13844393592677345, 'fraction_numerical': 0.02803203661327231, 'mean_word_length': 2.356046065259117, 'pattern_counts': {'":': 0, '<': 49, '<?xml version=': 0, '>': 49, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 12}, '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': '7376970', 'n_tokens_mistral': 1076, 'n_tokens_neox': 944, 'n_words': 165}