<commit_before>﻿<UserControl x:Class="OpenKh.Tools.Kh2BattleEditor.Views.LvupView"
             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:controls="clr-namespace:Xe.Tools.Wpf.Controls;assembly=Xe.Tools.Wpf"
             xmlns:local="clr-namespace:OpenKh.Tools.Kh2BattleEditor.Views"
             mc:Ignorable="d" 
             d:DesignHeight="450" d:DesignWidth="800">
    <UserControl.Resources>
        <Thickness x:Key="LabelMargin" Left="0" Top="0" Right="5" Bottom="0" />
    </UserControl.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="10"/>
            <RowDefinition Height="2*"/>
        </Grid.RowDefinitions>
        <StackPanel Orientation="Horizontal" Grid.Row="0" VerticalAlignment="Center">
            <TextBlock Text="Character" Margin="0 2 5 0"/>
            <ComboBox Width="200"
            ItemsSource="{Binding Items}"
            SelectedIndex="{Binding SelectedIndex}"
            SelectedItem="{Binding SelectedItem}"
            DisplayMemberPath="Name"/>
        </StackPanel>
        <Grid Grid.Row="2">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="100"/>
                <ColumnDefinition Width="10"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            <ListBox Grid.Column="0" 
                ItemsSource="{Binding SelectedItem.Items}"
                SelectedIndex="{Binding SelectedItem.SelectedIndex}"
                SelectedItem="{Binding SelectedItem.SelectedItem}"
                DisplayMemberPath="Name" />
            <controls:TwoColumnsPanel Grid.Column="2" RowSpacing="3" DataContext="{Binding SelectedItem.SelectedItem}">
                <TextBlock Text="EXP for Level Up" Margin="{StaticResource LabelMargin}" />
                <TextBox Text="{Binding Exp, UpdateSourceTrigger=PropertyChanged}" />

                <TextBlock Text="Strength" Margin="{StaticResource LabelMargin}" />
                <TextBox Text="{Binding Strength, UpdateSourceTrigger=PropertyChanged}" />

                <TextBlock Text="Magic" Margin="{StaticResource LabelMargin}" />
                <TextBox Text="{Binding Magic, UpdateSourceTrigger=PropertyChanged}" />

                <TextBlock Text="Defense" Margin="{StaticResource LabelMargin}" />
                <TextBox Text="{Binding Defense, UpdateSourceTrigger=PropertyChanged}" />

                <TextBlock Text="AP" Margin="{StaticResource LabelMargin}" />
                <TextBox Text="{Binding Ap, UpdateSourceTrigger=PropertyChanged}" />

                <TextBlock Text="Sword ability" Margin="{StaticResource LabelMargin}" />
                <TextBox Text="{Binding SwordAbility, UpdateSourceTrigger=PropertyChanged}" />

                <TextBlock Text="Shield ability" Margin="{StaticResource LabelMargin}" />
                <TextBox Text="{Binding ShieldAbility, UpdateSourceTrigger=PropertyChanged}" />

                <TextBlock Text="Staff ability" Margin="{StaticResource LabelMargin}" />
                <TextBox Text="{Binding StaffAbility, UpdateSourceTrigger=PropertyChanged}" />
            </controls:TwoColumnsPanel>
        </Grid>
    </Grid>
</UserControl>
<commit_msg>Lvup: Change view so it's consistent with Fmlv<commit_after>﻿<UserControl x:Class="OpenKh.Tools.Kh2BattleEditor.Views.LvupView"
             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:controls="clr-namespace:Xe.Tools.Wpf.Controls;assembly=Xe.Tools.Wpf"
             xmlns:local="clr-namespace:OpenKh.Tools.Kh2BattleEditor.Views"
             mc:Ignorable="d" 
             d:DesignHeight="450" d:DesignWidth="800">
    <UserControl.Resources>
        <Thickness x:Key="LabelMargin" Left="0" Top="0" Right="5" Bottom="0" />
    </UserControl.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="10"/>
            <RowDefinition Height="2*"/>
        </Grid.RowDefinitions>
        <Grid Grid.Row="0">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="100"/>
                <ColumnDefinition Width="10"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            <TextBlock Text="Character" Margin="0 2 5 0" Grid.Column="0"/>
            <ComboBox Grid.Column="1" Grid.ColumnSpan="2"
            ItemsSource="{Binding Items}"
            SelectedIndex="{Binding SelectedIndex}"
            SelectedItem="{Binding SelectedItem}"
            DisplayMemberPath="Name"/>
        </Grid>
        <Grid Grid.Row="2">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="100"/>
                <ColumnDefinition Width="10"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            <ListBox Grid.Column="0" 
                ItemsSource="{Binding SelectedItem.Items}"
                SelectedIndex="{Binding SelectedItem.SelectedIndex}"
                SelectedItem="{Binding SelectedItem.SelectedItem}"
                DisplayMemberPath="Name" />
            <controls:TwoColumnsPanel Grid.Column="2" RowSpacing="3" DataContext="{Binding SelectedItem.SelectedItem}">
                <TextBlock Text="EXP for Level Up" Margin="{StaticResource LabelMargin}" />
                <TextBox Text="{Binding Exp, UpdateSourceTrigger=PropertyChanged}" />

                <TextBlock Text="Strength" Margin="{StaticResource LabelMargin}" />
                <TextBox Text="{Binding Strength, UpdateSourceTrigger=PropertyChanged}" />

                <TextBlock Text="Magic" Margin="{StaticResource LabelMargin}" />
                <TextBox Text="{Binding Magic, UpdateSourceTrigger=PropertyChanged}" />

                <TextBlock Text="Defense" Margin="{StaticResource LabelMargin}" />
                <TextBox Text="{Binding Defense, UpdateSourceTrigger=PropertyChanged}" />

                <TextBlock Text="AP" Margin="{StaticResource LabelMargin}" />
                <TextBox Text="{Binding Ap, UpdateSourceTrigger=PropertyChanged}" />

                <TextBlock Text="Sword ability" Margin="{StaticResource LabelMargin}" />
                <TextBox Text="{Binding SwordAbility, UpdateSourceTrigger=PropertyChanged}" />

                <TextBlock Text="Shield ability" Margin="{StaticResource LabelMargin}" />
                <TextBox Text="{Binding ShieldAbility, UpdateSourceTrigger=PropertyChanged}" />

                <TextBlock Text="Staff ability" Margin="{StaticResource LabelMargin}" />
                <TextBox Text="{Binding StaffAbility, UpdateSourceTrigger=PropertyChanged}" />
            </controls:TwoColumnsPanel>
        </Grid>
    </Grid>
</UserControl>

{'fraction_non_alphanumeric': 0.1297752034202179, 'fraction_numerical': 0.013929113225761965, 'mean_word_length': 2.532391622016561, 'pattern_counts': {'":': 0, '<': 92, '<?xml version=': 0, '>': 92, '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': '6808319', 'n_tokens_mistral': 2023, 'n_tokens_neox': 1785, 'n_words': 307}