<commit_before>local function setup_ios()
	files 
	{  
		"source/posix/**.cpp",
		"source/mach/**.cpp"
	}
end

local function setup_osx()
	files 
	{  
		"source/posix/**.cpp",
		"source/mach/**.cpp"
	}
end

local function setup_linux()
	files 
	{  
		"source/posix/**.cpp"
	}
end

local function setup_win32()
	systemversion(windows_sdk_version())
	disablewarnings { "4800", "4305", "4018", "4244", "4267", "4996" }
end

local function setup_android()
	files 
	{  
		"source/posix/**.cpp"
	}
end

local function setup_platform()
	if platform_dir == "win32" then
		setup_win32()
	elseif platform_dir == "osx" then
		setup_osx()
	elseif platform_dir == "linux" then
		setup_linux()
	elseif platform_dir == "android" then
		setup_android()
	elseif platform_dir == "ios" then
		setup_ios()
	end
end

-- Project	
project "pen"
	location ("build/" .. platform_dir)
	kind "StaticLib"
	language "C++"
	
	if platform_dir == "android" then
		files 
		{
			"include/*.h",
			"source/*.cpp",
		 
			"include/" .. platform_dir .. "/**.h", 
			"include/" .. renderer_dir .. "/**.h",
		
			"source/" .. renderer_dir .. "/**.cpp",
		
			"source/" .. platform_dir .. "/**.cpp",
			"source/" .. platform_dir .. "/**.mm",
		
			"../third_party/str/*.cpp", 
		}
		setup_platform()
	else
		files 
		{
			"source/" .. platform_dir .. "/**.cpp",
		}
	end
	
	includedirs 
	{
		"include",

		"include/" .. platform_dir, 
		"include/" .. renderer_dir,
		
		"../third_party/fmod/inc",
		"../third_party" 
	}
			
	configuration "Debug"
		defines { "DEBUG" }
		flags { "WinMain" }
		symbols "On"
		targetdir ("lib/" .. platform_dir)
		targetname "pen_d"
		architecture "x64"
 
	configuration "Release"
		defines { "NDEBUG" }
		flags { "WinMain", "OptimizeSpeed" }
		targetdir ("lib/" .. platform_dir)
		targetname "pen"
		architecture "x64"
<commit_msg>fix build<commit_after>local function setup_ios()
	files 
	{  
		"source/posix/**.cpp",
		"source/mach/**.cpp"
	}
end

local function setup_osx()
	files 
	{  
		"source/posix/**.cpp",
		"source/mach/**.cpp"
	}
end

local function setup_linux()
	files 
	{  
		"source/posix/**.cpp"
	}
end

local function setup_win32()
	systemversion(windows_sdk_version())
	disablewarnings { "4800", "4305", "4018", "4244", "4267", "4996" }
end

local function setup_android()
	files 
	{  
		"source/posix/**.cpp"
	}
end

local function setup_platform()
	if platform_dir == "win32" then
		setup_win32()
	elseif platform_dir == "osx" then
		setup_osx()
	elseif platform_dir == "linux" then
		setup_linux()
	elseif platform_dir == "android" then
		setup_android()
	elseif platform_dir == "ios" then
		setup_ios()
	end
end

-- Project	
project "pen"
	location ("build/" .. platform_dir)
	kind "StaticLib"
	language "C++"
	
	if platform_dir ~= "android" then
		files 
		{
			"include/*.h",
			"source/*.cpp",
		 
			"include/" .. platform_dir .. "/**.h", 
			"include/" .. renderer_dir .. "/**.h",
		
			"source/" .. renderer_dir .. "/**.cpp",
		
			"source/" .. platform_dir .. "/**.cpp",
			"source/" .. platform_dir .. "/**.mm",
		
			"../third_party/str/*.cpp", 
		}
		setup_platform()
	else
		files 
		{
			"source/" .. platform_dir .. "/**.cpp",
		}
	end
	
	includedirs 
	{
		"include",

		"include/" .. platform_dir, 
		"include/" .. renderer_dir,
		
		"../third_party/fmod/inc",
		"../third_party" 
	}
			
	configuration "Debug"
		defines { "DEBUG" }
		flags { "WinMain" }
		symbols "On"
		targetdir ("lib/" .. platform_dir)
		targetname "pen_d"
		architecture "x64"
 
	configuration "Release"
		defines { "NDEBUG" }
		flags { "WinMain", "OptimizeSpeed" }
		targetdir ("lib/" .. platform_dir)
		targetname "pen"
		architecture "x64"

{'fraction_non_alphanumeric': 0.18111964873765093, 'fraction_numerical': 0.018660812294182216, 'mean_word_length': 2.894230769230769, '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': '6461948', 'n_tokens_mistral': 1584, 'n_tokens_neox': 1382, 'n_words': 291}