<commit_before># About

This is a sample [Node.js](http://nodejs.org) application for demoing interactions with the [Tendril Connect HTTP APIs](https://dev.tendrilinc.com/docs).  It is a work in progress, so many areas are incomplete or less functional than might otherwise be desired.

# Installation

First clone the repo:

	git clone <EMAIL>:TendrilDevProgram/tendril-connect-demos.git

Then, with [Node.js](http://nodejs.org) v0.6.x:

	cd tendril-connect-demos
	npm install -g coffee # if not already installed
	npm install

Next:

	cp config/env.coffee.sample config/env.coffee

Edit env.coffee to configure a custom session secret for your app.  This can be any secret pass phrase you deem appropriate.

Then at [Tendril's developer site](https://dev.tendrilinc.com), create an app to acquire an OAuth2 app id and key.  Further edit oauth.coffee to add your app id and secret.  At this point you should be ready to start the server like so:

	./server [server port]

Or:

	coffee ./app/server.coffee [server port]

The server will start on port 3001, unless you optionally specify your own port in the commands above.
<commit_msg>Corrected config file name in readme<commit_after># About

This is a sample [Node.js](http://nodejs.org) application for demoing interactions with the [Tendril Connect HTTP APIs](https://dev.tendrilinc.com/docs).  It is a work in progress, so many areas are incomplete or less functional than might otherwise be desired.

# Installation

First clone the repo:

	git clone <EMAIL>:TendrilDevProgram/tendril-connect-demos.git

Then, with [Node.js](http://nodejs.org) v0.6.x:

	cd tendril-connect-demos
	npm install -g coffee # if not already installed
	npm install

Next:

	cp config/env.coffee.sample config/env.coffee

Edit env.coffee to configure a custom session secret for your app.  This can be any secret pass phrase you deem appropriate.

Then at [Tendril's developer site](https://dev.tendrilinc.com), create an app to acquire an OAuth2 app id and key.  Further edit env.coffee to add your app id and secret.  At this point you should be ready to start the server like so:

	./server [server port]

Or:

	coffee ./app/server.coffee [server port]

The server will start on port 3001, unless you optionally specify your own port in the commands above.

{'fraction_non_alphanumeric': 0.0776275621456607, 'fraction_numerical': 0.006105538595726123, 'mean_word_length': 4.075221238938053, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 4, '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': '6042506', 'n_tokens_mistral': 716, 'n_tokens_neox': 672, 'n_words': 305}