<commit_before>//===--- Pseudorandom.cpp - Pseudorandom Utility Functions ---===//
//
// This file is part of the Election Method Mathematics
// Application (EMMA) project.
//
// Copyright (c) 2015 - 2016 <NAME> and the EMMA project authors
// Licensed under the GNU Affero General Public License, version 3.0.
//
// See the file called "LICENSE" included with this distribution
// for license information.
//
//===----------------------------------------------------------------------===//
//
// A collection of utility functions for when pseudorandom
// number generation and/or selection are required, such normal
// distributions, selection from a collection, etc.
//
//===----------------------------------------------------------------------===//

#include "Pseudorandom.h"
#include <random>

namespace Pseudorandom {
  std::default_random_engine prn_generator;
  std::normal_distribution<> the_normal_distribution;

  double normallyDistributedDouble() {
    return the_normal_distribution(prn_generator);
  }
}<commit_msg>using a higher quality PRNG than the default<commit_after>//===--- Pseudorandom.cpp - Pseudorandom Utility Functions ---===//
//
// This file is part of the Election Method Mathematics
// Application (EMMA) project.
//
// Copyright (c) 2015 - 2016 <NAME> and the EMMA project authors
// Licensed under the GNU Affero General Public License, version 3.0.
//
// See the file called "LICENSE" included with this distribution
// for license information.
//
//===----------------------------------------------------------------------===//
//
// A collection of utility functions for when pseudorandom
// number generation and/or selection are required, such normal
// distributions, selection from a collection, etc.
//
//===----------------------------------------------------------------------===//

#include "Pseudorandom.h"
#include <random>

namespace Pseudorandom {
  std::mt19937_64            prn_generator;
  std::normal_distribution<> the_normal_distribution;

  double normallyDistributedDouble() {
    return the_normal_distribution(prn_generator);
  }
}
{'fraction_non_alphanumeric': 0.24294595887135342, 'fraction_numerical': 0.01291248206599713, 'mean_word_length': 2.1649016641452343, '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': '5489339', 'n_tokens_mistral': 540, 'n_tokens_neox': 486, 'n_words': 177}