<commit_before><Style xmlns="https://github.com/avaloniaui" 
       Selector="DataValidationErrors"
       xmlns:sys="clr-namespace:System;assembly=netstandard">
  <Design.PreviewWith>
    <Border Padding="20"> 
      <TextBox Text="Sample">
        <DataValidationErrors.Error>
          <sys:Exception/> 
        </DataValidationErrors.Error>
      </TextBox>
    </Border>
  </Design.PreviewWith>
    
  <Setter Property="Template">
    <ControlTemplate>
      <DockPanel LastChildFill="True">
        <ContentControl DockPanel.Dock="Right"
                        ContentTemplate="{TemplateBinding ErrorTemplate}"
                        DataContext="{TemplateBinding Owner}"
                        Content="{Binding (DataValidationErrors.Errors)}"
                        IsVisible="{Binding (DataValidationErrors.HasErrors)}"/>
        <ContentPresenter Name="PART_ContentPresenter"
                          Background="{TemplateBinding Background}"
                          BorderBrush="{TemplateBinding BorderBrush}"
                          BorderThickness="{TemplateBinding BorderThickness}"
                          ContentTemplate="{TemplateBinding ContentTemplate}"
                          Content="{TemplateBinding Content}"
                          Padding="{TemplateBinding Padding}"/>
      </DockPanel>
    </ControlTemplate>
  </Setter>
  <Setter Property="ErrorTemplate">
    <DataTemplate>
      <Canvas Width="14" Height="14" Margin="4 0 1 0" 
              Background="Transparent">
        <Canvas.Styles>
          <Style Selector="ToolTip">
            <Setter Property="BorderBrush" Value="{DynamicResource SystemControlErrorTextForegroundBrush}"/>
          </Style>
        </Canvas.Styles>
        <ToolTip.Tip>
          <ItemsControl Items="{Binding}"/>
        </ToolTip.Tip>
        <Path Data="M14,7 A7,7 0 0,0 0,7 M0,7 A7,7 0 1,0 14,7 M7,3l0,5 M7,9l0,2" Stroke="{DynamicResource SystemControlErrorTextForegroundBrush}" StrokeThickness="2"/>
      </Canvas>
    </DataTemplate>
  </Setter>
</Style>
<commit_msg>Update DataValidationErrors.xaml<commit_after><Style xmlns="https://github.com/avaloniaui" 
       Selector="DataValidationErrors"
       xmlns:sys="clr-namespace:System;assembly=netstandard">
  <Design.PreviewWith>
    <Border Padding="20"> 
      <TextBox Text="Sample">
        <DataValidationErrors.Error>
          <sys:Exception/> 
        </DataValidationErrors.Error>
      </TextBox>
    </Border>
  </Design.PreviewWith>
    
  <Setter Property="Template">
    <ControlTemplate>
      <DockPanel LastChildFill="True">
        <ContentControl DockPanel.Dock="Right"
                        ContentTemplate="{TemplateBinding ErrorTemplate}"
                        DataContext="{TemplateBinding Owner}"
                        Content="{Binding (DataValidationErrors.Errors)}"
                        IsVisible="{Binding (DataValidationErrors.HasErrors)}"/>
        <ContentPresenter Name="PART_ContentPresenter"
                          Background="{TemplateBinding Background}"
                          BorderBrush="{TemplateBinding BorderBrush}"
                          BorderThickness="{TemplateBinding BorderThickness}"
                          ContentTemplate="{TemplateBinding ContentTemplate}"
                          Content="{TemplateBinding Content}"
                          Padding="{TemplateBinding Padding}"/>
      </DockPanel>
    </ControlTemplate>
  </Setter>
  <Setter Property="ErrorTemplate">
    <DataTemplate>
      <Canvas Name="PART_ErrorTemplateCanvas"
              Width="14" Height="14" Margin="4 0 1 0" 
              Background="Transparent">
        <Canvas.Styles>
          <Style Selector="Canvas#PART_ErrorTemplateCanvas ToolTip">
            <Setter Property="BorderBrush" Value="{DynamicResource SystemControlErrorTextForegroundBrush}"/>
          </Style>
          <Style Selector="Canvas#PART_ErrorTemplateCanvas ToolTip TextBlock">
            <Setter Property="TextWrapping" Value="Wrap" />
          </Style>
        </Canvas.Styles>
        <ToolTip.Tip>
          <ItemsControl Items="{Binding}"/>
        </ToolTip.Tip>
        <Path Data="M14,7 A7,7 0 0,0 0,7 M0,7 A7,7 0 1,0 14,7 M7,3l0,5 M7,9l0,2" Stroke="{DynamicResource SystemControlErrorTextForegroundBrush}" StrokeThickness="2"/>
      </Canvas>
    </DataTemplate>
  </Setter>
</Style>

{'fraction_non_alphanumeric': 0.11895484758193903, 'fraction_numerical': 0.01787760715104286, 'mean_word_length': 2.3934681181959565, 'pattern_counts': {'":': 0, '<': 74, '<?xml version=': 0, '>': 74, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '3950282', 'n_tokens_mistral': 1210, 'n_tokens_neox': 1093, 'n_words': 193}