<commit_before>[![Build Status](https://travis-ci.org/cordoval/hangman-tdd.svg?branch=master)](https://travis-ci.org/cordoval/hangman-tdd)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/cordoval/hangman-tdd/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/cordoval/hangman-tdd/?branch=master)

Hangman TDD exercise

```bash
HTTPDUSER=`ps aux | grep -E '[a]pache|[h]ttpd|[_]www|[w]ww-data|[n]ginx' | grep -v root | head -1 | cut -d\  -f1`
sudo chmod +a "$HTTPDUSER allow delete,write,append,file_inherit,directory_inherit" app/cache app/logs
sudo chmod +a "`whoami` allow delete,write,append,file_inherit,directory_inherit" app/cache app/logs
export DATABASE_NAME=qandidate
export DATABASE_USER=root
export DATABASE_PASSWORD=<PASSWORD>
composer install
php app/console util:sql
```
<commit_msg>plug demo image to display how it looks<commit_after>[![Build Status](https://travis-ci.org/cordoval/hangman-tdd.svg?branch=master)](https://travis-ci.org/cordoval/hangman-tdd)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/cordoval/hangman-tdd/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/cordoval/hangman-tdd/?branch=master)

Hangman TDD exercise

```bash
HTTPDUSER=`ps aux | grep -E '[a]pache|[h]ttpd|[_]www|[w]ww-data|[n]ginx' | grep -v root | head -1 | cut -d\  -f1`
sudo chmod +a "$HTTPDUSER allow delete,write,append,file_inherit,directory_inherit" app/cache app/logs
sudo chmod +a "`whoami` allow delete,write,append,file_inherit,directory_inherit" app/cache app/logs
export DATABASE_NAME=qandidate
export DATABASE_USER=root
export DATABASE_PASSWORD=<PASSWORD>
composer install
php app/console util:sql
```

How it looks:

<img src="https://cloud.githubusercontent.com/assets/328359/6115373/2bfc8dcc-b073-11e4-82ac-f3a802b5037b.png" alt="demo"  width="400px"/>

{'fraction_non_alphanumeric': 0.15879120879120878, 'fraction_numerical': 0.020879120879120878, 'mean_word_length': 6.524793388429752, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 9, 'lorem ipsum': 0, 'www.': 2, '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': '993862', 'n_tokens_mistral': 739, 'n_tokens_neox': 690, 'n_words': 112}