<commit_before>SERVER_TOOLS_DEFINE_AND_SET_GLOBAL(reboot_mode, REBOOT_MODE_NORMAL)
SERVER_TOOLS_DEFINE_AND_SET_GLOBAL(server_tools_api_compatible, FALSE)

/proc/GetTestMerges()
	if(RunningService() && fexists(SERVICE_PR_TEST_JSON))
		. = json_decode(file2text(SERVICE_PR_TEST_JSON))
		if(.)
			return
	return list()

/world/proc/ServiceInit()
	if(!RunningService(TRUE))
		return
	ListServiceCustomCommands(TRUE)
	ExportService("[SERVICE_REQUEST_API_VERSION] [SERVER_TOOLS_API_VERSION]", TRUE)

/proc/RunningService(skip_compat_check = FALSE)
	return (skip_compat_check || SERVER_TOOLS_READ_GLOBAL(server_tools_api_compatible)) && world.params[SERVICE_WORLD_PARAM] != null

/proc/ServiceVersion()
	if(RunningService(TRUE))
		return world.params[SERVICE_VERSION_PARAM]

/proc/ServiceAPIVersion()<commit_msg>Fixes GetTestMerges() returning an empty list<commit_after>SERVER_TOOLS_DEFINE_AND_SET_GLOBAL(reboot_mode, REBOOT_MODE_NORMAL)
SERVER_TOOLS_DEFINE_AND_SET_GLOBAL(server_tools_api_compatible, FALSE)

/proc/GetTestMerges()
	if(RunningService(TRUE) && fexists(SERVICE_PR_TEST_JSON))
		. = json_decode(file2text(SERVICE_PR_TEST_JSON))
		if(.)
			return
	return list()

/world/proc/ServiceInit()
	if(!RunningService(TRUE))
		return
	ListServiceCustomCommands(TRUE)
	ExportService("[SERVICE_REQUEST_API_VERSION] [SERVER_TOOLS_API_VERSION]", TRUE)

/proc/RunningService(skip_compat_check = FALSE)
	return (skip_compat_check || SERVER_TOOLS_READ_GLOBAL(server_tools_api_compatible)) && world.params[SERVICE_WORLD_PARAM] != null

/proc/ServiceVersion()
	if(RunningService(TRUE))
		return world.params[SERVICE_VERSION_PARAM]

/proc/ServiceAPIVersion()
{'fraction_non_alphanumeric': 0.10571081409477522, 'fraction_numerical': 0.001215066828675577, 'mean_word_length': 9.557692307692308, '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': '5750431', 'n_tokens_mistral': 587, 'n_tokens_neox': 587, 'n_words': 66}