<commit_before>#include "PlatformAbstractions.h"
#include <nan.h>
#include <stdlib.h>
#include <uv.h>
#include "CallbackData.h"

namespace ClrLoader {

using namespace v8;

typedef void (STDMETHODCALLTYPE *PUnmanagedCallback)(const intptr_t, const char*);

typedef void (STDMETHODCALLTYPE *PManagedEntryPoint)(const intptr_t, const char*, const char*, const void (*PUnmanagedCallback));

// Declare a variable pointing to our managed method.
PManagedEntryPoint pManagedEntryPoint;

void ClrCallback(const intptr_t returnPtr, const char* value){
    auto callbackData = (CallbackData*)returnPtr;<commit_msg>Cross platform fixes<commit_after>#include "PlatformAbstractions.h"
#include <nan.h>
#include <stdlib.h>
#include <uv.h>
#include "CallbackData.h"

namespace ClrLoader {

using namespace v8;

typedef void (PUnmanagedCallback)(const intptr_t, const char*);

typedef void (PManagedEntryPoint)(const intptr_t, const char*, const char*, const void (*PUnmanagedCallback));

// Declare a variable pointing to our managed method.
PManagedEntryPoint* pManagedEntryPoint;

void ClrCallback(const intptr_t returnPtr, const char* value){
    auto callbackData = (CallbackData*)returnPtr;
{'fraction_non_alphanumeric': 0.10236886632825719, 'fraction_numerical': 0.001692047377326565, 'mean_word_length': 6.939597315436242, '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': '7213191', 'n_tokens_mistral': 369, 'n_tokens_neox': 356, 'n_words': 107}