<commit_before>﻿<UserControl x:Class="GitHub.VisualStudio.Views.Documents.CommitListView"
             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:ghfvs="https://github.com/github/VisualStudio"
             xmlns:v="clr-namespace:GitHub.VisualStudio.Views"
             mc:Ignorable="d" d:DesignHeight="450" d:DesignWidth="800">
    <Control.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ghfvs:SharedDictionaryManager Source="pack://application:,,,/GitHub.VisualStudio.UI;component/SharedDictionary.xaml" />
                <ghfvs:SharedDictionaryManager Source="pack://application:,,,/GitHub.UI;component/SharedDictionary.xaml" />
                <ghfvs:SharedDictionaryManager Source="pack://application:,,,/GitHub.UI.Reactive;component/SharedDictionary.xaml" />
                <ghfvs:SharedDictionaryManager Source="pack://application:,,,/GitHub.UI;component/Assets/Markdown.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Control.Resources>

    <StackPanel Orientation="Vertical">
        <StackPanel Orientation="Horizontal" Margin="0,8">
            <Canvas Width="28"
                    Height="28"
                    Margin="0 0 4 0">
                <Ellipse Height="28"
                         Width="28"
                         Fill="#e1e4e8" /> 

                <ghfvs:OcticonImage DockPanel.Dock="Left"
                                Foreground="{DynamicResource VsBrush.WindowText}"
                                Margin="6 7 6 6"
                                Width="16"
                                Icon="repo_push"
                                HorizontalAlignment="Center" />
            </Canvas>


            <v:ActorAvatarView  
                VerticalAlignment="Center"
                Width="16" 
                Height="16" 
                ViewModel="{Binding Author}"/>

            <TextBlock Foreground="{DynamicResource VsBrush.WindowText}" Margin="4 0"
                       VerticalAlignment="Center">
                <Run FontWeight="Bold" Text="{Binding Author.Login, Mode=OneWay}" />
                <Run Text="{Binding AuthorCaption, Mode=OneWay}" />
            </TextBlock>
        </StackPanel>

        <ItemsControl ItemsSource="{Binding Commits}">
            <Control.Resources>
                <DataTemplate DataType="{x:Type ghfvs:CommitSummaryViewModel}">
                    <Border Padding="24 0 8 0">
                        <DockPanel>
                            <ghfvs:OcticonImage DockPanel.Dock="Left"
                                            Foreground="{DynamicResource VsBrush.GrayText}"
                                            Margin="0,0,2,0"
                                            Icon="git_commit"/>
                            <v:ActorAvatarView DockPanel.Dock="Left"
                                           Width="16"
                                           Height="16"
                                           Margin="2"
                                           ViewModel="{Binding Author}"/>
                            <TextBlock DockPanel.Dock="Right"
                                   FontFamily="Consolas"
                                   Margin="0,0,0,2"
                                   VerticalAlignment="Center">
                                <Hyperlink Command="{Binding DataContext.ShowCommit, ElementName=timeline}"
                                           CommandParameter="{Binding Oid}">
                                    <Run Text="{Binding AbbreviatedOid, Mode=OneWay}"/>
                                </Hyperlink>
                            </TextBlock>
                            <TextBlock Margin="0,0,0,2"
                                   Foreground="{DynamicResource VsBrush.WindowText}"
                                   Text="{Binding Header}" 
                                   VerticalAlignment="Center"/>
                        </DockPanel>
                    </Border>
                </DataTemplate>
            </Control.Resources>
        </ItemsControl>

        <Border BorderThickness="0,1,0,0"
                BorderBrush="{DynamicResource GitHubHeaderSeparatorBrush}"
                DockPanel.Dock="Bottom"
                Margin="0,8,0,0"
                Padding="0,4,0,0" />
    </StackPanel>
