<commit_before>#pragma once

#include <QWidget>
#include <QSlider>
#include <QLabel>
#include <QLCDNumber>
#include <QTimer>
#include "flut/timer.hpp"
#include "flut/math/delta.hpp"

class QAbstractButton;
class QAbstractSlider;
class QComboBox;

class QPlayControl : public QWidget
{
	Q_OBJECT

public:
	QPlayControl( QWidget *parent = 0 );
	double slowMotionFactor() const { return slomoFactor; }

	void setRange( double min, double max );
	void setTime( double time );
	bool getLoop();
	bool getAutoExtendRange() { return autoExtendRange;  }
	bool isPlaying();

public slots:
	void setLoop( bool b );
	void setAutoExtendRange( bool b ) { autoExtendRange = b; }
	void play();
	void stop();
	void toggle();
	void reset();
	void previous();
	void next();

signals:
	void playTriggered();
	void stopTriggered();
	void resetTriggered();
	void nextTriggered();
	void previousTriggered();
	void slowMotionChanged( int );
	void timeChanged( double );
	void sliderChanged( int );
	void sliderReleased();

private slots:
	void updateSlider( int );
	void updateSlowMotion( int );
	void timeout();

private:
	QAbstractButton *playButton;
	QAbstractButton *stopButton;
	QAbstractButton *nextButton;
	QAbstractButton *previousButton;
	QAbstractButton *loopButton;
	QComboBox *slowMotionBox;
	QSlider *slider;
	QLCDNumber* label;
	double currentTime;
	double skipTime;
	double slomoFactor;
	double minTime, maxTime;

	bool autoExtendRange;

	QTimer qtimer;
	flut::timer timer;
	flut::delta< flut::timer::seconds_t > timer_delta;
};<commit_msg>minor update<commit_after>#pragma once

#include <QWidget>
#include <QSlider>
#include <QLabel>
#include <QLCDNumber>
#include <QTimer>
#include "flut/timer.hpp"
#include "flut/math/delta.hpp"
#include "flut/system/types.hpp"

class QAbstractButton;
class QAbstractSlider;
class QComboBox;

class QPlayControl : public QWidget
{
	Q_OBJECT

public:
	QPlayControl( QWidget *parent = 0 );
	double slowMotionFactor() const { return slomoFactor; }

	void setRange( double min, double max );
	void setTime( double time );
	bool getLoop();
	bool getAutoExtendRange() { return autoExtendRange;  }
	bool isPlaying();

public slots:
	void setLoop( bool b );
	void setAutoExtendRange( bool b ) { autoExtendRange = b; }
	void play();
	void stop();
	void toggle();
	void reset();
	void previous();
	void next();

signals:
	void playTriggered();
	void stopTriggered();
	void resetTriggered();
	void nextTriggered();
	void previousTriggered();
	void slowMotionChanged( int );
	void timeChanged( double );
	void sliderChanged( int );
	void sliderReleased();

private slots:
	void updateSlider( int );
	void updateSlowMotion( int );
	void timeout();

private:
	QAbstractButton *playButton;
	QAbstractButton *stopButton;
	QAbstractButton *nextButton;
	QAbstractButton *previousButton;
	QAbstractButton *loopButton;
	QComboBox *slowMotionBox;
	QSlider *slider;
	QLCDNumber* label;
	double currentTime;
	double skipTime;
	double slomoFactor;
	double minTime, maxTime;

	bool autoExtendRange;

	QTimer qtimer;
	flut::timer timer;
	flut::delta< flut::seconds_t > timer_delta;
};
{'fraction_non_alphanumeric': 0.1101392938127632, 'fraction_numerical': 0.0006478781988986071, 'mean_word_length': 5.669546436285097, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '3350807', 'n_tokens_mistral': 1044, 'n_tokens_neox': 1034, 'n_words': 295}