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

#if defined(PLATFORM_WIN)
#include <windows.h>
#elif defined(PLATFORM_MAC) || defined(PLATFORM_LINUX)
#include <dlfcn.h>
#include <libgen.h>
#include <string.h>
#include <sys/param.h>
#define MAX_PATH PATH_MAX
#endif

#if defined(PLATFORM_WIN)
#define MODULE_SUFFIX ".dll"
#elif defined(PLATFORM_MAC)
#define MODULE_SUFFIX ".dylib"
#elif defined(PLATFORM_LINUX)
#define MODULE_SUFFIX ".so"
#endif

typedef void (*module_symbol)(void);
char bin_path[MAX_PATH + 1];


void CallModule(const char* module) {
  char module_path[MAX_PATH + 1];<commit_msg>Not sure if this is a problem with the test, or gyp. Is appears at some point this test regressed. loadable_module appears to be generating .so rather than .dylib ?<commit_after>#include <stdio.h>
#include <stdlib.h>

#if defined(PLATFORM_WIN)
#include <windows.h>
#elif defined(PLATFORM_MAC) || defined(PLATFORM_LINUX)
#include <dlfcn.h>
#include <libgen.h>
#include <string.h>
#include <sys/param.h>
#define MAX_PATH PATH_MAX
#endif

#if defined(PLATFORM_WIN)
#define MODULE_SUFFIX ".dll"
#elif defined(PLATFORM_MAC)
#define MODULE_SUFFIX ".so"
#elif defined(PLATFORM_LINUX)
#define MODULE_SUFFIX ".so"
#endif

typedef void (*module_symbol)(void);
char bin_path[MAX_PATH + 1];


void CallModule(const char* module) {
  char module_path[MAX_PATH + 1];
{'fraction_non_alphanumeric': 0.12831858407079647, 'fraction_numerical': 0.0029498525073746312, 'mean_word_length': 6.538888888888889, 'pattern_counts': {'":': 0, '<': 17, '<?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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6057622', 'n_tokens_mistral': 526, 'n_tokens_neox': 513, 'n_words': 132}