<commit_before>﻿<Window x:Class="LiveVisualizer.MainWindow"
        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:LiveVisualizer"
        mc:Ignorable="d" 
        d:DesignHeight="350" d:DesignWidth="700"
        Title="osu!StreamCompanion - LiveVisualizer" 
        Height="{Binding Path=WindowHeight, Mode=TwoWay}" Width="{Binding Path=WindowWidth, Mode=TwoWay}" 
        MouseLeftButtonDown="Window_MouseLeftButtonDown" 
        Background="{Binding BackgroundColor}"
        SizeChanged="MainWindow_OnSizeChanged"
        MinHeight="350"
        MinWidth="500"
        AllowsTransparency="True"
        >
    <Window.Style>
        <Style TargetType="Window">
            <Style.Triggers>
                <DataTrigger Binding="{Binding EnableResizing}" Value="True">
                    <Setter Property="WindowStyle" Value="SingleBorderWindow"></Setter>
                    <Setter Property="ResizeMode" Value="CanResize"></Setter>
                </DataTrigger>
            </Style.Triggers>
            <Style.Setters>
                <Setter Property="WindowStyle" Value="None"></Setter>
                <Setter Property="ResizeMode" Value="NoResize"></Setter>
            </Style.Setters>
        </Style>
    </Window.Style>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="2*"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <Border CornerRadius="30,30,0,0" Name="Border">
            <Border.Background>
                <ImageBrush ImageSource="{Binding ImageLocation, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}"  Stretch="UniformToFill"/>
            </Border.Background>

        </Border>
        <Rectangle Fill="{Binding ImageDimColor}"/>

        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="20" />
            </Grid.RowDefinitions>

            <Viewbox Grid.Row="0" MaxHeight="30"  >
                <TextBlock Name="Title" Text="{Binding Title, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}" Foreground="#FFE8E8E8" Margin="10 0 10 0" FontFamily="{Binding Font}" Padding="0 0 0 0"/>
            </Viewbox>
            <Viewbox Grid.Row="1" >
                <TextBlock Name="Artist" Text="{Binding Artist, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}"  Foreground="#FFCBCBCB" Margin="10 0 10 0" FontFamily="{Binding Font}" Padding="0 0 0 0"/>
            </Viewbox>
        </Grid>

        <Rectangle Grid.Row="1" Fill="#141414"/>
        <Frame Name="frameholder" Height="150" VerticalAlignment="Bottom" HorizontalAlignment="Left" Width="{Binding WindowWidth}"/>
        <Frame Name="frameholderTimer" Height="150" VerticalAlignment="Bottom" HorizontalAlignment="Left" Width="{Binding PixelMapProgress}"/>
        <Grid Grid.Row="1">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="2*"/>
            </Grid.ColumnDefinitions>
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="1.5*"/>
                    <ColumnDefinition Width="*"/>
                </Grid.ColumnDefinitions>
                <TextBlock Name="PPData" Text="{Binding Pp, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}" Grid.Column="0" FontSize="50" Foreground="#d6d0d1" VerticalAlignment="Center" HorizontalAlignment="Right" FontFamily="{Binding Font}"/>
                <Label Name="PP" Grid.Column="1" Content="pp" FontSize="50" Foreground="#d6d0d1" VerticalAlignment="Center" HorizontalAlignment="Left" FontFamily="{Binding Font}"/>
            </Grid>

            <Grid Grid.Column="1">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*"/>
                    <ColumnDefinition Width="*"/>
                    <ColumnDefinition Width="*"/>
                </Grid.ColumnDefinitions>
                <Label Name="hundreds" Content="100" HorizontalAlignment="Center" FontSize="30" Foreground="#FF817E7F" Margin="0 15 0 0 " FontFamily="{Binding Font}"/>
                <Label Name="hundredsData" Content="{Binding Hit100, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}" HorizontalAlignment="Center" FontSize="30" Foreground="#d6d0d1"  Margin="0 60 0 0" FontFamily="{Binding Font}"/>
                <Label Name="fifties" Grid.Column="1" Content="50" HorizontalAlignment="Center" FontSize="30" Foreground="#FF817E7F" Margin="0 15 0 0 " FontFamily="{Binding Font}"/>
                <Label Name="fiftieData" Grid.Column="1" Content="{Binding Hit50, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}" HorizontalAlignment="Center" FontSize="30" Foreground="#d6d0d1"  Margin="0 60 0 0" FontFamily="{Binding Font}"/>
                <Label Name="miss" Grid.Column="2" Content="MISS" HorizontalAlignment="Center" FontSize="30" Foreground="#FF817E7F" Margin="0 15 0 0 " FontFamily="{Binding Font}"/>
                <Label Name="missData" Grid.Column="2" Content="{Binding HitMiss, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}" HorizontalAlignment="Center" FontSize="30" Foreground="#d6d0d1" Margin="0 60 0 0 " FontFamily="{Binding Font}" />
            </Grid>
        </Grid>
    </Grid>
