<commit_before>#!/usr/bin/env seed

testsuite = imports.testsuite
Gtk = imports.gi.Gtk
Gdk = imports.gi.Gdk
Gtk.init(Seed.argv)

function paint(wdg, cr)
{
    
    
    testsuite.assert(wdg.window instanceof Gdk.Window)
    var sz = wdg.get_size();
    testsuite.assert(sz.width == 200)

	Gtk.main_quit()

	return false
}

var win = new Gtk.Window()
win.signal.draw.connect(paint)
win.resize(200,200)
win.show()

Gtk.main()

testsuite.checkAsserts(4)<commit_msg>window.signal.draw.connect only tirggers once now, to twice<commit_after>#!/usr/bin/env seed

testsuite = imports.testsuite
Gtk = imports.gi.Gtk
Gdk = imports.gi.Gdk
Gtk.init(Seed.argv)

function paint(wdg, cr)
{
    
    
    testsuite.assert(wdg.window instanceof Gdk.Window)
    var sz = wdg.get_size();
    testsuite.assert(sz.width == 200)

	Gtk.main_quit()

	return false
}

var win = new Gtk.Window()
win.signal.draw.connect(paint)
win.resize(200,200)
win.show()

Gtk.main()

testsuite.checkAsserts(2)
{'fraction_non_alphanumeric': 0.1402061855670103, 'fraction_numerical': 0.020618556701030927, 'mean_word_length': 3.855, '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': '6789634', 'n_tokens_mistral': 408, 'n_tokens_neox': 382, 'n_words': 69}