<commit_before>//===-- main.cpp ------------------------------------------------*- C++ -*-===//
//
//                     The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//

#include <cstdlib>
#include <string>
#include <fstream>

int
main(int argc, char const *argv[])
{
    char const *cptr = NULL;
    // The program writes its output to the "output.txt" file.
    std::ofstream outfile("output.txt");

    for (unsigned i = 0, e = sizeof(argv); i < e; ++i) {
        if ((cptr = argv[i]) == NULL)
            break;

        std::string str(cptr);
        if (i == 1 && "A" == str)
            outfile << "argv[1] matches\n";

        if (i == 2 && "B" == str)
            outfile << "argv[2] matches\n";

        if (i == 3 && "C" == str)
            outfile << "argv[3] matches\n";
    }

    if (::getenv("MY_ENV_VAR")) {
        std::string MY_ENV_VAR(getenv("MY_ENV_VAR"));
        if ("YES" == MY_ENV_VAR) {
            outfile << "Environment variable 'MY_ENV_VAR' successfully passed.\n";
        }
    }

    return 0;
}<commit_msg>Simplied main() and emits a message to the standard out.<commit_after>//===-- main.cpp ------------------------------------------------*- C++ -*-===//
//
//                     The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//

#include <cstdlib>
#include <string>
#include <fstream>
#include <iostream>

int
main(int argc, char const *argv[])
{
    // The program writes its output to the "output.txt" file.
    std::ofstream outfile("output.txt");

    for (unsigned i = 0; i < argc; ++i) {
        std::string theArg(argv[i]);
        if (i == 1 && "A" == theArg)
            outfile << "argv[1] matches\n";

        if (i == 2 && "B" == theArg)
            outfile << "argv[2] matches\n";

        if (i == 3 && "C" == theArg)
            outfile << "argv[3] matches\n";
    }

    if (::getenv("MY_ENV_VAR")) {
        std::string MY_ENV_VAR(getenv("MY_ENV_VAR"));
        if ("YES" == MY_ENV_VAR) {
            outfile << "Environment variable 'MY_ENV_VAR' successfully passed.\n";
        }
    }

    std::cout << "This message should go to standard out.\n";

    return 0;
}
{'fraction_non_alphanumeric': 0.2565130260521042, 'fraction_numerical': 0.006412825651302605, 'mean_word_length': 1.6136125654450262, 'pattern_counts': {'":': 0, '<': 30, '<?xml version=': 0, '>': 10, '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': '6164218', 'n_tokens_mistral': 764, 'n_tokens_neox': 733, 'n_words': 218}