<commit_before>#include <iostream>
#include <cstdlib>
#include <stdlib.h>
#include <cstdio>
#include <string>
 // required libraries and headers
using namespace std; // sets the std namespace

void sys(string op) { // main terminal loop
    if (op == "main") { // if operation is a normal command
        cout << endl << ">"; // then output the regular prompt interface
        string input; // inits input variable
        getline(cin, input); // gets user input
        cout << endl; // outputs a new line
        if (scrub) { // if scrubbing is enabled
            for (int i = 0; i < input.length(); i++) { // then clean it up
                if (input[i] == '\'') {
                    input[i] = '\0';
                }
            }
        }
        sys(input); // execute the user's command
    }
    else if (op == "initial") { // if loading this for the first time...
        cout << "JConsole v" << version << ".\nCreated by <NAME>.\nWritten in C++.\nType 'help' for a list of commands." << endl; // ... then output some stuff about it
        sys("main"); // runs the main operation
    }
    else if (op == "help") { // if the user needs some help...
        cout << "JConsole v" << version << ".\nCreated by <NAME>." << endl; // output some information
        cout << "Commands:" << endl << endl; // begins a list of everything the user needs to know.
        cout << "help: Displays this menu" << endl;
        cout << "clear: Clears the console screen" << endl;
        cout << "echo 'input': Prints the input text" << endl;
        /*
            Below checks for whether or not scrubbing is enabled, and displays the appropriate help message.
        */
        if (scrub) {
            cout << "sysvar scrub 'true/false': Sets status of input scrubbing. Currently set to true." << endl;
        }
        else if (!scrub) {
            cout << "sysvar scrub 'true/false': Sets status of input scrubbing. Currently set to false." << endl;
        }
        cout << "exit: Exits the program" << endl;
        // ... The list of commands ends.
        sys("main"); // runs main operation
    }
    else if (op == "exit") { // if the user wants to exit...
        return; // ... then exit.
    }
    else if (op == "clear") { // clears the terminal screen
        system("clear");<commit_msg>Update sysloop.h<commit_after>#include <iostream>
#include <cstdlib>
#include <stdlib.h>
#include <cstdio>
#include <string>
#define version "0.1.6"
bool scrub = false;
 // required libraries and headers
using namespace std; // sets the std namespace

void sys(string op) { // main terminal loop
    if (op == "main") { // if operation is a normal command
        cout << endl << ">"; // then output the regular prompt interface
        string input; // inits input variable
        getline(cin, input); // gets user input
        cout << endl; // outputs a new line
        if (scrub) { // if scrubbing is enabled
            for (int i = 0; i < input.length(); i++) { // then clean it up
                if (input[i] == '\'') {
                    input[i] = '\0';
                }
            }
        }
        sys(input); // execute the user's command
    }
    else if (op == "initial") { // if loading this for the first time...
        cout << "JConsole v" << version << ".\nCreated by <NAME>.\nWritten in C++.\nType 'help' for a list of commands." << endl; // ... then output some stuff about it
        sys("main"); // runs the main operation
    }
    else if (op == "help") { // if the user needs some help...
        cout << "JConsole v" << version << ".\nCreated by <NAME>." << endl; // output some information
        cout << "Commands:" << endl << endl; // begins a list of everything the user needs to know.
        cout << "help: Displays this menu" << endl;
        cout << "clear: Clears the console screen" << endl;
        cout << "echo 'input': Prints the input text" << endl;
        /*
            Below checks for whether or not scrubbing is enabled, and displays the appropriate help message.
        */
        cout << "sysvar scrub 'true/false': Sets status of input scrubbing. Currently set to " <<  boolalpha << scrub << "." << endl;
        cout << "exit: exits the program" << endl;
        // ... The list of commands ends.
        sys("main"); // runs main operation
    }
    else if (op == "exit") { // if the user wants to exit...
        return; // ... then exit.
    }
    else if (op == "clear") { // clears the terminal screen
        system("clear");
{'fraction_non_alphanumeric': 0.14431616341030196, 'fraction_numerical': 0.0015541740674955595, 'mean_word_length': 1.9735973597359735, 'pattern_counts': {'":': 0, '<': 125, '<?xml version=': 0, '>': 19, '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': '6835224', 'n_tokens_mistral': 1241, 'n_tokens_neox': 1220, 'n_words': 518}