<commit_before>#ifndef ALARMPERSISTENCE_H
#define ALARMPERSISTENCE_H

#include <QObject>
#include <QTimer>

#include "config.h"
#include "fmodwrap.h"

#include <utility>
#include <chrono>

class AlarmPersistence : public QObject
{
    Q_OBJECT
public:
    explicit AlarmPersistence(Config cfg, QObject *parent = 0);
    ~AlarmPersistence();

    std::chrono::time_point<std::chrono::system_clock> getCurrentTime() const;
    void setAlarmPoint(short hour, short minute);
    void setAlarmPoint(std::pair <short, short> const& point);
    std::pair <short, short> getNextAlarmPoint() const;
    std::pair <short, short> getAlarmPoint() const;
    bool isActive() const;
    void playTestSound() const;

signals:
    void timeout();

public slots:<commit_msg>2 new signals that are used in the alarm window for pausing / continuing music<commit_after>#ifndef ALARMPERSISTENCE_H
#define ALARMPERSISTENCE_H

#include <QObject>
#include <QTimer>

#include "config.h"
#include "fmodwrap.h"

#include <utility>
#include <chrono>

class AlarmPersistence : public QObject
{
    Q_OBJECT
public:
    explicit AlarmPersistence(Config cfg, QObject *parent = 0);
    ~AlarmPersistence();

    std::chrono::time_point<std::chrono::system_clock> getCurrentTime() const;
    void setAlarmPoint(short hour, short minute);
    void setAlarmPoint(std::pair <short, short> const& point);
    std::pair <short, short> getNextAlarmPoint() const;
    std::pair <short, short> getAlarmPoint() const;
    bool isActive() const;
    void playTestSound() const;

signals:
    void timeout();
    void alarm_fired();
    void alarm_stopped();

public slots:
{'fraction_non_alphanumeric': 0.11602209944751381, 'fraction_numerical': 0.001841620626151013, 'mean_word_length': 5.12781954887218, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, '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': '5171897', 'n_tokens_mistral': 544, 'n_tokens_neox': 540, 'n_words': 144}