<commit_before># Chat v2

## Install

1. [Install](http://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager) **Node.js**.

2. Install **npm** with the shell command `curl https://npmjs.org/install.sh | sh` - via [npm README](https://npmjs.org/doc/README.html#Fancy-Install-Unix)

3. [Install](http://wiki.apache.org/couchdb/Installation) **CouchDB**.

4. Download the chat and navigate on the command line to it's directory.

5. Run "npm install" to download all required node_modules defined in package.json

6. Change the HTTP server's port to 80 by searching in server.js for "var port = " (should be at line 273) and changing 9004 to 80.

7. Run server.js with node by typing "node server.js", or if you want to run it as deamon use "nohup node server.js &". That's it!

## Settings

Note: Line numbers may be different.

**HTTP and Socket.io port:** search for "var port = ", line 273

**CouchDB host:** search for "couchDB.host = ", line 200

**CouchDB port:** search for "couchDB.port = ", line 201

**CouchDB database for messages:** search for "messages.DBName = ", line 203<commit_msg>better install instructions<commit_after># Chat v2

## Install

1. [Install](http://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager) **Node.js**.

2. Install **npm** with the shell command `curl https://npmjs.org/install.sh | sh` - via [npm README](https://npmjs.org/doc/README.html#Fancy-Install-Unix)

3. [Install](http://wiki.apache.org/couchdb/Installation) **CouchDB**.

4. Download the chat and navigate on the command line to it's directory.

5. Run `npm install` to download all required node_modules defined in package.json

6. Change the HTTP server's port to 80 by searching in server.js for `var port =` (should be at line 273) and changing 9004 to 80.

7. Run server.js with node by typing `node server.js`, or if you want to run it as deamon use `nohup node server.js &`. That's it!

## Settings

Note: Line numbers may be different.

**HTTP and Socket.io port:** search for `var port =`, line 273

**CouchDB host:** search for `couchDB.host =`, line 200

**CouchDB port:** search for `couchDB.port =`, line 201

**CouchDB database for messages:** search for `messages.DBName =`, line 203
{'fraction_non_alphanumeric': 0.1334527541424093, 'fraction_numerical': 0.027765338110165697, 'mean_word_length': 4.100456621004566, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5156740', 'n_tokens_mistral': 770, 'n_tokens_neox': 702, 'n_words': 275}