<commit_before>#ifndef CH_UTILS_COMMON_H
#define CH_UTILS_COMMON_H

#include <random>

#include "core/ChPlatform.h"
#include "physics/ChSystem.h"
#include "physics/ChSystemDEM.h"

#include "ChSystemParallel.h"


// -------------------------------------------------------------------------------
// DLL define
// -------------------------------------------------------------------------------
#if defined(CH_API_COMPILE_UTILS)
#define CH_UTILS_API ChApiEXPORT
#else
#define CH_UTILS_API ChApiINPORT
#endif


namespace chrono {
namespace utils {


enum SystemType {
	SEQUENTIAL_DVI,
	SEQUENTIAL_DEM,
	PARALLEL_DVI,
	PARALLEL_DEM
};

// -------------------------------------------------------------------------------
// Construct a single random engine (on first use)
//
// Note that this object is never destructed (but this is OK)
// -------------------------------------------------------------------------------
inline
std::default_random_engine& rengine()
{
	static std::default_random_engine* re = new std::default_random_engine(std::random_device());
	return *re;
}

// -------------------------------------------------------------------------------
// sampleTruncatedDist
//
// Utility function for generating samples from a truncated normal distribution.
// -------------------------------------------------------------------------------
template <typename T><commit_msg>Fix for gcc<commit_after>#ifndef CH_UTILS_COMMON_H
#define CH_UTILS_COMMON_H

#include <random>

#include "core/ChPlatform.h"
#include "physics/ChSystem.h"
#include "physics/ChSystemDEM.h"

#include "ChSystemParallel.h"


// -------------------------------------------------------------------------------
// DLL define
// -------------------------------------------------------------------------------
#if defined(CH_API_COMPILE_UTILS)
#define CH_UTILS_API ChApiEXPORT
#else
#define CH_UTILS_API ChApiINPORT
#endif


namespace chrono {
namespace utils {


enum SystemType {
	SEQUENTIAL_DVI,
	SEQUENTIAL_DEM,
	PARALLEL_DVI,
	PARALLEL_DEM
};

// -------------------------------------------------------------------------------
// Construct a single random engine (on first use)
//
// Note that this object is never destructed (but this is OK)
// -------------------------------------------------------------------------------
inline
std::default_random_engine& rengine()
{
	static std::default_random_engine* re = new std::default_random_engine;
	return *re;
}

// -------------------------------------------------------------------------------
// sampleTruncatedDist
//
// Utility function for generating samples from a truncated normal distribution.
// -------------------------------------------------------------------------------
template <typename T>
{'fraction_non_alphanumeric': 0.41611721611721614, 'fraction_numerical': 0.0, 'mean_word_length': 1.1657414750198256, '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': '7227310', 'n_tokens_mistral': 665, 'n_tokens_neox': 651, 'n_words': 159}