<commit_before># SKYNET-MINDWAVE-CONNECTOR

The Skynet Mindwave Connector is a [Node.js](http://nodejs.org/) application that allows you to connect a [Neurosky Mindwave](http://store.neurosky.com/products/mindwave-mobile) to [Skynet.Im](http://skynet.im). It can connect
to both public and private Skynet instances. It uses the [ThinkGear Connector](http://developer.neurosky.com/docs/doku.php?id=thinkgear_connector_tgc) developed by NeuroSky to interface with the NeuroSky Mindwave. 

## 1. Dependencies

* ThinkGear Connector
* Node.JS
* Skynet.Im

## 2. Installation
1. Install ThinkGear Connector
2. Install Node.js
3. Checkout source from github
    
    git checkout <EMAIL>:kmariano/skynet-mindwave-connector.git

## 3. Environment Variables
### 3.1 Mindwave Environment Variables
* _MINDWAVE_HOST_ : This is the ThinkGear Connector Host, the default is '127.0.0.1'
* _MINDWAVE_PORT_ : This is the ThinkGear Connector Portt, the default is '13854'
### 3.2 Skynet Environment Variables
* _SKYNET_HOST_ : This is the ThinkGear Connector Host, the default is 'skynet.im'
* _SKYNET_PORT_ : This is the ThinkGear Connector Portt, the default is '80'


## 4. Running the Application
To run the application Go to the Root Directory and enter the following command:

    node [ENVIRONMENT_VARIABLE=VALUE] app.js 
<commit_msg>Updated Readme with install instructions<commit_after># SKYNET-MINDWAVE-CONNECTOR

The Skynet Mindwave Connector is a [Node.js](http://nodejs.org/) application that allows you to connect a [Neurosky Mindwave](http://store.neurosky.com/products/mindwave-mobile) to [Skynet.Im](http://skynet.im). It can connect
to both public and private Skynet instances. It uses the [ThinkGear Connector](http://developer.neurosky.com/docs/doku.php?id=thinkgear_connector_tgc) developed by NeuroSky to interface with the NeuroSky Mindwave. 

## 1. Dependencies

* ThinkGear Connector
* Node.JS
* Skynet.Im

## 2. Installation
1. Install ThinkGear Connector
2. Install Node.js
3. Checkout source from github by entering the following command in a Terminal - _git checkout git<EMAIL>:kmariano/skynet-mindwave-connector.git_
4. Copy configjs.sample and save it as config.js in the project root directory

## 3. Environment Variables

### 3.1 Mindwave Environment Variables

* _MINDWAVE_HOST_ : This is the ThinkGear Connector Host, the default is '127.0.0.1'
* _MINDWAVE_PORT_ : This is the ThinkGear Connector Port, the default is '13854'

### 3.2 Skynet Environment Variables

* _SKYNET_HOST_ : This is the Skynet.im Host, the default is 'skynet.im'
* _SKYNET_PORT_ : This is the SKynet.im Port, the default is '80'

## 4. Running the Application
To run the application Go to the Root Directory and enter the following command:

    node [ENVIRONMENT_VARIABLE=VALUE] app.js 

{'fraction_non_alphanumeric': 0.08767517067912325, 'fraction_numerical': 0.01760689902982393, 'mean_word_length': 4.693251533742331, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '5743500', 'n_tokens_mistral': 946, 'n_tokens_neox': 888, 'n_words': 309}