<commit_before># Microsoft Data Gathering
Microsoft Data Gathering offers organizations a fast, accurate, cost effective and
user-friendly way to collect data using mobile devices.

## Quick installation
### Ubuntu 14.04 LTS (amd64)
```
# sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
# echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list
# sudo apt-get update
# sudo apt-get install nodejs mongodb-org librsvg2-bin
# wget -O /tmp/mdg.deb https://nokiadatagathering.net/binary/MDGServer_amd64.deb
# sudo dpkg -i /tmp/mdg.deb
# rm -f /tmp/mdg.deb
# cd /opt/MDGServer
# nano config.js # edit config to fit your needs
# start node-MDGServer
```

### Windows (x64)

1. Download and install [MongoDB](http://docs.mongodb.org/manual/tutorial/install-mongodb-on-windows/). Make sure you configure it to run as system service.
1. Download and install [NodeJS](http://nodejs.org/download/)
1. Download [latest version of MDG](https://nokiadatagathering.net/binary/MDG.zip) and extract it to folder which contains no spaces (we assume ```C:\node\mdg``` for next steps)
1. If you are running Windows 8 - please enable .NET 3.5 support in components of your system
1. Edit ```C:\node\mdg\config.js``` to fit your needs
1. Grab [rsvg-convert binary](http://sourceforge.net/projects/tumagcc/files/rsvg-convert.exe/download) and put it to ```C:\node\mdg``` folder
1. Launch "Node.JS command prompt" as administrator
```
# cd C:\node\mdg
# node app --install
# set NODE_ENV=production
# node app start

Browse to http://127.0.0.1:3000 (assuming you have not modified anything in config.js)
<commit_msg>Fixed README as wget was failing with new certificate<commit_after># Microsoft Data Gathering
Microsoft Data Gathering offers organizations a fast, accurate, cost effective and
user-friendly way to collect data using mobile devices.

## Quick installation
### Ubuntu 14.04 LTS (amd64)
```
# sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
# echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list
# sudo apt-get update
# sudo apt-get install nodejs mongodb-org librsvg2-bin npm
# wget --no-check-certificate -O /tmp/mdg.deb https://nokiadatagathering.net/binary/MDGServer_amd64.deb
# sudo dpkg -i /tmp/mdg.deb
# rm -f /tmp/mdg.deb
# cd /opt/MDGServer
# nano config.js # edit config to fit your needs
# start node-MDGServer
```

### Windows (x64)

1. Download and install [MongoDB](http://docs.mongodb.org/manual/tutorial/install-mongodb-on-windows/). Make sure you configure it to run as system service.
1. Download and install [NodeJS](http://nodejs.org/download/)
1. Download [latest version of MDG](https://nokiadatagathering.net/binary/MDG.zip) and extract it to folder which contains no spaces (we assume ```C:\node\mdg``` for next steps)
1. If you are running Windows 8 - please enable .NET 3.5 support in components of your system
1. Edit ```C:\node\mdg\config.js``` to fit your needs
1. Grab [rsvg-convert binary](http://sourceforge.net/projects/tumagcc/files/rsvg-convert.exe/download) and put it to ```C:\node\mdg``` folder
1. Launch "Node.JS command prompt" as administrator
```
# cd C:\node\mdg
# node app --install
# set NODE_ENV=production
# node app start

1. Browse to http://127.0.0.1:3000 (assuming you have not modified anything in config.js)

{'fraction_non_alphanumeric': 0.1273201856148492, 'fraction_numerical': 0.02291183294663573, 'mean_word_length': 4.170914542728636, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 12, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2507435', 'n_tokens_mistral': 1235, 'n_tokens_neox': 1111, 'n_words': 373}