</UserControl><commit_msg>Tweak layout for commit list<commit_after>﻿<UserControl x:Class="GitHub.VisualStudio.Views.Documents.CommitListView"
             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:ghfvs="https://github.com/github/VisualStudio"
             xmlns:v="clr-namespace:GitHub.VisualStudio.Views"
             mc:Ignorable="d" d:DesignHeight="450" d:DesignWidth="800">
    <Control.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ghfvs:SharedDictionaryManager Source="pack://application:,,,/GitHub.VisualStudio.UI;component/SharedDictionary.xaml" />
                <ghfvs:SharedDictionaryManager Source="pack://application:,,,/GitHub.UI;component/SharedDictionary.xaml" />
                <ghfvs:SharedDictionaryManager Source="pack://application:,,,/GitHub.UI.Reactive;component/SharedDictionary.xaml" />
                <ghfvs:SharedDictionaryManager Source="pack://application:,,,/GitHub.UI;component/Assets/Markdown.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Control.Resources>

    <Grid Margin="0,8">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="45" /> 
            <ColumnDefinition Width="*" /> 
        </Grid.ColumnDefinitions>

        <StackPanel Orientation="Vertical" Grid.Column="1">
            <StackPanel Orientation="Horizontal">
                <Canvas Width="28"
                        Height="28"
                        HorizontalAlignment="Center"
                        Grid.Column="0">
                    <Ellipse Height="28"
                             Width="28"
                             Fill="#e1e4e8" /> 

                    <ghfvs:OcticonImage DockPanel.Dock="Left"
                                    Foreground="{DynamicResource VsBrush.WindowText}"
                                    Margin="6 7 6 6"
                                    Width="16"
                                    Icon="repo_push"
                                    HorizontalAlignment="Center" />
                </Canvas>

                <v:ActorAvatarView  
                    VerticalAlignment="Center"
                    Width="16" 
                    Height="16" 
                    Margin="4 0"
                    ViewModel="{Binding Author}"/>

                <TextBlock Foreground="{DynamicResource VsBrush.WindowText}" VerticalAlignment="Center">
                    <Run FontWeight="Bold" Text="{Binding Author.Login, Mode=OneWay}" />
                    <Run Text="{Binding AuthorCaption, Mode=OneWay}" />
                </TextBlock>
            </StackPanel>

            <ItemsControl ItemsSource="{Binding Commits}">
                <Control.Resources>
                    <DataTemplate DataType="{x:Type ghfvs:CommitSummaryViewModel}">
                        <Border Padding="30 0 8 0">
                            <DockPanel>
                                <ghfvs:OcticonImage DockPanel.Dock="Left"
                                                Foreground="{DynamicResource VsBrush.GrayText}"
                                                Margin="0,0,2,0"
                                                Icon="git_commit"/>
                                <v:ActorAvatarView DockPanel.Dock="Left"
                                               Width="16"
                                               Height="16"
                                               Margin="2"
                                               ViewModel="{Binding Author}"/>
                                <TextBlock DockPanel.Dock="Right"
                                       FontFamily="Consolas"
                                       Margin="0,0,0,2"
                                       VerticalAlignment="Center">
                                    <Hyperlink Command="{Binding DataContext.ShowCommit, ElementName=timeline}"
                                               CommandParameter="{Binding Oid}">
                                        <Run Text="{Binding AbbreviatedOid, Mode=OneWay}"/>
                                    </Hyperlink>
                                </TextBlock>
                                <TextBlock Margin="0,0,0,2"
                                       Foreground="{DynamicResource VsBrush.WindowText}"
                                       Text="{Binding Header}" 
                                       VerticalAlignment="Center"/>
                            </DockPanel>
                        </Border>
                    </DataTemplate>
                </Control.Resources>
            </ItemsControl>
        </StackPanel>
    </Grid>
</UserControl>
{'fraction_non_alphanumeric': 0.1074741999374544, 'fraction_numerical': 0.016470342958407172, 'mean_word_length': 1.2680851063829788, 'pattern_counts': {'":': 0, '<': 96, '<?xml version=': 0, '>': 96, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 14}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 55, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3018727', 'n_tokens_mistral': 2463, 'n_tokens_neox': 2137, 'n_words': 283}