<commit_before>﻿<Page
    x:Class="DemoApp.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:DemoApp"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:qc="using:Ailon.QuickCharts"
    Loaded="Page_Loaded"
    mc:Ignorable="d">

    <ScrollViewer HorizontalScrollMode="Disabled" VerticalScrollMode="Enabled" Padding="10">
        <VisualStateManager.VisualStateGroups>
            <VisualStateGroup>
                <VisualState x:Name="Mobile">
                    <VisualState.StateTriggers>
                        <AdaptiveTrigger MinWindowWidth="320" />
                    </VisualState.StateTriggers>
                    <VisualState.Setters>
                        <Setter Target="VisitOverviewChart.(MaxHeight)" Value="300"/>
                        <Setter Target="RealTimeVisits.(RelativePanel.AlignRightWithPanel)" Value="True"/>
                        <Setter Target="OSChart.(RelativePanel.Below)" Value="RealTimeVisits"/>
                        <Setter Target="OSChart.(RelativePanel.RightOf)" Value=""/>
                        <Setter Target="OSChart.(RelativePanel.AlignLeftWithPanel)" Value="True"/>
                        <Setter Target="OSChart.(RelativePanel.AlignRightWithPanel)" Value="True"/>
                        <Setter Target="NewVisitorsChart.(RelativePanel.Below)" Value="OSChart"/>
                        <Setter Target="NewVisitorsChart.(RelativePanel.RightOf)" Value=""/>
                    </VisualState.Setters>
                </VisualState>
                <VisualState x:Name="Desktop">
                    <VisualState.StateTriggers>
                        <AdaptiveTrigger MinWindowWidth="1000" />
                    </VisualState.StateTriggers>
                    <VisualState.Setters>
                        <Setter Target="RealTimeVisits.(MaxWidth)" Value="400"/>
                        <Setter Target="OSChart.(MaxWidth)" Value="500"/>
                    </VisualState.Setters>
                </VisualState>
            </VisualStateGroup>
        </VisualStateManager.VisualStateGroups>
        <RelativePanel Background="LightGray" Padding="5">
            <RelativePanel.Resources>
                <Style TargetType="Border">
                    <Setter Property="Background" Value="White" />
                    <Setter Property="Margin" Value="5" />
                    <Setter Property="Padding" Value="10" />
                    <Setter Property="BorderBrush" Value="DarkGray" />
                    <Setter Property="BorderThickness" Value="1" />
                </Style>
            </RelativePanel.Resources>

            <Border Name="WarningText" RelativePanel.AlignTopWithPanel="True" RelativePanel.AlignLeftWithPanel="True" RelativePanel.AlignRightWithPanel="True">
                <TextBlock TextWrapping="WrapWholeWords">WARNING: This demo app uses release nuget package rather than referencing directly to the source project.</TextBlock>
            </Border>

            <Border x:Name="VisitOverviewChart" 
            		RelativePanel.Below="WarningText"
                    MaxHeight="500"
                    >
                
                <qc:SerialChart DataSource="{Binding VisitData}" CategoryValueMemberPath="Date"><commit_msg>added MinimumCategoryGridStep setting on the main chart to prevent category axis values from overlapping.<commit_after>﻿<Page
    x:Class="DemoApp.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:DemoApp"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:qc="using:Ailon.QuickCharts"
    Loaded="Page_Loaded"
    mc:Ignorable="d">

    <ScrollViewer HorizontalScrollMode="Disabled" VerticalScrollMode="Enabled" Padding="10">
        <VisualStateManager.VisualStateGroups>
            <VisualStateGroup>
                <VisualState x:Name="Mobile">
                    <VisualState.StateTriggers>
                        <AdaptiveTrigger MinWindowWidth="320" />
                    </VisualState.StateTriggers>
                    <VisualState.Setters>
                        <Setter Target="VisitOverviewChart.(MaxHeight)" Value="300"/>
                        <Setter Target="RealTimeVisits.(RelativePanel.AlignRightWithPanel)" Value="True"/>
                        <Setter Target="OSChart.(RelativePanel.Below)" Value="RealTimeVisits"/>
                        <Setter Target="OSChart.(RelativePanel.RightOf)" Value=""/>
                        <Setter Target="OSChart.(RelativePanel.AlignLeftWithPanel)" Value="True"/>
                        <Setter Target="OSChart.(RelativePanel.AlignRightWithPanel)" Value="True"/>
                        <Setter Target="NewVisitorsChart.(RelativePanel.Below)" Value="OSChart"/>
                        <Setter Target="NewVisitorsChart.(RelativePanel.RightOf)" Value=""/>
                    </VisualState.Setters>
                </VisualState>
                <VisualState x:Name="Desktop">
                    <VisualState.StateTriggers>
                        <AdaptiveTrigger MinWindowWidth="1000" />
                    </VisualState.StateTriggers>
                    <VisualState.Setters>
                        <Setter Target="RealTimeVisits.(MaxWidth)" Value="400"/>
                        <Setter Target="OSChart.(MaxWidth)" Value="500"/>
                    </VisualState.Setters>
                </VisualState>
            </VisualStateGroup>
        </VisualStateManager.VisualStateGroups>
        <RelativePanel Background="LightGray" Padding="5">
            <RelativePanel.Resources>
                <Style TargetType="Border">
                    <Setter Property="Background" Value="White" />
                    <Setter Property="Margin" Value="5" />
                    <Setter Property="Padding" Value="10" />
                    <Setter Property="BorderBrush" Value="DarkGray" />
                    <Setter Property="BorderThickness" Value="1" />
                </Style>
            </RelativePanel.Resources>

            <Border Name="WarningText" RelativePanel.AlignTopWithPanel="True" RelativePanel.AlignLeftWithPanel="True" RelativePanel.AlignRightWithPanel="True">
                <TextBlock TextWrapping="WrapWholeWords">WARNING: This demo app uses release nuget package rather than referencing directly to the source project.</TextBlock>
            </Border>

            <Border x:Name="VisitOverviewChart" 
            		RelativePanel.Below="WarningText"
                    MaxHeight="500"
                    >
                
                <qc:SerialChart DataSource="{Binding VisitData}" CategoryValueMemberPath="Date" MinimumCategoryGridStep="100">
{'fraction_non_alphanumeric': 0.11715840733314237, 'fraction_numerical': 0.012460613004869664, 'mean_word_length': 2.0953014184397163, 'pattern_counts': {'":': 0, '<': 95, '<?xml version=': 0, '>': 95, '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': '6499304', 'n_tokens_mistral': 1870, 'n_tokens_neox': 1644, 'n_words': 253}