<commit_before>﻿<ResourceDictionary
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:contract="clr-namespace:nGratis.Cop.Core.Contract;assembly=nGratis.Cop.Core.Contract"
  xmlns:core="http://schemas.ngratis.com/2014/core"
  xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  mc:Ignorable="d">
  <ResourceDictionary.MergedDictionaries>
    <core:SharedResourceDictionary Source="/nGratis.Cop.Core.Theme;component/Cop.Style.TextBlock.xaml" />
    <core:SharedResourceDictionary Source="/nGratis.Cop.Core.Theme;component/Cop.Style.TextBox.xaml" />
    <core:SharedResourceDictionary Source="/nGratis.Cop.Core.Wpf;component/Cop.Converter.xaml" />
  </ResourceDictionary.MergedDictionaries>

  <core:FieldTemplateSelector x:Key="Cop.AweField.TemplateSelector" />

  <DataTemplate x:Key="{x:Static core:FieldTemplateSelector+Key.Default}">
    <Border BorderBrush="{DynamicResource Cop.Brush.Shade2}" BorderThickness="0,0,0,1">
      <TextBlock
        FontStyle="Italic"
        Style="{StaticResource Cop.TextBlock.Body}"
        Text="{x:Static contract:Text.Unsupported}" />
    </Border>
  </DataTemplate>

  <DataTemplate x:Key="{x:Static core:FieldTemplateSelector+Key.Empty}">
    <Border BorderBrush="{DynamicResource Cop.Brush.Shade2}" BorderThickness="0,0,0,1">
      <TextBlock
        FontStyle="Italic"
        Style="{StaticResource Cop.TextBlock.Body}"
        Text="{x:Static contract:Text.Empty}" />
    </Border>
  </DataTemplate>

  <DataTemplate x:Key="Cop.AweField.Input.Text">
    <TextBox Style="{StaticResource Cop.TextBox.Normal}" Text="{Binding Value, Mode=TwoWay, RelativeSource={RelativeSource AncestorType={x:Type core:AweField}}, UpdateSourceTrigger=PropertyChanged}" />
  </DataTemplate>

  <DataTemplate x:Key="Cop.AweField.Input.DropDown">
    <ComboBox
      DisplayMemberPath="{Binding DisplayMemberPath, Mode=OneWay, RelativeSource={RelativeSource AncestorType={x:Type core:AweField}}}"
      ItemsSource="{Binding Values, Mode=OneWay, RelativeSource={RelativeSource AncestorType={x:Type core:AweField}}}"
      SelectedItem="{Binding Value, Mode=TwoWay, RelativeSource={RelativeSource AncestorType={x:Type core:AweField}}}" />
  </DataTemplate>

  <DataTemplate x:Key="Cop.AweField.Output.Text">
    <Border BorderBrush="{DynamicResource Cop.Brush.Shade2}" BorderThickness="0,0,0,1">
      <TextBlock Style="{StaticResource Cop.TextBlock.Base}" Text="{Binding FormattedValue, Mode=OneWay, RelativeSource={RelativeSource AncestorType={x:Type core:AweField}}}" />
    </Border>
  </DataTemplate>

  <DataTemplate x:Key="Cop.AweField.Output.List">
    <ItemsControl ItemsSource="{Binding Values, Mode=OneWay, RelativeSource={RelativeSource AncestorType={x:Type core:AweField}}}">
      <ItemsControl.ItemTemplate>
        <DataTemplate>
          <BulletDecorator>
            <BulletDecorator.Bullet>
              <Ellipse
                Width="5"
                Height="5"
                HorizontalAlignment="Center"
                VerticalAlignment="Center"
                Fill="{DynamicResource Cop.Brush.Accent}" />
            </BulletDecorator.Bullet>
            <TextBlock
              Margin="10,1,0,1"
              Style="{StaticResource Cop.TextBlock.Body}"
              Text="{Binding Mode=OneWay}"
              TextWrapping="Wrap" />
          </BulletDecorator>
        </DataTemplate>
      </ItemsControl.ItemTemplate>
    </ItemsControl>
  </DataTemplate>

  <DataTemplate x:Key="Cop.AweField.Output.Chips">
    <ItemsControl ItemsSource="{Binding Values, Mode=OneWay, RelativeSource={RelativeSource AncestorType={x:Type core:AweField}}}">
      <ItemsControl.ItemTemplate>
        <DataTemplate>
          <Border
            Margin="0,1,5,1"
            BorderBrush="{DynamicResource Cop.Brush.Shade4}"
            BorderThickness="1">
            <TextBlock
              Padding="10,1"
              HorizontalAlignment="Center"
              Style="{StaticResource Cop.TextBlock.Body}"
              Text="{Binding Mode=OneWay}" />
          </Border>
        </DataTemplate>
      </ItemsControl.ItemTemplate>
      <ItemsControl.ItemsPanel>
        <ItemsPanelTemplate>
          <WrapPanel Orientation="Horizontal" />
        </ItemsPanelTemplate>
      </ItemsControl.ItemsPanel>
    </ItemsControl>
  </DataTemplate>

  <Style x:Key="{x:Type core:AweField}" TargetType="core:AweField">
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="core:AweField">
          <StackPanel core:ChildrenMargin.Value="0,5" Orientation="Vertical">
            <TextBlock
              HorizontalAlignment="Right"
              FontSize="10"
              Foreground="{DynamicResource Cop.Brush.Accent}"
              Style="{StaticResource Cop.TextBlock.Base}"
              Text="{Binding Header, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource Cop.Converter.AnyToUpperCaseConverter}}" />
            <ContentPresenter
              Content="{Binding Mode=OneWay}"
              ContentTemplate="{TemplateBinding CustomTemplate}"<commit_msg>Adjusted <EMPTY> field style to remove flickering for <Chips> kind.<commit_after>﻿<ResourceDictionary
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:contract="clr-namespace:nGratis.Cop.Core.Contract;assembly=nGratis.Cop.Core.Contract"
  xmlns:core="http://schemas.ngratis.com/2014/core"
  xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  mc:Ignorable="d">
  <ResourceDictionary.MergedDictionaries>
    <core:SharedResourceDictionary Source="/nGratis.Cop.Core.Theme;component/Cop.Style.TextBlock.xaml" />
    <core:SharedResourceDictionary Source="/nGratis.Cop.Core.Theme;component/Cop.Style.TextBox.xaml" />
    <core:SharedResourceDictionary Source="/nGratis.Cop.Core.Wpf;component/Cop.Converter.xaml" />
  </ResourceDictionary.MergedDictionaries>

  <core:FieldTemplateSelector x:Key="Cop.AweField.TemplateSelector" />

  <DataTemplate x:Key="{x:Static core:FieldTemplateSelector+Key.Default}">
    <Border BorderBrush="{DynamicResource Cop.Brush.Shade2}" BorderThickness="0,0,0,1">
      <TextBlock
        FontStyle="Italic"
        Style="{StaticResource Cop.TextBlock.Body}"
        Text="{x:Static contract:Text.Unsupported}" />
    </Border>
  </DataTemplate>

  <DataTemplate x:Key="{x:Static core:FieldTemplateSelector+Key.Empty}">
    <Border
      Margin="0,0,0,5"
      BorderBrush="{DynamicResource Cop.Brush.Shade2}"
      BorderThickness="0,0,0,1">
      <TextBlock
        FontStyle="Italic"
        Style="{StaticResource Cop.TextBlock.Body}"
        Text="{x:Static contract:Text.Empty}" />
    </Border>
  </DataTemplate>

  <DataTemplate x:Key="Cop.AweField.Input.Text">
    <TextBox Style="{StaticResource Cop.TextBox.Normal}" Text="{Binding Value, Mode=TwoWay, RelativeSource={RelativeSource AncestorType={x:Type core:AweField}}, UpdateSourceTrigger=PropertyChanged}" />
  </DataTemplate>

  <DataTemplate x:Key="Cop.AweField.Input.DropDown">
    <ComboBox
      DisplayMemberPath="{Binding DisplayMemberPath, Mode=OneWay, RelativeSource={RelativeSource AncestorType={x:Type core:AweField}}}"
      ItemsSource="{Binding Values, Mode=OneWay, RelativeSource={RelativeSource AncestorType={x:Type core:AweField}}}"
      SelectedItem="{Binding Value, Mode=TwoWay, RelativeSource={RelativeSource AncestorType={x:Type core:AweField}}}" />
  </DataTemplate>

  <DataTemplate x:Key="Cop.AweField.Output.Text">
    <Border BorderBrush="{DynamicResource Cop.Brush.Shade2}" BorderThickness="0,0,0,1">
      <TextBlock Style="{StaticResource Cop.TextBlock.Base}" Text="{Binding FormattedValue, Mode=OneWay, RelativeSource={RelativeSource AncestorType={x:Type core:AweField}}}" />
    </Border>
  </DataTemplate>

  <DataTemplate x:Key="Cop.AweField.Output.List">
    <ItemsControl ItemsSource="{Binding Values, Mode=OneWay, RelativeSource={RelativeSource AncestorType={x:Type core:AweField}}}">
      <ItemsControl.ItemTemplate>
        <DataTemplate>
          <BulletDecorator>
            <BulletDecorator.Bullet>
              <Ellipse
                Width="5"
                Height="5"
                HorizontalAlignment="Center"
                VerticalAlignment="Center"
                Fill="{DynamicResource Cop.Brush.Accent}" />
            </BulletDecorator.Bullet>
            <TextBlock
              Margin="10,1,0,1"
              Style="{StaticResource Cop.TextBlock.Body}"
              Text="{Binding Mode=OneWay}"
              TextWrapping="Wrap" />
          </BulletDecorator>
        </DataTemplate>
      </ItemsControl.ItemTemplate>
    </ItemsControl>
  </DataTemplate>

  <DataTemplate x:Key="Cop.AweField.Output.Chips">
    <ItemsControl ItemsSource="{Binding Values, Mode=OneWay, RelativeSource={RelativeSource AncestorType={x:Type core:AweField}}}">
      <ItemsControl.ItemTemplate>
        <DataTemplate>
          <Border
            Margin="0,0,5,2"
            BorderBrush="{DynamicResource Cop.Brush.Shade4}"
            BorderThickness="1">
            <TextBlock
              Margin="10,1"
              HorizontalAlignment="Center"
              Style="{StaticResource Cop.TextBlock.Body}"
              Text="{Binding Mode=OneWay}" />
          </Border>
        </DataTemplate>
      </ItemsControl.ItemTemplate>
      <ItemsControl.ItemsPanel>
        <ItemsPanelTemplate>
          <WrapPanel Orientation="Horizontal" />
        </ItemsPanelTemplate>
      </ItemsControl.ItemsPanel>
    </ItemsControl>
  </DataTemplate>

  <Style x:Key="{x:Type core:AweField}" TargetType="core:AweField">
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="core:AweField">
          <StackPanel core:ChildrenMargin.Value="0,5" Orientation="Vertical">
            <TextBlock
              HorizontalAlignment="Right"
              FontSize="10"
              Foreground="{DynamicResource Cop.Brush.Accent}"
              Style="{StaticResource Cop.TextBlock.Base}"
              Text="{Binding Header, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource Cop.Converter.AnyToUpperCaseConverter}}" />
            <ContentPresenter
              Content="{Binding Mode=OneWay}"
              ContentTemplate="{TemplateBinding CustomTemplate}"
{'fraction_non_alphanumeric': 0.13649262202043133, 'fraction_numerical': 0.010783200908059024, 'mean_word_length': 3.5377682403433477, 'pattern_counts': {'":': 0, '<': 135, '<?xml version=': 0, '>': 133, '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': '810964', 'n_tokens_mistral': 3290, 'n_tokens_neox': 3037, 'n_words': 405}