<commit_before>/*
 * =====================================================================================
 *
 *       Filename:  main.cpp
 *
 *    Description:  gaussian random number generator
 *
 *        Version:  1.0
 *        Created:  11/28/2015 12:18:30 PM
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  <NAME> (), <EMAIL>
 *
 * =====================================================================================
 */

#include <vector>
#include <iostream>
#include <cstdlib>
#include <cstring>
#include <ctime>

#include "parse.h"
#include "gaussian.h"

using namespace std;

int main(int argc, char** argv)
{
    srand(time(NULL));
    vector<int> parsed = parse(argc, argv);

    /*
    for(int i = 0; i < parsed.size(); i++)
    {
        cout << parsed.at(i) << endl;
    }
    */

    for(int i = 0; i < parsed.at(2); i++)
    {
        cout << gaussian(parsed.at(0),parsed.at(1),parsed.at(3)) << endl;
    }

    return 0;
}<commit_msg>rounding works, changed how to do it though, and you can't choose how many places, just integer or float<commit_after>/*
 * =====================================================================================
 *
 *       Filename:  main.cpp
 *
 *    Description:  gaussian random number generator
 *
 *        Version:  1.0
 *        Created:  11/28/2015 12:18:30 PM
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  <NAME> (), <EMAIL>
 *
 * =====================================================================================
 */

#include <vector>
#include <iostream>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <cmath>

#include "parse.h"
#include "gaussian.h"

using namespace std;

int main(int argc, char** argv)
{
    srand(time(NULL));
    vector<int> parsed = parse(argc, argv);
    double temp;

    /*
    for(int i = 0; i < parsed.size(); i++)
    {
        cout << parsed.at(i) << endl;
    }
    */

    for(int i = 0; i < parsed.at(2); i++)
    {
        temp = gaussian(parsed.at(0),parsed.at(1),parsed.at(3));

        if(parsed.at(3))
        {
            temp = round(temp);
        }
        
        cout << temp << endl;
    }

    return 0;
}
{'fraction_non_alphanumeric': 0.2940100594421582, 'fraction_numerical': 0.021490626428898034, 'mean_word_length': 2.7021996615905244, 'pattern_counts': {'":': 0, '<': 40, '<?xml version=': 0, '>': 20, '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': '3445354', 'n_tokens_mistral': 733, 'n_tokens_neox': 676, 'n_words': 163}