<commit_before>﻿<Page x:Class="Locana.Pages.AboutPage"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:c="using:Locana.Controls"
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
      xmlns:local="using:Locana"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
      Loaded="Page_Loaded"
      mc:Ignorable="d">

    <Grid x:Name="LayoutRoot" Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>

        <c:PageHeader x:Name="pageHeader">
            <c:PageHeader.HeaderContent>
                <TextBlock x:Name="title"
                           Style="{ThemeResource PageTitleTextBlockStyle}"
                           Text="{Binding [About],
                                          Source={StaticResource LocalizedStrings}}" />
            </c:PageHeader.HeaderContent>
        </c:PageHeader>

        <c:Toast x:Name="Toast"
                 Grid.RowSpan="2"
                 MinHeight="48"
                 HorizontalAlignment="Stretch"
                 VerticalAlignment="Top"
                 Canvas.ZIndex="20"
                 IsHitTestVisible="False" />

        <Pivot Grid.Row="1" Grid.RowSpan="2">
            <PivotItem Margin="12,14,0,0">
                <PivotItem.Header>
                    <TextBlock Style="{StaticResource SubheaderTextBlockStyle}" Text="{Binding [About], Source={StaticResource LocalizedStrings}}" />
                </PivotItem.Header>
                <ScrollViewer Margin="9,0">
                    <StackPanel>
                        <TextBlock Style="{StaticResource SubtitleTextBlockStyle}"
                                   Text="{Binding [Version],
                                                  Source={StaticResource LocalizedStrings}}"
                                   TextWrapping="Wrap" />
                        <TextBlock x:Name="VERSION_STR"
                                   Margin="20,4,0,4"
                                   Foreground="{ThemeResource ApplicationSecondaryForegroundThemeBrush}" />
                        <TextBlock Margin="0,12,0,0"
                                   Style="{StaticResource SubtitleTextBlockStyle}"
                                   Text="{Binding [Constraint],
                                                  Source={StaticResource LocalizedStrings}}"
                                   TextWrapping="Wrap" />
                        <StackPanel Margin="20,4,0,4" Orientation="Vertical">
                            <TextBlock x:Name="Unlimited"
                                       Foreground="{ThemeResource ApplicationSecondaryForegroundThemeBrush}"
                                       Text="{Binding [Constraint_unlimited],
                                                      Source={StaticResource LocalizedStrings}}"
                                       TextWrapping="Wrap"
                                       Visibility="Collapsed" />
                            <TextBlock x:Name="Trial"
                                       Foreground="{ThemeResource ApplicationSecondaryForegroundThemeBrush}"
                                       Text="{Binding [Constraint_trial],
                                                      Source={StaticResource LocalizedStrings}}"
                                       TextWrapping="Wrap" />
                            <TextBlock x:Name="Limited"
                                       Foreground="{ThemeResource ApplicationSecondaryForegroundThemeBrush}"
                                       Text="{Binding [Constraint_limited],
                                                      Source={StaticResource LocalizedStrings}}"
                                       TextWrapping="Wrap"
                                       Visibility="Collapsed" />
                            <Button x:Name="TrialButton"
                                    Margin="0,8,40,4"
                                    HorizontalAlignment="Left"
                                    BorderThickness="1"
                                    Click="TrialButton_Click"
                                    Content="{Binding [FullVersion],
                                                      Source={StaticResource LocalizedStrings}}" />
                        </StackPanel>
                        <TextBlock Margin="0,12,0,0"
                                   Style="{StaticResource SubtitleTextBlockStyle}"
                                   Text="{Binding [CopyRight],
                                                  Source={StaticResource LocalizedStrings}}"
                                   TextWrapping="Wrap" />
                        <TextBlock x:Name="COPYRIGHT"
                                   Margin="20,4,0,4"
                                   Foreground="{ThemeResource ApplicationSecondaryForegroundThemeBrush}" />
                        <TextBlock Margin="0,15,0,0"
                                   Style="{StaticResource SubtitleTextBlockStyle}"
                                   Text="{Binding [DevelopedBy],
                                                  Source={StaticResource LocalizedStrings}}"
                                   TextWrapping="Wrap" />
                        <RichTextBlock Margin="20,4,0,4">
                            <Paragraph x:Name="DEV_BY" />
                        </RichTextBlock>
                        <TextBlock Margin="0,12,0,0"
                                   Style="{StaticResource SubtitleTextBlockStyle}"
                                   Text="{Binding [FAQ],
                                                  Source={StaticResource LocalizedStrings}}"
                                   TextWrapping="Wrap" />
                        <RichTextBlock Margin="20,4,0,4">
                            <Paragraph x:Name="FaqLink" />
                        </RichTextBlock>
                        <TextBlock Margin="0,12,0,0"
                                   Style="{StaticResource SubtitleTextBlockStyle}"
                                   Text="{Binding [Support],
                                                  Source={StaticResource LocalizedStrings}}"
                                   TextWrapping="Wrap" />
                        <RichTextBlock Margin="20,4,0,4">
                            <Paragraph x:Name="SupportLink" />
                        </RichTextBlock>
                        <TextBlock Margin="0,12,0,0"
                                   Style="{StaticResource SubtitleTextBlockStyle}"
                                   Text="{Binding [SourceCode],
                                                  Source={StaticResource LocalizedStrings}}"
                                   TextWrapping="Wrap" />
                        <RichTextBlock Margin="20,4,0,48">
                            <Paragraph x:Name="RepoLink" />
                        </RichTextBlock>
                    </StackPanel>
                </ScrollViewer>
            </PivotItem>

            <PivotItem Margin="12,14,0,0">
                <PivotItem.Header>
                    <TextBlock Style="{StaticResource SubheaderTextBlockStyle}" Text="{Binding [OSSText], Source={StaticResource LocalizedStrings}}" />
                </PivotItem.Header>
                <Grid Margin="9,0">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="auto" />
                        <RowDefinition Height="*" />
                    </Grid.RowDefinitions>
                    <TextBlock Text="{Binding [ContainsLicense], Source={StaticResource LocalizedStrings}}" TextWrapping="Wrap" />
                    <ScrollViewer Grid.Row="1" Margin="4,12,4,0">
                        <RichTextBlock Margin="0,0,0,48"
                                       HorizontalAlignment="Left"
                                       VerticalAlignment="Top">
                            <Paragraph x:Name="Contents" />
                        </RichTextBlock>
                    </ScrollViewer>
                </Grid><commit_msg>Fix touch area of RichTextBlock<commit_after>﻿<Page x:Class="Locana.Pages.AboutPage"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:c="using:Locana.Controls"
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
      xmlns:local="using:Locana"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
      Loaded="Page_Loaded"
      mc:Ignorable="d">

    <Grid x:Name="LayoutRoot" Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>

        <c:PageHeader x:Name="pageHeader">
            <c:PageHeader.HeaderContent>
                <TextBlock x:Name="title"
                           Style="{ThemeResource PageTitleTextBlockStyle}"
                           Text="{Binding [About],
                                          Source={StaticResource LocalizedStrings}}" />
            </c:PageHeader.HeaderContent>
        </c:PageHeader>

        <c:Toast x:Name="Toast"
                 Grid.RowSpan="2"
                 MinHeight="48"
                 HorizontalAlignment="Stretch"
                 VerticalAlignment="Top"
                 Canvas.ZIndex="20"
                 IsHitTestVisible="False" />

        <Pivot Grid.Row="1" Grid.RowSpan="2">
            <PivotItem Margin="12,14,0,0">
                <PivotItem.Header>
                    <TextBlock Style="{StaticResource SubheaderTextBlockStyle}" Text="{Binding [About], Source={StaticResource LocalizedStrings}}" />
                </PivotItem.Header>
                <ScrollViewer Margin="9,0">
                    <StackPanel>
                        <TextBlock Style="{StaticResource SubtitleTextBlockStyle}"
                                   Text="{Binding [Version],
                                                  Source={StaticResource LocalizedStrings}}"
                                   TextWrapping="Wrap" />
                        <TextBlock x:Name="VERSION_STR"
                                   Margin="20,4,0,4"
                                   Foreground="{ThemeResource ApplicationSecondaryForegroundThemeBrush}" />
                        <TextBlock Margin="0,12,0,0"
                                   Style="{StaticResource SubtitleTextBlockStyle}"
                                   Text="{Binding [Constraint],
                                                  Source={StaticResource LocalizedStrings}}"
                                   TextWrapping="Wrap" />
                        <StackPanel Margin="20,4,0,4" Orientation="Vertical">
                            <TextBlock x:Name="Unlimited"
                                       Foreground="{ThemeResource ApplicationSecondaryForegroundThemeBrush}"
                                       Text="{Binding [Constraint_unlimited],
                                                      Source={StaticResource LocalizedStrings}}"
                                       TextWrapping="Wrap"
                                       Visibility="Collapsed" />
                            <TextBlock x:Name="Trial"
                                       Foreground="{ThemeResource ApplicationSecondaryForegroundThemeBrush}"
                                       Text="{Binding [Constraint_trial],
                                                      Source={StaticResource LocalizedStrings}}"
                                       TextWrapping="Wrap" />
                            <TextBlock x:Name="Limited"
                                       Foreground="{ThemeResource ApplicationSecondaryForegroundThemeBrush}"
                                       Text="{Binding [Constraint_limited],
                                                      Source={StaticResource LocalizedStrings}}"
                                       TextWrapping="Wrap"
                                       Visibility="Collapsed" />
                            <Button x:Name="TrialButton"
                                    Margin="0,8,40,4"
                                    HorizontalAlignment="Left"
                                    BorderThickness="1"
                                    Click="TrialButton_Click"
                                    Content="{Binding [FullVersion],
                                                      Source={StaticResource LocalizedStrings}}" />
                        </StackPanel>
                        <TextBlock Margin="0,12,0,0"
                                   Style="{StaticResource SubtitleTextBlockStyle}"
                                   Text="{Binding [CopyRight],
                                                  Source={StaticResource LocalizedStrings}}"
                                   TextWrapping="Wrap" />
                        <TextBlock x:Name="COPYRIGHT"
                                   Margin="20,4,0,4"
                                   Foreground="{ThemeResource ApplicationSecondaryForegroundThemeBrush}" />
                        <TextBlock Margin="0,15,0,0"
                                   Style="{StaticResource SubtitleTextBlockStyle}"
                                   Text="{Binding [DevelopedBy],
                                                  Source={StaticResource LocalizedStrings}}"
                                   TextWrapping="Wrap" />
                        <RichTextBlock Margin="20,4,0,4" HorizontalAlignment="Left">
                            <Paragraph x:Name="DEV_BY" />
                        </RichTextBlock>
                        <TextBlock Margin="0,12,0,0"
                                   Style="{StaticResource SubtitleTextBlockStyle}"
                                   Text="{Binding [FAQ],
                                                  Source={StaticResource LocalizedStrings}}"
                                   TextWrapping="Wrap" />
                        <RichTextBlock Margin="20,4,0,4" HorizontalAlignment="Left">
                            <Paragraph x:Name="FaqLink" />
                        </RichTextBlock>
                        <TextBlock Margin="0,12,0,0"
                                   Style="{StaticResource SubtitleTextBlockStyle}"
                                   Text="{Binding [Support],
                                                  Source={StaticResource LocalizedStrings}}"
                                   TextWrapping="Wrap" />
                        <RichTextBlock Margin="20,4,0,4" HorizontalAlignment="Left">
                            <Paragraph x:Name="SupportLink" />
                        </RichTextBlock>
                        <TextBlock Margin="0,12,0,0"
                                   Style="{StaticResource SubtitleTextBlockStyle}"
                                   Text="{Binding [SourceCode],
                                                  Source={StaticResource LocalizedStrings}}"
                                   TextWrapping="Wrap" />
                        <RichTextBlock Margin="20,4,0,48" HorizontalAlignment="Left">
                            <Paragraph x:Name="RepoLink" />
                        </RichTextBlock>
                    </StackPanel>
                </ScrollViewer>
            </PivotItem>

            <PivotItem Margin="12,14,0,0">
                <PivotItem.Header>
                    <TextBlock Style="{StaticResource SubheaderTextBlockStyle}" Text="{Binding [OSSText], Source={StaticResource LocalizedStrings}}" />
                </PivotItem.Header>
                <Grid Margin="9,0">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="auto" />
                        <RowDefinition Height="*" />
                    </Grid.RowDefinitions>
                    <TextBlock Text="{Binding [ContainsLicense], Source={StaticResource LocalizedStrings}}" TextWrapping="Wrap" />
                    <ScrollViewer Grid.Row="1" Margin="4,12,4,0">
                        <RichTextBlock Margin="0,0,0,48"
                                       HorizontalAlignment="Left"
                                       VerticalAlignment="Top">
                            <Paragraph x:Name="Contents" />
                        </RichTextBlock>
                    </ScrollViewer>
                </Grid>
{'fraction_non_alphanumeric': 0.09532352589403181, 'fraction_numerical': 0.014591556033967229, 'mean_word_length': 1.1021998742928976, 'pattern_counts': {'":': 0, '<': 135, '<?xml version=': 0, '>': 135, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 14}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 134, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7527960', 'n_tokens_mistral': 3752, 'n_tokens_neox': 3371, 'n_words': 475}