<commit_before>﻿using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using MetX.Standard.Primary.Metadata;

namespace XLG.QuickScripts.Walker
{
    public partial class Ideas3 : Form
    {
        public string Filename { get; }
        public xlgDoc XlgDocument { get; set; }
        public Ideas3(string filename)
        {
            Filename = filename;
            InitializeComponent();
            XlgDocument = xlgDoc.LoadXmlFromFile(filename);
        }

        private void Ideas3_Load(object sender, System.EventArgs e)
        {
            foreach (TreeNode node in RelationshipTreeView.Nodes)
            {
                node.ExpandAll();
            }
        }

        private void Ideas3_Shown(object sender, System.EventArgs e)
        {
            RelationshipTreeView.Nodes.Clear();
            RelatedNode = RelationshipTreeView.Nodes.Add("Related", "Related");
            LookupNode = RelationshipTreeView.Nodes.Add("Lookup", "Lookup");
            OtherNode = RelationshipTreeView.Nodes.Add("Other", "Other");
            TableListView.Items.Clear();

        }

        public TreeNode RelatedNode { get; set; }
        public TreeNode LookupNode { get; set; }
        public TreeNode OtherNode { get; set; }
    }
}<commit_msg>Update Ideas3.cs<commit_after>﻿using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using MetX.Standard.Primary.Metadata;

namespace XLG.QuickScripts.Walker
{
    public partial class Ideas3 : Form
    {
        public string Filename { get; }
        public xlgDoc XlgDocument { get; set; }
        public Ideas3(string filename)
        {
            Filename = filename;
            InitializeComponent();
            XlgDocument = xlgDoc.LoadXmlFromFile(filename);
        }

        private void Ideas3_Load(object sender, System.EventArgs e)
        {
            foreach (TreeNode node in RelationshipTreeView.Nodes)
            {
                node.ExpandAll();
            }
        }

        private void Ideas3_Shown(object sender, System.EventArgs e)
        {
            UpdateItAll();
        }

        private void UpdateItAll()
        {
            RelationshipTreeView.Nodes.Clear();

            RelatedNode = RelationshipTreeView.Nodes.Add("Related", "Related");
            LookupNode = RelationshipTreeView.Nodes.Add("Lookup", "Lookup");
            OtherNode = RelationshipTreeView.Nodes.Add("Other", "Other");

            TableListView.Items.Clear();

            foreach (var table in XlgDocument.Tables)
            {
                ListViewItem listViewItem = new ListViewItem();
                TableListView.Items.Add(listViewItem);
            }
        }

        public TreeNode RelatedNode { get; set; }
        public TreeNode LookupNode { get; set; }
        public TreeNode OtherNode { get; set; }
    }
}
{'fraction_non_alphanumeric': 0.09158336020638504, 'fraction_numerical': 0.0029022895840051595, 'mean_word_length': 2.184804928131417, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4138045', 'n_tokens_mistral': 838, 'n_tokens_neox': 794, 'n_words': 187}