<commit_before>﻿<UserControl x:Class="TranslatorApk.Logic.UserControls.BusyContainer"
             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:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:fa="http://schemas.fontawesome.io/icons/"
             xmlns:userControls="clr-namespace:TranslatorApk.Logic.UserControls"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid DataContext="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType=userControls:BusyContainer}}">
        <Border>
            <Border.Style>
                <Style TargetType="Border">
                    <Setter Property="Opacity" Value="1"/>
                    <Style.Triggers>
                        <DataTrigger Binding="{Binding IsBusy}" Value="True">
                            <Setter Property="Opacity" Value="0.5"/>
                        </DataTrigger>
                    </Style.Triggers>
                </Style>
            </Border.Style>

            <ContentControl Content="{Binding DataContext}" ContentTemplate="{Binding InnerTemplate}"/>
        </Border>

        <fa:ImageAwesome
            Height="30"
            Width="30"
            Icon="Spinner"
            Spin="True"
            Foreground="{Binding Brush, Mode=OneWay}"
            Visibility="{Binding IsBusy, Mode=OneWay, Converter={StaticResource TrueToVisibleConverter}}"/>
    </Grid>
</UserControl>
<commit_msg>Refactoring<commit_after>﻿<UserControl x:Class="TranslatorApk.Logic.UserControls.BusyContainer"
             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:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:fa="http://schemas.fontawesome.io/icons/"
             xmlns:userControls="clr-namespace:TranslatorApk.Logic.UserControls"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid DataContext="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType=userControls:BusyContainer}}">
        <Border>
            <Border.Style>
                <Style TargetType="Border">
                    <Setter Property="Opacity" Value="1"/>
                    <Style.Triggers>
                        <DataTrigger Binding="{Binding IsBusy}" Value="True">
                            <Setter Property="Opacity" Value="0.5"/>
                        </DataTrigger>
                    </Style.Triggers>
                </Style>
            </Border.Style>

            <ContentControl
                Content="{Binding DataContext}"
                ContentTemplate="{Binding InnerTemplate}"/>
        </Border>

        <fa:ImageAwesome
            Height="30"
            Width="30"
            Icon="Spinner"
            Spin="True"
            Foreground="{Binding Brush, Mode=OneWay}"
            Visibility="{Binding IsBusy, Mode=OneWay, Converter={StaticResource TrueToVisibleConverter}}"/>
    </Grid>
</UserControl>

{'fraction_non_alphanumeric': 0.13033033033033034, 'fraction_numerical': 0.017417417417417418, 'mean_word_length': 2.0531622364802935, 'pattern_counts': {'":': 0, '<': 39, '<?xml version=': 0, '>': 39, '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': '2121566', 'n_tokens_mistral': 991, 'n_tokens_neox': 882, 'n_words': 112}