<commit_before>/**
 * KOZRUM - HTML content generator
 *
 * @version     1.0.0
 * @author      <NAME>
 * @copyright   2017, <NAME>
 * @license     Apache 2.0
 */

#include <iostream>
#include <random>

#include "Header.h"
#include "Section.h"

std::mt19937_64 randomGenerator((unsigned long) time(nullptr));

Header header;
Section section;

int main() {
    std::uniform_int_distribution<int> headersDistance(2, 10);
    std::uniform_int_distribution<int> levelDistance(1, 3);

    std::string currentSection = "init";
    std::vector<std::string> closeTags;

    int nr = headersDistance(randomGenerator);
    int currentLevel = 0;
    int maxLevel = levelDistance(randomGenerator);

    for (int i = 0; i < nr; i++)
    {
        while (currentLevel < maxLevel)
        {
            header.setLevel(currentLevel);
            header.generate();
            section.generate();
            currentLevel++;
        }

        maxLevel = levelDistance(randomGenerator);
        currentLevel = 0;
        std::cout << std::endl;
    }

    return 0;
}<commit_msg>Renamed some variables<commit_after>/**
 * KOZRUM - HTML content generator
 *
 * @version     1.0.0
 * @author      <NAME>
 * @copyright   2017, <NAME>
 * @license     Apache 2.0
 */

#include <iostream>
#include <random>

#include "Header.h"
#include "Section.h"

std::mt19937_64 randomGenerator((unsigned long) time(nullptr));

Header header;
Section section;

int main() {
    std::uniform_int_distribution<int> sections(2, 10);
    std::uniform_int_distribution<int> levels(1, 3);

    std::string currentSection = "init";
    std::vector<std::string> closeTags;

    int nr = sections(randomGenerator);
    int currentLevel = 0;
    int maxLevel = levels(randomGenerator);

    for (int i = 0; i < nr; i++)
    {
        while (currentLevel < maxLevel)
        {
            header.setLevel(currentLevel);
            header.generate();
            section.generate();
            currentLevel++;
        }

        maxLevel = levels(randomGenerator);
        currentLevel = 0;
        std::cout << std::endl;
    }

    return 0;
}
{'fraction_non_alphanumeric': 0.13238095238095238, 'fraction_numerical': 0.023809523809523808, 'mean_word_length': 2.71858407079646, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 17, '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': '6290452', 'n_tokens_mistral': 680, 'n_tokens_neox': 635, 'n_words': 152}