<commit_before>﻿<controls:FlatWindow x:Class="Permadelete.Views.ErrorDialog"
        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:local="clr-namespace:Permadelete.Views"
        xmlns:controls="clr-namespace:Permadelete.Controls"
        mc:Ignorable="d"
        WindowStartupLocation="CenterScreen" ResizeMode="NoResize"
        Icon="/Images/icon_24.png"
        Title="{Binding Title}" MinWidth="350" MinHeight="120" MaxHeight="350" MaxWidth="450"
        SizeToContent="WidthAndHeight" Loaded="Window_Loaded" SnapsToDevicePixels="True">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="48" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="72"/>
            <ColumnDefinition />
        </Grid.ColumnDefinitions>

        <Image VerticalAlignment="Center" Width="32" HorizontalAlignment="Center" Source="{Binding Icon}" />
        <ScrollViewer Grid.Column="1" Margin="10" VerticalAlignment="Center" HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Auto">
            <TextBlock x:Name="txtMessage" FontSize="14" Text="{Binding Message}" TextWrapping="Wrap" />
        </ScrollViewer>

        <Expander Padding="5" FontWeight="SemiBold" Margin="0, 3" Header="Details" Grid.Row="1" Grid.Column="1">
            <Grid Background="#FFE9ECEE">
                <TextBox Text="{Binding Details}" VerticalScrollBarVisibility="Auto" MaxHeight="100" FontWeight="Normal" BorderThickness="0" IsReadOnly="True" Background="Transparent" TextWrapping="Wrap"/>
            </Grid>
        </Expander>
        
        <Grid Background="#efefef" Grid.ColumnSpan="2" Grid.Row="2">
            <Rectangle Fill="{StaticResource WindowBackgroundThatch}" />
            <StackPanel Orientation="Horizontal"  HorizontalAlignment="Center" VerticalAlignment="Center">
                <controls:FlatButton x:Name="okButton" Content="{Binding OkButton}" Margin="10,0,0,0" Padding="10,5" TabIndex="0" Click="okButton_Click" IsCancel="True"/>
            </StackPanel>
        </Grid>
    </Grid>
</controls:FlatWindow>
<commit_msg>remove the detail part of error dialog<commit_after>﻿<controls:FlatWindow x:Class="Permadelete.Views.ErrorDialog"
        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:local="clr-namespace:Permadelete.Views"
        xmlns:controls="clr-namespace:Permadelete.Controls"
        mc:Ignorable="d"
        WindowStartupLocation="CenterScreen" ResizeMode="NoResize"
        Icon="/Images/icon_24.png"
        Title="{Binding Title}" MinWidth="350" MinHeight="120" MaxHeight="350" MaxWidth="450"
        SizeToContent="WidthAndHeight" Loaded="Window_Loaded" SnapsToDevicePixels="True">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
            <RowDefinition Height="48" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="72"/>
            <ColumnDefinition />
        </Grid.ColumnDefinitions>

        <Image VerticalAlignment="Center" Width="32" HorizontalAlignment="Center" Source="{Binding Icon}" />
        <ScrollViewer Grid.Column="1" Margin="10" VerticalAlignment="Center" HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Auto">
            <TextBlock x:Name="txtMessage" FontSize="14" Text="{Binding Message}" TextWrapping="Wrap" />
        </ScrollViewer>

       
        
        <Grid Background="#efefef" Grid.ColumnSpan="2" Grid.Row="2">
            <Rectangle Fill="{StaticResource WindowBackgroundThatch}" />
            <StackPanel Orientation="Horizontal"  HorizontalAlignment="Center" VerticalAlignment="Center">
                <controls:FlatButton x:Name="okButton" Content="{Binding OkButton}" Margin="10,0,0,0" Padding="10,5" TabIndex="0" Click="okButton_Click" IsCancel="True"/>
            </StackPanel>
        </Grid>
    </Grid>
</controls:FlatWindow>

{'fraction_non_alphanumeric': 0.14499888118147236, 'fraction_numerical': 0.025509062430073844, 'mean_word_length': 3.5658835546475998, 'pattern_counts': {'":': 0, '<': 53, '<?xml version=': 0, '>': 53, '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': '5552674', 'n_tokens_mistral': 1378, 'n_tokens_neox': 1256, 'n_words': 182}