</Window>
<commit_msg>Add: Make image dim only dim image area instead of rectangle area<commit_after>﻿<Window x:Class="LiveVisualizer.MainWindow"
        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:LiveVisualizer"
        mc:Ignorable="d" 
        d:DesignHeight="350" d:DesignWidth="700"
        Title="osu!StreamCompanion - LiveVisualizer" 
        Height="{Binding Path=WindowHeight, Mode=TwoWay}" Width="{Binding Path=WindowWidth, Mode=TwoWay}" 
        MouseLeftButtonDown="Window_MouseLeftButtonDown" 
        Background="{Binding BackgroundColor}"
        SizeChanged="MainWindow_OnSizeChanged"
        MinHeight="350"
        MinWidth="500"
        AllowsTransparency="True"
        >
    <Window.Style>
        <Style TargetType="Window">
            <Style.Triggers>
                <DataTrigger Binding="{Binding EnableResizing}" Value="True">
                    <Setter Property="WindowStyle" Value="SingleBorderWindow"></Setter>
                    <Setter Property="ResizeMode" Value="CanResize"></Setter>
                </DataTrigger>
            </Style.Triggers>
            <Style.Setters>
                <Setter Property="WindowStyle" Value="None"></Setter>
                <Setter Property="ResizeMode" Value="NoResize"></Setter>
            </Style.Setters>
        </Style>
    </Window.Style>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="2*"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <Border CornerRadius="30,30,0,0" Name="Border">
            <Border.Background>
                <ImageBrush ImageSource="{Binding ImageLocation, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}"  Stretch="UniformToFill"/>
            </Border.Background>
        </Border>
        <Border CornerRadius="30,30,0,0" Name="Border2" Background="{Binding ImageDimColor}"/>

        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="20" />
            </Grid.RowDefinitions>

            <Viewbox Grid.Row="0" MaxHeight="30"  >
                <TextBlock Name="Title" Text="{Binding Title, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}" Foreground="#FFE8E8E8" Margin="10 0 10 0" FontFamily="{Binding Font}" Padding="0 0 0 0"/>
            </Viewbox>
            <Viewbox Grid.Row="1" >
                <TextBlock Name="Artist" Text="{Binding Artist, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}"  Foreground="#FFCBCBCB" Margin="10 0 10 0" FontFamily="{Binding Font}" Padding="0 0 0 0"/>
            </Viewbox>
        </Grid>

        <Rectangle Grid.Row="1" Fill="#141414"/>
        <Frame Name="frameholder" Height="150" VerticalAlignment="Bottom" HorizontalAlignment="Left" Width="{Binding WindowWidth}"/>
        <Frame Name="frameholderTimer" Height="150" VerticalAlignment="Bottom" HorizontalAlignment="Left" Width="{Binding PixelMapProgress}"/>
        <Grid Grid.Row="1">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="2*"/>
            </Grid.ColumnDefinitions>
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="1.5*"/>
                    <ColumnDefinition Width="*"/>
                </Grid.ColumnDefinitions>
                <TextBlock Name="PPData" Text="{Binding Pp, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}" Grid.Column="0" FontSize="50" Foreground="#d6d0d1" VerticalAlignment="Center" HorizontalAlignment="Right" FontFamily="{Binding Font}"/>
                <Label Name="PP" Grid.Column="1" Content="pp" FontSize="50" Foreground="#d6d0d1" VerticalAlignment="Center" HorizontalAlignment="Left" FontFamily="{Binding Font}"/>
            </Grid>

            <Grid Grid.Column="1">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*"/>
                    <ColumnDefinition Width="*"/>
                    <ColumnDefinition Width="*"/>
                </Grid.ColumnDefinitions>
                <Label Name="hundreds" Content="100" HorizontalAlignment="Center" FontSize="30" Foreground="#FF817E7F" Margin="0 15 0 0 " FontFamily="{Binding Font}"/>
                <Label Name="hundredsData" Content="{Binding Hit100, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}" HorizontalAlignment="Center" FontSize="30" Foreground="#d6d0d1"  Margin="0 60 0 0" FontFamily="{Binding Font}"/>
                <Label Name="fifties" Grid.Column="1" Content="50" HorizontalAlignment="Center" FontSize="30" Foreground="#FF817E7F" Margin="0 15 0 0 " FontFamily="{Binding Font}"/>
                <Label Name="fiftieData" Grid.Column="1" Content="{Binding Hit50, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}" HorizontalAlignment="Center" FontSize="30" Foreground="#d6d0d1"  Margin="0 60 0 0" FontFamily="{Binding Font}"/>
                <Label Name="miss" Grid.Column="2" Content="MISS" HorizontalAlignment="Center" FontSize="30" Foreground="#FF817E7F" Margin="0 15 0 0 " FontFamily="{Binding Font}"/>
                <Label Name="missData" Grid.Column="2" Content="{Binding HitMiss, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}" HorizontalAlignment="Center" FontSize="30" Foreground="#d6d0d1" Margin="0 60 0 0 " FontFamily="{Binding Font}" />
            </Grid>
        </Grid>
    </Grid>
</Window>

{'fraction_non_alphanumeric': 0.1435009915269515, 'fraction_numerical': 0.03145844600685055, 'mean_word_length': 2.8916169764994737, 'pattern_counts': {'":': 0, '<': 151, '<?xml version=': 0, '>': 151, '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': '6330095', 'n_tokens_mistral': 3394, 'n_tokens_neox': 2941, 'n_words': 567}