<commit_before>/* 
 * File:   AlarmClockSpeedTest.cpp
 * Author: <NAME>
 * Created: January 6, 2015 9:00am
 *
 * WARNING: This only measures CPU time
 */

#include <ctime>
#include <iostream>
#include <AlarmClock.h>
using namespace std;
typedef std::chrono::microseconds microseconds;
typedef std::chrono::milliseconds milliseconds;
typedef std::chrono::seconds seconds;


template<typename T> void WaitForAlarmClockToExpire(AlarmClock<T>& alerter) {
	while(!alerter.Expired());
}

int main(int, const char**) {
 	clock_t start;

 	AlarmClock<milliseconds> alerter(ms);

 	start = clock();
 	alerter.Reset();
 	clock_t reset_time = (clock() - start) / (double) (CLOCKS_PER_SEC/1000);

 	WaitForAlarmClockToExpire(alerter);

 	cout << "Time: " << reset_time << " ms" << endl;
}<commit_msg>Added missing line<commit_after>/* 
 * File:   AlarmClockSpeedTest.cpp
 * Author: <NAME>
 * Created: January 6, 2015 9:00am
 *
 * WARNING: This only measures CPU time
 */

#include <ctime>
#include <iostream>
#include <AlarmClock.h>
using namespace std;
typedef std::chrono::microseconds microseconds;
typedef std::chrono::milliseconds milliseconds;
typedef std::chrono::seconds seconds;


template<typename T> void WaitForAlarmClockToExpire(AlarmClock<T>& alerter) {
	while(!alerter.Expired());
}

int main(int, const char**) {
 	clock_t start;
 	unsigned int ms = 389;

 	AlarmClock<milliseconds> alerter(ms);

 	start = clock();
 	alerter.Reset();
 	clock_t reset_time = (clock() - start) / (double) (CLOCKS_PER_SEC/1000);

 	WaitForAlarmClockToExpire(alerter);

 	cout << "Time: " << reset_time << " ms" << endl;
}
{'fraction_non_alphanumeric': 0.1432129514321295, 'fraction_numerical': 0.016811955168119553, 'mean_word_length': 5.27734375, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 0, '>': 17, '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': '4984384', 'n_tokens_mistral': 613, 'n_tokens_neox': 543, 'n_words': 132}