<commit_before>#ifndef __HERMES1D_COMMON_H
#define __HERMES1D_COMMON_H

#define DEBUG 0

#include <stdexcept>
#include <stdlib.h>
#include <stdio.h>

#define BOUNDARY_LEFT 0
#define BOUNDARY_RIGHT 1

#define BC_NATURAL 0
#define BC_DIRICHLET 1

void error(const char *msg);

typedef double scalar;

typedef double double2[2];

typedef int int2[2];

typedef double (*shape_fn_t)(double);

void intro();

void throw_exception(char *text);

#define MEM_CHECK(var) if (var == NULL) { printf("Out of memory."); exit(1); }

#define verbose(msg)
#define warn(msg)

double **dmalloc(int n_eq);
   
int **imalloc(int n_eq);
<commit_msg>Added two more definitions to common.h<commit_after>#ifndef __HERMES1D_COMMON_H
#define __HERMES1D_COMMON_H

#define DEBUG 0

#include <stdexcept>
#include <stdlib.h>
#include <stdio.h>

#define BOUNDARY_LEFT 0
#define BOUNDARY_RIGHT 1

#define BC_NATURAL 0
#define BC_DIRICHLET 1

const int MAX_EQN = 10;
const int MAX_POINTS = 101;  // refers both to plotting subdivision and Gauss quadrature points

void error(const char *msg);

typedef double scalar;

typedef double double2[2];

typedef int int2[2];

typedef double (*shape_fn_t)(double);

void intro();

void throw_exception(char *text);

#define MEM_CHECK(var) if (var == NULL) { printf("Out of memory."); exit(1); }

#define verbose(msg)
#define warn(msg)

double **dmalloc(int n_eq);
   
int **imalloc(int n_eq);

{'fraction_non_alphanumeric': 0.11785714285714285, 'fraction_numerical': 0.020714285714285713, 'mean_word_length': 5.70334928229665, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '6761119', 'n_tokens_mistral': 560, 'n_tokens_neox': 511, 'n_words': 152}