<commit_before>#include "event_scheduler.hpp"
#include <QApplication>
#include <QDebug>

EventScheduler::EventScheduler()
  : receiver_(0)
  , event_(0)
{
  timer_.setSingleShot(true);
}

void EventScheduler::set_receiver(QObject *receiver)
{
  receiver_ = receiver;
}

void EventScheduler::schedule_event(QEvent *event, int delay_ms)
{
  event_ = event;
  timer_.start(delay_ms);
  connect(&timer_, SIGNAL(timeout()), this, SLOT(notify()));
}

void EventScheduler::notify()
{
  qApp->notify(receiver_, event_);
}<commit_msg>Fixed duplicate signals.<commit_after>#include "event_scheduler.hpp"
#include <QApplication>
#include <QDebug>

EventScheduler::EventScheduler()
  : receiver_(0)
  , event_(0)
{
  timer_.setSingleShot(true);
  connect(&timer_, SIGNAL(timeout()), this, SLOT(notify()));
}

void EventScheduler::set_receiver(QObject *receiver)
{
  receiver_ = receiver;
}

void EventScheduler::schedule_event(QEvent *event, int delay_ms)
{
  event_ = event;
  timer_.start(delay_ms);
}

void EventScheduler::notify()
{
  qApp->notify(receiver_, event_);
}
{'fraction_non_alphanumeric': 0.14985862393967955, 'fraction_numerical': 0.003770028275212064, 'mean_word_length': 6.8088235294117645, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, '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': '5811306', 'n_tokens_mistral': 375, 'n_tokens_neox': 373, 'n_words': 64}