<commit_before>--=========== Copyright © 2017, Planimeter, All rights reserved. =============--
--
-- Purpose:
--
--============================================================================--

-- Add `./?/init.lua'
package.path = string.gsub( package.path, "^./?.lua;", "./?.lua;./?/init.lua;" )

if ( jit.os == "Windows" ) then
	-- Add `framework.path' and `framework.cpath'
	framework.path  = string.gsub( arg[ 0 ], "\\framework\\init.lua$", "\\" )
	framework.cpath = string.gsub( framework.path, "\\lua$", "\\" )

	-- Add `lib'
	package.path    = package.path  .. framework.path .. "lib\\?.lua;"
	package.cpath   = package.cpath .. ";".. framework.path .. "lib\\?.dll;"
	package.cpath   = package.cpath .. framework.path .. "loadall.dll"
else
	-- Add `framework.path' and `framework.cpath'
	framework.path  = string.gsub( arg[ 0 ], "/framework/init.lua$", "/" )
	framework.cpath = string.gsub( framework.path, "/lua$", "/" )

	-- Add working directory
	package.path    = package.path  .. ";" .. framework.path .. "?.lua;"
	package.path    = package.path  .. framework.path .. "?/init.lua;"

	-- Add `lib'
	package.path    = package.path  .. framework.path .. "lib/?.lua"
	package.cpath   = package.cpath .. ";" .. framework.path .. "lib/?.so;"
	package.cpath   = package.cpath .. framework.path .. "loadall.so"
end<commit_msg>Update loadlib.lua<commit_after>--=========== Copyright © 2017, Planimeter, All rights reserved. =============--
--
-- Purpose:
--
--============================================================================--

if ( jit.os == "Windows" ) then
	-- Add `./?/init.lua'
	package.path    = string.gsub( package.path, "^.\\?.lua;", ".\\?.lua;.\\?\\init.lua;" )

	-- Add `framework.path' and `framework.cpath'
	framework.path  = string.gsub( arg[ 0 ], "\\framework\\init.lua$", "\\" )
	framework.cpath = string.gsub( framework.path, "\\lua$", "\\" )

	-- Add `lib'
	package.path    = package.path  .. framework.path .. "lib\\?.lua;"
	package.cpath   = package.cpath .. ";".. framework.path .. "lib\\?.dll;"
	package.cpath   = package.cpath .. framework.path .. "loadall.dll"
else
	-- Add `./?/init.lua'
	package.path    = string.gsub( package.path, "^./?.lua;", "./?.lua;./?/init.lua;" )

	-- Add `framework.path' and `framework.cpath'
	framework.path  = string.gsub( arg[ 0 ], "/framework/init.lua$", "/" )
	framework.cpath = string.gsub( framework.path, "/lua$", "/" )

	-- Add working directory
	package.path    = package.path  .. ";" .. framework.path .. "?.lua;"
	package.path    = package.path  .. framework.path .. "?/init.lua;"

	-- Add `lib'
	package.path    = package.path  .. framework.path .. "lib/?.lua"
	package.cpath   = package.cpath .. ";" .. framework.path .. "lib/?.so;"
	package.cpath   = package.cpath .. framework.path .. "loadall.so"
end
{'fraction_non_alphanumeric': 0.2917115177610334, 'fraction_numerical': 0.004305705059203444, 'mean_word_length': 2.7726657645466846, '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': '5597996', 'n_tokens_mistral': 979, 'n_tokens_neox': 933, 'n_words': 181}