<commit_before><UserControl x:Class="OpenKh.Tools.LayoutViewer.Views.LayoutEditorView"
             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:OpenKh.Tools.LayoutViewer.Views"
             xmlns:xecontrols="clr-namespace:Xe.Tools.Wpf.Controls;assembly=Xe.Tools.Wpf"
             xmlns:controls="clr-namespace:OpenKh.Tools.Common.Controls;assembly=OpenKh.Tools.Common"
             mc:Ignorable="d" 
             d:DesignHeight="450" d:DesignWidth="600">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="2*"/>
            <ColumnDefinition Width="1*"/>
        </Grid.ColumnDefinitions>

        <Grid Grid.Column="0" Margin="0 0 5 0">
            <Grid.RowDefinitions>
                <RowDefinition Height="*"/>
                <RowDefinition Height="5"/>
                <RowDefinition Height="40"/>
            </Grid.RowDefinitions>

            <StackPanel Grid.Row="0">
            </StackPanel>

            <controls:LayoutRendererPanel
                Grid.Row="0"
                Background="{Binding Background, FallbackValue=#FF00FF}"
                Drawing="{Binding Drawing}"
                SelectedLayout="{Binding Layout}"
                SelectedImages="{Binding Images}"
                SelectedSequenceGroupIndex="{Binding SequenceIndex}"
                FrameIndex="{Binding FrameIndex, Mode=TwoWay}"
                FramesPerSecond="60"
                IsPlaying="{Binding IsPlaying}"
                DebugLayoutRenderer="{Binding EditorDebugRenderingService}"
                />

            <Grid Grid.Row="2">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="*"/>
                </Grid.RowDefinitions>

                <StackPanel Orientation="Horizontal">
                    <Button VerticalAlignment="Center"
                        Command="{Binding TimelinePlayCommand}"
                        Visibility="{Binding TimelinePlayVisibility}">
                        <Button.Content>
                            <Image Source="{StaticResource Run_16x}"/><commit_msg>Add checker board to the background, in case of transparent background<commit_after><UserControl x:Class="OpenKh.Tools.LayoutViewer.Views.LayoutEditorView"
             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:OpenKh.Tools.LayoutViewer.Views"
             xmlns:xecontrols="clr-namespace:Xe.Tools.Wpf.Controls;assembly=Xe.Tools.Wpf"
             xmlns:controls="clr-namespace:OpenKh.Tools.Common.Controls;assembly=OpenKh.Tools.Common"
             mc:Ignorable="d" 
             d:DesignHeight="450" d:DesignWidth="600">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="2*"/>
            <ColumnDefinition Width="1*"/>
        </Grid.ColumnDefinitions>

        <Grid Grid.Column="0" Margin="0 0 5 0">
            <Grid.RowDefinitions>
                <RowDefinition Height="*"/>
                <RowDefinition Height="5"/>
                <RowDefinition Height="40"/>
            </Grid.RowDefinitions>

            <StackPanel Grid.Row="0">
            </StackPanel>

            <Grid >
                <Grid.Background>
                    <DrawingBrush TileMode="Tile" Viewport="0,0,16,16" ViewportUnits="Absolute">
                        <DrawingBrush.Drawing>
                            <GeometryDrawing Geometry="M0,0 H1 V1 H2 V2 H1 V1 H0Z" Brush="LightGray"/>
                        </DrawingBrush.Drawing>
                    </DrawingBrush>
                </Grid.Background>
                <controls:LayoutRendererPanel
                    Grid.Row="0"
                    Background="{Binding Background, FallbackValue=#FF00FF}"
                    Drawing="{Binding Drawing}"
                    SelectedLayout="{Binding Layout}"
                    SelectedImages="{Binding Images}"
                    SelectedSequenceGroupIndex="{Binding SequenceIndex}"
                    FrameIndex="{Binding FrameIndex, Mode=TwoWay}"
                    FramesPerSecond="60"
                    IsPlaying="{Binding IsPlaying}"
                    DebugLayoutRenderer="{Binding EditorDebugRenderingService}"
                />
            </Grid>

            <Grid Grid.Row="2">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="*"/>
                </Grid.RowDefinitions>

                <StackPanel Orientation="Horizontal">
                    <Button VerticalAlignment="Center"
                        Command="{Binding TimelinePlayCommand}"
                        Visibility="{Binding TimelinePlayVisibility}">
                        <Button.Content>
                            <Image Source="{StaticResource Run_16x}"/>
{'fraction_non_alphanumeric': 0.11651393304656817, 'fraction_numerical': 0.018141013652515428, 'mean_word_length': 1.7854166666666667, 'pattern_counts': {'":': 0, '<': 60, '<?xml version=': 0, '>': 60, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 16}, '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': '6715404', 'n_tokens_mistral': 1486, 'n_tokens_neox': 1269, 'n_words': 184}