<commit_before>﻿<Window x:Class="ImageCompression.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Image compression" Height="700" Width="1130" WindowStyle="SingleBorderWindow" ResizeMode="CanMinimize"  
    WindowStartupLocation="CenterScreen">
    <Grid>
        <Menu DockPanel.Dock="Top" Margin="0,0,0,642">
            <MenuItem Header="_Left">
                <MenuItem Header="_Copy to right" Click="MenuItem_LeftToRight_OnClick"/>
                <MenuItem Header="_Open image" Click="MenuItem_Left_Open_OnClick"/>
                <MenuItem Header="_Save image" Click="MenuItem_Left_Save_OnClick"/>
                <MenuItem Header="_Undo" Name="MenuUndoLeft" IsEnabled="False" Click="MenuItem_UndoLeft_Click"/>
                <MenuItem Header="_Redo" Name="MenuRedoLeft" IsEnabled="False" Click="MenuItem_RedoLeft_Click"/>
            </MenuItem>
            <MenuItem Header="_Right">
                <MenuItem Header="_Copy to left" Click="MenuItem_RightToLeft_OnClick"/>
                <MenuItem Header="_Open image" Click="MenuItem_Right_Open_OnClick"/>
                <MenuItem Header="_Save image" Click="MenuItem_Right_Save_OnClick"/>
                <MenuItem Header="_Undo" Name="MenuUndoRight" IsEnabled="False" Click="MenuItem_UndoRight_Click"/>
                <MenuItem Header="_Redo" Name="MenuRedoRight" IsEnabled="False" Click="MenuItem_RedoRight_Click"/>
            </MenuItem>
        </Menu>
        <Border BorderThickness="1" BorderBrush="Black" Margin="10,29,612,130">
            <Image Name="LeftImageBox" Height="512" Width="512" />
        </Border>
        <Border BorderThickness="1" BorderBrush="Black" Margin="602,29,10,130">
            <Image Name="RightImageBox" Height="512" Width="512" />
        </Border>
        <Button Name="ButtonApplyLeft" IsEnabled="False" Content="Apply to left" HorizontalAlignment="Left" Margin="251,568,0,0" VerticalAlignment="Top" Width="92" Click="ButtonApplyLeft_Click" IsEnabledChanged="ButtonApply_OnIsEnabledChanged"/>
        <Button Name="ButtonApplyRight" IsEnabled="False" Content="Apply to right" HorizontalAlignment="Left" Margin="251,595,0,0" VerticalAlignment="Top" Width="92" Click="ButtonApplyRight_OnClick" IsEnabledChanged="ButtonApply_OnIsEnabledChanged"/>
        <Button Name="ButtonPSNR" IsEnabled="False" Content="PSNR" HorizontalAlignment="Left" Margin="512,239,0,0" VerticalAlignment="Top" Width="80" Click="ButtonPSNR_OnClick"/>
        <ComboBox Name="ComboBoxEffects" IsEditable="False" Loaded="ComboBoxEffects_OnLoaded" HorizontalAlignment="Left" Margin="46,595,0,0" VerticalAlignment="Top" Width="189" SelectionChanged="ComboBoxEffects_OnSelectionChanged"/>
        <TextBlock HorizontalAlignment="Left" Height="23" Margin="46,565,0,0" TextWrapping="Wrap" Text="Choose effect:" VerticalAlignment="Top" Width="79"/>
        <ComboBox Name="EffectParameterComboBox" Visibility="Hidden" IsEditable="True" HorizontalAlignment="Left" Height="23" Margin="223,620,0,0" VerticalAlignment="Top" Width="120"/>
        <TextBlock Name="EffectParameterTextBlock" Visibility="Hidden" HorizontalAlignment="Left" Margin="46,620,0,0" TextWrapping="Wrap" Text="TextBlock" VerticalAlignment="Top" Height="23" Width="150"/>
    </Grid>
