<commit_before>/*
 * rngs
 * ECE 541 Project 2
 * <NAME> - dalmia3
 * <NAME>   - huang157
 */

#include <iostream>

#include "stl_rng.h"

using namespace std;
using namespace rng;

int main() {

    StlRng randgen;
    randgen.seed(42);

    uint32_t x = 0;
    while(true)
    {
        x = static_cast<uint32_t>(randgen());
        std::cout.write(reinterpret_cast<const char*>(&x), sizeof x);
    }

    return 0;
}<commit_msg>added ability to change generators based on passed cmd line integer to cpp program<commit_after>/*
 * rngs
 * ECE 541 Project 2
 * <NAME> - dalmia3
 * <NAME>   - huang157
 */

#include <iostream>
#include <string>

#include "stl_rng.h"

using namespace std;
using namespace rng;

int main(int argc, char *argv[]) {

    RandomNumberGenerator* randgen_ptr = NULL;

    cerr << argv[1] << endl;

    switch(stoi(argv[1]))
    {
        case 0: { // STL RNG using std::mt19937. For testing only.
            StlRng randgen = StlRng();
            randgen_ptr = &randgen;
            break;
        }
        /*
         * Add more RNGs here!
         */
        default: {
            StlRng randgen = StlRng();
            randgen_ptr = &randgen;
            break;
        }
    }

    randgen_ptr->seed(42);

    uint32_t x = 0;
    while(true)
    {
        x = static_cast<uint32_t>((*randgen_ptr)());
        std::cout.write(reinterpret_cast<const char*>(&x), sizeof x);
    }

    return 0;
}
{'fraction_non_alphanumeric': 0.13183730715287517, 'fraction_numerical': 0.028050490883590462, 'mean_word_length': 2.171111111111111, 'pattern_counts': {'":': 0, '<': 18, '<?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': '2915722', 'n_tokens_mistral': 547, 'n_tokens_neox': 505, 'n_words': 123}