<commit_before># automation-ussr

## Use Docker

Build image: `# docker build --rm=true -t ctfight:automation-ussr ./`
Run container: `# docker run -t --name=keva-automation-ussr ctfight:automation-ussr`
Stop container: `docker stop $(docker ps -a | grep "ctfight:automation-ussr" | sed -s 's/.*\([0-9a-z]\{12,12\}\) .*/\1/')`
Remove container: `# docker rm $(docker ps -a | grep "ctfight:automation-ussr" | sed -s 's/.*\([0-9a-z]\{12,12\}\) .*/\1/')`
Remove image: `# docker rmi -f $(docker images | grep automation-ussr | sed -s 's/.* \([0-9a-z]\{12,12\}\) .*/\1/')`

```
# docker images | grep automation-ussr
``` 

## Manual Installation

Web: `sudo apt-get install apache2 mysql-server mysql-client php5`

### Download sources

	sudo apt-get install git-core
	git clone https://github.com/ctfight/automation-ussr.git automation-ussr.git

### Install service
	
	cd ~/automation-ussr.git/service/
	./install.sh

Check service status `/etc/init.d/ussr-storage status`
<commit_msg>Fix spaces at the line end<commit_after># automation-ussr

## Use Docker

Build image: `# docker build --rm=true -t ctfight:automation-ussr ./`  
Run container: `# docker run -t --name=keva-automation-ussr ctfight:automation-ussr`  
Stop container: `docker stop $(docker ps -a | grep "ctfight:automation-ussr" | sed -s 's/.*\([0-9a-z]\{12,12\}\) .*/\1/')`  
Remove container: `# docker rm $(docker ps -a | grep "ctfight:automation-ussr" | sed -s 's/.*\([0-9a-z]\{12,12\}\) .*/\1/')`  
Remove image: `# docker rmi -f $(docker images | grep automation-ussr | sed -s 's/.* \([0-9a-z]\{12,12\}\) .*/\1/')`  

```
# docker images | grep automation-ussr
``` 

## Manual Installation

Web: `sudo apt-get install apache2 mysql-server mysql-client php5`

### Download sources

	sudo apt-get install git-core
	git clone https://github.com/ctfight/automation-ussr.git automation-ussr.git

### Install service
	
	cd ~/automation-ussr.git/service/
	./install.sh

Check service status `/etc/init.d/ussr-storage status`

{'fraction_non_alphanumeric': 0.19325616507297433, 'fraction_numerical': 0.02315047810770005, 'mean_word_length': 3.497737556561086, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1578772', 'n_tokens_mistral': 819, 'n_tokens_neox': 736, 'n_words': 189}