<commit_before>﻿<Window x:Class="DesktopApp.View.WorkWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:windows="clr-namespace:DesktopApp.View"
        Title="WorkWindow" Height="400" Width="600">
    <Window.Resources>
        <ResourceDictionary Source="../Styles/WorkWindowStyles.xaml"/>
    </Window.Resources>
    <Grid Background="{StaticResource BackgroundBrush}">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition/>
            <ColumnDefinition/>
        </Grid.ColumnDefinitions>
        <StackPanel Grid.Column="0" Grid.Row="0" Orientation="Horizontal">
            <TextBlock Text="User: " Style="{StaticResource InfoAskTextBlock}"/>
            <TextBlock Text="{Binding UserName}" Style="{StaticResource InfoTextBlock}"/>
            <Button Content="Open Card" Command="{Binding OpenFullCardCommand}"></Button>
        </StackPanel>
        <StackPanel Grid.Column="1" Grid.Row="0" Orientation="Horizontal" HorizontalAlignment="Right">
            <TextBlock Text="Search" Style="{StaticResource InfoAskTextBlock}"/>
            <TextBox Style="{StaticResource SearchBox}" Width="100"/>
        </StackPanel>
        <Grid Grid.ColumnSpan="2" Grid.Row="1">
            <Grid.ColumnDefinitions>
                <ColumnDefinition/>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition/>
                <ColumnDefinition/>
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition/>
                <RowDefinition/>
            </Grid.RowDefinitions>
            <Border Grid.RowSpan="2" Grid.Column="0" Style="{StaticResource MainBorderStyle}"/>
            <Border Grid.Row="1"  Grid.Column="2" Style="{StaticResource MainBorderStyle}"/>
            <Border Grid.Row="1" Grid.Column="3" Style="{StaticResource MainBorderStyle}"/>
            <ItemsControl Grid.RowSpan="2" Grid.Column="0" ItemsSource="{Binding CardsViews}">
                <ItemsControl.Template>
                    <ControlTemplate>
                        <ScrollViewer x:Name="Viewer" VerticalScrollBarVisibility="Hidden" Padding="5,3">
                            <ItemsPresenter/>
                        </ScrollViewer>
                    </ControlTemplate>
                </ItemsControl.Template>
                <ItemsControl.ItemTemplate>
                    <DataTemplate>
                        <windows:CardView/>
                    </DataTemplate>
                </ItemsControl.ItemTemplate>
            </ItemsControl>
            <Grid Grid.Column="2" Grid.Row="0" Grid.ColumnSpan="2">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                </Grid.RowDefinitions>
                <Border Style="{StaticResource MainBorderStyle}"/>
                <Grid DataContext="{Binding FullCardViewModel}">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="*"/>
                        <ColumnDefinition Width="Auto"/>
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="Auto"/>
                    </Grid.RowDefinitions>
                    <StackPanel Grid.Row="0" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Right">
                        <Button Style="{StaticResource OvalButtonStyle}" Command="{Binding ModifyCardCommand}" Width="25" Height="25" Padding="4">
                            <Button.Content>
                                <Image Source="../resources/images/modify.png"/>
                            </Button.Content>
                        </Button>
                        <Button Style="{StaticResource OvalButtonStyle}" Width="25" Height="25" Padding="4">
                            <Button.Content>
                                <Image Source="../resources/images/trash.png"/>
                            </Button.Content>
                        </Button>
                    </StackPanel>
                    <WrapPanel Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2" VerticalAlignment="Center" Margin="5,0">
                        <TextBlock Style="{StaticResource InfoAskTextBlock}" Text="Doctor: " HorizontalAlignment="Center"/>
                        <TextBlock Style="{StaticResource InfoTextBlock}" Text="{Binding DoctorName}" HorizontalAlignment="Center" Margin="4,0" FontWeight="Normal"/>
                    </WrapPanel>
                    <WrapPanel Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="3">
                        <WrapPanel Margin="5,3">
                            <TextBlock Style="{StaticResource InfoAskTextBlock}" Text="First Name:" HorizontalAlignment="Center"/>
                            <TextBox Style="{StaticResource InfoTextBox}" IsEnabled="{Binding State}" Text="{Binding FirstName}" HorizontalAlignment="Center" Margin="4,0"/>
                        </WrapPanel>
                        <WrapPanel Margin="5,3">
                            <TextBlock Style="{StaticResource InfoAskTextBlock}" Text="Last Name:" HorizontalAlignment="Center"/>
                            <TextBox Style="{StaticResource InfoTextBox}" IsEnabled="{Binding State}" Text="{Binding LastName}" HorizontalAlignment="Center" Margin="4,0"/>
                        </WrapPanel>
                        <WrapPanel Margin="5,3">
                            <TextBlock Style="{StaticResource InfoAskTextBlock}" Text="Middle Name:" HorizontalAlignment="Center"/>
                            <TextBox Style="{StaticResource InfoTextBox}" IsEnabled="{Binding State}" Text="{Binding MiddleName}" HorizontalAlignment="Center" Margin="4,0"/>
                        </WrapPanel>
                        <WrapPanel Margin="5,3">
                            <TextBlock Style="{StaticResource InfoAskTextBlock}" Text="Age:" HorizontalAlignment="Center"/>
                            <TextBox Style="{StaticResource InfoTextBox}" IsEnabled="{Binding State}" Text="{Binding Age}" HorizontalAlignment="Center" Margin="4,0"/>
                        </WrapPanel>
                        <WrapPanel Margin="5,3">
                            <TextBlock Style="{StaticResource InfoAskTextBlock}" Text="Sex:" HorizontalAlignment="Center"/>
                            <TextBox Style="{StaticResource InfoTextBox}" IsEnabled="{Binding State}" Text="{Binding Sex}" HorizontalAlignment="Center" Margin="4,0"/>
                        </WrapPanel>
                        <WrapPanel Margin="5,3">
                            <TextBlock Style="{StaticResource InfoAskTextBlock}" Text="Address:" HorizontalAlignment="Center"/>
                            <TextBox Style="{StaticResource InfoTextBox}" IsEnabled="{Binding State}" Text="{Binding Address}" HorizontalAlignment="Center" Margin="4,0"/>
                        </WrapPanel>
                        <WrapPanel Margin="5,3">
                            <TextBlock Style="{StaticResource InfoAskTextBlock}" Text="Email:" HorizontalAlignment="Center"/>
                            <TextBox Style="{StaticResource InfoTextBox}" IsEnabled="{Binding State}" Text="{Binding Email}" HorizontalAlignment="Center" Margin="4,0"/>
                        </WrapPanel>
                        <WrapPanel Margin="5,3">
                            <TextBlock Style="{StaticResource InfoAskTextBlock}" Text="Phone:" HorizontalAlignment="Center"/>
                            <TextBox Style="{StaticResource InfoTextBox}" IsEnabled="{Binding State}" Text="{Binding Phone}" HorizontalAlignment="Center" Margin="4,0"/>
                        </WrapPanel>
                    </WrapPanel>
                </Grid>
            </Grid>
        </Grid>
    </Grid>
