<commit_before>#include <ncurses.h>
#include <iostream>
#include "vis/OutputVisualizer.h"
#ifdef WIN32
#include <windows.h>
#else
#include <unistd.h>
#endif //WIN32

int main(int argc, char **argv) {
    taylortrack::utils::Options options = taylortrack::utils::Options();
    taylortrack::vis::OutputVisualizer *out = new taylortrack::vis::OutputVisualizer(options);

    // Generate vector with sample data
    std::vector<double> sampleVector;

    for (int i = 0; i < 360; ++i) {
        sampleVector.push_back(((double) rand()) / ((double) RAND_MAX));
    }

    int i = 0;
    if(out->term_supports_color()) {
        while(!out->has_failed() && !out->user_has_quit()) {
            if(i == 15)
                out->set_diagram_data(sampleVector);

            out->draw_frame();

            // Obviously Windows and Unix systems use different sleep functions...<commit_msg>made diagram animated<commit_after>#include <ncurses.h>
#include <iostream>
#include "vis/OutputVisualizer.h"
#ifdef WIN32
#include <windows.h>
#else
#include <unistd.h>
#endif //WIN32

int main(int argc, char **argv) {
    taylortrack::utils::Options options = taylortrack::utils::Options();
    taylortrack::vis::OutputVisualizer *out = new taylortrack::vis::OutputVisualizer(options);

    // Generate vector with sample data
    std::vector<double> sampleVector;

    int i = 0;
    if(out->term_supports_color()) {
        while(!out->has_failed() && !out->user_has_quit()) {
            if(i % 15 == 14) {
                sampleVector.clear();
                for (int j = 0; j < 360; ++j) {
                    sampleVector.push_back(((double) rand()) / ((double) RAND_MAX));
                }
                out->set_diagram_data(sampleVector);
            }


            out->draw_frame();

            // Obviously Windows and Unix systems use different sleep functions...
{'fraction_non_alphanumeric': 0.14745308310991956, 'fraction_numerical': 0.012868632707774798, 'mean_word_length': 2.8633540372670807, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 23, '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': '3580235', 'n_tokens_mistral': 626, 'n_tokens_neox': 577, 'n_words': 131}