<commit_before>﻿<local:SettingsDetailPageBase 
    x:Class="CodeHub.Views.GeneralSettingsView"
    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:controls="using:CodeHub.Controls"
    mc:Ignorable="d">

    <ScrollViewer Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"
                  HorizontalScrollBarVisibility="Disabled"
                  HorizontalScrollMode="Disabled"
                  VerticalScrollBarVisibility="Hidden"
                  VerticalScrollMode="Enabled">
        <VisualStateManager.VisualStateGroups>
            <VisualStateGroup x:Name="VisualStateGroup" CurrentStateChanged="OnCurrentStateChanged">
                <VisualState x:Name="Mobile">
                    <VisualState.StateTriggers>
                        <AdaptiveTrigger MinWindowWidth="320" />
                    </VisualState.StateTriggers>
                </VisualState>
                <VisualState x:Name="Desktop">
                    <VisualState.StateTriggers>
                        <AdaptiveTrigger MinWindowWidth="720" />
                    </VisualState.StateTriggers>
                </VisualState>
            </VisualStateGroup>
        </VisualStateManager.VisualStateGroups>

        <!--Options panel-->
        <StackPanel Margin="12">
            <TextBlock HorizontalAlignment="Left"
                       FontSize="22"
                       FontWeight="SemiLight"
                       Text="Syntax Highlighting style" />

            <!--Style-->
            <controls:AnimatedComboBox x:Name="SyntaxStyleCombobox"
                                       Margin="0,12,0,0"
                                       FontSize="13"
                                       ItemsSource="{x:Bind ViewModel.AvailableHighlightStyles}"
                                       SelectedIndex="{x:Bind ViewModel.SelectedHighlightStyleIndex, Mode=TwoWay}"
                                       Style="{StaticResource AnimatedComboBoxStyle}"
                                       MinWidth="120"/>

            <!--Line numbers-->
            <TextBlock HorizontalAlignment="Left"
                       Margin="0,20,0,0"
                       FontSize="22"
                       FontWeight="SemiLight"
                       Text="Show line numbers" />
            <ToggleSwitch IsOn="{x:Bind ViewModel.ShowLineNumbers, Mode=TwoWay}"
                          Margin="0,4,0,0"/>
            
            <!--Preview-->
            <TextBlock HorizontalAlignment="Left"
                       Margin="0,20,0,0"
                       FontSize="19"
                       FontWeight="SemiLight"
                       Text="Preview" />
            <controls:Hilite_meHighlightStylePreviewControl Height="200"
                                                            Margin="0,12,0,0"
                                                            HighlightStyle="{x:Bind ViewModel.HighlightStyle, Mode=OneWay}"
                                                            LineNumbersVisible="{x:Bind ViewModel.ShowLineNumbers, Mode=OneWay}"/>

            <!--Show Readme in RepoDetail Page-->
            <TextBlock HorizontalAlignment="Left"
                       Margin="0,20,0,0"
                       FontSize="22"
                       FontWeight="SemiLight"
                       TextWrapping="Wrap"
                       Text="Show README in Repository page" />
            <ToggleSwitch IsOn="{x:Bind ViewModel.ShowReadmeInRepoPage, Mode=TwoWay}"
                          Margin="0,4,0,0"/>
        </StackPanel>
    </ScrollViewer>
</local:SettingsDetailPageBase><commit_msg>Code highlight made full height in the settings page<commit_after>﻿<local:SettingsDetailPageBase 
    x:Class="CodeHub.Views.GeneralSettingsView"
    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:controls="using:CodeHub.Controls"
    mc:Ignorable="d">

    <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
        <VisualStateManager.VisualStateGroups>
            <VisualStateGroup x:Name="VisualStateGroup" CurrentStateChanged="OnCurrentStateChanged">
                <VisualState x:Name="Mobile">
                    <VisualState.StateTriggers>
                        <AdaptiveTrigger MinWindowWidth="320" />
                    </VisualState.StateTriggers>
                </VisualState>
                <VisualState x:Name="Desktop">
                    <VisualState.StateTriggers>
                        <AdaptiveTrigger MinWindowWidth="720" />
                    </VisualState.StateTriggers>
                </VisualState>
            </VisualStateGroup>
        </VisualStateManager.VisualStateGroups>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"
                           x:Name="ScrollRow"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>

        <!--Options panel-->
        <StackPanel Margin="12,12,12,0">
            <TextBlock HorizontalAlignment="Left"
                       FontSize="22"
                       FontWeight="SemiLight"
                       Text="Syntax Highlighting style" />

            <!--Style-->
            <controls:AnimatedComboBox x:Name="SyntaxStyleCombobox"
                                       Margin="0,12,0,0"
                                       FontSize="13"
                                       ItemsSource="{x:Bind ViewModel.AvailableHighlightStyles}"
                                       SelectedIndex="{x:Bind ViewModel.SelectedHighlightStyleIndex, Mode=TwoWay}"
                                       Style="{StaticResource AnimatedComboBoxStyle}"
                                       MinWidth="120"/>

            <!--Line numbers-->
            <TextBlock HorizontalAlignment="Left"
                       Margin="0,20,0,0"
                       FontSize="22"
                       FontWeight="SemiLight"
                       Text="Show line numbers" />
            <ToggleSwitch IsOn="{x:Bind ViewModel.ShowLineNumbers, Mode=TwoWay}"
                          Margin="0,4,0,0"/>
            
            <!--Preview-->
            <TextBlock HorizontalAlignment="Left"
                       Margin="0,12,0,12"
                       FontSize="19"
                       FontWeight="SemiLight"
                       Text="Preview" />
        </StackPanel>

        <controls:Hilite_meHighlightStylePreviewControl MinHeight="200"
                                                        Grid.Row="1"
                                                        Margin="12,0,12,0"
                                                        VerticalAlignment="Stretch"
                                                        VerticalContentAlignment="Stretch"
                                                        HighlightStyle="{x:Bind ViewModel.HighlightStyle, Mode=OneWay}"
                                                        LineNumbersVisible="{x:Bind ViewModel.ShowLineNumbers, Mode=OneWay}"/>

        <StackPanel Grid.Row="2"
                    Margin="12,0,12,12">
            
            <!--Show Readme in RepoDetail Page-->
            <TextBlock HorizontalAlignment="Left"
                       Margin="0,20,0,0"
                       FontSize="22"
                       FontWeight="SemiLight"
                       TextWrapping="Wrap"
                       Text="Show README in Repository page" />
            <ToggleSwitch IsOn="{x:Bind ViewModel.ShowReadmeInRepoPage, Mode=TwoWay}"
                          Margin="0,4,0,0"/>
        </StackPanel>
    </Grid>
</local:SettingsDetailPageBase>
{'fraction_non_alphanumeric': 0.10331288343558283, 'fraction_numerical': 0.01987730061349693, 'mean_word_length': 1.4136807817589576, 'pattern_counts': {'":': 0, '<': 76, '<?xml version=': 0, '>': 76, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 14}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 30, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3503765', 'n_tokens_mistral': 2067, 'n_tokens_neox': 1839, 'n_words': 249}