</Window><commit_msg>dct interface creation<commit_after>﻿<Window x:Class="ImageCompression.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Image compression" Height="700" Width="1130" WindowStyle="SingleBorderWindow" ResizeMode="CanMinimize"  
    WindowStartupLocation="CenterScreen">
    <Grid>
        <Menu DockPanel.Dock="Top" Margin="0,0,0,642">
            <MenuItem Header="_Left">
                <MenuItem Header="_Copy to right" Click="MenuItem_LeftToRight_OnClick"/>
                <MenuItem Header="_Open image" Click="MenuItem_Left_Open_OnClick"/>
                <MenuItem Header="_Save image" Click="MenuItem_Left_Save_OnClick"/>
                <MenuItem Header="_Undo" Name="MenuUndoLeft" IsEnabled="False" Click="MenuItem_UndoLeft_Click"/>
                <MenuItem Header="_Redo" Name="MenuRedoLeft" IsEnabled="False" Click="MenuItem_RedoLeft_Click"/>
            </MenuItem>
            <MenuItem Header="_Right">
                <MenuItem Header="_Copy to left" Click="MenuItem_RightToLeft_OnClick"/>
                <MenuItem Header="_Open image" Click="MenuItem_Right_Open_OnClick"/>
                <MenuItem Header="_Save image" Click="MenuItem_Right_Save_OnClick"/>
                <MenuItem Header="_Undo" Name="MenuUndoRight" IsEnabled="False" Click="MenuItem_UndoRight_Click"/>
                <MenuItem Header="_Redo" Name="MenuRedoRight" IsEnabled="False" Click="MenuItem_RedoRight_Click"/>
            </MenuItem>
        </Menu>
        <Border BorderThickness="1" BorderBrush="Black" Margin="10,29,612,130">
            <Image Name="LeftImageBox" Height="512" Width="512" />
        </Border>
        <Border BorderThickness="1" BorderBrush="Black" Margin="602,29,10,130">
            <Image Name="RightImageBox" Height="512" Width="512" />
        </Border>
        <Button Name="ButtonApplyLeft" IsEnabled="False" Content="Apply to left" HorizontalAlignment="Left" Margin="251,568,0,0" VerticalAlignment="Top" Width="92" Click="ButtonApplyLeft_Click" IsEnabledChanged="ButtonApply_OnIsEnabledChanged"/>
        <Button Name="ButtonApplyRight" IsEnabled="False" Content="Apply to right" HorizontalAlignment="Left" Margin="251,595,0,0" VerticalAlignment="Top" Width="92" Click="ButtonApplyRight_OnClick" IsEnabledChanged="ButtonApply_OnIsEnabledChanged"/>
        <Button Name="ButtonPSNR" IsEnabled="False" Content="PSNR" HorizontalAlignment="Left" Margin="512,239,0,0" VerticalAlignment="Top" Width="80" Click="ButtonPSNR_OnClick"/>
        <ComboBox Name="ComboBoxEffects" IsEditable="False" Loaded="ComboBoxEffects_OnLoaded" HorizontalAlignment="Left" Margin="46,595,0,0" VerticalAlignment="Top" Width="189" SelectionChanged="ComboBoxEffects_OnSelectionChanged"/>
        <TextBlock HorizontalAlignment="Left" Height="23" Margin="46,565,0,0" TextWrapping="Wrap" Text="Choose effect:" VerticalAlignment="Top" Width="79"/>
        <ComboBox Name="EffectParameterComboBox" Visibility="Hidden" IsEditable="True" HorizontalAlignment="Left" Height="23" Margin="223,620,0,0" VerticalAlignment="Top" Width="120"/>
        <TextBlock Name="EffectParameterTextBlock" Visibility="Hidden" HorizontalAlignment="Left" Margin="46,620,0,0" TextWrapping="Wrap" Text="TextBlock" VerticalAlignment="Top" Height="23" Width="150"/>
        <Grid Visibility="Hidden" HorizontalAlignment="Left" Height="100" Margin="366,560,0,0" VerticalAlignment="Top" Width="320">
            <TextBlock HorizontalAlignment="Left" Margin="37,10,0,0" TextWrapping="Wrap" Text="Decimation type:" VerticalAlignment="Top"/>
            <ComboBox Name="ComboBox_Decimation" HorizontalAlignment="Left" Margin="160,4,0,0" VerticalAlignment="Top" Width="120"/>
            <TextBlock HorizontalAlignment="Left" Margin="37,37,0,0" TextWrapping="Wrap" Text="Quantization type:" VerticalAlignment="Top" RenderTransformOrigin="-0.204,-0.062"/>
            <ComboBox Name="ComboBox_Quantization" HorizontalAlignment="Left" Margin="160,31,0,0" VerticalAlignment="Top" Width="120"/>
            <TextBlock Name="JPG_FirstText" HorizontalAlignment="Left" Margin="10,68,0,0" TextWrapping="Wrap" Text="N_Y:" VerticalAlignment="Top" RenderTransformOrigin="0.492,-1.065"/>
            <ComboBox Name="JPG_FirstParameter" HorizontalAlignment="Left" Margin="37,68,0,0" VerticalAlignment="Top" Width="33"/>
            <TextBlock Name="JPG_SecondText" HorizontalAlignment="Left" Margin="84,68,0,0" TextWrapping="Wrap" Text="N_C:" VerticalAlignment="Top" RenderTransformOrigin="0.204,1.812"/>
            <ComboBox Name="JPG_SecondParameter" HorizontalAlignment="Left" Margin="113,68,0,0" VerticalAlignment="Top" Width="35"/>
            <TextBlock Name="JPG_ThirdText" HorizontalAlignment="Left" Height="23" Margin="163,68,0,0" TextWrapping="Wrap" Text="&#x3B1;_Y:" VerticalAlignment="Top" Width="31" RenderTransformOrigin="1.271,0.783"/>
            <ComboBox Name="JPG_ThirdParameter" HorizontalAlignment="Left" Margin="194,68,0,0" VerticalAlignment="Top" Width="42"/>
            <TextBlock Name="JPG_FourthText" HorizontalAlignment="Left" Margin="241,68,0,0" TextWrapping="Wrap" Text="&#x263;_C:" VerticalAlignment="Top"/>
            <ComboBox Name="JPG_FourthParameter" HorizontalAlignment="Left" Margin="267,68,0,0" VerticalAlignment="Top" Width="43" RenderTransformOrigin="1.233,0.545"/>
        </Grid>
    </Grid>
</Window>
{'fraction_non_alphanumeric': 0.14862552754648112, 'fraction_numerical': 0.04756473137903502, 'mean_word_length': 5.114365411436541, 'pattern_counts': {'":': 0, '<': 83, '<?xml version=': 0, '>': 83, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '5893657', 'n_tokens_mistral': 2830, 'n_tokens_neox': 2482, 'n_words': 410}