<commit_before>This repo contains a set of tools I developed or extended.
Use at your own risk!

## entorpyCalc
A tool for splitting the input in 50 parts and calculating the entorpy of each. 
This can help analysing a file encrypted by a ransomware regarding its quality: 

```java
java -jar entorpyCalc.jar /path/to/file<commit_msg>added explenation for new param<commit_after>This repo contains a set of tools I developed or extended.
Use at your own risk!

## entorpyCalc
A tool for dividing the input in X parts and calculating the entorpy of each. 
This can help analysing a file encrypted by a ransomware regarding its quality.

Call the prepared JAR passing the path of the file (path/to/file) and the number of parts (numb_of_parts) the file should be divided into:

```java
java -jar entorpyCalc.jar /path/to/file numb_of_parts
{'fraction_non_alphanumeric': 0.04898446833930705, 'fraction_numerical': 0.0023894862604540022, 'mean_word_length': 4.441558441558442, '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': '547964', 'n_tokens_mistral': 253, 'n_tokens_neox': 237, 'n_words': 127}