<commit_before>#include "keyEventSender.h"

#include <QVBoxLayout>
#include <QPushButton>
#include <iostream>

#include "keyboard.h"

Sender::Sender():
    QWidget(0//, Qt::ToolTip
            //| Qt::WindowStaysOnTopHint
#ifdef UNIX
            | Qt::X11BypassWindowManagerHint
#endif
    ),
    focusWindow_(0)
{
    setFocusPolicy(Qt::NoFocus);
    QVBoxLayout* vbox = new QVBoxLayout(this);
    QPushButton* sendButton = new QPushButton("send key event", this);
    QPushButton* quitButton = new QPushButton("close", this);
    vbox->addWidget(sendButton);
    vbox->addWidget(quitButton);

    setLayout(vbox);

    connect(sendButton, SIGNAL(pressed()), this, SLOT(sendPress()));
    connect(sendButton, SIGNAL(released()), this, SLOT(sendRelease()));<commit_msg>fix key events on linux<commit_after>#include "keyEventSender.h"

#include <QVBoxLayout>
#include <QPushButton>
#include <iostream>

#include "keyboard.h"

Sender::Sender():
    QWidget(0, Qt::WindowStaysOnTopHint
#ifdef UNIX
            | Qt::X11BypassWindowManagerHint
#endif
    )
{
    setFocusPolicy(Qt::NoFocus);
    QVBoxLayout* vbox = new QVBoxLayout(this);
    QPushButton* sendButton = new QPushButton("send key event", this);
    QPushButton* quitButton = new QPushButton("close", this);
    vbox->addWidget(sendButton);
    vbox->addWidget(quitButton);

    setLayout(vbox);

    connect(sendButton, SIGNAL(pressed()), this, SLOT(sendPress()));
    connect(sendButton, SIGNAL(released()), this, SLOT(sendRelease()));
{'fraction_non_alphanumeric': 0.14428857715430862, 'fraction_numerical': 0.004676018704074816, 'mean_word_length': 4.8062015503875966, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 13, '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': '6629619', 'n_tokens_mistral': 508, 'n_tokens_neox': 492, 'n_words': 95}