<commit_before>#include <iostream>
#include <vector>
#include <iostream>
#include <stdlib.h>

#include <boost/algorithm/string.hpp>
#include <boost/lexical_cast.hpp>

#include "months.hpp"

using namespace std;

#define DEBUG

#ifndef DEBUG
vector<int> gen_rain_vals() {
    string str_in;
    cin >> str_in;

    vector<string> SplitVec;
    boost::split(SplitVec,
                 str_in,
                 boost::is_any_of(","),
                 boost::token_compress_on );

    vector<int> rain_vals;
    for (string str_val: SplitVec) {
        int rain_val = boost::lexical_cast<int>(str_val);
        rain_vals.push_back(rain_val); }

    if (rain_vals.size() == 12) {
        return rain_vals; }
    else {
        cerr << "Invalid Input" << endl;
        exit(-1); }}
#else
vector<int> gen_rain_vals() {
    int vals[12] = { 9,5,8,7,5,6,7,9,9,6,8,10 };
    vector<int> rain_vals(vals, vals + sizeof(vals) / sizeof(*vals));<commit_msg>Add note about expected input<commit_after>#include <iostream>
#include <vector>
#include <iostream>
#include <stdlib.h>

#include <boost/algorithm/string.hpp>
#include <boost/lexical_cast.hpp>

#include "months.hpp"

using namespace std;

#define DEBUG

#ifndef DEBUG
vector<int> gen_rain_vals() {
    // Expect input in the form "1,2,3,4,5,6,7,8,9,10,11,12"
    string str_in;
    cin >> str_in;

    vector<string> SplitVec;
    boost::split(SplitVec,
                 str_in,
                 boost::is_any_of(","),
                 boost::token_compress_on );

    vector<int> rain_vals;
    for (string str_val: SplitVec) {
        int rain_val = boost::lexical_cast<int>(str_val);
        rain_vals.push_back(rain_val); }

    if (rain_vals.size() == 12) {
        return rain_vals; }
    else {
        cerr << "Invalid Input" << endl;
        exit(-1); }}
#else
vector<int> gen_rain_vals() {
    int vals[12] = { 9,5,8,7,5,6,7,9,9,6,8,10 };
    vector<int> rain_vals(vals, vals + sizeof(vals) / sizeof(*vals));
{'fraction_non_alphanumeric': 0.1534931157572667, 'fraction_numerical': 0.026007139214686385, 'mean_word_length': 3.053719008264463, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 31, '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': '5343078', 'n_tokens_mistral': 741, 'n_tokens_neox': 707, 'n_words': 139}