<commit_before>﻿<controls:MetroWindow
        xmlns:controls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:custom="clr-namespace:Toxy" x:Class="Toxy.MainWindow"
        Title="Toxy" MinWidth="717" MinHeight="513" Height="513" Width="717" ResizeMode="CanResizeWithGrip" Closing="MetroWindow_Closing"
        GlowBrush="{DynamicResource AccentColorBrush}" Icon="Resources/Icons/icon.ico" SizeChanged="MetroWindow_SizeChanged">
    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary>
                    <Style x:Key="UsernameCellStyle" TargetType="{x:Type DataGridCell}">
                        <Setter Property="Padding" Value="20"/>
                        <Setter Property="Margin" Value="0, 20, 0, 0"/>
                        <Setter Property="Template">
                            <Setter.Value>
                                <ControlTemplate TargetType="{x:Type DataGridCell}">
                                    <Grid Background="{TemplateBinding Background}">
                                        <ContentPresenter HorizontalAlignment="Right" VerticalAlignment="Top"/>
                                    </Grid>
                                </ControlTemplate>
                            </Setter.Value>
                        </Setter>
                    </Style>
                    <Style x:Key="MessageCellStyle" TargetType="{x:Type DataGridCell}">
                        <Setter Property="Template">
                            <Setter.Value>
                                <ControlTemplate TargetType="{x:Type DataGridCell}">
                                    <Grid>
                                        <ContentPresenter  VerticalAlignment="Top"/>
                                    </Grid>
                                </ControlTemplate>
                            </Setter.Value>
                        </Setter>
                    </Style>
                </ResourceDictionary>
                <ResourceDictionary>
                    <Style x:Key="ChangeOnHover" TargetType="Rectangle">
                        <Setter Property="Fill" Value="Gray" />
                        <Style.Triggers>
                            <Trigger Property="IsMouseOver" Value="True">
                                <Setter Property="Fill" Value="Green"/>
                            </Trigger>
                            <Trigger Property="Button.IsPressed" Value="True">
                                <Setter Property="Fill" Value="Red"/>
                            </Trigger>
                        </Style.Triggers>
                    </Style>
                </ResourceDictionary>
                <ResourceDictionary>
                    <ResourceDictionary.MergedDictionaries>
                        <ResourceDictionary Source="/Resources/Icons.xaml" />
                    </ResourceDictionary.MergedDictionaries>
                </ResourceDictionary>
                <ResourceDictionary Source="Styles/Combobox.xaml"></ResourceDictionary>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>


    </Window.Resources>

    <Grid Margin="0,0,0,0" MouseLeftButtonUp="Grid_MouseLeftButtonUp" >
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="1*" MinWidth="250"/>
            <ColumnDefinition Width="2*" MinWidth="250"/>
        </Grid.ColumnDefinitions>

        <Grid Grid.Column="0" Margin="0,0,0,0">
            <TabControl Name="ListViewTabControl" SelectionChanged="ListViewTabControl_OnSelectionChanged" Margin="0,94,0,56">
                <TabItem Header="Chats">
                    <ScrollViewer Name="ChatListViewer" Margin="-4,0,0,0" >
                        <WrapPanel Name="FriendWrapper" HorizontalAlignment="Left"></WrapPanel>
                    </ScrollViewer>
                </TabItem>
                <TabItem Name="RequestsTabItem"  Header="Requests">
                    <ScrollViewer Name="NotificationViewer" Margin="-8,0,0,0">
                        <WrapPanel Name="NotificationWrapper"></WrapPanel>
                    </ScrollViewer>
                </TabItem>
            </TabControl>


            <Border BorderBrush="Black" BorderThickness="0" Height="94" VerticalAlignment="Top" Background="#FF41B1E1">
                <Grid>
                    <Label>
                        <TextBlock Name="Username" HorizontalAlignment="Left" Margin="84,-2,0,0" VerticalAlignment="Top" FontSize="25" TextTrimming="CharacterEllipsis">Username</TextBlock>
                    </Label>
                    <Image HorizontalAlignment="Left" Height="73" Source="pack://application:,,,/Resources/Icons/profilepictureNormal.png" VerticalAlignment="Top" Width="73" Margin="10,10,0,0"/>
                    <Label >
                        <TextBlock Name="Userstatus"  HorizontalAlignment="Left" VerticalAlignment="Top" Margin="84,30,0,0" FontStyle="Italic" TextTrimming="CharacterEllipsis">User Message</TextBlock>
                    </Label>
                </Grid>
            </Border>
            <Border BorderThickness="0,1,0,0" Margin="0,0,5,10" Height="46" VerticalAlignment="Bottom">
                <Grid Margin="5,0">
                    <Button
            		Height="44"
            		Width="44"
            		VerticalAlignment="Top"
            		Style="{DynamicResource MetroCircleButtonStyle}" Click="OpenAddFriend_Click" Margin="65,0,126,0">
                        <Rectangle Width="20"
            			Height="20">
                            <Rectangle.Fill>
                                <VisualBrush Stretch="Fill"
            					Visual="{StaticResource appbar_user_add}" />
                            </Rectangle.Fill>
                        </Rectangle>
                    </Button>
                    <Button
            		Height="44"
            		VerticalAlignment="Top"
            		Style="{DynamicResource MetroCircleButtonStyle}"  Click="OpenSettings_Click" Width="44" Margin="114,0,77,0">
                        <Rectangle Width="20"
            			Height="20">
                            <Rectangle.Fill>
                                <VisualBrush Stretch="Fill"
            					Visual="{StaticResource appbar_cog}" />
                            </Rectangle.Fill>
                        </Rectangle>
                    </Button>

                </Grid>
            </Border>
            <ComboBox Style="{StaticResource MetroComboBox2}" Name="Status" Margin="79,60,0,0" VerticalAlignment="Top" SelectionChanged="Status_SelectionChanged" Height="26" HorizontalAlignment="Left" Width="106">
                <StackPanel Orientation="Horizontal">
                    <Image Source="Resources/Icons/Online.png" Width="20" Height="20" />
                    <TextBlock Foreground="Green">Online</TextBlock>
                </StackPanel>
                <StackPanel Orientation="Horizontal" >
                    <Image Source="Resources/Icons/Away.png" Width="20" Height="20"/>
                    <TextBlock Foreground="Black">Away</TextBlock>
                </StackPanel>
                <StackPanel Orientation="Horizontal">
                    <Image Source="Resources/Icons/Busy.png" Width="20" Height="20"/>
                    <TextBlock Foreground="Black">Busy</TextBlock>
                </StackPanel>
            </ComboBox>
        </Grid>
        <GridSplitter Grid.Column="0" Width="2"
                      HorizontalAlignment="Right"
                      VerticalAlignment="Stretch"
                      BorderThickness="0,0,2,0">
            <GridSplitter.BorderBrush>
                <ImageBrush ImageSource="Resources/Divider.png"/>
            </GridSplitter.BorderBrush>
        </GridSplitter>
        <Grid Grid.Column="1" Margin="0,0,24,0" >
            <Border BorderBrush="Black" BorderThickness="0" Height="92" Margin="10,0,0,0" VerticalAlignment="Top">
                <Grid>

                    <Image HorizontalAlignment="Right" Height="73" Source="pack://application:,,,/Resources/Icons/profilepictureNormal.png" VerticalAlignment="Top" Margin="0,10,0,0"/>
                    <Label HorizontalAlignment="Right" Margin="0,0,73,0" >
                        <TextBlock Name="Friendname" VerticalAlignment="Top" FontSize="25" TextTrimming="CharacterEllipsis" FlowDirection="RightToLeft">Friendname</TextBlock>
                    </Label>
                    <Label HorizontalAlignment="Right" Margin="0,35,78,31" >
                        <TextBlock Name="Friendstatus"  VerticalAlignment="Top" FontStyle="Italic" TextTrimming="CharacterEllipsis" FlowDirection="RightToLeft">User Message</TextBlock>
                    </Label><commit_msg>Fixed the status/username label (Reverb)<commit_after>﻿<controls:MetroWindow
        xmlns:controls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:custom="clr-namespace:Toxy" x:Class="Toxy.MainWindow"
        Title="Toxy" MinWidth="717" MinHeight="513" Height="513" Width="717" ResizeMode="CanResizeWithGrip" Closing="MetroWindow_Closing"
        GlowBrush="{DynamicResource AccentColorBrush}" Icon="Resources/Icons/icon.ico" SizeChanged="MetroWindow_SizeChanged">
    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary>
                    <Style x:Key="UsernameCellStyle" TargetType="{x:Type DataGridCell}">
                        <Setter Property="Padding" Value="20"/>
                        <Setter Property="Margin" Value="0, 20, 0, 0"/>
                        <Setter Property="Template">
                            <Setter.Value>
                                <ControlTemplate TargetType="{x:Type DataGridCell}">
                                    <Grid Background="{TemplateBinding Background}">
                                        <ContentPresenter HorizontalAlignment="Right" VerticalAlignment="Top"/>
                                    </Grid>
                                </ControlTemplate>
                            </Setter.Value>
                        </Setter>
                    </Style>
                    <Style x:Key="MessageCellStyle" TargetType="{x:Type DataGridCell}">
                        <Setter Property="Template">
                            <Setter.Value>
                                <ControlTemplate TargetType="{x:Type DataGridCell}">
                                    <Grid>
                                        <ContentPresenter  VerticalAlignment="Top"/>
                                    </Grid>
                                </ControlTemplate>
                            </Setter.Value>
                        </Setter>
                    </Style>
                </ResourceDictionary>
                <ResourceDictionary>
                    <Style x:Key="ChangeOnHover" TargetType="Rectangle">
                        <Setter Property="Fill" Value="Gray" />
                        <Style.Triggers>
                            <Trigger Property="IsMouseOver" Value="True">
                                <Setter Property="Fill" Value="Green"/>
                            </Trigger>
                            <Trigger Property="Button.IsPressed" Value="True">
                                <Setter Property="Fill" Value="Red"/>
                            </Trigger>
                        </Style.Triggers>
                    </Style>
                </ResourceDictionary>
                <ResourceDictionary>
                    <ResourceDictionary.MergedDictionaries>
                        <ResourceDictionary Source="/Resources/Icons.xaml" />
                    </ResourceDictionary.MergedDictionaries>
                </ResourceDictionary>
                <ResourceDictionary Source="Styles/Combobox.xaml"></ResourceDictionary>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>


    </Window.Resources>

    <Grid Margin="0,0,0,0" MouseLeftButtonUp="Grid_MouseLeftButtonUp" >
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="1*" MinWidth="250"/>
            <ColumnDefinition Width="2*" MinWidth="250"/>
        </Grid.ColumnDefinitions>

        <Grid Grid.Column="0" Margin="0,0,0,0">
            <TabControl Name="ListViewTabControl" SelectionChanged="ListViewTabControl_OnSelectionChanged" Margin="0,94,0,56">
                <TabItem Header="Chats">
                    <ScrollViewer Name="ChatListViewer" Margin="-4,0,0,0" >
                        <WrapPanel Name="FriendWrapper" HorizontalAlignment="Left"></WrapPanel>
                    </ScrollViewer>
                </TabItem>
                <TabItem Name="RequestsTabItem"  Header="Requests">
                    <ScrollViewer Name="NotificationViewer" Margin="-8,0,0,0">
                        <WrapPanel Name="NotificationWrapper"></WrapPanel>
                    </ScrollViewer>
                </TabItem>
            </TabControl>


            <Border BorderBrush="Black" BorderThickness="0" Height="94" VerticalAlignment="Top" Background="#FF41B1E1">
                <Grid>
                    <Label>
                        <TextBlock Name="Username" HorizontalAlignment="Left" Margin="84,-2,0,0" VerticalAlignment="Top" FontSize="25" TextTrimming="CharacterEllipsis">Username</TextBlock>
                    </Label>
                    <Image HorizontalAlignment="Left" Height="73" Source="pack://application:,,,/Resources/Icons/profilepictureNormal.png" VerticalAlignment="Top" Width="73" Margin="10,10,0,0"/>
                    <Label >
                        <TextBlock Name="Userstatus"  HorizontalAlignment="Left" VerticalAlignment="Top" Margin="84,30,0,0" FontStyle="Italic" TextTrimming="CharacterEllipsis">User Message</TextBlock>
                    </Label>
                </Grid>
            </Border>
            <Border BorderThickness="0,1,0,0" Margin="0,0,5,10" Height="46" VerticalAlignment="Bottom">
                <Grid Margin="5,0">
                    <Button
            		Height="44"
            		Width="44"
            		VerticalAlignment="Top"
            		Style="{DynamicResource MetroCircleButtonStyle}" Click="OpenAddFriend_Click" Margin="65,0,126,0">
                        <Rectangle Width="20"
            			Height="20">
                            <Rectangle.Fill>
                                <VisualBrush Stretch="Fill"
            					Visual="{StaticResource appbar_user_add}" />
                            </Rectangle.Fill>
                        </Rectangle>
                    </Button>
                    <Button
            		Height="44"
            		VerticalAlignment="Top"
            		Style="{DynamicResource MetroCircleButtonStyle}"  Click="OpenSettings_Click" Width="44" Margin="114,0,77,0">
                        <Rectangle Width="20"
            			Height="20">
                            <Rectangle.Fill>
                                <VisualBrush Stretch="Fill"
            					Visual="{StaticResource appbar_cog}" />
                            </Rectangle.Fill>
                        </Rectangle>
                    </Button>

                </Grid>
            </Border>
            <ComboBox Style="{StaticResource MetroComboBox2}" Name="Status" Margin="79,60,0,0" VerticalAlignment="Top" SelectionChanged="Status_SelectionChanged" Height="26" HorizontalAlignment="Left" Width="106">
                <StackPanel Orientation="Horizontal">
                    <Image Source="Resources/Icons/Online.png" Width="20" Height="20" />
                    <TextBlock Foreground="Green">Online</TextBlock>
                </StackPanel>
                <StackPanel Orientation="Horizontal" >
                    <Image Source="Resources/Icons/Away.png" Width="20" Height="20"/>
                    <TextBlock Foreground="Black">Away</TextBlock>
                </StackPanel>
                <StackPanel Orientation="Horizontal">
                    <Image Source="Resources/Icons/Busy.png" Width="20" Height="20"/>
                    <TextBlock Foreground="Black">Busy</TextBlock>
                </StackPanel>
            </ComboBox>
        </Grid>
        <GridSplitter Grid.Column="0" Width="2"
                      HorizontalAlignment="Right"
                      VerticalAlignment="Stretch"
                      BorderThickness="0,0,2,0">
            <GridSplitter.BorderBrush>
                <ImageBrush ImageSource="Resources/Divider.png"/>
            </GridSplitter.BorderBrush>
        </GridSplitter>
        <Grid Grid.Column="1" Margin="0,0,24,0" >
            <Border BorderBrush="Black" BorderThickness="0" Height="92" Margin="10,0,0,0" VerticalAlignment="Top">
                <Grid>

                    <Image HorizontalAlignment="Right" Height="73" Source="pack://application:,,,/Resources/Icons/profilepictureNormal.png" VerticalAlignment="Top" Margin="0,10,0,0"/>
                    <Label HorizontalAlignment="Right" Margin="0,0,73,0" >
                        <TextBlock Name="Friendname" VerticalAlignment="Top" FontSize="25" TextTrimming="CharacterEllipsis">Friendname</TextBlock>
                    </Label>
                    <Label HorizontalAlignment="Right" Margin="0,35,78,31" >
                        <TextBlock Name="Friendstatus"  VerticalAlignment="Top" FontStyle="Italic" TextTrimming="CharacterEllipsis">User Message</TextBlock>
                    </Label>
{'fraction_non_alphanumeric': 0.11919670559034241, 'fraction_numerical': 0.022113160715293057, 'mean_word_length': 1.6546870320455227, 'pattern_counts': {'":': 0, '<': 281, '<?xml version=': 0, '>': 281, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 8}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 12, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4078198', 'n_tokens_mistral': 4766, 'n_tokens_neox': 4190, 'n_words': 629}