<commit_before>#include <iostream>
#include <json/json.h>
#include "helpers/FileHelpers.h"

using namespace std;

int main() {
    cout<<"Hello"<<endl;
    cout<<FileHelpers::getFileString("data.txt")<<endl;
}<commit_msg>Sample code to read in from a file and print the contents json parsed.<commit_after>#include <iostream>
#include <json/json.h>
#include "helpers/FileHelpers.h"

using namespace std;

int main() {
    cout<<"Hello"<<endl;
    string fileStr = FileHelpers::getFileString("data.txt");

    Json::Value root; // will contains the root value after parsing.
    Json::Reader reader;
    bool parsingSuccessful = reader.parse( fileStr, root );
    if ( !parsingSuccessful )
    {
        // report to the user the failure and their locations in the document.
        std::cout << "Failed to parse configuration\n"
            << reader.getFormattedErrorMessages();
        return 1;
    }
    string myName = root.get("name", "UTF-8").asString();
    cout <<"My name is "<<myName<<endl;
}
{'fraction_non_alphanumeric': 0.1377245508982036, 'fraction_numerical': 0.001996007984031936, 'mean_word_length': 3.6651162790697676, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 7, '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': '3811993', 'n_tokens_mistral': 307, 'n_tokens_neox': 307, 'n_words': 88}