<commit_before>Project Oracle
============

Project Oracle aims at a mash-up application which integrates together other applications such as Flowdock, Google spreadsheets and Pivotal Tracker.

Installation
------------
1. Clone/download the project
2. Configure the application using config file.
The used configuration file is determined by NODE_ENV environment variable. The configuration file path pattern is *config/config.[NODE_ENV].js*.
If NODE_ENV is not issued, the file is *config/config.development.js*.

 Configuration file example:

        var fs = require('fs');
        module.exports = {
        	sslOptions: {
        		key: fs.readFileSync('./ssl/server.key'),
        		cert: fs.readFileSync('./ssl/server.crt')
        	},
        	dbOptions: {
        		options: {
        			database:'database', username:'<username>', 
        			password:'<password>', dialect: '<dialect>', 
        			logging: false
        		},
        		encryptKey:'<encryptkey>',
        		projects: [ 
        			{name: "test", 
        			applications: [ {id: "flowdock", organization: "<organization>", flow: "<flow>"},
        							{id: "pivotal", projectId: "<projectId>"},
        							{id: "googledocs", docs: [{name: "<name>", url: "<url>"}]}], 
        			users: ["<EMAIL>"] }
        		],
        		force: true
        	},
        	sessionSecret: '<SessionSecret>',
        	debug: true,
        	auth: {
        		googleAuth: {<commit_msg>Document SSL cert/key generation<commit_after>Project Oracle
============

Project Oracle aims at a mash-up application which integrates together other applications such as Flowdock, Google spreadsheets and Pivotal Tracker.

Installation
------------
1. Clone/download the project
2. Generate an SSL key and cert for yourself:

        $ mkdir ssl
        $ cd ssl
        $ openssl req -x509 -newkey rsa:2048 -keyout key.pem -out cert.pem -days 1000

3. Configure the application using config file.
The used configuration file is determined by NODE_ENV environment variable. The configuration file path pattern is *config/config.[NODE_ENV].js*.
If NODE_ENV is not issued, the file is *config/config.development.js*.

 Configuration file example:

        var fs = require('fs');
        module.exports = {
        	sslOptions: {
        		key: fs.readFileSync('./ssl/key.pem'),
        		cert: fs.readFileSync('./ssl/cert.pem')
        	},
        	dbOptions: {
        		options: {
        			database:'database', username:'<username>',
        			password:'<password>', dialect: '<dialect>',
        			logging: false
        		},
        		encryptKey:'<encryptkey>',
        		projects: [
        			{name: "test",
        			applications: [ {id: "flowdock", organization: "<organization>", flow: "<flow>"},
        							{id: "pivotal", projectId: "<projectId>"},
        							{id: "googledocs", docs: [{name: "<name>", url: "<url>"}]}],
        			users: ["<EMAIL>"] }
        		],
        		force: true
        	},
        	sessionSecret: '<SessionSecret>',
        	debug: true,
        	auth: {
        		googleAuth: {
{'fraction_non_alphanumeric': 0.1396103896103896, 'fraction_numerical': 0.005194805194805195, 'mean_word_length': 2.2603174603174603, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5021224', 'n_tokens_mistral': 958, 'n_tokens_neox': 897, 'n_words': 253}