<commit_before>--
-- _premake_main.lua
-- Script-side entry point for the main program logic.
-- Copyright (c) 2002-2012 <NAME> and the Premake project
--


	local scriptfile    = "premake4.lua"
	local shorthelp     = "Type 'premake4 --help' for help"
	local versionhelp   = "premake4 (Premake Build Script Generator) %s"

	_WORKING_DIR        = os.getcwd()


--
-- Script-side program entry point.
--

	function _premake_main(scriptpath)

		-- if running off the disk (in debug mode), load everything
		-- listed in _manifest.lua; the list divisions make sure
		-- everything gets initialized in the proper order.

		if (scriptpath) then
			local scripts  = dofile(scriptpath .. "/_manifest.lua")
			for _,v in ipairs(scripts) do
				dofile(scriptpath .. "/" .. v)
			end
		end


		-- Now that the scripts are loaded, I can use path.getabsolute() to properly
		-- canonicalize the executable path.

		_PREMAKE_COMMAND = path.getabsolute(_PREMAKE_COMMAND)


		-- The "next-gen" actions have now replaced their deprecated counterparts.
		-- Provide a warning for a little while before I remove them entirely.
		if _ACTION and _ACTION:endswith("ng") then
			print(string.format("** Warning: '%s' has been deprecated; use '%s' instead", _ACTION, _ACTION:sub(1, -3)))
		end

		-- Set up the environment for the chosen action early, so side-effects
		-- can be picked up by the scripts.

		premake.action.set(_ACTION)

<commit_msg>Move "ng" deprecation warning to stderr to increase visibility<commit_after>--
-- _premake_main.lua
-- Script-side entry point for the main program logic.
-- Copyright (c) 2002-2013 <NAME> and the Premake project
--


	local scriptfile    = "premake4.lua"
	local shorthelp     = "Type 'premake4 --help' for help"
	local versionhelp   = "premake4 (Premake Build Script Generator) %s"

	_WORKING_DIR        = os.getcwd()


--
-- Script-side program entry point.
--

	function _premake_main(scriptpath)

		-- if running off the disk (in debug mode), load everything
		-- listed in _manifest.lua; the list divisions make sure
		-- everything gets initialized in the proper order.

		if (scriptpath) then
			local scripts  = dofile(scriptpath .. "/_manifest.lua")
			for _,v in ipairs(scripts) do
				dofile(scriptpath .. "/" .. v)
			end
		end


		-- Now that the scripts are loaded, I can use path.getabsolute() to properly
		-- canonicalize the executable path.

		_PREMAKE_COMMAND = path.getabsolute(_PREMAKE_COMMAND)


		-- The "next-gen" actions have now replaced their deprecated counterparts.
		-- Provide a warning for a little while before I remove them entirely.
		if _ACTION and _ACTION:endswith("ng") then
			io.stderr:write(string.format("** Warning: '%s' has been deprecated; use '%s' instead\n", _ACTION, _ACTION:sub(1, -3)))
		end

		-- Set up the environment for the chosen action early, so side-effects
		-- can be picked up by the scripts.

		premake.action.set(_ACTION)


{'fraction_non_alphanumeric': 0.10401647785787847, 'fraction_numerical': 0.008925506350841057, 'mean_word_length': 3.2416302765647744, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6399167', 'n_tokens_mistral': 994, 'n_tokens_neox': 869, 'n_words': 330}