<commit_before>﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Controls;

namespace Node.Net.Beta.Internal.Factories
{
    class TreeViewItemFactory
    {
        public object Create(Type target_type, object source)
        {
            if (target_type == null) return null;
            if (!typeof(TreeViewItem).IsAssignableFrom(target_type)) return null;
            object header = source.GetType().Name;
            if (ParentFactory != null) header = ParentFactory.Create<ITreeViewItemHeader>(source);
            if (header != null)
            {
                
                var tvi = new TreeViewItem
                {
                    DataContext = source,
                    Header = header
                };
                UpdateChildren(tvi,source);
                <commit_msg>'all'<commit_after>﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Controls;

namespace Node.Net.Beta.Internal.Factories
{
    class TreeViewItemFactory
    {
        public object Create(Type target_type, object source)
        {
            if (target_type == null) return null;
            if (!typeof(TreeViewItem).IsAssignableFrom(target_type)) return null;
            object header = source.GetType().Name;
            if (ParentFactory != null) header = ParentFactory.Create<ITreeViewItemHeader>(source);
            if (header != null)
            {
                
                var tvi = new TreeViewItem
                {
                    DataContext = source,
                    Header = header,
                    ToolTip = source.GetType().FullName
                };
                UpdateChildren(tvi,source);
                
{'fraction_non_alphanumeric': 0.08594164456233422, 'fraction_numerical': 0.0, 'mean_word_length': 1.848942598187311, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '5447451', 'n_tokens_mistral': 471, 'n_tokens_neox': 460, 'n_words': 108}