</Window><commit_msg>reorganise grid and add item control for notes and sessions<commit_after>﻿<Window x:Class="DesktopApp.View.WorkWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:windows="clr-namespace:DesktopApp.View"
        Title="WorkWindow" Height="400" Width="600">
    <Window.Resources>
        <ResourceDictionary Source="../Styles/WorkWindowStyles.xaml"/>
    </Window.Resources>
    <Grid Background="{StaticResource BackgroundBrush}">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition/>
            <ColumnDefinition/>
        </Grid.ColumnDefinitions>
        <StackPanel Grid.Column="0" Grid.Row="0" Orientation="Horizontal">
            <TextBlock Text="User: " Style="{StaticResource InfoAskTextBlock}"/>
            <TextBlock Text="{Binding UserName}" Style="{StaticResource InfoTextBlock}"/>
            <Button Content="Open Card" Command="{Binding OpenFullCardCommand}"></Button>
        </StackPanel>
        <StackPanel Grid.Column="1" Grid.Row="0" Orientation="Horizontal" HorizontalAlignment="Right">
            <TextBlock Text="Search" Style="{StaticResource InfoAskTextBlock}"/>
            <TextBox Style="{StaticResource SearchBox}" Width="100"/>
        </StackPanel>
        <Grid Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="1">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="2*"/>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="7*"/>
            </Grid.ColumnDefinitions>
            <Border Grid.RowSpan="2" Grid.Column="0" Style="{StaticResource MainBorderStyle}"/>
            <ItemsControl Grid.Row="0" Grid.Column="0" ItemsSource="{Binding CardsViews}">
                <ItemsControl.Template>
                    <ControlTemplate>
                        <ScrollViewer x:Name="Viewer" VerticalScrollBarVisibility="Hidden" Padding="5,3">
                            <ItemsPresenter/>
                        </ScrollViewer>
                    </ControlTemplate>
                </ItemsControl.Template>
                <ItemsControl.ItemTemplate>
                    <DataTemplate>
                        <windows:CardView/>
                    </DataTemplate>
                </ItemsControl.ItemTemplate>
            </ItemsControl>
            <Grid Grid.Column="2" Grid.Row="0" >
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition/>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition/>
                    <ColumnDefinition/>
                </Grid.ColumnDefinitions>
                <Grid Grid.Row="0" Grid.ColumnSpan="2" Grid.Column="0" DataContext="{Binding FullCardViewModel}">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="*"/>
                        <ColumnDefinition Width="Auto"/>
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="Auto"/>
                    </Grid.RowDefinitions>
                    <StackPanel Grid.Row="0" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Right">
                        <Button Style="{StaticResource OvalButtonStyle}" Command="{Binding ModifyCardCommand}" Width="25" Height="25" Padding="4">
                            <Button.Content>
                                <Image Source="../resources/images/modify.png"/>
                            </Button.Content>
                        </Button>
                        <Button Style="{StaticResource OvalButtonStyle}" Width="25" Height="25" Padding="4">
                            <Button.Content>
                                <Image Source="../resources/images/trash.png"/>
                            </Button.Content>
                        </Button>
                    </StackPanel>
                    <WrapPanel Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2" VerticalAlignment="Center" Margin="5,0">
                        <TextBlock Style="{StaticResource InfoAskTextBlock}" Text="Doctor: " HorizontalAlignment="Center"/>
                        <TextBlock Style="{StaticResource InfoTextBlock}" Text="{Binding DoctorName}" HorizontalAlignment="Center" Margin="4,0" FontWeight="Normal"/>
                    </WrapPanel>
                    <Border Grid.ColumnSpan="2" Grid.Row="1"  Style="{StaticResource MainBorderStyle}">
                        <WrapPanel Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="3">
                            <WrapPanel Margin="5,3">
                                <TextBlock Style="{StaticResource InfoAskTextBlock}" Text="First Name:" HorizontalAlignment="Center"/>
                                <TextBox Style="{StaticResource InfoTextBox}" IsEnabled="{Binding State}" Text="{Binding FirstName}" HorizontalAlignment="Center" Margin="4,0"/>
                            </WrapPanel>
                            <WrapPanel Margin="5,3">
                                <TextBlock Style="{StaticResource InfoAskTextBlock}" Text="Last Name:" HorizontalAlignment="Center"/>
                                <TextBox Style="{StaticResource InfoTextBox}" IsEnabled="{Binding State}" Text="{Binding LastName}" HorizontalAlignment="Center" Margin="4,0"/>
                            </WrapPanel>
                            <WrapPanel Margin="5,3">
                                <TextBlock Style="{StaticResource InfoAskTextBlock}" Text="Middle Name:" HorizontalAlignment="Center"/>
                                <TextBox Style="{StaticResource InfoTextBox}" IsEnabled="{Binding State}" Text="{Binding MiddleName}" HorizontalAlignment="Center" Margin="4,0"/>
                            </WrapPanel>
                            <WrapPanel Margin="5,3">
                                <TextBlock Style="{StaticResource InfoAskTextBlock}" Text="Age:" HorizontalAlignment="Center"/>
                                <TextBox Style="{StaticResource InfoTextBox}" IsEnabled="{Binding State}" Text="{Binding Age}" HorizontalAlignment="Center" Margin="4,0"/>
                            </WrapPanel>
                            <WrapPanel Margin="5,3">
                                <TextBlock Style="{StaticResource InfoAskTextBlock}" Text="Sex:" HorizontalAlignment="Center"/>
                                <TextBox Style="{StaticResource InfoTextBox}" IsEnabled="{Binding State}" Text="{Binding Sex}" HorizontalAlignment="Center" Margin="4,0"/>
                            </WrapPanel>
                            <WrapPanel Margin="5,3">
                                <TextBlock Style="{StaticResource InfoAskTextBlock}" Text="Address:" HorizontalAlignment="Center"/>
                                <TextBox Style="{StaticResource InfoTextBox}" IsEnabled="{Binding State}" Text="{Binding Address}" HorizontalAlignment="Center" Margin="4,0"/>
                            </WrapPanel>
                            <WrapPanel Margin="5,3">
                                <TextBlock Style="{StaticResource InfoAskTextBlock}" Text="Email:" HorizontalAlignment="Center"/>
                                <TextBox Style="{StaticResource InfoTextBox}" IsEnabled="{Binding State}" Text="{Binding Email}" HorizontalAlignment="Center" Margin="4,0"/>
                            </WrapPanel>
                            <WrapPanel Margin="5,3">
                                <TextBlock Style="{StaticResource InfoAskTextBlock}" Text="Phone:" HorizontalAlignment="Center"/>
                                <TextBox Style="{StaticResource InfoTextBox}" IsEnabled="{Binding State}" Text="{Binding Phone}" HorizontalAlignment="Center" Margin="4,0"/>
                            </WrapPanel>
                        </WrapPanel>
                    </Border>
                </Grid>
                <TextBlock Grid.Row="1" Grid.Column="0" Text="Notes" Style="{StaticResource InfoAskTextBlock}" HorizontalAlignment="Center"/>
                <TextBlock Grid.Row="1" Grid.Column="1" Text="Sessions" Style="{StaticResource InfoAskTextBlock}" HorizontalAlignment="Center"/>
                <Border Grid.Row="2" Grid.Column="0" Style="{StaticResource MainBorderStyle}">
                    <ItemsControl Grid.Row="2" Grid.Column="0">
                        <ItemsControl.Template>
                            <ControlTemplate>
                                <ScrollViewer VerticalScrollBarVisibility="Hidden">
                                    <ItemsPresenter/>
                                </ScrollViewer>
                            </ControlTemplate>
                        </ItemsControl.Template>
                        <ItemsControl.ItemTemplate>
                            <DataTemplate>

                            </DataTemplate>
                        </ItemsControl.ItemTemplate>
                    </ItemsControl>
                </Border>
                <Border Grid.Row="2" Grid.Column="1" Style="{StaticResource MainBorderStyle}">
                    <ItemsControl Grid.Row="2" Grid.Column="0">
                        <ItemsControl.Template>
                            <ControlTemplate>
                                <ScrollViewer VerticalScrollBarVisibility="Hidden">
                                    <ItemsPresenter/>
                                </ScrollViewer>
                            </ControlTemplate>
                        </ItemsControl.Template>
                        <ItemsControl.ItemTemplate>
                            <DataTemplate>

                            </DataTemplate>
                        </ItemsControl.ItemTemplate>
                    </ItemsControl>
                </Border>
            </Grid>
        </Grid>
    </Grid>
</Window>
{'fraction_non_alphanumeric': 0.12358620689655173, 'fraction_numerical': 0.010758620689655173, 'mean_word_length': 1.7417939797307518, 'pattern_counts': {'":': 0, '<': 275, '<?xml version=': 0, '>': 275, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2752079', 'n_tokens_mistral': 4353, 'n_tokens_neox': 3898, 'n_words': 732}