<commit_before>#include "pihm.h"

// Global variables
int             verbose_mode;
int             debug_mode;
int             append_mode;
int             corr_mode;
int             spinup_mode;
int             fixed_length;
char            project[MAXSTRING];
int             nelem;
int             nriver;
#if defined(_OPENMP)
int             nthreads = 1;               // Default value
#endif
#if defined(_BGC_)
int             nsolute = 1;
#elif defined(_CYCLES_)
int             nsolute = 2;
#elif defined(_RT_)
int             nsolute;
#endif
#if defined(_BGC_)
int             first_balance;
#endif

int main(int argc, char *argv[])
{
    char            outputdir[MAXSTRING];
    pihm_struct     pihm;
    ctrl_struct    *ctrl;
    N_Vector        CV_Y;
    void           *cvode_mem;
    SUNLinearSolver sun_ls;
#if defined(_OPENMP)
    double          start_omp;
#else
    clock_t         start;
#endif
    double          cputime, cputime_dt;    // Time cpu duration

#if defined(unix) || defined(__unix__) || defined(__unix)
    feenableexcept(FE_DIVBYZERO | FE_INVALID | FE_OVERFLOW);
#endif

#if defined(_OPENMP)
    // Set the number of threads to use
    nthreads = omp_get_max_threads();
#endif

    memset(outputdir, 0, MAXSTRING);

    // Read command line arguments
    ParseCmdLineParam(argc, argv, outputdir);

    // Print AscII art
    StartupScreen();

    // Allocate memory for model data structure
    pihm = (pihm_struct)malloc(sizeof(*pihm));

    // Read PIHM input files
    ReadAlloc(pihm);

    // Initialize CVODE state variables<commit_msg>:sparkles: Print PID and host name to a file<commit_after>#include "pihm.h"

// Global variables
int             verbose_mode;
int             debug_mode;
int             append_mode;
int             corr_mode;
int             spinup_mode;
int             fixed_length;
char            project[MAXSTRING];
int             nelem;
int             nriver;
#if defined(_OPENMP)
int             nthreads = 1;               // Default value
#endif
#if defined(_BGC_)
int             nsolute = 1;
#elif defined(_CYCLES_)
int             nsolute = 2;
#elif defined(_RT_)
int             nsolute;
#endif
#if defined(_BGC_)
int             first_balance;
#endif

int main(int argc, char *argv[])
{
    char            outputdir[MAXSTRING];
    pihm_struct     pihm;
    ctrl_struct    *ctrl;
    N_Vector        CV_Y;
    void           *cvode_mem;
    SUNLinearSolver sun_ls;
#if defined(_OPENMP)
    double          start_omp;
#else
    clock_t         start;
#endif
    double          cputime, cputime_dt;    // Time cpu duration

#if defined(unix) || defined(__unix__) || defined(__unix)
    feenableexcept(FE_DIVBYZERO | FE_INVALID | FE_OVERFLOW);
#endif

#if defined(_OPENMP)
    // Set the number of threads to use
    nthreads = omp_get_max_threads();
#endif

#if defined(_DEBUG_)
    // When in debug mode, print PID and host name to a text file for gdb to attach to
    char            hostname[MAXSTRING];
    FILE           *fp;

    gethostname(hostname, MAXSTRING);
    fp = fopen("debug.txt", "w");
    fprintf(fp, "pid %d at %s\n", getpid(), hostname);
    fflush(fp);
    fclose(fp);
#endif


    memset(outputdir, 0, MAXSTRING);

    // Read command line arguments
    ParseCmdLineParam(argc, argv, outputdir);

    // Print AscII art
    StartupScreen();

    // Allocate memory for model data structure
    pihm = (pihm_struct)malloc(sizeof(*pihm));

    // Read PIHM input files
    ReadAlloc(pihm);

    // Initialize CVODE state variables
{'fraction_non_alphanumeric': 0.09147550269045596, 'fraction_numerical': 0.0022656471254602095, 'mean_word_length': 2.1146384479717812, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1614479', 'n_tokens_mistral': 1121, 'n_tokens_neox': 1090, 'n_words': 310}