<commit_before>/*
Copyright (c) by <NAME>. Released under a Simplified BSD
license as described in the file LICENSE.
 */
#include "shuf-t.h"
#include "utils.h"
#include <time.h>

const char* SHUF_T_VERSION = "1.2.1";
ShuftSettings settings;

using namespace std;

#define time_elapsed difftime( time(NULL), performance_timer )

int processCommandLineArguments(CSimpleOpt* opt)
{
    //set default parameters
    settings.verbose = true;
    settings.output_limit = 0;
    settings.buffer_size = 1024*1024*1024;
    settings.header = 0;
    unsigned int seed = (unsigned int)time(NULL);
    bool ir_src = false;
    bool out_file = false;
    //get shuffle parameters

    while (opt->Next()) {
        if (opt->LastError() == SO_SUCCESS) {
            switch (opt->OptionId())
            {
            case OPT_HELP:
                showHelp();
                return 1;
            case OPT_VER:
                std::cout << "Program version: " << SHUF_T_VERSION << std::endl;
                return 1;
            case OPT_QUIET:
                settings.verbose = false;
                break;<commit_msg>ver increment<commit_after>/*
Copyright (c) by <NAME>. Released under a Simplified BSD
license as described in the file LICENSE.
 */
#include "shuf-t.h"
#include "utils.h"
#include <time.h>

const char* SHUF_T_VERSION = "1.2.2";
ShuftSettings settings;

using namespace std;

#define time_elapsed difftime( time(NULL), performance_timer )

int processCommandLineArguments(CSimpleOpt* opt)
{
    //set default parameters
    settings.verbose = true;
    settings.output_limit = 0;
    settings.buffer_size = 1024*1024*1024;
    settings.header = 0;
    unsigned int seed = (unsigned int)time(NULL);
    bool ir_src = false;
    bool out_file = false;
    //get shuffle parameters

    while (opt->Next()) {
        if (opt->LastError() == SO_SUCCESS) {
            switch (opt->OptionId())
            {
            case OPT_HELP:
                showHelp();
                return 1;
            case OPT_VER:
                std::cout << "Program version: " << SHUF_T_VERSION << std::endl;
                return 1;
            case OPT_QUIET:
                settings.verbose = false;
                break;
{'fraction_non_alphanumeric': 0.11000901713255185, 'fraction_numerical': 0.017132551848512173, 'mean_word_length': 2.2346938775510203, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 13, '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': '28610', 'n_tokens_mistral': 704, 'n_tokens_neox': 654, 'n_words': 182}