<commit_before>var express = require('express')
  , routes = require('./routes')
  , http = require('http')
  , path = require('path')
  , request = require('request')
  , fs = require('fs')

var app = express()

app.configure(function(){
  app.set('port', process.env.PORT || 80)
  app.set('views', __dirname + '/views')
  app.set('view engine', 'ejs')
  app.use(express.favicon(__dirname + '/public/favicon.ico'))
  app.use(express.logger('dev'))
  app.use(express.bodyParser())
  app.use(express.methodOverride())
  app.use(express.cookieParser('photopipe'))
  app.use(express.session())
  app.use(app.router)
  app.use(require('stylus').middleware(__dirname + '/public'))
  app.use(express.static(path.join(__dirname, 'public')))
})

app.configure('development', function(){
  app.use(express.errorHandler())
})


/* GET routes */
app.get('/', routes.index)

/* Instagram Module Routes*/

// Remove or comment them if you don't want instagram support (read-only)
app.get('/instagram', routes.instagram)

app.get('/oauth/instagram', routes.instagram_oauth)


/* POST routes */
app.post('/smoke', routes.smoke)

http.createServer(app).listen(app.get('port'), function(){
  console.log("Express server holdin it down on port " + app.get('port'));
})<commit_msg>Added fb routes<commit_after>var express = require('express')
  , routes = require('./routes')
  , http = require('http')
  , path = require('path')
  , request = require('request')
  , fs = require('fs')
  , everyauth = require('everyauth')

var app = express()

app.configure(function(){
  app.set('port', process.env.PORT || 80)
  app.set('views', __dirname + '/views')
  app.set('view engine', 'ejs')
  app.use(express.favicon(__dirname + '/public/favicon.ico'))
  app.use(express.logger('dev'))
  app.use(express.bodyParser())
  app.use(express.methodOverride())
  app.use(express.cookieParser('photopipe'))
  app.use(express.session())
  app.use(app.router)
  app.use(require('stylus').middleware(__dirname + '/public'))
  app.use(express.static(path.join(__dirname, 'public')))
})

app.configure('development', function(){
  app.use(express.errorHandler())
})


/* GET routes */
app.get('/', routes.index)

/* Instagram Module Routes*/

// Remove or comment them if you don't want instagram support (read-only)
app.get('/instagram', routes.instagram)

app.get('/oauth/instagram', routes.instagram_oauth)

// Remove or comment them if you don't want Facebook support
app.get('/facebook', routes.facebook)

app.get('/facebook/get_photos_from_album', routes.facebook_get_photos_from_album)

app.get('/facebook/get_photos_from_album_id', routes.facebook_get_photos_from_album_id)

app.get('/facebook/get_photo_album_cover', routes.facebook_get_photo_album_cover)

app.get('/oauth/facebook', routes.facebook_oauth)


/* POST routes */
app.post('/smoke', routes.smoke)

http.createServer(app).listen(app.get('port'), function(){
  console.log("Express server holdin it down on port " + app.get('port'));
})
{'fraction_non_alphanumeric': 0.18558437184237117, 'fraction_numerical': 0.0013472549680026945, 'mean_word_length': 5.136363636363637, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3235434', 'n_tokens_mistral': 995, 'n_tokens_neox': 970, 'n_words': 178}