<commit_before># cyberattack-collector
Tool to collect cyber attacks that Norse tracks and persist it into locally running MongoDB instance<commit_msg>Added tool build/run instructions and shaded jar<commit_after># cyberattack-collector
Tool to collect cyber attacks that Norse tracks and persist it into locally running MongoDB instance

To run the tool, you would need to install MongoDB locally first by following these instructions
http://docs.mongodb.org/manual/installation/

Once that is done, you can build the tool by doing a 

mvn clean install

and then running the main class in the tool (no arguments needed)

java -cp target/cyberattack-collector events.EventCollector

{'fraction_non_alphanumeric': 0.03953147877013177, 'fraction_numerical': 0.0, 'mean_word_length': 5.218181818181818, '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': '2290073', 'n_tokens_mistral': 178, 'n_tokens_neox': 165, 'n_words': 89}