<commit_before>﻿<UserControl x:Class="openPDC.UI.UserControls.HomeUserControl"
             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:tsf="clr-namespace:TimeSeriesFramework.UI;assembly=TimeSeriesFramework.UI.WPF"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" d:DesignHeight="650" d:DesignWidth="850"
             xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:tsfBinding="clr-namespace:TimeSeriesFramework.UI.Binding;assembly=TimeSeriesFramework.UI"
             xmlns:d3="http://research.microsoft.com/DynamicDataDisplay/1.0"
             Background="Transparent">

    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/TimeSeriesFramework.UI.WPF;Component/Resources/CommonResource.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </UserControl.Resources>

    <Grid>
       
        <Grid.RowDefinitions>
            <RowDefinition Height="10*"/>            
            <RowDefinition Height="13*"/>
        </Grid.RowDefinitions>

        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="2.5*"/>
        </Grid.ColumnDefinitions>

        <GroupBox Header="Quick Links" Grid.Row="0" Grid.Column="0">
            <StackPanel Orientation="Vertical" >                
                <Button Content="Graph Measurements" Tag="Graph Measurements" Width="160" Height="32" FontWeight="Bold" Click="ButtonQuickLink_Click"/>
                <Button Content="Stream Statistics" Tag="Stream Statistics" Width="160" Height="32" FontWeight="Bold" Click="ButtonQuickLink_Click"/>
                <Button x:Name="ButtonInputWizard" Content="Add New Device" Tag="Input Wizard" Width="160" Height="32" FontWeight="Bold" Click="ButtonQuickLink_Click"/>
                <Button Content="Manage Devices" Tag="Browse" Width="160" Height="32" FontWeight="Bold" Click="ButtonQuickLink_Click"/>
                <Button Content="Manage Output Streams" Tag="Output Streams" Width="160" Height="32" FontWeight="Bold" Click="ButtonQuickLink_Click"/>
                <Button Content="Remote System Console" Tag="Remote System Console" Width="160" Height="32" FontWeight="Bold" Click="ButtonQuickLink_Click"/>
                <Button Content="Restart openPDC" Tag="Restart" x:Name="ButtonRestart" Width="160" Height="32" FontWeight="Bold" Click="ButtonQuickLink_Click"/>
            </StackPanel>
        </GroupBox>

        <Grid Grid.Row="0" Grid.Column="1">   
            
            <!--<Grid.Resources>
                <Style TargetType="chartingToolkit:LineDataPoint">
                    <Setter Property="Background" Value="Blue"/>
                    <Setter Property="Visibility" Value="Collapsed"/>                    
                </Style>
                <Style TargetType="Polyline">
                    <Setter Property="StrokeThickness" Value="1"/>
                </Style>
            </Grid.Resources>-->
            
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="*"/>
            </Grid.RowDefinitions>
            
            <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
                <ComboBox x:Name="ComboBoxDevice" Margin="0,0,5,0" SelectionChanged="ComboBoxDevice_SelectionChanged" DisplayMemberPath="Value"/>
                <ComboBox x:Name="ComboBoxMeasurement" Margin="0,0,5,0" SelectionChanged="ComboBoxMeasurement_SelectionChanged" DisplayMemberPath="PointTag" SelectedValuePath="SignalID"/>                
            </StackPanel>

            <d3:ChartPlotter Name="ChartPlotterDynamic" Grid.Row="1" Margin="2" Height="225" Width="590" MainHorizontalAxisVisibility="Collapsed">                
            </d3:ChartPlotter>          

        </Grid>
        
        <GroupBox Header="Current Configuration" Grid.Row="1" Grid.Column="0">
            
            <Grid >

                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*"/><commit_msg>UI: Fixed width on the dropdowns on home screen.<commit_after>﻿<UserControl x:Class="openPDC.UI.UserControls.HomeUserControl"
             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:tsf="clr-namespace:TimeSeriesFramework.UI;assembly=TimeSeriesFramework.UI.WPF"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" d:DesignHeight="650" d:DesignWidth="850"
             xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:tsfBinding="clr-namespace:TimeSeriesFramework.UI.Binding;assembly=TimeSeriesFramework.UI"
             xmlns:d3="http://research.microsoft.com/DynamicDataDisplay/1.0"
             Background="Transparent">

    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/TimeSeriesFramework.UI.WPF;Component/Resources/CommonResource.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </UserControl.Resources>

    <Grid>
       
        <Grid.RowDefinitions>
            <RowDefinition Height="10*"/>            
            <RowDefinition Height="13*"/>
        </Grid.RowDefinitions>

        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="2.5*"/>
        </Grid.ColumnDefinitions>

        <GroupBox Header="Quick Links" Grid.Row="0" Grid.Column="0">
            <StackPanel Orientation="Vertical" >                
                <Button Content="Graph Measurements" Tag="Graph Measurements" Width="160" Height="32" FontWeight="Bold" Click="ButtonQuickLink_Click"/>
                <Button Content="Stream Statistics" Tag="Stream Statistics" Width="160" Height="32" FontWeight="Bold" Click="ButtonQuickLink_Click"/>
                <Button x:Name="ButtonInputWizard" Content="Add New Device" Tag="Input Wizard" Width="160" Height="32" FontWeight="Bold" Click="ButtonQuickLink_Click"/>
                <Button Content="Manage Devices" Tag="Browse" Width="160" Height="32" FontWeight="Bold" Click="ButtonQuickLink_Click"/>
                <Button Content="Manage Output Streams" Tag="Output Streams" Width="160" Height="32" FontWeight="Bold" Click="ButtonQuickLink_Click"/>
                <Button Content="Remote System Console" Tag="Remote System Console" Width="160" Height="32" FontWeight="Bold" Click="ButtonQuickLink_Click"/>
                <Button Content="Restart openPDC" Tag="Restart" x:Name="ButtonRestart" Width="160" Height="32" FontWeight="Bold" Click="ButtonQuickLink_Click"/>
            </StackPanel>
        </GroupBox>

        <Grid Grid.Row="0" Grid.Column="1">   
            
            <!--<Grid.Resources>
                <Style TargetType="chartingToolkit:LineDataPoint">
                    <Setter Property="Background" Value="Blue"/>
                    <Setter Property="Visibility" Value="Collapsed"/>                    
                </Style>
                <Style TargetType="Polyline">
                    <Setter Property="StrokeThickness" Value="1"/>
                </Style>
            </Grid.Resources>-->
            
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="*"/>
            </Grid.RowDefinitions>
            
            <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
                <ComboBox x:Name="ComboBoxDevice" Margin="0,0,5,0" SelectionChanged="ComboBoxDevice_SelectionChanged" DisplayMemberPath="Value" Width="Auto" MinWidth="150"/>
                <ComboBox x:Name="ComboBoxMeasurement" Margin="0,0,5,0" SelectionChanged="ComboBoxMeasurement_SelectionChanged" DisplayMemberPath="PointTag" SelectedValuePath="SignalID" Width="Auto" MinWidth="150"/>                
            </StackPanel>

            <d3:ChartPlotter Name="ChartPlotterDynamic" Grid.Row="1" Margin="2" Height="225" Width="590" MainHorizontalAxisVisibility="Collapsed">                
            </d3:ChartPlotter>          

        </Grid>
        
        <GroupBox Header="Current Configuration" Grid.Row="1" Grid.Column="0">
            
            <Grid >

                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*"/>
{'fraction_non_alphanumeric': 0.13079264855113315, 'fraction_numerical': 0.022099447513812154, 'mean_word_length': 2.52824184566428, 'pattern_counts': {'":': 0, '<': 111, '<?xml version=': 0, '>': 111, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 18}, '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': '6023951', 'n_tokens_mistral': 2555, 'n_tokens_neox': 2272, 'n_words': 351}