<commit_before>#include <iostream>
#include <string>
#include "Errors.h"

using namespace std;

#include "Interpreter.h"

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

    string expressionToInterpret = "";
    cout << "Enter an expression to interpret: ";
    cin >> expressionToInterpret;

    Interpreter interpreter(expressionToInterpret);
    int result;
    try {
        result = interpreter.expr();
    } catch (ParsingException &e) {
        cout << e.what() << "\n";
        return 1;
    }

    cout << "result of " << expressionToInterpret << " is " << result << "\n";

    return 0;
}<commit_msg>Changed main to calculate expressions of multiple lines of an input file<commit_after>#include <iostream>
#include <fstream>
#include <string>
#include "Errors.h"

using namespace std;

#include "Interpreter.h"

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

    string filename;
    cout << "Enter filename: ";
    cin >> filename;

    ifstream infile(filename);

    for (string line; getline(infile, line);) {
        Interpreter interpreter(line);
        int result;
        try {
            result = interpreter.expr();
        } catch (ParsingException &e) {
            cout << e.what() << "\n";
            return 1;
        }

        cout << "result of " << line << " is " << result << "\n";
    }

    return 0;
}
{'fraction_non_alphanumeric': 0.1399239543726236, 'fraction_numerical': 0.003041825095057034, 'mean_word_length': 2.62534435261708, 'pattern_counts': {'":': 0, '<': 40, '<?xml version=': 0, '>': 12, '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': '2153139', 'n_tokens_mistral': 403, 'n_tokens_neox': 388, 'n_words': 117}