<commit_before>/**
 * Module dependencies.
 */
// express related libs
var express = require('express');
var Query = require('./classes/query');

var backend = require('./routes/backend'); // admin web routes
var frontend = require('./routes/frontend'); // frontend web routes

var videos = require('./routes/api/videos'); // videos API
var audio = require('./routes/api/audio'); // microphone / audio API
var captures = require('./routes/api/captures'); // captures / screenshot API
var sessions = require('./routes/api/sessions'); // session ID API
var logs = require('./routes/api/logs'); // logfiles API
var todos = require('./routes/api/todos'); // todos API
var tasks = require('./routes/api/tasks'); // tasks API

var http = require('http');
var path = require('path');
var passport = require('passport');
var LocalStrategy = require('passport-local').Strategy;
var app = express();

// environments config
app.set('port', process.env.PORT || 3000);
app.set('views', path.join(__dirname, 'views'));
app.set('view engine', 'jade');
app.use(express.bodyParser());
app.use(express.cookieParser()); 
app.use(express.session({secret: 'hipsterbility'}));
app.use(express.favicon());
app.use(express.logger('dev'));
app.use(express.json());
app.use(express.urlencoded());
app.use(express.methodOverride());

// passport authentication
app.use(passport.initialize());
app.use(passport.session());

app.use(app.router);
app.use(express.static(path.join(__dirname, 'public')));

// passport strategy setup
passport.use(new LocalStrategy(
	function(username, password, done) {<commit_msg>added confiig to app.'s to have specific tmp upload folder<commit_after>/**
 * Module dependencies.
 */
// express related libs
var express = require('express');
var Query = require('./classes/query');

var backend = require('./routes/backend'); // admin web routes
var frontend = require('./routes/frontend'); // frontend web routes

var videos = require('./routes/api/videos'); // videos API
var audio = require('./routes/api/audio'); // microphone / audio API
var captures = require('./routes/api/captures'); // captures / screenshot API
var sessions = require('./routes/api/sessions'); // session ID API
var logs = require('./routes/api/logs'); // logfiles API
var todos = require('./routes/api/todos'); // todos API
var tasks = require('./routes/api/tasks'); // tasks API

var http = require('http');
var path = require('path');
var passport = require('passport');
var LocalStrategy = require('passport-local').Strategy;
var app = express();

// environments config
app.set(process.env.TMPDIR = './uploads/tmp');
app.set('port', process.env.PORT || 3000);
app.set('views', path.join(__dirname, 'views'));
app.set('view engine', 'jade');
app.use(express.bodyParser());
app.use(express.cookieParser()); 
app.use(express.session({secret: 'hipsterbility'}));
app.use(express.favicon());
app.use(express.logger('dev'));
app.use(express.json());
app.use(express.urlencoded());
app.use(express.methodOverride());

// passport authentication
app.use(passport.initialize());
app.use(passport.session());

app.use(app.router);
app.use(express.static(path.join(__dirname, 'public')));

// passport strategy setup
passport.use(new LocalStrategy(
	function(username, password, done) {
{'fraction_non_alphanumeric': 0.19263803680981595, 'fraction_numerical': 0.00245398773006135, 'mean_word_length': 5.061338289962825, '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': '2924306', 'n_tokens_mistral': 966, 'n_tokens_neox': 957, 'n_words': 235}