<commit_before>/* picoc main program - this varies depending on your operating system and
 * how you're using picoc */

/* include only picoc.h here - should be able to use it with only the external interfaces, no internals from interpreter.h */
#include "picoc.h"
#include "LICENSE.h"

/* platform-dependent code for running programs is in this file */

#if defined(UNIX_HOST) || defined(WIN32)
#include <stdlib.h>
#include <stdio.h>
#include <string.h>

/* Override via STACKSIZE environment variable */
/* stack space */
#define PICOC_STACK_SIZE (128000*4)

int main(int argc, char **argv)
{
    int ParamCount = 1;
    int DontRunMain = false;
    int StackSize = getenv("STACKSIZE") ? atoi(getenv("STACKSIZE")) : PICOC_STACK_SIZE;
    Picoc pc;

    if (argc < 2) {
        printf(PICOC_VERSION "  \n"
               "Format: picoc <file1.c>... [- <arg1>...]    : run a program (calls main() to start it)\n"
               "        picoc -s <file1.c>... [- <arg1>...] : script mode - runs the program without calling main()\n"
               "        picoc -i                            : interactive mode (Ctrl+D to exit)\n"
               "        picoc -c                            : print the copyright info to stdout\n");
        exit(1);
    }

    if (strcmp(argv[ParamCount], "-c") == 0) {
        printf("%s\n", &__LICENSE);
        return 0;
    }

    PicocInitialise(&pc, StackSize);

    if (strcmp(argv[ParamCount], "-s") == 0) {<commit_msg>add help option<commit_after>/* picoc main program - this varies depending on your operating system and
 * how you're using picoc */

/* include only picoc.h here - should be able to use it with only the external interfaces, no internals from interpreter.h */
#include "picoc.h"
#include "LICENSE.h"

/* platform-dependent code for running programs is in this file */

#if defined(UNIX_HOST) || defined(WIN32)
#include <stdlib.h>
#include <stdio.h>
#include <string.h>

/* Override via STACKSIZE environment variable */
/* stack space */
#define PICOC_STACK_SIZE (128000*4)

int main(int argc, char **argv)
{
    int ParamCount = 1;
    int DontRunMain = false;
    int StackSize = getenv("STACKSIZE") ? atoi(getenv("STACKSIZE")) : PICOC_STACK_SIZE;
    Picoc pc;

    if (argc < 2 || strcmp(argv[ParamCount], "-h") == 0) {
        printf(PICOC_VERSION "  \n"
               "Format: picoc <file1.c>... [- <arg1>...]    : run a program, calls main() as the entry point\n"
               "        picoc -s <file1.c>... [- <arg1>...] : run a script, runs the program without calling main()\n"
               "        picoc -i                            : interactive mode, Ctrl+d to exit\n"
               "        picoc -c                            : copyright info\n"
               "        picoc -h                            : this help message\n");
        return 0;
    }

    if (strcmp(argv[ParamCount], "-c") == 0) {
        printf("%s\n", &__LICENSE);
        return 0;
    }

    PicocInitialise(&pc, StackSize);

    if (strcmp(argv[ParamCount], "-s") == 0) {
{'fraction_non_alphanumeric': 0.13687335092348285, 'fraction_numerical': 0.012862796833773086, 'mean_word_length': 2.146265560165975, 'pattern_counts': {'":': 0, '<': 19, '<?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': 5, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6353061', 'n_tokens_mistral': 983, 'n_tokens_neox': 946, 'n_words': 297}