<commit_before>// V8 proxy exports header for the Dream Space internet development framework.
// This source is released under LGPL.

#include <exception>
#include <vector>
#if (_MSC_PLATFORM_TOOLSET >= 110)
#include <mutex>
#elif defined(__GXX_EXPERIMENTAL_CXX0X__)
#include <mutex>
#endif
#include <include/v8stdint.h>
#include "Platform.h"

using namespace std;

#if (_MSC_PLATFORM_TOOLSET < 110)
#define nullptr NULL
#endif

#if _WIN32 || _WIN64
#include <windows.h>
#pragma comment(lib, "winmm.lib") // (required by V8 now)
#include <oleauto.h>
#define ALLOC_MANAGED_MEM(size) GlobalAlloc(GMEM_FIXED|GMEM_ZEROINIT, size)
#define REALLOC_MANAGED_MEM(ptr, size) GlobalReAlloc(ptr, size, GMEM_MOVEABLE)
#define FREE_MANAGED_MEM(ptr) { GlobalFree(ptr); ptr = nullptr; }
//??#define ALLOC_MANAGED_STRING(size) CoTaskMemAlloc(GMEM_FIXED|GMEM_ZEROINIT, size)
#define FREE_MARSHALLED_STRING(ptr) { CoTaskMemFree(ptr); ptr = nullptr; }
#define STDCALL __stdcall
#else
#include <glib.h>
#include <string.h>
#include <functional>
#define ALLOC_MANAGED_MEM(size) g_malloc(size)
#define REALLOC_MANAGED_MEM(ptr, size) g_realloc(ptr, size)
#define FREE_MANAGED_MEM(ptr) g_free(ptr)
// according to http://stackoverflow.com/questions/3054257/is-there-stdcall-in-linux
#define STDCALL
typedef unsigned char byte;
#endif

#define USING_V8_SHARED 1
#define V8_USE_UNSAFE_HANDLES 1 // (see https://groups.google.com/forum/#!topic/v8-users/oBE_DTpRC08)

#include <include/v8.h>
#include <include/v8-debug.h>
#include <include/libplatform/libplatform.h>

using namespace v8;

#if _WIN32 || _WIN64
#define EXPORT __declspec(dllexport)
#else
#define EXPORT
#endif

<commit_msg>using blittable type uint8_t instead of byte<commit_after>// V8 proxy exports header for the Dream Space internet development framework.
// This source is released under LGPL.

#include <exception>
#include <vector>
#if (_MSC_PLATFORM_TOOLSET >= 110)
#include <mutex>
#elif defined(__GXX_EXPERIMENTAL_CXX0X__)
#include <mutex>
#endif
#include <include/v8stdint.h>
#include "Platform.h"

using namespace std;

#if (_MSC_PLATFORM_TOOLSET < 110)
#define nullptr NULL
#endif

#if _WIN32 || _WIN64
#include <windows.h>
#pragma comment(lib, "winmm.lib") // (required by V8 now)
#include <oleauto.h>
#define ALLOC_MANAGED_MEM(size) GlobalAlloc(GMEM_FIXED|GMEM_ZEROINIT, size)
#define REALLOC_MANAGED_MEM(ptr, size) GlobalReAlloc(ptr, size, GMEM_MOVEABLE)
#define FREE_MANAGED_MEM(ptr) { GlobalFree(ptr); ptr = nullptr; }
//??#define ALLOC_MANAGED_STRING(size) CoTaskMemAlloc(GMEM_FIXED|GMEM_ZEROINIT, size)
#define FREE_MARSHALLED_STRING(ptr) { CoTaskMemFree(ptr); ptr = nullptr; }
#define STDCALL __stdcall
#else
#include <glib.h>
#include <string.h>
#include <functional>
#define ALLOC_MANAGED_MEM(size) g_malloc(size)
#define REALLOC_MANAGED_MEM(ptr, size) g_realloc(ptr, size)
#define FREE_MANAGED_MEM(ptr) g_free(ptr)
// according to http://stackoverflow.com/questions/3054257/is-there-stdcall-in-linux
#define STDCALL
typedef uint8_t byte;
#endif

#define USING_V8_SHARED 1
#define V8_USE_UNSAFE_HANDLES 1 // (see https://groups.google.com/forum/#!topic/v8-users/oBE_DTpRC08)

#include <include/v8.h>
#include <include/v8-debug.h>
#include <include/libplatform/libplatform.h>

using namespace v8;

#if _WIN32 || _WIN64
#define EXPORT __declspec(dllexport)
#else
#define EXPORT
#endif


{'fraction_non_alphanumeric': 0.1226443314388274, 'fraction_numerical': 0.02153754113072091, 'mean_word_length': 6.7050691244239635, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 31, 'https://': 2, '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': '6590506', 'n_tokens_mistral': 1310, 'n_tokens_neox': 1276, 'n_words': 289}