<commit_before># HeadlessProtractor
run protractor test on headless ubuntu server in docker
## Step 1: Install docker on ubuntu
Docker installation: https://docs.docker.com/installation/ubuntulinux/
<pre>
#wget -qO- https://get.docker.com/ | sh
#sudo usermod -aG docker your_name
</pre>
then, logout and relogin ubuntu.

## Step 2: Checkout code, build docker image
<pre>
#git clone https://github.com/owen-pengtao/HeadlessProtractor.git HeadlessProtractor
#cd HeadlessProtractor/docker
#./rebuild.sh
#sudo chown -R your_name:your_name ~/.npm_docker
</pre>

## Step 3: Run protractor test in docker
<pre>
#cd HeadlessProtractor/protractor
#./run-in-docker.sh
</pre>

## Manually Verify protractor test as same as it's running in docker.
<pre>
#cd HeadlessProtractor/protractor
#npm install
#grunt install
#grunt test:e2e
</pre>
<commit_msg>update readme for how to install docker in Mac and Ubuntu<commit_after># HeadlessProtractor
run protractor test on headless ubuntu server in docker
## Step 1: Install docker on ubuntu
Docker installation: https://docs.docker.com/installation/ubuntulinux/
<pre>
#For Mac: https://docs.docker.com/docker-for-mac/install/
#For Ubuntu: https://docs.docker.com/engine/installation/linux/ubuntu/

if you have installed, try to upgrade.
#docker-machine upgrade
</pre>
then, logout and relogin ubuntu.

## Step 2: Checkout code, build docker image
<pre>
#git clone https://github.com/owen-pengtao/HeadlessProtractor.git HeadlessProtractor
#cd HeadlessProtractor/docker
#./rebuild.sh
#sudo chown -R your_name:your_name ~/.npm_docker
</pre>

## Step 3: Run protractor test in docker
<pre>
#cd HeadlessProtractor/protractor
#./run-in-docker.sh
</pre>

## Manually Verify protractor test as same as it's running in docker.
<pre>
#cd HeadlessProtractor/protractor
#npm install
#grunt install
#grunt test:e2e
</pre>

{'fraction_non_alphanumeric': 0.11292073832790445, 'fraction_numerical': 0.004343105320304018, 'mean_word_length': 4.964401294498382, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, 'https://': 7, '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': '2906461', 'n_tokens_mistral': 690, 'n_tokens_neox': 608, 'n_words': 196}