<commit_before>![ ](https://travis-ci.org/cyberImperial/attack-graphs.svg?branch=master) [![Coverage Status](https://coveralls.io/repos/github/cyberImperial/attack-graphs/badge.svg?branch=master)](https://coveralls.io/github/cyberImperial/attack-graphs?branch=master)

# Attack-graphs

### Install
To install the dependecies:
```
apt-get install libboost-all-dev -y
apt-get install libpcap-dev -y
sudo python3 setup.py install
make
npm install
cd database && python3 load.py -r
```

Run tests:
```
make test
sudo python3 setup.py test
```
<commit_msg>Added video to README.md<commit_after>![ ](https://travis-ci.org/cyberImperial/attack-graphs.svg?branch=master) [![Coverage Status](https://coveralls.io/repos/github/cyberImperial/attack-graphs/badge.svg?branch=master)](https://coveralls.io/github/cyberImperial/attack-graphs?branch=master)

# Attack-graphs

Click on the first picture to watch the demo:

<a href="https://www.doc.ic.ac.uk/~ab7515/attack.ogv" target="_blank"><img src="https://www.doc.ic.ac.uk/~ad5915/pic1.png" 
alt="IMAGE ALT TEXT HERE" border="10" /></a>

![ ](https://www.doc.ic.ac.uk/~ad5915/pic2.png)

### Install
To install the dependecies:
```
apt-get install libboost-all-dev -y
apt-get install libpcap-dev -y
sudo python3 setup.py install
make
npm install
cd database && python3 load.py -r
```

Run tests:
```
make test
sudo python3 setup.py test
```

{'fraction_non_alphanumeric': 0.1660623640319072, 'fraction_numerical': 0.01595358955765047, 'mean_word_length': 5.026200873362446, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 9, 'lorem ipsum': 0, 'www.': 3, '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': '5336591', 'n_tokens_mistral': 540, 'n_tokens_neox': 482, 'n_words': 99}