<commit_before>﻿<UserControl x:Class="Toxy.FriendControl"
             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:controls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:custom="clr-namespace:Toxy"
             mc:Ignorable="d" Height="60" BorderThickness="4,0,0,0"
             Width="{Binding RelativeSource=
                    {RelativeSource FindAncestor,
                    AncestorType={x:Type WrapPanel}},
                    Path=ActualWidth}">
  
    <!--Hacking the width above in order to keep the gray background on resize -->
    <Grid Name="MainGrid" Height="60" VerticalAlignment="Top">
        <Label Name="FriendNameLabel" Content="Friend Name" HorizontalAlignment="Left" Margin="55,0,0,0" VerticalAlignment="Top" FontSize="18" Height="32" Width="245"/>
        <Grid Name="ButtonsGrid" Visibility="Collapsed" ZIndex="9999">
            <Button
                        Name="AcceptButton"
                        Height="30"
                        Width="30"
                        IsEnabled="True"
                        Style="{DynamicResource MetroCircleButtonStyle}" HorizontalAlignment="Right" Margin="0,24,1911,6">
                <Rectangle Width="10"
                               Height="10"
                               Fill="{Binding Path=Foreground, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Button}}}">
                    <Rectangle.OpacityMask>
                        <VisualBrush Stretch="Fill"
                                         Visual="{DynamicResource appbar_check}" />
                    </Rectangle.OpacityMask>
                </Rectangle>
            </Button>
            <Button
                        Height="30"
                        Width="30"
                        Name="DeclineButton"
                        Style="{DynamicResource MetroCircleButtonStyle}" HorizontalAlignment="Right" Margin="0,24,1886,6">
                <Rectangle Width="10"
                               Height="10"
                               Fill="{Binding Path=Foreground, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Button}}}">
                    <Rectangle.OpacityMask>
                        <VisualBrush Stretch="Fill"
                                         Visual="{DynamicResource appbar_close}" />
                    </Rectangle.OpacityMask>
                </Rectangle>
            </Button>
        </Grid>
        <Label Name="FriendStatusLabel" Content="Friend Status" HorizontalAlignment="Left" Margin="55,24,0,0" VerticalAlignment="Top" Width="245"/>

        <Image HorizontalAlignment="Left" Height="40" Source="pack://application:,,,/Resources/Icons/profilepicture.png"  VerticalAlignment="Top" Width="40" Margin="10,10,0,0"/>
        <Rectangle Name="StatusRectangle" Height="11"  VerticalAlignment="Top" Margin="39,39,0,0" HorizontalAlignment="Left" Width="11"/>
        <Button Name="HackButton" VerticalAlignment="Top" Height="60" Opacity="0" Click="Button_Click" MouseEnter="HackButton_MouseEnter" MouseLeave="HackButton_MouseLeave"/>

    </Grid>
</UserControl><commit_msg>Buttons on FriendRequest are now visible again<commit_after>﻿<UserControl x:Class="Toxy.FriendControl"
             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:controls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:custom="clr-namespace:Toxy"
             mc:Ignorable="d" Height="60" BorderThickness="4,0,0,0"
             Width="{Binding RelativeSource=
                    {RelativeSource FindAncestor,
                    AncestorType={x:Type WrapPanel}},
                    Path=ActualWidth}">

    <!--Hacking the width above in order to keep the gray background on resize -->
    <Grid Name="MainGrid" Height="60" VerticalAlignment="Top">
        <Label Name="FriendNameLabel" Content="Friend Name" HorizontalAlignment="Left" Margin="55,0,0,0" VerticalAlignment="Top" FontSize="18" Height="32" Width="245"/>
        <Grid Name="ButtonsGrid" Visibility="Collapsed" ZIndex="9999" HorizontalAlignment="Left" Margin="55,0,0,0" >
            <Button
                        Name="AcceptButton"
                        Height="30"
                        Width="30"
                        IsEnabled="True"
                        Style="{DynamicResource MetroCircleButtonStyle}" HorizontalAlignment="Left" Margin="0,24,0,6">
                <Rectangle Width="10"
                               Height="10"
                               Fill="{Binding Path=Foreground, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Button}}}">
                    <Rectangle.OpacityMask>
                        <VisualBrush Stretch="Fill"
                                         Visual="{DynamicResource appbar_check}" />
                    </Rectangle.OpacityMask>
                </Rectangle>
            </Button>
            <Button
                        Height="30"
                        Width="30"
                        Name="DeclineButton"
                        Style="{DynamicResource MetroCircleButtonStyle}" HorizontalAlignment="Left" Margin="25,24,0,6">
                <Rectangle Width="10"
                               Height="10"
                               Fill="{Binding Path=Foreground, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Button}}}">
                    <Rectangle.OpacityMask>
                        <VisualBrush Stretch="Fill"
                                         Visual="{DynamicResource appbar_close}" />
                    </Rectangle.OpacityMask>
                </Rectangle>
            </Button>
        </Grid>
        <Label Name="FriendStatusLabel" Content="Friend Status" HorizontalAlignment="Left" Margin="55,24,0,0" VerticalAlignment="Top" Width="245"/>

        <Image HorizontalAlignment="Left" Height="40" Source="pack://application:,,,/Resources/Icons/profilepicture.png"  VerticalAlignment="Top" Width="40" Margin="10,10,0,0"/>
        <Rectangle Name="StatusRectangle" Height="11"  VerticalAlignment="Top" Margin="39,39,0,0" HorizontalAlignment="Left" Width="11"/>
        <Button Name="HackButton" VerticalAlignment="Top" Height="60" Opacity="0" Click="Button_Click" MouseEnter="HackButton_MouseEnter" MouseLeave="HackButton_MouseLeave"/>

    </Grid>
</UserControl>
{'fraction_non_alphanumeric': 0.12543706293706294, 'fraction_numerical': 0.030303030303030304, 'mean_word_length': 2.1007226738934057, 'pattern_counts': {'":': 0, '<': 55, '<?xml version=': 0, '>': 55, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 14}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '775809', 'n_tokens_mistral': 1984, 'n_tokens_neox': 1723, 'n_words': 273}