<commit_before>'use strict';
Error.stackTraceLimit = Infinity;
var express = require('express'),
    http = require('http'),
    path = require('path'),
    formage = require('../index');


require('../CompileTempletes.js');

var app = express();

app.set('port', process.env.PORT || 8080);
app.set('mongo', process.env.MONGO_URL || process.env.MONGOLAB_URI || 'mongodb://localhost/formage-admin-example');
app.set("view options", { layout: false, pretty: true });

app.use(express.favicon());
app.use(express.bodyParser());
app.use(express.methodOverride());
app.use(express.cookieParser('magical secret admin'));
app.use(express.cookieSession({cookie: { maxAge: 1000 * 60 * 60 *  24 }}));
app.use(express.static(path.join(__dirname, 'public')));
formage.serve_static(app, express);

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

app.use(app.router);

require('mongoose').connect(app.get('mongo'));
var admin = formage.init(app, express, require('./models'), {
    title: 'Formage-Admin Example'
});

admin.registerAdminUserModel();

app.get('/', function(req, res){
    res.redirect('/admin');
});

http.createServer(app).listen(app.get('port'), function(){
  console.log('Express server listening on port ' + app.get('port'));
});

exports.app = app;
<commit_msg>Configurable title<commit_after>'use strict';
Error.stackTraceLimit = Infinity;
var express = require('express'),
    http = require('http'),
    path = require('path'),
    formage = require('../index');


require('../CompileTempletes.js');

var app = express();

app.set('port', process.env.PORT || 8080);
app.set('mongo', process.env.MONGO_URL || process.env.MONGOLAB_URI || 'mongodb://localhost/formage-admin-example');
app.set("view options", { layout: false, pretty: true });

app.use(express.favicon());
app.use(express.bodyParser());
app.use(express.methodOverride());
app.use(express.cookieParser('magical secret admin'));
app.use(express.cookieSession({cookie: { maxAge: 1000 * 60 * 60 *  24 }}));
app.use(express.static(path.join(__dirname, 'public')));
formage.serve_static(app, express);

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

app.use(app.router);

require('mongoose').connect(app.get('mongo'));
var admin = formage.init(app, express, require('./models'), {
    title: process.env.ADMIN_TITLE || 'Formage-Admin Example'
});

admin.registerAdminUserModel();

app.get('/', function(req, res){
    res.redirect('/admin');
});

http.createServer(app).listen(app.get('port'), function(){
  console.log('Express server listening on port ' + app.get('port'));
});

exports.app = app;

{'fraction_non_alphanumeric': 0.2079646017699115, 'fraction_numerical': 0.01032448377581121, 'mean_word_length': 5.553140096618358, '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': '4842398', 'n_tokens_mistral': 906, 'n_tokens_neox': 866, 'n_words': 152}