<commit_before>﻿<Page x:Class="GifImageSample.ListViewTest"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:local="using:GifImageSample"
      xmlns:gs="using:GifImage"
      xmlns:controls="using:GifImage"
      xmlns:gif="using:XamlAnimatedGif"
      xmlns:core="using:Microsoft.Xaml.Interactions.Core"
      xmlns:i="using:Microsoft.Xaml.Interactivity"
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
      mc:Ignorable="d"
      Loaded="Page_Loaded"
      Unloaded="Page_Unloaded">

    <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <Button x:Name="navBackButton"
                Height="60"
                Width="60"
                Visibility="Collapsed"
                Click="Button_Click">
        </Button>
        <ListView ItemsSource="{Binding DataContext.Items}"
                  x:Name="listViewTest"
                  Grid.Row="1"
                  local:SizeChange.IsEnabled="True"
                  ShowsScrollingPlaceholders="True">
            <ListView.ItemContainerStyle>
                <Style TargetType="ListViewItem">
                    <Setter Property="Padding"
                            Value="0" />
                    <Setter Property="Margin"
                            Value="5" />
                </Style>
            </ListView.ItemContainerStyle>
            <ListView.ItemTemplate>
                <DataTemplate>
                    <Grid Background="DimGray"
                          Width="{Binding ElementName=listViewTest, Path=(local:SizeChange.ActualWidth)}">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="*" />
                        </Grid.ColumnDefinitions>
                        <!--<i:Interaction.Behaviors>
                            <core:IncrementalUpdateBehavior Phase="0" />
                        </i:Interaction.Behaviors>-->
                        <StackPanel Margin="5">
                            <Viewbox Height="100"
                                     Stretch="Uniform"
                                     StretchDirection="DownOnly">

                                <Image gs:AnimationBehavior.ImageUriSource="{Binding Uri}"/>
                                <!--<Image gif:AnimationBehavior.SourceUri="{Binding Uri}" />-->
                                <!--<i:Interaction.Behaviors>
                                    <core:IncrementalUpdateBehavior Phase="1" />
                                </i:Interaction.Behaviors>-->
                            </Viewbox>
                            <TextBlock Margin="5"
                                       HorizontalAlignment="Center"<commit_msg>reduced listview cache size to test<commit_after>﻿<Page x:Class="GifImageSample.ListViewTest"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:local="using:GifImageSample"
      xmlns:gs="using:GifImage"
      xmlns:controls="using:GifImage"
      xmlns:gif="using:XamlAnimatedGif"
      xmlns:core="using:Microsoft.Xaml.Interactions.Core"
      xmlns:i="using:Microsoft.Xaml.Interactivity"
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
      mc:Ignorable="d"
      Loaded="Page_Loaded"
      Unloaded="Page_Unloaded">

    <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <Button x:Name="navBackButton"
                Height="60"
                Width="60"
                Visibility="Collapsed"
                Click="Button_Click">
        </Button>
        <ListView ItemsSource="{Binding DataContext.Items}"
                  x:Name="listViewTest"
                  Grid.Row="1"
                  local:SizeChange.IsEnabled="True"
                  ShowsScrollingPlaceholders="True">
            <ListView.ItemContainerStyle>
                <Style TargetType="ListViewItem">
                    <Setter Property="Padding"
                            Value="0" />
                    <Setter Property="Margin"
                            Value="5" />
                </Style>
            </ListView.ItemContainerStyle>
            <ListView.ItemsPanel>
                <ItemsPanelTemplate>
                    <ItemsStackPanel CacheLength="2" />
                </ItemsPanelTemplate>
            </ListView.ItemsPanel>
            <ListView.ItemTemplate>
                <DataTemplate>
                    <Grid Background="DimGray"
                          Width="{Binding ElementName=listViewTest, Path=(local:SizeChange.ActualWidth)}">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="*" />
                        </Grid.ColumnDefinitions>
                        <!--<i:Interaction.Behaviors>
                            <core:IncrementalUpdateBehavior Phase="0" />
                        </i:Interaction.Behaviors>-->
                        <StackPanel Margin="5">
                            <Viewbox Height="100"
                                     Stretch="Uniform"
                                     StretchDirection="DownOnly">

                                <Image gs:AnimationBehavior.ImageUriSource="{Binding Uri}"/>
                                <!--<Image gif:AnimationBehavior.SourceUri="{Binding Uri}" />-->
                                <!--<i:Interaction.Behaviors>
                                    <core:IncrementalUpdateBehavior Phase="1" />
                                </i:Interaction.Behaviors>-->
                            </Viewbox>
                            <TextBlock Margin="5"
                                       HorizontalAlignment="Center"
{'fraction_non_alphanumeric': 0.11360759493670886, 'fraction_numerical': 0.009651898734177215, 'mean_word_length': 1.4652886115444619, 'pattern_counts': {'":': 0, '<': 82, '<?xml version=': 0, '>': 80, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 22}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4997221', 'n_tokens_mistral': 1677, 'n_tokens_neox': 1494, 'n_words': 182}