<commit_before>﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <DataTemplate x:Key="Equipment_Template">
        
    </DataTemplate>
</ResourceDictionary><commit_msg>Implemented Equipment screen<commit_after>﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:conv="clr-namespace:WpfUtils.ValueConverters;assembly=WpfUtils">
    <DataTemplate x:Key="Equipment_Template">
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="*"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="*"/>
            </Grid.RowDefinitions>
            <DataGrid Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="0" AutoGenerateColumns="False"
                      x:Name="itemList" Margin="5" ItemsSource="{Binding Path=ItemList}">
                <DataGrid.Columns>
                    <DataGridComboBoxColumn Header="Type" ItemsSource="{Binding Path=EquipmentTypes}" 
                                            SelectedItemBinding="{Binding Path=Type}" Width="*"/>
                    <DataGridTextColumn Header="Name" Binding="{Binding Path=Name}" Width="2*"/>
                    <DataGridTextColumn Header="Shape Width" Binding="{Binding Path=Width}" Width="Auto"/>
                    <DataGridTextColumn Header="Shape Height" Binding="{Binding Path=Height}" Width="Auto"/>
                    <DataGridTextColumn Header="Shape Type" Binding="{Binding Path=ShapeType}" Width="Auto"/>
                    <DataGridTextColumn Header="Max Shield Value" Binding="{Binding Path=MaxShieldValue}"/>
                    <DataGridTextColumn Header="Energy Per Shield" Binding="{Binding Path=EnergyPerShield}"/>
                </DataGrid.Columns>
            </DataGrid>
            <Label Content="Equipment Information" Grid.Column="0" Grid.Row="1" FontSize="14"
                   FontWeight="Bold" VerticalContentAlignment="Center" Margin="5"
                   IsEnabled="{Binding Path=SelectedItem, Converter={conv:ObjectNotNull}, ElementName=itemList}"/>
            <Grid Grid.Column="1" Grid.Row="1">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*"/>
                    <ColumnDefinition Width="*"/>
                    <ColumnDefinition Width="*"/>
                </Grid.ColumnDefinitions>
                <Button Content="Add Equipment" VerticalContentAlignment="Center" Grid.Column="1" Margin="5"
                        Command="{Binding Path=AddEquipmentCmd}"/>
                <Button Content="Remove Equipment" VerticalContentAlignment="Center" Grid.Column="2" Margin="5"
                        Command="{Binding Path=RemoveEquipmentCmd}"
                        IsEnabled="{Binding Path=SelectedItem, Converter={conv:ObjectNotNull}, ElementName=itemList}"/>
            </Grid>
            <Grid Grid.Column="0" Grid.Row="2" IsEnabled="{Binding Path=SelectedItem, 
                Converter={conv:ObjectNotNull}, ElementName=itemList}">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition Width="*"/>
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition Width="*"/>
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                </Grid.RowDefinitions>
                <Label Content="Name:" Grid.Column="0" Grid.Row="0" VerticalContentAlignment="Center" Margin="5"/>
                <TextBox Grid.Column="1" Grid.ColumnSpan="3" Grid.Row="0" VerticalContentAlignment="Center" Margin="5"
                         Text="{Binding Path=SelectedItem.Name, ElementName=itemList}"/>
                <Label Content="E. Input:" Grid.Column="0" Grid.Row="1" VerticalContentAlignment="Center" Margin="5"/>
                <TextBox Grid.Column="1" Grid.ColumnSpan="3" Grid.Row="1" VerticalContentAlignment="Center" Margin="5"
                         Text="{Binding Path=SelectedItem.EnergyInput, ElementName=itemList}"/>
                <Label Content="Sprite" Grid.Column="0" Grid.Row="2" VerticalContentAlignment="Center" Margin="5"
                       FontSize="12" FontWeight="Bold" Grid.ColumnSpan="2"/>
                <Label Content="Filename:" Grid.Column="0" Grid.Row="3" VerticalContentAlignment="Center" Margin="5"/>
                <TextBox Grid.Column="1" Grid.Row="3" VerticalContentAlignment="Center" Margin="5"
                         Grid.ColumnSpan="3" Text="{Binding Path=SelectedItem.SpriteFilename, ElementName=itemList}"/>
                <Label Content="Width:" Grid.Column="0" Grid.Row="4" VerticalContentAlignment="Center" Margin="5"/>
                <TextBox Grid.Column="1" Grid.Row="4" VerticalContentAlignment="Center" Margin="5"
                         Text="{Binding Path=SelectedItem.SpriteWidth, ElementName=itemList}"/>
                <Label Content="Height:" Grid.Column="2" Grid.Row="4" VerticalContentAlignment="Center" Margin="5"/>
                <TextBox Grid.Column="3" Grid.Row="4" VerticalContentAlignment="Center" Margin="5"
                         Text="{Binding Path=SelectedItem.SpriteHeight, ElementName=itemList}"/>
                <Label Content="Priority:" Grid.Column="0" Grid.Row="5" VerticalContentAlignment="Center" Margin="5"/>
                <TextBox Grid.Column="1" Grid.Row="5" VerticalContentAlignment="Center" Margin="5" Grid.ColumnSpan="3"
                         Text="{Binding Path=SelectedItem.SpritePriority, ElementName=itemList}"/>
                <Label Content="Shape" Grid.Column="0" Grid.Row="6" Grid.ColumnSpan="2" FontSize="12" 
                       VerticalContentAlignment="Center" FontWeight="Bold" Margin="5"/>
                <Label Content="Width:" Grid.Column="0" Grid.Row="7" VerticalContentAlignment="Center" Margin="5"/>
                <TextBox Grid.Column="1" Grid.Row="7" VerticalContentAlignment="Center" Margin="5"
                         Text="{Binding Path=SelectedItem.ShapeWidth, ElementName=itemList}"/>
                <Label Content="Height:" Grid.Column="2" Grid.Row="7" VerticalContentAlignment="Center" Margin="5"/>
                <TextBox Grid.Column="3" Grid.Row="7" VerticalContentAlignment="Center" Margin="5"
                         Text="{Binding Path=SelectedItem.ShapeHeight, ElementName=itemList}"/>
                <Label Content="Type:" Grid.Column="0" Grid.Row="8" VerticalContentAlignment="Center" Margin="5"/>
                <ComboBox ItemsSource="{Binding Path=PossibleShapeTypes}" Grid.Column="1" Grid.ColumnSpan="3" 
                          Margin="5" Grid.Row="8" SelectedItem="{Binding Path=SelectedItem.ShapeType, ElementName=itemList}"/>
            </Grid>
            <Grid Grid.Column="1" Grid.Row="2" IsEnabled="{Binding Path=SelectedItem, 
                Converter={conv:ObjectNotNull}, ElementName=itemList}">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition Width="*"/>
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition Width="*"/>
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                </Grid.RowDefinitions>
                <Label Content="Energy Source" FontSize="12" FontWeight="Bold" VerticalContentAlignment="Center"
                       Grid.Column="0" Grid.Row="0" Margin="5" Grid.ColumnSpan="3"/>
                <Label Content="Type:" Grid.Column="0" Grid.Row="1" Margin="5" VerticalContentAlignment="Center"/>
                <ComboBox Grid.Column="1" Grid.Row="1" Margin="5" VerticalContentAlignment="Center"
                          ItemsSource="{Binding Path=PossibleEnergySourceTypes}" Grid.ColumnSpan="3"
                          SelectedItem="{Binding Path=SelectedItem.EnergySourceType}"/>
                <Label Content="Buffer Cap:" Grid.Column="0" Grid.Row="2" Margin="5" VerticalContentAlignment="Center"/>
                <TextBox Grid.Column="1" Grid.Row="2" Margin="5" VerticalContentAlignment="Center"
                         Text="{Binding Path=SelectedItem.BufferCap}" Grid.ColumnSpan="3"/>
                <Label Content="Input Limit:" Grid.Column="0" Grid.Row="3" Margin="5" VerticalContentAlignment="Center"/>
                <TextBox Grid.Column="1" Grid.Row="3" Margin="5" VerticalContentAlignment="Center"
                         Text="{Binding Path=SelectedItem.InputLimit}" Grid.ColumnSpan="3"/>
                <Label Content="Usage Priority:" Grid.Column="0" Grid.Row="4" Margin="5" VerticalContentAlignment="Center"/>
                <TextBox Grid.Column="1" Grid.Row="4" Margin="5" VerticalContentAlignment="Center"
                         Text="{Binding Path=SelectedItem.UsagePriority}" Grid.ColumnSpan="3"/>
            </Grid>
        </Grid>
    </DataTemplate>
</ResourceDictionary>
{'fraction_non_alphanumeric': 0.13928215353938186, 'fraction_numerical': 0.014057826520438684, 'mean_word_length': 2.345897264843229, 'pattern_counts': {'":': 0, '<': 108, '<?xml version=': 0, '>': 108, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 5}, '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': '7386296', 'n_tokens_mistral': 2665, 'n_tokens_neox': 2386, 'n_words': 425}