<commit_before>package gtk

import (
	"fmt"
	"testing"
)

func TestSimpleWindow(t *testing.T) {
	Init(nil, nil)
	win := WindowNew(WINDOW_TOPLEVEL)
	win.SetTitle("foobarbaz")
	label := LabelNew("Hello, world!")
	win.Add(label)
	win.ShowAll()
	win.Connect("destroy", func() {
		fmt.Printf("Quit\n")
		MainQuit()
	})
	Main()
}<commit_msg>gtk: use Button instead of Label in test<commit_after>package gtk

import (
	"fmt"
	"testing"
)

func TestSimpleWindow(t *testing.T) {
	Init(nil, nil)
	win := WindowNew(WINDOW_TOPLEVEL)
	win.SetTitle("foobarbaz")
	button := ButtonNewWithLabel("Hello, world!")
	button.OnClicked(func() {
		fmt.Printf("clicked\n")
	})
	win.Add(button)
	win.ShowAll()
	win.Connect("destroy", func() {
		fmt.Printf("Quit\n")
		MainQuit()
	})
	Main()
}
{'fraction_non_alphanumeric': 0.17754569190600522, 'fraction_numerical': 0.0, 'mean_word_length': 5.039370078740157, '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': '5782613', 'n_tokens_mistral': 318, 'n_tokens_neox': 311, 'n_words': 55}