<commit_before>/*
 * randevs.h
 *
 *  Created on: Apr 7, 2014
 *      Author: vlad
 */

#ifndef RANDEVS_H_
#define RANDEVS_H_

// Random devices singleton class
// public members:
// std::random_device _rd
// std::mt19937 _rng

namespace qpp
{

// Singleton, cannot be const
class RandomDevices: public Singleton<const RandomDevices>
{
	friend class Singleton<const RandomDevices> ;
	~RandomDevices()
	{
	}
	;
public:
	std::random_device _rd;
	mutable std::mt19937 _rng;
private:
	RandomDevices():
			_rd(), _rng(_rd())
	{
		// seed the standard C number generator, used by Eigen
		std::srand(_rd());
	}
};

} /* namespace qpp */

#endif /* RANDEVS_H_ */
<commit_msg>commit<commit_after>/*
 * randevs.h
 *
 *  Created on: Apr 7, 2014
 *      Author: vlad
 */

#ifndef RANDEVS_H_
#define RANDEVS_H_

// Random devices singleton class
// public members:
// std::random_device _rd
// std::mt19937 _rng

namespace qpp
{

class RandomDevices: public Singleton<const RandomDevices> // const Singleton
{
	friend class Singleton<const RandomDevices> ;
	~RandomDevices()
	{
	}
	;
public:
	std::random_device _rd;
	mutable std::mt19937 _rng;
private:
	RandomDevices():
			_rd(), _rng(_rd())
	{
		// seed the standard C number generator, used by Eigen
		std::srand(_rd());
	}
};

} /* namespace qpp */

#endif /* RANDEVS_H_ */

{'fraction_non_alphanumeric': 0.1344984802431611, 'fraction_numerical': 0.022796352583586626, 'mean_word_length': 3.6868327402135233, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '5906043', 'n_tokens_mistral': 527, 'n_tokens_neox': 494, 'n_words': 125}