<commit_before>﻿using System;
using Gtk;
using vCardLib;
using System.IO;
using VCFReaderGTK;

public partial class UI: Gtk.Window
{
	private NodeStore store;
	private NodeStore Store
	{
		get {
			if (store == null) {
				store = new NodeStore (typeof(Node));
			}
			return store;
		}
	}

	public UI () : base (Gtk.WindowType.Toplevel)
	{
		Build ();
		//Bind a text changed event handler for the search box
		txt_search.Buffer.Changed += new EventHandler(txt_search_TextChanged);
		//
		dgv_contacts.NodeStore = Store;
		//
		TreeViewColumn fullNameCol = new TreeViewColumn("Full Name", new Gtk.CellRendererText(), "text");
		fullNameCol.Resizable = true;
		fullNameCol.Expand = true;
		fullNameCol.MinWidth = 150;
		fullNameCol.Sizing = TreeViewColumnSizing.Autosize;
		//
		TreeViewColumn emailCol = new TreeViewColumn("Email", new Gtk.CellRendererText(), "text");
		emailCol.Resizable = true;
		emailCol.Expand = true;
		emailCol.MinWidth = 150;
		emailCol.Sizing = TreeViewColumnSizing.Autosize;
		//
		dgv_contacts.AppendColumn(fullNameCol);
		dgv_contacts.AppendColumn(emailCol);
		dgv_contacts.AppendColumn ("Phone Number 1", new Gtk.CellRendererText (), "text", 2).Resizable = true;
		dgv_contacts.AppendColumn ("Phone Number 2", new Gtk.CellRendererText (), "text", 3).Resizable = true;
		dgv_contacts.ShowAll ();
		//Customize the file chooser button
		FileFilter filter  = new FileFilter();
		filter.Name = "vCard Files";
		filter.AddPattern ("*.vcf");
		filter.AddPattern ("*.vcard");
		ofd_select_vcard.AddFilter (filter);
	}

	protected void OnDeleteEvent (object sender, DeleteEventArgs a)
	{
		Application.Quit ();
		a.RetVal = true;
	}
<commit_msg>feature: adds support for column fills<commit_after>﻿using System;
using Gtk;
using vCardLib;
using System.IO;
using VCFReaderGTK;

public partial class UI: Gtk.Window
{
	private NodeStore store;
	private NodeStore Store
	{
		get {
			if (store == null) {
				store = new NodeStore (typeof(Node));
			}
			return store;
		}
	}

	public UI () : base (Gtk.WindowType.Toplevel)
	{
		Build ();
		//Bind a text changed event handler for the search box
		txt_search.Buffer.Changed += new EventHandler(txt_search_TextChanged);
		//
		dgv_contacts.NodeStore = Store;
		//
		TreeViewColumn fullNameCol = new TreeViewColumn("Full Name", new Gtk.CellRendererText(), "text", 0);
		fullNameCol.Resizable = true;
		fullNameCol.Expand = true;
		fullNameCol.MinWidth = 150;
		fullNameCol.Sizing = TreeViewColumnSizing.Autosize;
		//
		TreeViewColumn emailCol = new TreeViewColumn("Email", new Gtk.CellRendererText(), "text", 1);
		emailCol.Resizable = true;
		emailCol.Expand = true;
		emailCol.MinWidth = 150;
		emailCol.Sizing = TreeViewColumnSizing.Autosize;
		//
		TreeViewColumn phoneOneCol = new TreeViewColumn("Phone Number One", new Gtk.CellRendererText(), "text", 2);
		phoneOneCol.Resizable = true;
		phoneOneCol.Expand = true;
		phoneOneCol.MinWidth = 150;
		phoneOneCol.Sizing = TreeViewColumnSizing.Autosize;
		//
		TreeViewColumn phoneTwoCol = new TreeViewColumn("Phone Number Two", new Gtk.CellRendererText(), "text", 3);
		phoneTwoCol.Resizable = true;
		phoneTwoCol.Expand = true;
		phoneTwoCol.MinWidth = 150;
		phoneTwoCol.Sizing = TreeViewColumnSizing.Autosize;
		//
		dgv_contacts.AppendColumn(fullNameCol);
		dgv_contacts.AppendColumn(emailCol);
		dgv_contacts.AppendColumn(phoneOneCol);
		dgv_contacts.AppendColumn(phoneTwoCol);
		dgv_contacts.ShowAll ();
		//Customize the file chooser button
		FileFilter filter  = new FileFilter();
		filter.Name = "vCard Files";
		filter.AddPattern ("*.vcf");
		filter.AddPattern ("*.vcard");
		ofd_select_vcard.AddFilter (filter);
	}

	protected void OnDeleteEvent (object sender, DeleteEventArgs a)
	{
		Application.Quit ();
		a.RetVal = true;
	}

{'fraction_non_alphanumeric': 0.11725604892315873, 'fraction_numerical': 0.0069130550385535765, 'mean_word_length': 4.389684813753582, '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': '7175796', 'n_tokens_mistral': 1406, 'n_tokens_neox': 1258, 'n_words': 289}