<commit_before>﻿<Page
    x:Class="CodeHub.Views.CommentsView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:CodeHub.Views"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:convertes="using:CodeHub.Converters"
    mc:Ignorable="d">
    <Page.Resources>
        <convertes:DateFormatConverter x:Key="DateFormatConverter" x:Name="DateFormatConverter"/>
    </Page.Resources>
    <ScrollViewer HorizontalScrollBarVisibility="Disabled"
                  HorizontalScrollMode="Disabled"
                  VerticalScrollBarVisibility="Auto"
                  VerticalScrollMode="Enabled"
                  Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
        <StackPanel Orientation="Horizontal" Margin="15 20 0 0">
            <StackPanel Orientation="Vertical" 
                        Margin="0 0 3 0">
                <Grid>
                    <HyperlinkButton Command="{x:Bind ViewModel.UserTapped}">
                        <Grid>
                            <Border 
                         Width="23"
                         Height="23"
                         Margin="0 0 10 0"
                         CornerRadius="8,8,8,8">
                                <Border.Background>
                                    <ImageBrush ImageSource="/Assets/Images/placeholder.jpg"/>
                                </Border.Background>
                            </Border>
                            <Border
                         Width="23"
                         Height="23"
                         Margin="0 0 10 0"
                         CornerRadius="8,8,8,8">
                                <Border.Background>
                                    <ImageBrush ImageSource="{x:Bind ViewModel.Comment.User.AvatarUrl,Mode=OneWay}"/>
                                </Border.Background>
                            </Border>
                        </Grid>
                    </HyperlinkButton>
                    
                </Grid>

            </StackPanel>
            <StackPanel Orientation="Vertical">
                <HyperlinkButton Content="{x:Bind ViewModel.Comment.User.Login,Mode=OneWay}"
                                 Command="{x:Bind ViewModel.UserTapped}"
                                 Margin="0 0 0 5">
                    <HyperlinkButton.ContentTemplate>
                        <DataTemplate>
                            <TextBlock Text="{Binding}" FontSize="12"
                                           FontWeight="SemiBold"
                                           Foreground="Gray"/>
                        </DataTemplate>
                    </HyperlinkButton.ContentTemplate>
                </HyperlinkButton>
               
                <TextBlock VerticalAlignment="Center"
                           FontSize="13"
                           IsTextSelectionEnabled="True"
                           MaxWidth="230"
                           TextWrapping="Wrap"
                           Text="{x:Bind ViewModel.Comment.Body,Mode=OneWay}"/>
                <TextBlock FontSize="12"
                           Foreground="Gray"
                           Margin="0 5 0 5"
                           Text="{x:Bind ViewModel.Comment.UpdatedAt,Converter={StaticResource DateFormatConverter},Mode=OneWay}"/>
            </StackPanel>

        </StackPanel>
    </ScrollViewer>
</Page><commit_msg>Fixed CommentsView width issue<commit_after>﻿<Page x:Class="CodeHub.Views.CommentsView"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:convertes="using:CodeHub.Converters"
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
      xmlns:local="using:CodeHub.Views"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
      mc:Ignorable="d">
    <Page.Resources>
        <convertes:DateFormatConverter x:Key="DateFormatConverter" x:Name="DateFormatConverter" />
    </Page.Resources>
    <ScrollViewer Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"
                  HorizontalScrollBarVisibility="Disabled"
                  HorizontalScrollMode="Disabled"
                  VerticalScrollBarVisibility="Auto"
                  VerticalScrollMode="Enabled">
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>
            <HyperlinkButton Grid.Column="0"
                             Margin="15,20,0,0"
                             VerticalAlignment="Top"
                             Command="{x:Bind ViewModel.UserTapped}">
                <Grid>
                    <Border Width="23"
                            Height="23"
                            Margin="0,0,10,0"
                            CornerRadius="8,8,8,8">
                        <Border.Background>
                            <ImageBrush ImageSource="/Assets/Images/placeholder.jpg" />
                        </Border.Background>
                    </Border>
                    <Border Width="23"
                            Height="23"
                            Margin="0,0,10,0"
                            CornerRadius="8,8,8,8">
                        <Border.Background>
                            <ImageBrush ImageSource="{x:Bind ViewModel.Comment.User.AvatarUrl, Mode=OneWay}" />
                        </Border.Background>
                    </Border>
                </Grid>
            </HyperlinkButton>
            <StackPanel Grid.Column="1" Orientation="Vertical">
                <HyperlinkButton Margin="0,20,0,5"
                                 Command="{x:Bind ViewModel.UserTapped}"
                                 Content="{x:Bind ViewModel.Comment.User.Login, Mode=OneWay}">
                    <HyperlinkButton.ContentTemplate>
                        <DataTemplate>
                            <TextBlock FontSize="12"
                                       FontWeight="SemiBold"
                                       Foreground="Gray"
                                       Text="{Binding}" />
                        </DataTemplate>
                    </HyperlinkButton.ContentTemplate>
                </HyperlinkButton>

                <TextBlock HorizontalAlignment="Left"
                           VerticalAlignment="Center"
                           FontSize="13"
                           IsTextSelectionEnabled="True"
                           Text="{x:Bind ViewModel.Comment.Body, Mode=OneWay}"
                           TextWrapping="Wrap" />
                <TextBlock Margin="0,5,0,5"
                           FontSize="12"
                           Foreground="Gray"
                           Text="{x:Bind ViewModel.Comment.UpdatedAt, Converter={StaticResource DateFormatConverter}, Mode=OneWay}" />
            </StackPanel>
        </Grid>

    </ScrollViewer>
</Page>
{'fraction_non_alphanumeric': 0.10389067075721657, 'fraction_numerical': 0.018686375679821503, 'mean_word_length': 1.2546369066331342, 'pattern_counts': {'":': 0, '<': 79, '<?xml version=': 0, '>': 79, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 14}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 13, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3493517', 'n_tokens_mistral': 1854, 'n_tokens_neox': 1628, 'n_words': 215}