<commit_before>/*
 Module dependencies:

 - Express
 - Http (to run Express)
 - Body parser (to parse JSON requests)
 - Underscore (because it's cool)
 - Socket.IO

 It is a common practice to name the variables after the module name.
 Ex: http is the "http" module, express is the "express" module, etc.
 The only exception is Underscore, where we use, conveniently, an
 underscore. Oh, and "socket.io" is simply called io. Seriously, the
 rest should be named after its module name.

 */
var express = require("express")
  , app = express()
  , http = require("http").createServer(app)
  , bodyParser = require("body-parser")
  , io = require("socket.io").listen(http)
  , _ = require("underscore");

var passport = require('passport');
var TwitterStrategy = require('passport-twitter').Strategy;

var session = require('express-session');

var superagent = require('superagent');
require('superagent-oauth')(superagent);
var OAuth = require('oauth');
var helpers = require('express-helpers');
helpers(app);

//Twitter API Keys
var TWITTER_CONSUMER_KEY = "7B7wyCdaM51Kcip9J8PoMLspI";
var TWITTER_CONSUMER_SECRET = "<KEY>";

// models (normally would save to a DB)
function User() {
  this.id = null;

  // we all start off as female, according to
  // https://www.youtube.com/watch?v=z1Kdoja3hlk
  this.firstname = "Jane";

  // but then you might become a guy
  if(Math.random() > 0.51){
    this.firstname = "John";
  }
<commit_msg>oauth<commit_after>/*
 Module dependencies:

 - Express
 - Http (to run Express)
 - Body parser (to parse JSON requests)
 - Underscore (because it's cool)
 - Socket.IO

 It is a common practice to name the variables after the module name.
 Ex: http is the "http" module, express is the "express" module, etc.
 The only exception is Underscore, where we use, conveniently, an
 underscore. Oh, and "socket.io" is simply called io. Seriously, the
 rest should be named after its module name.

 */
var express = require("express")
  , app = express()
  , http = require("http").createServer(app)
  , bodyParser = require("body-parser")
  , io = require("socket.io").listen(http)
  , _ = require("underscore");

var socket = io.connect("http://nodesample-gschilli.rhcloud.com:8000");

var passport = require('passport');
var TwitterStrategy = require('passport-twitter').Strategy;

var session = require('express-session');

var superagent = require('superagent');
require('superagent-oauth')(superagent);
var OAuth = require('oauth');
var helpers = require('express-helpers');
helpers(app);

//Twitter API Keys
var TWITTER_CONSUMER_KEY = "7B7wyCdaM51Kcip9J8PoMLspI";
var TWITTER_CONSUMER_SECRET = "<KEY>";

// models (normally would save to a DB)
function User() {
  this.id = null;

  // we all start off as female, according to
  // https://www.youtube.com/watch?v=z1Kdoja3hlk
  this.firstname = "Jane";

  // but then you might become a guy
  if(Math.random() > 0.51){
    this.firstname = "John";
  }

{'fraction_non_alphanumeric': 0.1341504937010555, 'fraction_numerical': 0.008852570650323459, 'mean_word_length': 4.227758007117438, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '2908033', 'n_tokens_mistral': 967, 'n_tokens_neox': 926, 'n_words': 295}