<commit_before>#include <string>
#include <numeric>
#include <iostream>
#include <algorithm>
#include <sys/time.h>

#ifdef __GNUC__
#define TIMER_NOINLINE __attribute__((noinline))
#endif

class Timer
{
public:
	TIMER_NOINLINE void start()
	{
		gettimeofday (&begin, 0);
	}
	TIMER_NOINLINE void stop()
	{
		gettimeofday (&end, 0);
		// force calculation in long long:
		timer_t result = end.tv_sec - begin.tv_sec;
		result *= usec_factor;
		result += end.tv_usec - begin.tv_usec;
		results.push_back(result);
	}
	Timer(std::string const & name);
	~Timer(); // print csv table at end
	struct timeval begin;
	struct timeval end;
	typedef long long timer_t;
	typedef std::vector<timer_t> results_t;
	results_t results;
	std::string name;
	static const timer_t usec_factor = 1000000LL;
};

inline Timer::Timer(std::string const & name) :
		begin(),
		end(),
		results(),
		name(name)<commit_msg>fix shadow variable<commit_after>#include <string>
#include <numeric>
#include <iostream>
#include <algorithm>
#include <sys/time.h>

#ifdef __GNUC__
#define TIMER_NOINLINE __attribute__((noinline))
#endif

class Timer
{
public:
	TIMER_NOINLINE void start()
	{
		gettimeofday (&begin, 0);
	}
	TIMER_NOINLINE void stop()
	{
		gettimeofday (&end, 0);
		// force calculation in long long:
		timer_t result = end.tv_sec - begin.tv_sec;
		result *= usec_factor;
		result += end.tv_usec - begin.tv_usec;
		results.push_back(result);
	}
	Timer(std::string const & name);
	~Timer(); // print csv table at end
	struct timeval begin;
	struct timeval end;
	typedef long long timer_t;
	typedef std::vector<timer_t> results_t;
	results_t results;
	std::string name;
	static const timer_t usec_factor = 1000000LL;
};

inline Timer::Timer(std::string const & name_) :
		begin(),
		end(),
		results(),
		name(name_)
{'fraction_non_alphanumeric': 0.12849162011173185, 'fraction_numerical': 0.01005586592178771, 'mean_word_length': 4.758842443729904, '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': '5034122', 'n_tokens_mistral': 707, 'n_tokens_neox': 641, 'n_words': 171}