<commit_before>#include <stdio.h>

#include "lua.h"
#include "lualib.h"
#include "lauxlib.h"

int argc;
char** argv;

int main(int snabb_argc, char **snabb_argv)
{
  /* Store for use by LuaJIT code via FFI. */
  argc = snabb_argc;
  argv = snabb_argv;
  lua_State* L = luaL_newstate();
  luaL_openlibs(L);
  return luaL_dostring(L, "require \"core.startup\"");
}

<commit_msg>snabbswitch.c: Compile error on non-64bit platforms<commit_after>#include <stdio.h>

#include "lua.h"
#include "lualib.h"
#include "lauxlib.h"

#if sizeof(uint64_t) != sizeof(uintptr_t)
#error "Snabb only supports 64-bit platforms. See https://github.com/SnabbCo/snabbswitch/blob/master/src/doc/porting.md"
#end

int argc;
char** argv;

int main(int snabb_argc, char **snabb_argv)
{
  /* Store for use by LuaJIT code via FFI. */
  argc = snabb_argc;
  argv = snabb_argv;
  lua_State* L = luaL_newstate();
  luaL_openlibs(L);
  return luaL_dostring(L, "require \"core.startup\"");
}


{'fraction_non_alphanumeric': 0.15015641293013557, 'fraction_numerical': 0.006256517205422315, 'mean_word_length': 4.485714285714286, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 1, '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': '7184100', 'n_tokens_mistral': 412, 'n_tokens_neox': 402, 'n_words': 91}