<commit_before>from pentest.command import JarvisCmd
import sys
__name__ = "amass"


def main():
	args_config = {
		"passthrough_args": ["-do", "-log", "-json", "-o", "-oA", "-h", "--help"],
		"output_args": [
			{
				"format": None,
				"arg": "-oA"
			}
		]
	}

	cmd = JarvisCmd(sys.argv)
	cmd.set_args_config(args_config)

	for arg in cmd.args:
		if "-d" in arg:
			target = cmd.args[cmd.args.index("-d") + 1]
			break
		elif "-df" in arg:
			target = "multiple-hosts"
			break
	else:
		target = cmd.args[-1].replace('/', '_')

	cmd.run(target)
<commit_msg>Fixed the amass hook because of conflicting pattern matching for CLI args<commit_after>from pentest.command import JarvisCmd
import sys
__name__ = "amass"


def main():
	args_config = {
		"passthrough_args": ["-do", "-log", "-json", "-o", "-oA", "-h", "--help"],
		"output_args": [
			{
				"format": None,
				"arg": "-oA"
			}
		]
	}

	cmd = JarvisCmd(sys.argv)
	cmd.set_args_config(args_config)

	for arg in cmd.args:
		if "-d" == arg:
			target = cmd.args[cmd.args.index("-d") + 1]
			break
		elif "-df" == arg:
			target = "multiple-hosts"
			break
	else:
		target = cmd.args[-1].replace('/', '_')

	cmd.run(target)

{'fraction_non_alphanumeric': 0.19796954314720813, 'fraction_numerical': 0.00338409475465313, 'mean_word_length': 3.079310344827586, 'pattern_counts': {'":': 8, '<': 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': '4482033', 'n_tokens_mistral': 525, 'n_tokens_neox': 464, 'n_words': 109}