<commit_before>package main

import (
	"bitbucket.org/anacrolix/dms/dlna/dms"
	"github.com/anacrolix/go-gtk/gtk"
	"github.com/mattn/go-gtk/gdk"
	"io"
	"log"
	"os"
	"runtime"
)

func main() {
	runtime.LockOSThread()
	gtk.Init(&os.Args)
	gdk.ThreadsInit()

	window := gtk.Window(gtk.GTK_WINDOW_TOPLEVEL)
	window.SetTitle("DMS GUI")
	window.Connect("destroy", gtk.MainQuit)

	vbox := gtk.VBox(false, 0)
	window.Add(vbox)

	hbox := gtk.HBox(false, 0)
	vbox.PackStart(hbox, false, true, 0)

	hbox.PackStart(gtk.Label("Share directory: "), false, true, 0)

	dialog := gtk.FileChooserDialog(
		"Media directory", window, gtk.GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER,
		gtk.GTK_STOCK_CANCEL, gtk.GTK_RESPONSE_CANCEL,
		gtk.GTK_STOCK_OPEN, gtk.GTK_RESPONSE_ACCEPT)

	button := gtk.FileChooserButtonWithDialog(dialog)
	hbox.Add(button)

	logView := gtk.TextView()
	logView.SetEditable(false)
	logView.ModifyFontEasy("monospace")
	logView.SetWrapMode(gtk.GTK_WRAP_WORD_CHAR)
	logViewScroller := gtk.ScrolledWindow(nil, nil)
	logViewScroller.Add(logView)
	logViewScroller.SetPolicy(gtk.GTK_POLICY_AUTOMATIC, gtk.GTK_POLICY_ALWAYS)
	vbox.PackEnd(logViewScroller, true, true, 0)
<commit_msg>Some interface changes in the GTK gui<commit_after>package main

import (
	"bitbucket.org/anacrolix/dms/dlna/dms"
	"github.com/anacrolix/go-gtk/gtk"
	"github.com/mattn/go-gtk/gdk"
	"io"
	"log"
	"os"
	"runtime"
)

func main() {
	runtime.LockOSThread()
	gtk.Init(&os.Args)
	gdk.ThreadsInit()

	window := gtk.Window(gtk.GTK_WINDOW_TOPLEVEL)
	window.SetTitle("DMS GUI")
	window.Connect("destroy", gtk.MainQuit)

	vbox := gtk.VBox(false, 0)
	window.Add(vbox)

	hbox := gtk.HBox(false, 0)
	vbox.PackStart(hbox, false, true, 0)

	hbox.PackStart(gtk.Label("Shared directory: "), false, true, 0)

	dialog := gtk.FileChooserDialog(
		"Select directory to share", window, gtk.GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER,
		gtk.GTK_STOCK_CANCEL, gtk.GTK_RESPONSE_CANCEL,
		gtk.GTK_STOCK_OK, gtk.GTK_RESPONSE_ACCEPT)

	button := gtk.FileChooserButtonWithDialog(dialog)
	hbox.Add(button)

	logView := gtk.TextView()
	logView.SetEditable(false)
	logView.ModifyFontEasy("monospace")
	logView.SetWrapMode(gtk.GTK_WRAP_WORD_CHAR)
	logViewScroller := gtk.ScrolledWindow(nil, nil)
	logViewScroller.Add(logView)
	logViewScroller.SetPolicy(gtk.GTK_POLICY_AUTOMATIC, gtk.GTK_POLICY_ALWAYS)
	vbox.PackEnd(logViewScroller, true, true, 0)

{'fraction_non_alphanumeric': 0.1369172616547669, 'fraction_numerical': 0.004199916001679967, 'mean_word_length': 5.8645533141210375, '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': '614313', 'n_tokens_mistral': 1097, 'n_tokens_neox': 1030, 'n_words': 138}