<commit_before><?php

class WindowTest extends GtkWindow
{
    function __construct()
    {
        parent::__construct();
        require_once('WidgetEditor.php');

        $this->set_default_size(200,200);
        $this->set_title('GtkWindow demo');
        $this->connect_object('destroy', array('gtk', 'main_quit'));
        $this->add($this->__create_box());
        $this->show_all();
    }

    function __create_box() 
    {
        $vbox = new GtkVBox();
        $label = new GtkLabel('Window test');
        $button = new GtkButton('Click the button!');

        $vbox->pack_start($label);
        $vbox->pack_start($button);

        $editor = new WidgetEditor(
            $this, 
            array(
                array('decorated'           , GtkToggleButton::gtype),
//                array('has_frame'         , GtkToggleButton::gtype),//doesn't work after the window is realized
                array('resizable'           , GtkToggleButton::gtype),
                array('skip_pager_hint'     , GtkToggleButton::gtype),
                array('skip_taskbar_hint'   , GtkToggleButton::gtype),
                array('accept_focus'        , GtkToggleButton::gtype),
                array('modal'               , GtkToggleButton::gtype),
                array('keep_above'          , GtkToggleButton::gtype, 'on', 'off', false),
                array('keep_below'          , GtkToggleButton::gtype, 'on', 'off', false),

                array('iconify'             , GtkButton::gtype, 'deiconify'),
                array('fullscreen'          , GtkButton::gtype, 'unfullscreen'),
                array('maximize'            , GtkButton::gtype, 'unmaximize'),
                array('stick'               , GtkButton::gtype, 'unstick'),

                array('present'             , GtkButton::gtype),
            )
        );

        return $vbox;
    }

    /**
    *   Most window settings require the window to be re-created
    *   to take effect
    */
    function redraw()
    {
        $this->hide_all();
        $this->show_all();
    }
}

if (!@$GLOBALS['framework']) {
    new WindowTest();
    Gtk::main();
}
?><commit_msg>Removing obsolete function<commit_after><?php

class WindowTest extends GtkWindow
{
    function __construct()
    {
        parent::__construct();
        require_once('WidgetEditor.php');

        $this->set_default_size(200,200);
        $this->set_title('GtkWindow demo');
        $this->connect_object('destroy', array('gtk', 'main_quit'));
        $this->add($this->__create_box());
        $this->show_all();
    }

    function __create_box() 
    {
        $vbox = new GtkVBox();
        $label = new GtkLabel('Window test');
        $button = new GtkButton('Click the button!');

        $vbox->pack_start($label);
        $vbox->pack_start($button);

        $editor = new WidgetEditor(
            $this, 
            array(
                array('decorated'           , GtkToggleButton::gtype),
//                array('has_frame'         , GtkToggleButton::gtype),//doesn't work after the window is realized
                array('resizable'           , GtkToggleButton::gtype),
                array('skip_pager_hint'     , GtkToggleButton::gtype),
                array('skip_taskbar_hint'   , GtkToggleButton::gtype),
                array('accept_focus'        , GtkToggleButton::gtype),
                array('modal'               , GtkToggleButton::gtype),
                array('keep_above'          , GtkToggleButton::gtype, 'on', 'off', false),
                array('keep_below'          , GtkToggleButton::gtype, 'on', 'off', false),

                array('iconify'             , GtkButton::gtype, 'deiconify'),
                array('fullscreen'          , GtkButton::gtype, 'unfullscreen'),
                array('maximize'            , GtkButton::gtype, 'unmaximize'),
                array('stick'               , GtkButton::gtype, 'unstick'),

                array('present'             , GtkButton::gtype),
            )
        );

        return $vbox;
    }
}

if (!@$GLOBALS['framework']) {
    new WindowTest();
    Gtk::main();
}
?>
{'fraction_non_alphanumeric': 0.14316913370541132, 'fraction_numerical': 0.002911914583838874, 'mean_word_length': 1.8486523842432618, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 23, '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': '1026431', 'n_tokens_mistral': 1232, 'n_tokens_neox': 1167, 'n_words': 196}