<commit_before>﻿<Metro:MetroWindow x:Class="FluentTest.MahMetroWindow"
                   xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                   xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                   xmlns:Fluent="clr-namespace:Fluent;assembly=Fluent"
                   xmlns:Metro="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
                   xmlns:fluentTest="clr-namespace:FluentTest"
                   Style="{DynamicResource CleanWindowStyleKey}"
                   GlowBrush="{DynamicResource AccentColorBrush}"
                   ShowIconOnTitleBar="False"
                   ShowTitleBar="True"
                   WindowStartupLocation="CenterScreen"
                   Title="{Binding DataContext.Title, ElementName=TestContent}"
                   Height="768"
                   Width="1024"
                   x:Name="window"
                   TitleCaps="False"
                   WindowState="Normal">
    <Metro:MetroWindow.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Fonts.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Colors.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/Blue.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/BaseLight.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Metro:MetroWindow.Resources>
       
    <Metro:MetroWindow.TitleTemplate>
        <DataTemplate>
            <Fluent:RibbonTitleBar x:Name="RibbonTitleBar" 
                                   Header="{Binding ElementName=window, Path=Title}"/>
        </DataTemplate>
    </Metro:MetroWindow.TitleTemplate>
    
    <fluentTest:TestContent x:Name="TestContent" />
</Metro:MetroWindow><commit_msg>Improved interop sample<commit_after>﻿<Metro:MetroWindow x:Class="FluentTest.MahMetroWindow"
                   xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                   xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                   xmlns:Fluent="clr-namespace:Fluent;assembly=Fluent"
                   xmlns:Metro="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
                   xmlns:fluentTest="clr-namespace:FluentTest"
                   Style="{DynamicResource CleanWindowStyleKey}"
                   GlowBrush="{DynamicResource AccentColorBrush}"
                   ShowIconOnTitleBar="False"
                   ShowTitleBar="True"
                   WindowStartupLocation="CenterScreen"
                   Title="{Binding DataContext.Title, ElementName=TestContent}"
                   Height="768"
                   Width="1024"
                   x:Name="window"
                   TitleCaps="False"
                   WindowState="Normal">
    <Metro:MetroWindow.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Fonts.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Colors.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/Blue.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/BaseLight.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Metro:MetroWindow.Resources>
       
    <Metro:MetroWindow.TitleTemplate>
        <DataTemplate>
            <Fluent:RibbonTitleBar x:Name="RibbonTitleBar" 
                                   Header="{Binding ElementName=window, Path=Title}"/>
        </DataTemplate>
    </Metro:MetroWindow.TitleTemplate>
    
    <Metro:MetroWindow.LeftWindowCommands>
        <Metro:WindowCommands>
            <Button>Left</Button>
        </Metro:WindowCommands>
    </Metro:MetroWindow.LeftWindowCommands>
    
    <Metro:MetroWindow.RightWindowCommands>
        <Metro:WindowCommands>
            <Button>Right</Button>
        </Metro:WindowCommands>
    </Metro:MetroWindow.RightWindowCommands>    
    
    <fluentTest:TestContent x:Name="TestContent" />
</Metro:MetroWindow>
{'fraction_non_alphanumeric': 0.12012644889357219, 'fraction_numerical': 0.006322444678609062, 'mean_word_length': 2.3446088794926006, 'pattern_counts': {'":': 0, '<': 53, '<?xml version=': 0, '>': 53, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 10}, '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': '6634772', 'n_tokens_mistral': 1382, 'n_tokens_neox': 1294, 'n_words': 111}