<commit_before>var express = require('express')
  , passport = require('passport')
  , pass = require('./app/config/PassPort.js')
  , app = express()
  , userRoutes = require('./app/routes/UserRoutes.js')
  , db = require('./app/DB/DB.js');

//configuration for default env, could be changed for diff deployments
app.configure(function() {
  app.use(express.logger());
  app.use(express.cookieParser());
  app.use(express.bodyParser());
  app.use(express.methodOverride());
  app.use(express.session({
    secret: '42',
  }));
  app.use(passport.initialize());
  app.use(passport.session());
  app.use(app.router);
  app.use(express.static(__dirname + "/public"));
  app.use(express.static(__dirname));
});

//ROUTES
app.get('/', function(req, res) {
  res.sendfile(__dirname + "/index.html");
});

app.post('/user/login', passport.authenticate('local'), userRoutes.postlogin);
app.post('/user/create', userRoutes.postcreate);
app.get('/user/logout', userRoutes.getlogout);
app.get('/user/sample', pass.verifyAuth, userRoutes.getsample);

var port = process.env.PORT || 1234;

//set server to listen on port
app.listen( port );<commit_msg>stripped user auth stuff from index.js<commit_after>var express = require('express')
  , app = express();

//configuration for default env, could be changed for diff deployments
app.configure(function() {
  app.use(express.logger());
  app.use(express.cookieParser());
  app.use(express.bodyParser());
  app.use(express.methodOverride());
  app.use(express.session({
    secret: '42',
  }));
  app.use(app.router);
  app.use(express.static(__dirname + "/public"));
  app.use(express.static(__dirname));
});

//ROUTES
app.get('/', function(req, res) {
  res.sendfile(__dirname + "/index.html");
});

var port = process.env.PORT || 1234;

//set server to listen on port
app.listen( port );
{'fraction_non_alphanumeric': 0.19167579408543264, 'fraction_numerical': 0.0065717415115005475, 'mean_word_length': 4.656346749226006, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6210575', 'n_tokens_mistral': 605, 'n_tokens_neox': 596, 'n_words': 115}