<commit_before>﻿<Page
    x:Class="AzureBlog.Views.NewspaperPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:AzureBlog.Views"
    xmlns:models="using:AzureBlog.Models"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d" SizeChanged="Page_SizeChanged">

    <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
        <GridView x:Name="NewspaperGridView"
            IsItemClickEnabled="True"
            ItemClick="NewspaperGridView_ItemClick"
            IsSwipeEnabled="False"
            CanDragItems="False"
            SelectionMode="Single" RequestedTheme="Light"
            ItemsSource="{x:Bind _currentController.RSSNewspaper.Articles}">

            <GridView.ItemTemplate>
                <DataTemplate x:DataType="models:Article">
                    <Grid x:Name="ArticleGrid" Background="#FF939598" Margin="15,15,0,0">
                        <Image Source="{x:Bind ImageUriString}" Stretch="UniformToFill"/>
                        <StackPanel Orientation="Vertical" Background="#CC000000" Margin="3,0,3,4" Height="130" VerticalAlignment="Bottom">
                            <TextBlock Text="{x:Bind Title}" FontSize="22" Foreground="White" Margin="10,4,10,0" Height="60" LineHeight="0" TextWrapping="Wrap" TextTrimming="WordEllipsis" HorizontalAlignment="Left"/>
                            <TextBlock Text="{x:Bind PublishedDateTimeString}" Foreground="LightGray" FontSize="12" Margin="10,10,10,0"/>
                            <TextBlock Text="{x:Bind AuthorsString}" Foreground="LightGray" FontSize="12" Margin="10,0,10,0"/>
                            <TextBlock Text="{x:Bind CategoriesString}" Foreground="LightGray" FontSize="12" Margin="10,0,10,0"/>
                        </StackPanel>
                    </Grid>

                </DataTemplate>
            </GridView.ItemTemplate><commit_msg>- fixed size of article within the grid when no article image is present - made the transitions of the articles nice when resizing the newspaper page<commit_after>﻿<Page
    x:Class="AzureBlog.Views.NewspaperPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:AzureBlog.Views"
    xmlns:models="using:AzureBlog.Models"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d" SizeChanged="Page_SizeChanged">

    <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
        <GridView x:Name="NewspaperGridView"
            IsItemClickEnabled="True"
            ItemClick="NewspaperGridView_ItemClick"
            IsSwipeEnabled="False"
            CanDragItems="False"
            SelectionMode="Single" RequestedTheme="Light"
            ItemsSource="{x:Bind _currentController.RSSNewspaper.Articles}">

            <GridView.ItemTemplate>
                <DataTemplate x:DataType="models:Article">
                    <Grid x:Name="ArticleGrid" Background="#FF939598" Margin="15,15,0,0" Height="320">
                        <Image Source="{x:Bind ImageUriString}" Stretch="UniformToFill"/>
                        <StackPanel Orientation="Vertical" Background="#CC000000" Margin="3,0,3,4" Height="130" VerticalAlignment="Bottom">
                            <TextBlock Text="{x:Bind Title}" FontSize="22" Foreground="White" Margin="10,4,10,0" Height="60" LineHeight="0" TextWrapping="Wrap" TextTrimming="WordEllipsis" HorizontalAlignment="Left"/>
                            <TextBlock Text="{x:Bind PublishedDateTimeString}" Foreground="LightGray" FontSize="12" Margin="10,10,10,0"/>
                            <TextBlock Text="{x:Bind AuthorsString}" Foreground="LightGray" FontSize="12" Margin="10,0,10,0"/>
                            <TextBlock Text="{x:Bind CategoriesString}" Foreground="LightGray" FontSize="12" Margin="10,0,10,0"/>
                        </StackPanel>
                    </Grid>

                </DataTemplate>
            </GridView.ItemTemplate>

            <GridView.ItemContainerTransitions>
                <TransitionCollection>
                    <RepositionThemeTransition />
                </TransitionCollection>    
            </GridView.ItemContainerTransitions>
            
{'fraction_non_alphanumeric': 0.13250609350764458, 'fraction_numerical': 0.03478838909816087, 'mean_word_length': 2.8614200171086397, 'pattern_counts': {'":': 0, '<': 40, '<?xml version=': 0, '>': 40, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 14}, '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': '6950172', 'n_tokens_mistral': 1400, 'n_tokens_neox': 1222, 'n_words': 176}