<commit_before>#include <iostream>
#include <fstream>
#include <string>
#include <vector>

int main () {

    std::ifstream ifs;
    std::string line;
    std::vector<std::string> files;
    
    // Add file names to a std::vector
    files.push_back("data/file1.txt");
    files.push_back("data/file2.txt");
    files.push_back("data/file3.txt");
    files.push_back("data/file4.txt");
    files.push_back("data/file5.txt");

    // Iterate over filenames, open each and send content to std::cout
    for(std::vector<std::string>::iterator it = files.begin(); it != files.end(); ++it) {
        ifs.open(*it);
        while (std::getline(ifs, line)) {
            std::cout << line << '\n';
        }
        ifs.close();
    }
    
    return 0;
}
<commit_msg>moved var decl to top of func<commit_after>#include <iostream>
#include <fstream>
#include <string>
#include <vector>

int main () {

    std::ifstream ifs;
    std::string line;
    std::vector<std::string> files;
    std::vector<std::string>::iterator it;
    
    // Add file names to a std::vector
    files.push_back("data/file1.txt");
    files.push_back("data/file2.txt");
    files.push_back("data/file3.txt");
    files.push_back("data/file4.txt");
    files.push_back("data/file5.txt");

    // Iterate over filenames, open each and send content to std::cout
    for(it = files.begin(); it != files.end(); ++it) {
        ifs.open(*it);
        while (std::getline(ifs, line)) {
            std::cout << line << '\n';
        }
        ifs.close();
    }
    
    return 0;
}

{'fraction_non_alphanumeric': 0.17506459948320413, 'fraction_numerical': 0.007751937984496124, 'mean_word_length': 2.7780487804878047, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 15, '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': '3445904', 'n_tokens_mistral': 538, 'n_tokens_neox': 527, 'n_words': 113}