<commit_before>-- premake5.lua
solution "truss"
   configurations{ "Debug", "Release" }
   platforms{"x64"} -- it's 2015, 64bit is only option
   architecture "x64" -- needed in premake5 but not genie?
   location "build"

project "truss"
   kind "ConsoleApp"
   language "C++"
   targetdir "bin"
   location "build" 

   local nvg = "extras/bgfx_nanovg/"

   files{ "src/*.cpp", "src/*.h", -- core
           nvg.."*.cpp" , nvg.."*.h"} -- nanovg
   removefiles{nvg.."nanovg_bgfx.cpp"} -- don't compile c++ bgfx api nanovg

   -- link in bgfx, bx, terra, and SDL2
   includedirs{"deps/bgfx/include", "deps/terra/include", "deps/sdl/include"}
   includedirs{"deps/bgfx/3rdparty", "deps/bx/include"} -- extra bgfx stuff
   libdirs{"deps/bgfx", "deps/terra", "deps/sdl/lib/x64"}
   links{"bgfx-shared-libRelease",
         "terra", "lua51",
         "SDL2", "SDL2main"}

   configuration "Linux"
      links{"GL", "GLU", "X11"} -- otherwise linker will complain that bgfx is missing things

   configuration "Debug"
      defines{ "DEBUG" }
      flags{ "Symbols" }

   configuration "Release"
      defines{ "NDEBUG" }
      flags { "OptimizeSpeed" }<commit_msg>premake/genie cleanup<commit_after>-- premake5.lua

-- paths
BGFX_DIR  = "../bgfx"
BX_DIR    = "../bx"
TERRA_DIR = "../terra"
SDL_DIR   = "../sdl" 

solution "truss"
   configurations{ "Debug", "Release" }
   platforms{"x64"} -- it's 2015, 64bit is only option
   architecture "x64" -- needed in premake5 but not genie?
   location "build"

   startproject "truss"

project "truss"
   kind "ConsoleApp"
   language "C++"
   targetdir "bin"
   location "build" 

   local nvg = "src/bgfx_nanovg/"
   local ws  = "src/websocket_client/"

   files{ "src/*.cpp", "src/*.h",                     -- core
           nvg .. "*.cpp", nvg .. "*.h",              -- nanovg
           ws .. "*.cpp", ws .. "*.h", ws .. "*.hpp", -- websocket
           BGFX_DIR .. "/src/amalgamated.cpp"         -- bgfx
         }

   -- link in bgfx, bx, terra, and SDL2
   includedirs{BGFX_DIR .. "/include", TERRA_DIR .. "/include", SDL_DIR .. "/include"}
   includedirs{BGFX_DIR .. "/3rdparty", BX_DIR .. "/include"} -- extra bgfx stuff
   libdirs{BGFX_DIR, TERRA_DIR, SDL_DIR .. "/lib/x64"}
   links{"terra", "lua51",
         "SDL2", "SDL2main"}

   configuration "Linux"
      links{"GL", "GLU", "X11"} -- otherwise linker will complain that bgfx is missing things

   configuration "Debug"
      defines{ "DEBUG" }
      flags{ "Symbols" }

   configuration "Release"
      defines{ "NDEBUG" }
      flags { "OptimizeSpeed" }
{'fraction_non_alphanumeric': 0.1684867394695788, 'fraction_numerical': 0.0171606864274571, 'mean_word_length': 2.494550408719346, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3544097', 'n_tokens_mistral': 958, 'n_tokens_neox': 901, 'n_words': 225}