<commit_before>﻿<UserControl
    x:Class="BRYXImageViewer.Controls.BryxImageViewer"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:BRYXImageViewer.Controls"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    DataContext="{Binding RelativeSource={RelativeSource Self}}">

    <Grid>
        <Button Name="ThumbnailButton" Background="Transparent" Padding="0"
            Click="ThumbnailClicked">
            <Image Source="{Binding ThumbnailSource}"/>
        </Button>

        <ContentDialog Name="FullSizeImage" HorizontalAlignment="Center"
                       VerticalAlignment="Center" Margin="0" Background="#333333">
            <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Padding="0" Margin="0">
                <Image Source="{Binding ImageSource}" Tapped="CloseFullSizeClicked"/>
                <Button HorizontalAlignment="Right" VerticalAlignment="Top" Style="{ThemeResource ButtonStyle}"
                        Height="40" Width="40" Click="CloseFullSizeClicked">
                    <FontIcon Name="ButtonIcon" Glyph="&#57610;" Foreground="{Binding Foreground}"
                              HorizontalAlignment="Center" VerticalAlignment="Center"/>
                </Button>
            </Grid>
        </ContentDialog>
    </Grid>
</UserControl>
<commit_msg>Put the images in viewboxes so they scale correctly<commit_after>﻿<UserControl
    x:Class="BRYXImageViewer.Controls.BryxImageViewer"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:BRYXImageViewer.Controls"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    DataContext="{Binding RelativeSource={RelativeSource Self}}">

    <Grid>
        <Button Name="ThumbnailButton" Background="Transparent" Padding="0"
            Click="ThumbnailClicked">
            <Viewbox MaxHeight="300" MaxWidth="300">
                <Image Source="{Binding ThumbnailSource}"/>
            </Viewbox>
        </Button>

        <ContentDialog Name="FullSizeImage" HorizontalAlignment="Center"
                       VerticalAlignment="Center" Margin="0" Background="#333333">
            <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Padding="0" Margin="0">
                <Viewbox MaxHeight="700">
                    <Image Source="{Binding ImageSource}" Tapped="CloseFullSizeClicked"/>
                </Viewbox>
                <Button HorizontalAlignment="Right" VerticalAlignment="Top" Style="{ThemeResource ButtonStyle}"
                        Height="40" Width="40" Click="CloseFullSizeClicked">
                    <FontIcon Name="ButtonIcon" Glyph="&#57610;" Foreground="{Binding Foreground}"
                              HorizontalAlignment="Center" VerticalAlignment="Center"/>
                </Button>
            </Grid>
        </ContentDialog>
    </Grid>
</UserControl>

{'fraction_non_alphanumeric': 0.13480012395413696, 'fraction_numerical': 0.024480942051440968, 'mean_word_length': 2.9851851851851854, 'pattern_counts': {'":': 0, '<': 37, '<?xml version=': 0, '>': 37, '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': '3954420', 'n_tokens_mistral': 976, 'n_tokens_neox': 852, 'n_words': 127}