<commit_before>﻿<UserControl
	x:Class="CsomInspector.Fiddler.View.RequestView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

	<UserControl.Resources>
		<Style TargetType="TreeViewItem">
			<Setter Property="IsExpanded" Value="True" />
		</Style>
	</UserControl.Resources>

	<Grid>
		<Grid.ColumnDefinitions>
			<ColumnDefinition Width="180" MinWidth="120"/>
			<ColumnDefinition Width="*"/>
		</Grid.ColumnDefinitions>
		
		<Grid.RowDefinitions>
			<RowDefinition Height="Auto"/>
			<RowDefinition Height="*"/>
			<RowDefinition Height="Auto"/>
			<RowDefinition Height="*"/>
		</Grid.RowDefinitions>

		<Label
			Grid.Column="0"
			Grid.Row="0"
			Content="Executed actions"/>
		<ListView
			Grid.Column="0"
			Grid.Row="1" Grid.RowSpan="4"
			ItemsSource="{Binding Actions, Mode=OneWay}"
			SelectedItem="{Binding SelectedAction, Mode=TwoWay}"
			FontFamily="Consolas"
			HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
		</ListView>
		
		<Label
			Grid.Column="1"
			Grid.Row="0"
			Content="Action details"/>
		<TreeView
			Grid.Column="1"
			Grid.Row="1"
			ItemsSource="{Binding SelectedAction.Children, Mode=OneWay}"
			FontFamily="Consolas">
			<TreeView.ItemTemplate>
				<HierarchicalDataTemplate ItemsSource="{Binding Children}">
					<TreeViewItem Header="{Binding}" />
				</HierarchicalDataTemplate>
			</TreeView.ItemTemplate>
		</TreeView>

		<Label
			Grid.Column="1"
			Grid.Row="2"
			Content="Action result"/>
		<TreeView
			Grid.Column="1"
			Grid.Row="3"
			ItemsSource="{Binding ResultView, Mode=OneWay}"
			FontFamily="Consolas">
			<TreeView.ItemTemplate>
				<HierarchicalDataTemplate ItemsSource="{Binding Children}">
					<TreeViewItem Header="{Binding}" />
				</HierarchicalDataTemplate>
			</TreeView.ItemTemplate>
		</TreeView>
	</Grid><commit_msg>Text in results tree view is now selectable. #16<commit_after>﻿<UserControl
	x:Class="CsomInspector.Fiddler.View.RequestView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

	<UserControl.Resources>
		<Style TargetType="TreeViewItem">
			<Setter Property="IsExpanded" Value="True" />
		</Style>
	</UserControl.Resources>

	<Grid>
		<Grid.ColumnDefinitions>
			<ColumnDefinition Width="180" MinWidth="120"/>
			<ColumnDefinition Width="*"/>
		</Grid.ColumnDefinitions>
		
		<Grid.RowDefinitions>
			<RowDefinition Height="Auto"/>
			<RowDefinition Height="*"/>
			<RowDefinition Height="Auto"/>
			<RowDefinition Height="*"/>
		</Grid.RowDefinitions>

		<Label
			Grid.Column="0"
			Grid.Row="0"
			Content="Executed actions"/>
		<ListView
			Grid.Column="0"
			Grid.Row="1" Grid.RowSpan="4"
			ItemsSource="{Binding Actions, Mode=OneWay}"
			SelectedItem="{Binding SelectedAction, Mode=TwoWay}"
			FontFamily="Consolas"
			HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
		</ListView>
		
		<Label
			Grid.Column="1"
			Grid.Row="0"
			Content="Action details"/>
		<TreeView
			Grid.Column="1"
			Grid.Row="1"
			ItemsSource="{Binding SelectedAction.Children, Mode=OneWay}"
			FontFamily="Consolas">
			<TreeView.ItemTemplate>
				<HierarchicalDataTemplate ItemsSource="{Binding Children}">
					<TreeViewItem Header="{Binding}" />
				</HierarchicalDataTemplate>
			</TreeView.ItemTemplate>
		</TreeView>

		<Label
			Grid.Column="1"
			Grid.Row="2"
			Content="Action result"/>
		<TreeView
			Grid.Column="1"
			Grid.Row="3"
			ItemsSource="{Binding ResultView, Mode=OneWay}"
			FontFamily="Consolas">
			<TreeView.ItemTemplate>
				<HierarchicalDataTemplate ItemsSource="{Binding Children}">
					<TreeViewItem>
						<TreeViewItem.Template>
							<ControlTemplate>
								<TextBox Text="{Binding Mode=OneTime}" BorderThickness="0" Background="Transparent" />
							</ControlTemplate>
						</TreeViewItem.Template>
					</TreeViewItem>
				</HierarchicalDataTemplate>
			</TreeView.ItemTemplate>
		</TreeView>
	</Grid>
{'fraction_non_alphanumeric': 0.157235853780671, 'fraction_numerical': 0.014271407110665999, 'mean_word_length': 4.3624161073825505, 'pattern_counts': {'":': 0, '<': 83, '<?xml version=': 0, '>': 83, 'https://': 0, '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': '3105523', 'n_tokens_mistral': 1624, 'n_tokens_neox': 1269, 'n_words': 200}