<commit_before>var express = require('express');
var path = require('path');

//var favicon = require('serve-favicon');
//var logger = require('morgan');
//var cookieParser = require('cookie-parser');
//var bodyParser = require('body-parser');

var app = express();

GLOBAL.db = './gallery.db';
GLOBAL.captchaSessionTime = 600000; // 10 minutes
GLOBAL.maxSize = 50000000; // ~50 MByte
GLOBAL.maxScenesOnFrontPage = 100;
GLOBAL.root = __dirname;



var sqlite3 = require('sqlite3').verbose();

app.engine('.html', require('ejs').__express);
app.set('views', path.join(__dirname, 'views'));
app.set('view engine', 'html');

// uncomment after placing your favicon in /public
//app.use(favicon(__dirname + '/public/favicon.ico'));

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

var db = new sqlite3.Database( GLOBAL.db );
db.serialize(function() {
	db.run("CREATE TABLE IF NOT EXISTS scene ( id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, email TEXT NOT NULL, description TEXT NOT NULL, name TEXT NOT NULL, nickname TEXT NOT NULL, location TEXT NOT NULL, timestamp TEXT NOT NULL, removehash TEXT NOT NULL, images INT NOT NULL )");
	db.run("CREATE TABLE IF NOT EXISTS captcha_session ( token TEXT PRIMARY KEY NOT NULL, timestamp INTEGER NOT NULL )");
});
db.close();



//show newest Scenes
var main = require('./routes/main');
app.get('/play/gallery', main);

//upload Scenes
var upload = require('./routes/upload' );
app.post('/play/gallery/upload', upload);

//check captcha
var captcha = require('./routes/captcha' );
app.get('/play/gallery/captchacheck', captcha);

//download Scenes
var download = require('./routes/download' );
app.get('/play/gallery/download', download);<commit_msg>Test a new branch<commit_after>var express = require('express');
var path = require('path');

//var favicon = require('serve-favicon');
//var logger = require('morgan');
//var cookieParser = require('cookie-parser');
//var bodyParser = require('body-parser');
// Matej's code
var app = express();

GLOBAL.db = './gallery.db';
GLOBAL.captchaSessionTime = 600000; // 10 minutes
GLOBAL.maxSize = 50000000; // ~50 MByte
GLOBAL.maxScenesOnFrontPage = 100;
GLOBAL.root = __dirname;



var sqlite3 = require('sqlite3').verbose();

app.engine('.html', require('ejs').__express);
app.set('views', path.join(__dirname, 'views'));
app.set('view engine', 'html');

// uncomment after placing your favicon in /public
//app.use(favicon(__dirname + '/public/favicon.ico'));

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

var db = new sqlite3.Database( GLOBAL.db );
db.serialize(function() {
	db.run("CREATE TABLE IF NOT EXISTS scene ( id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, email TEXT NOT NULL, description TEXT NOT NULL, name TEXT NOT NULL, nickname TEXT NOT NULL, location TEXT NOT NULL, timestamp TEXT NOT NULL, removehash TEXT NOT NULL, images INT NOT NULL )");
	db.run("CREATE TABLE IF NOT EXISTS captcha_session ( token TEXT PRIMARY KEY NOT NULL, timestamp INTEGER NOT NULL )");
});
db.close();

var db = new sqlite3.Database('./database.sqlite3');
 db.run ("CREATE TABLE IF NOT EXISTS users ( id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,username TEXT NOT NULL,password TEXT NOT NULL, salt TEXT NOT NULL ) ");
 db.close();



//show newest Scenes
var main = require('./routes/main');
app.get('/play/gallery', main);

//upload Scenes
var upload = require('./routes/upload' );
app.post('/play/gallery/upload', upload);

//check captcha
var captcha = require('./routes/captcha' );
app.get('/play/gallery/captchacheck', captcha);

//download Scenes
var download = require('./routes/download' );
app.get('/play/gallery/download', download);
{'fraction_non_alphanumeric': 0.16068001096791884, 'fraction_numerical': 0.013709898546750754, 'mean_word_length': 4.864951768488746, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, 'word_list_counts': {'cursed_substrings.json': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5588797', 'n_tokens_mistral': 1170, 'n_tokens_neox': 1094, 'n_words': 341}