<commit_before>﻿<Window x:Class="CalDavSynchronizer.Ui.Options.Views.SelectProfileWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:views="clr-namespace:CalDavSynchronizer.Ui.Options.Views"
        xmlns:viewModels="clr-namespace:CalDavSynchronizer.Ui.Options.ViewModels"
        mc:Ignorable="d"
        Title="Select Profile Type" Height="450" Width="960" WindowStartupLocation="CenterScreen"
         d:DataContext="{x:Static viewModels:SelectProfileViewModel.DesignInstance}">
  <DockPanel>
    <UniformGrid Columns="2" DockPanel.Dock="Bottom" HorizontalAlignment="Right">
      <Button Command="{Binding OkCommand}" Margin="6" Width="60" HorizontalAlignment="Stretch" IsDefault="True">Ok</Button>
      <Button Command="{Binding CancelCommand}" Margin="6" IsCancel="True">Cancel</Button>
    </UniformGrid>
    <ItemsControl ItemsSource="{Binding ProfileTypes}">
    <ItemsControl.ItemsPanel>
      <ItemsPanelTemplate>
        <WrapPanel Orientation="Horizontal" />
      </ItemsPanelTemplate>
    </ItemsControl.ItemsPanel>
    <ItemsControl.ItemTemplate>
      <DataTemplate DataType="viewModels:SelectProfileViewModel">
          <DockPanel Width="280" Height="40" Margin="12">
            <RadioButton Margin="12,0,0,0" VerticalAlignment="Center" Width="160" GroupName="ProfileType" Content="{Binding Name}" IsChecked="{Binding IsSelected}" DockPanel.Dock="Right"></RadioButton>
            <Image Stretch="Uniform" Source="{Binding ImageUrl}"></Image>
          </DockPanel>
        </DataTemplate>
    </ItemsControl.ItemTemplate>
  </ItemsControl>
  </DockPanel>
</Window><commit_msg>Set Height automatically<commit_after>﻿<Window x:Class="CalDavSynchronizer.Ui.Options.Views.SelectProfileWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:views="clr-namespace:CalDavSynchronizer.Ui.Options.Views"
        xmlns:viewModels="clr-namespace:CalDavSynchronizer.Ui.Options.ViewModels"
        mc:Ignorable="d"
        SizeToContent="Height"
        Title="Select Profile Type" 
        Width="960" 
        WindowStartupLocation="CenterScreen"
         d:DataContext="{x:Static viewModels:SelectProfileViewModel.DesignInstance}">
  <DockPanel>
    <UniformGrid Columns="2" DockPanel.Dock="Bottom" HorizontalAlignment="Right">
      <Button Command="{Binding OkCommand}" Margin="6" Width="60" HorizontalAlignment="Stretch" IsDefault="True">Ok</Button>
      <Button Command="{Binding CancelCommand}" Margin="6" IsCancel="True">Cancel</Button>
    </UniformGrid>
    <ItemsControl ItemsSource="{Binding ProfileTypes}">
      <ItemsControl.ItemsPanel>
        <ItemsPanelTemplate>
          <WrapPanel Orientation="Horizontal" />
        </ItemsPanelTemplate>
      </ItemsControl.ItemsPanel>
      <ItemsControl.ItemTemplate>
        <DataTemplate DataType="viewModels:SelectProfileViewModel">
          <DockPanel Width="280" Height="40" Margin="12">
            <RadioButton Margin="12,0,0,0" VerticalAlignment="Center" Width="160" GroupName="ProfileType" Content="{Binding Name}" IsChecked="{Binding IsSelected}" DockPanel.Dock="Right"></RadioButton>
            <Image Stretch="Uniform" Source="{Binding ImageUrl}"></Image>
          </DockPanel>
        </DataTemplate>
      </ItemsControl.ItemTemplate>
    </ItemsControl>
  </DockPanel>
</Window>
{'fraction_non_alphanumeric': 0.1436522661012457, 'fraction_numerical': 0.02146832759077657, 'mean_word_length': 4.338048090523338, 'pattern_counts': {'":': 0, '<': 57, '<?xml version=': 0, '>': 57, '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': '5998377', 'n_tokens_mistral': 1198, 'n_tokens_neox': 1081, 'n_words': 143}