<commit_before>#ifndef _CALENDAR_H
#define _CALENDAR_H

#include <memory>

#include "../base/engine.h"

class Calendar {
	public:
		Calendar(float frequency, const std::shared_ptr<Engine>& engine);
		~Calendar();

		void run();
		void finish();

	public:
		float timestep;			// time in seconds between each step
		std::shared_ptr<Engine> engine;

		// run engine.cycle() until outside signal is received
		int signal;
};

#endif
<commit_msg>documentation edits<commit_after>#ifndef _CALENDAR_H
#define _CALENDAR_H

#include <memory>

#include "../base/engine.h"

class Calendar {
	public:
		// cf. http://bit.ly/1nK6RIb
		Calendar(float frequency, const std::shared_ptr<Engine>& engine);
		~Calendar();

		void run();
		void finish();

	public:
		float timestep;			// time in seconds between each step
		std::shared_ptr<Engine> engine;

		// run engine.cycle() until outside signal is received
		int signal;
};

#endif

{'fraction_non_alphanumeric': 0.12840043525571274, 'fraction_numerical': 0.002176278563656148, 'mean_word_length': 4.111111111111111, 'pattern_counts': {'":': 0, '<': 9, '<?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': '6053168', 'n_tokens_mistral': 332, 'n_tokens_neox': 303, 'n_words': 87}