<commit_before>--
-- help.lua
-- User help, displayed on /help option.
-- Copyright (c) 2002-2013 <NAME> and the Premake project
--


	function premake.showhelp()

		-- display the basic usage
		printf("Premake %s, a build script generator", _PREMAKE_VERSION)
		printf(_PREMAKE_COPYRIGHT)
		printf("%s %s", _VERSION, _COPYRIGHT)
		printf("")
		printf("Usage: premake5 [options] action [arguments]")
		printf("")

		-- filter all options by category.
		local categories = {}
		for option in premake.option.each() do
			local cat = "OPTIONS - General"
			if option.category then
				cat = "OPTIONS - " .. options.category;
			end

			if categories[cat] then
				table.insert(categories[cat], option)
			else
				categories[cat] = {option}
			end
		end

		-- display all options
		for k, options in pairs(categories) do
			printf(k)
			printf("")
			for _, option in ipairs(options) do
				local trigger = option.trigger
				local description = option.description
				if (option.value) then trigger = trigger .. "=" .. option.value end
				if (option.allowed) then description = description .. "; one of:" end

				printf(" --%-15s %s", trigger, description)
				if (option.allowed) then
					for _, value in ipairs(option.allowed) do
						printf("     %-14s %s", value[1], value[2])
					end
				end
				printf("")
			end
			printf("")
		end

		-- display all actions
		printf("ACTIONS")
		printf("")
		for action in premake.action.each() do
			printf(" %-17s %s", action.trigger, action.description)
		end
		printf("")


		-- see more
		printf("For additional information, see http://industriousone.com/premake")

	end


<commit_msg>Fix typo in support for 'category' option field<commit_after>--
-- help.lua
-- User help, displayed on /help option.
-- Copyright (c) 2002-2013 <NAME> and the Premake project
--


	function premake.showhelp()

		-- display the basic usage
		printf("Premake %s, a build script generator", _PREMAKE_VERSION)
		printf(_PREMAKE_COPYRIGHT)
		printf("%s %s", _VERSION, _COPYRIGHT)
		printf("")
		printf("Usage: premake5 [options] action [arguments]")
		printf("")

		-- filter all options by category.
		local categories = {}
		for option in premake.option.each() do
			local cat = "OPTIONS - General"
			if option.category then
				cat = "OPTIONS - " .. option.category;
			end

			if categories[cat] then
				table.insert(categories[cat], option)
			else
				categories[cat] = {option}
			end
		end

		-- display all options
		for k, options in pairs(categories) do
			printf(k)
			printf("")
			for _, option in ipairs(options) do
				local trigger = option.trigger
				local description = option.description
				if (option.value) then trigger = trigger .. "=" .. option.value end
				if (option.allowed) then description = description .. "; one of:" end

				printf(" --%-15s %s", trigger, description)
				if (option.allowed) then
					for _, value in ipairs(option.allowed) do
						printf("     %-14s %s", value[1], value[2])
					end
				end
				printf("")
			end
			printf("")
		end

		-- display all actions
		printf("ACTIONS")
		printf("")
		for action in premake.action.each() do
			printf(" %-17s %s", action.trigger, action.description)
		end
		printf("")


		-- see more
		printf("For additional information, see http://industriousone.com/premake")

	end



{'fraction_non_alphanumeric': 0.13216126098817824, 'fraction_numerical': 0.010306153379812064, 'mean_word_length': 2.9951573849878934, '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': '6841415', 'n_tokens_mistral': 1249, 'n_tokens_neox': 1003, 'n_words': 327}