<commit_before>﻿<Window xmlns="https://github.com/avaloniaui"
        xmlns:av="clr-namespace:MangaReader.Avalonia;assembly=MangaReader.Avalonia"
        xmlns:c="clr-namespace:MangaReader.Avalonia.ViewModel.Explorer;assembly=MangaReader.Avalonia"
        MinWidth="500" MinHeight="300"
        Title="{Binding SelectedTab.Name}">
  <Window.DataTemplates>
    <DataTemplate DataType="c:LibraryContentViewModel">
      <Grid RowDefinitions="Auto,*,Auto" DataContext="{Binding}">
        <TextBox Grid.Row="0" Text="{Binding Search}"/>
        <ListBox Grid.Row="1" Items="{Binding FilteredItems}" 
                 BorderThickness="0"
                 ScrollViewer.VerticalScrollBarVisibility="Auto">
          <ListBox.ItemTemplate>
            <DataTemplate>
              <Grid RowDefinitions="*,Auto" Margin="10"
                  Width="150" Height="300">
                <Image Grid.Row="0" Source="{Binding Cover, Converter={Static av:BitmapTypeConverter.Instance}}"/>
                <TextBlock Grid.Row="1" Text="{Binding Name}" ToolTip.Tip="{Binding Name}" HorizontalAlignment="Center"/>
              </Grid>
            </DataTemplate>
          </ListBox.ItemTemplate>
          <ListBox.ItemsPanel>
            <ItemsPanelTemplate>
              <WrapPanel/>
            </ItemsPanelTemplate>
          </ListBox.ItemsPanel>
        </ListBox>
        <ListBox Grid.Row="2" Items="{Binding Commands}">
          <ListBox.ItemTemplate>
            <DataTemplate>
              <Button Command="{Binding}" Content="{Binding Name}"/>
            </DataTemplate>
          </ListBox.ItemTemplate>
        </ListBox>
      </Grid>
    </DataTemplate>
    <DataTemplate DataType="c:SearchContentViewModel">
      <Grid RowDefinitions="Auto,*,Auto" ColumnDefinitions="*, Auto" DataContext="{Binding}">
        <TextBox Grid.Row="0" Grid.Column="0" Text="{Binding Search}"/>
        <Button Grid.Row="0" Grid.Column="1" DataContext="{Binding StartSearch}" Command="{Binding}" Content="{Binding Name}"/>
        <ListBox Grid.Row="1" Grid.ColumnSpan="2" Items="{Binding Items}" 
                 BorderThickness="0"
                 ScrollViewer.VerticalScrollBarVisibility="Auto">
          <ListBox.ItemTemplate>
            <DataTemplate>
              <Grid RowDefinitions="*,Auto" Margin="10"
                    Width="150" Height="300">
                <Image Grid.Row="0" Source="{Binding Cover, Converter={Static av:BitmapTypeConverter.Instance}}"/>
                <TextBlock Grid.Row="1" Text="{Binding Name}" ToolTip.Tip="{Binding Name}" HorizontalAlignment="Center"/>
              </Grid>
            </DataTemplate>
          </ListBox.ItemTemplate>
          <ListBox.ItemsPanel>
            <ItemsPanelTemplate>
              <WrapPanel/>
            </ItemsPanelTemplate>
          </ListBox.ItemsPanel>
        </ListBox>
        <TextBox Grid.Row="2" Grid.Column="0" Text="{Binding ManualUri}"/>
        <Button Grid.Row="2" Grid.Column="1" DataContext="{Binding AddManual}" Command="{Binding}" Content="{Binding Name}"/>
      </Grid>
    </DataTemplate>
  </Window.DataTemplates>
  <Grid ColumnDefinitions="Auto,*" DataContext="{Binding}">
    <ListBox Grid.Column="0" 
             Items="{Binding Tabs}" 
             SelectedItem="{Binding SelectedTab}"
             BorderThickness="0">
      <ListBox.ItemTemplate>
        <DataTemplate><commit_msg>Text wrapping to manga cover-title in lists.<commit_after>﻿<Window xmlns="https://github.com/avaloniaui"
        xmlns:av="clr-namespace:MangaReader.Avalonia;assembly=MangaReader.Avalonia"
        xmlns:c="clr-namespace:MangaReader.Avalonia.ViewModel.Explorer;assembly=MangaReader.Avalonia"
        MinWidth="500" MinHeight="300"
        Title="{Binding SelectedTab.Name}">
  <Window.DataTemplates>
    <DataTemplate DataType="c:LibraryContentViewModel">
      <Grid RowDefinitions="Auto,*,Auto" DataContext="{Binding}">
        <TextBox Grid.Row="0" Text="{Binding Search}"/>
        <ListBox Grid.Row="1" Items="{Binding FilteredItems}" 
                 BorderThickness="0"
                 ScrollViewer.VerticalScrollBarVisibility="Auto">
          <ListBox.ItemTemplate>
            <DataTemplate>
              <Grid RowDefinitions="*,Auto" Margin="10"
                  Width="150" Height="300">
                <Image Grid.Row="0" Source="{Binding Cover, Converter={Static av:BitmapTypeConverter.Instance}}"/>
                <TextBlock Grid.Row="1" Text="{Binding Name}" TextWrapping="Wrap" ToolTip.Tip="{Binding Name}" HorizontalAlignment="Center"/>
              </Grid>
            </DataTemplate>
          </ListBox.ItemTemplate>
          <ListBox.ItemsPanel>
            <ItemsPanelTemplate>
              <WrapPanel/>
            </ItemsPanelTemplate>
          </ListBox.ItemsPanel>
        </ListBox>
        <ListBox Grid.Row="2" Items="{Binding Commands}">
          <ListBox.ItemTemplate>
            <DataTemplate>
              <Button Command="{Binding}" Content="{Binding Name}"/>
            </DataTemplate>
          </ListBox.ItemTemplate>
        </ListBox>
      </Grid>
    </DataTemplate>
    <DataTemplate DataType="c:SearchContentViewModel">
      <Grid RowDefinitions="Auto,*,Auto" ColumnDefinitions="*, Auto" DataContext="{Binding}">
        <TextBox Grid.Row="0" Grid.Column="0" Text="{Binding Search}"/>
        <Button Grid.Row="0" Grid.Column="1" DataContext="{Binding StartSearch}" Command="{Binding}" Content="{Binding Name}"/>
        <ListBox Grid.Row="1" Grid.ColumnSpan="2" Items="{Binding Items}" 
                 BorderThickness="0"
                 ScrollViewer.VerticalScrollBarVisibility="Auto">
          <ListBox.ItemTemplate>
            <DataTemplate>
              <Grid RowDefinitions="*,Auto" Margin="10"
                    Width="150" Height="300">
                <Image Grid.Row="0" Source="{Binding Cover, Converter={Static av:BitmapTypeConverter.Instance}}"/>
                <TextBlock Grid.Row="1" Text="{Binding Name}" TextWrapping="Wrap" ToolTip.Tip="{Binding Name}" HorizontalAlignment="Center"/>
              </Grid>
            </DataTemplate>
          </ListBox.ItemTemplate>
          <ListBox.ItemsPanel>
            <ItemsPanelTemplate>
              <WrapPanel/>
            </ItemsPanelTemplate>
          </ListBox.ItemsPanel>
        </ListBox>
        <TextBox Grid.Row="2" Grid.Column="0" Text="{Binding ManualUri}"/>
        <Button Grid.Row="2" Grid.Column="1" DataContext="{Binding AddManual}" Command="{Binding}" Content="{Binding Name}"/>
      </Grid>
    </DataTemplate>
  </Window.DataTemplates>
  <Grid ColumnDefinitions="Auto,*" DataContext="{Binding}">
    <ListBox Grid.Column="0" 
             Items="{Binding Tabs}" 
             SelectedItem="{Binding SelectedTab}"
             BorderThickness="0">
      <ListBox.ItemTemplate>
        <DataTemplate>
{'fraction_non_alphanumeric': 0.1466842336407554, 'fraction_numerical': 0.012589664763577807, 'mean_word_length': 2.5825904562139486, 'pattern_counts': {'":': 0, '<': 117, '<?xml version=': 0, '>': 117, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, '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': '7571420', 'n_tokens_mistral': 1968, 'n_tokens_neox': 1799, 'n_words': 311}