<commit_before>﻿<UserControl x:Class="Lama.UI.UC.TournoiControls.TournoiUC"
             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:local="clr-namespace:Lama.UI.UC.TournoiControls"
             xmlns:grille="clr-namespace:Lama.UI.UC.TournoiControls.GrilleControls"
             xmlns:statistiques="clr-namespace:Lama.UI.UC.TournoiControls.StatistiquesControls"
             xmlns:classement="clr-namespace:Lama.UI.UC.TournoiControls.ClassementControls"
             xmlns:prix="clr-namespace:Lama.UI.UC.TournoiControls.PrixControls"
             xmlns:Controls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">

    <UserControl.Resources>

        <Style x:Key="tabitem" TargetType="TabItem" BasedOn="{StaticResource {x:Type TabItem}}" />

        <Style x:Key="aucuntour" TargetType="TabItem" BasedOn="{StaticResource tabitem}">
            <Setter Property="IsEnabled" Value="True" />
            <Style.Triggers>
                <DataTrigger Binding="{Binding TournoiEnCours.LstTours.Count}" Value="0">
                    <Setter Property="IsEnabled" Value="False" />
                    <Setter Property="Opacity" Value="0.5" />
                </DataTrigger>
            </Style.Triggers>
        </Style>

        <Style x:Key="aucunprix" TargetType="TabItem" BasedOn="{StaticResource tabitem}">
            <Setter Property="Visibility" Value="Visible" />
            <Style.Triggers>
                <DataTrigger Binding="{Binding TournoiEnCours.LstPrix}" Value="{x:Null}">
                    <Setter Property="Visibility" Value="Hidden" />
                </DataTrigger>

                <DataTrigger Binding="{Binding TournoiEnCours.LstPrix.Count}" Value="0">
                    <Setter Property="Visibility" Value="Hidden" />
                </DataTrigger>
            </Style.Triggers>
        </Style>
        
    </UserControl.Resources>

    <Controls:MetroAnimatedTabControl x:Name="tabControl" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" SelectionChanged="tabControl_SelectionChanged">

        <Controls:MetroTabItem Name="tabGrille" Header="Grille" Style="{StaticResource tabitem}"/>
        <Controls:MetroTabItem Name="tabStat" Header="Statistiques" Style="{StaticResource aucuntour}" />
        <Controls:MetroTabItem Name="tabClassement" Header="Classement" Style="{StaticResource aucuntour}" />
        <Controls:MetroTabItem Name="tabPrix" Header="Prix" Style="{StaticResource aucunprix}" />

    </Controls:MetroAnimatedTabControl>
</UserControl><commit_msg>Fix de la légende<commit_after>﻿<UserControl x:Class="Lama.UI.UC.TournoiControls.TournoiUC"
             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:local="clr-namespace:Lama.UI.UC.TournoiControls"
             xmlns:grille="clr-namespace:Lama.UI.UC.TournoiControls.GrilleControls"
             xmlns:statistiques="clr-namespace:Lama.UI.UC.TournoiControls.StatistiquesControls"
             xmlns:classement="clr-namespace:Lama.UI.UC.TournoiControls.ClassementControls"
             xmlns:prix="clr-namespace:Lama.UI.UC.TournoiControls.PrixControls"
             xmlns:Controls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">

    <UserControl.Resources>

        <Style x:Key="tabitem" TargetType="TabItem" BasedOn="{StaticResource {x:Type TabItem}}" />

        <Style x:Key="aucuntour" TargetType="TabItem" BasedOn="{StaticResource tabitem}">
            <Setter Property="IsEnabled" Value="True" />
            <Style.Triggers>
                <DataTrigger Binding="{Binding TournoiEnCours.LstTours.Count}" Value="0">
                    <Setter Property="IsEnabled" Value="False" />
                    <Setter Property="Opacity" Value="0.5" />
                </DataTrigger>
            </Style.Triggers>
        </Style>

        <Style x:Key="aucunprix" TargetType="TabItem" BasedOn="{StaticResource tabitem}">
            <Setter Property="Visibility" Value="Visible" />
            <Style.Triggers>
                <DataTrigger Binding="{Binding TournoiEnCours.LstPrix}" Value="{x:Null}">
                    <Setter Property="Visibility" Value="Hidden" />
                </DataTrigger>

                <DataTrigger Binding="{Binding TournoiEnCours.LstPrix.Count}" Value="0">
                    <Setter Property="Visibility" Value="Hidden" />
                </DataTrigger>
            </Style.Triggers>
        </Style>

    </UserControl.Resources>

    <StackPanel>

        <Controls:MetroAnimatedTabControl x:Name="tabControl" SelectionChanged="tabControl_SelectionChanged" Height="575">

            <Controls:MetroTabItem Name="tabGrille" Header="Grille" Style="{StaticResource tabitem}"/>
            <Controls:MetroTabItem Name="tabStat" Header="Statistiques" Style="{StaticResource aucuntour}" />
            <Controls:MetroTabItem Name="tabClassement" Header="Classement" Style="{StaticResource aucuntour}" />
            <Controls:MetroTabItem Name="tabPrix" Header="Prix" Style="{StaticResource aucunprix}" />

        </Controls:MetroAnimatedTabControl>
        <local:StatistiquesModelesUC />
    </StackPanel>
</UserControl>
{'fraction_non_alphanumeric': 0.13637148282409806, 'fraction_numerical': 0.009494217158639738, 'mean_word_length': 2.9414965986394557, 'pattern_counts': {'":': 0, '<': 68, '<?xml version=': 0, '>': 68, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 22}, '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': '5513630', 'n_tokens_mistral': 1835, 'n_tokens_neox': 1688, 'n_words': 202}