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

app.set('port', (process.env.PORT || 7069));

var pageData = {
  "devMode": true,
  "javascriptsBase": "/javascripts",
  "stylesheetsBase": "/stylesheets",
  "imagesBase": "/images",
  "applicationName": "Stonecutter",
  "demoAppURL": "http://localhost:7778"
};

app.use('/', express.static(__dirname + '/resources/public'));

app.set('view engine', 'jade');
app.set('views', './assets/jade');

function beforeAllFilter(req, res, next) {
  app.locals.pretty = true;
  console.log(res);
  next();
}

app.all('*', beforeAllFilter);

app.get('/', function(req, res){
  res.render('index', pageData);
});

app.get('/library', function(req, res){
  res.render('library', pageData);
});

app.get('/sign-in', function(req, res){
  res.render('sign-in', pageData);
});

app.get('/register', function(req, res){
  res.render('register', pageData);
});

app.all('/authorise', function(req, res){
  res.render('authorise', pageData);
});

app.get('/forgot-password', function(req, res){
  res.render('forgot-password', pageData);
});

app.get('/profile', function(req, res){
  res.render('profile', pageData);
});


// temp stuff for demo

app.get('/greenparty/register', function(req, res){
  res.render('greenparty/register', pageData);
});
app.get('/greenparty/sign-in', function(req, res){
  res.render('greenparty/sign-in', pageData);
});
app.all('/greenparty/authorise', function(req, res){
  res.render('greenparty/authorise', pageData);
});





app.listen(app.get('port'), function() {
  console.log('Node app is running on port', app.get('port'));
});<commit_msg>Add custom script to remove the ! from all the things<commit_after>var express = require('express');
var app = express();

app.set('port', (process.env.PORT || 7069));

var pageData = {
  "devMode": true,
  "javascriptsBase": "/javascripts",
  "stylesheetsBase": "/stylesheets",
  "imagesBase": "/images",
  "applicationName": "Stonecutter",
  "demoAppURL": "http://localhost:7778"
};

app.use('/', express.static(__dirname + '/resources/public'));

app.set('view engine', 'jade');
app.set('views', './assets/jade');

function beforeAllFilter(req, res, next) {
  app.locals.pretty = true;
  next();
}

app.all('*', beforeAllFilter);

function customRender(res, template, data) {
  res.render(template, data, function (err, html) {
    var cleanHTML = html.replace(/>!/g, '>');
    res.send(cleanHTML);
  });
}

app.get('/', function (req, res) {
  customRender(res, 'index', pageData);
});

app.get('/library', function (req, res) {
  customRender(res, 'library', pageData);
});

app.get('/sign-in', function (req, res) {
  customRender(res, 'sign-in', pageData);
});

app.get('/register', function (req, res) {
  customRender(res, 'register', pageData);
});

app.all('/authorise', function (req, res) {
  customRender(res, 'authorise', pageData);
});

app.get('/forgot-password', function (req, res) {
  customRender(res, 'forgot-password', pageData);
});

app.get('/profile', function (req, res) {
  customRender(res, 'profile', pageData);
});


// temp stuff for demo

app.get('/greenparty/register', function (req, res) {
  customRender(res, 'greenparty/register', pageData);
});
app.get('/greenparty/sign-in', function (req, res) {
  customRender(res, 'greenparty/sign-in', pageData);
});
app.all('/greenparty/authorise', function (req, res) {
  customRender(res, 'greenparty/authorise', pageData);
});


app.listen(app.get('port'), function () {
  console.log('Node app is running on port', app.get('port'));
});
{'fraction_non_alphanumeric': 0.21824838073782032, 'fraction_numerical': 0.004505773021684032, 'mean_word_length': 5.166666666666667, 'pattern_counts': {'":': 12, '<': 3, '<?xml version=': 0, '>': 5, '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': '3576012', 'n_tokens_mistral': 1228, 'n_tokens_neox': 1201, 'n_words': 249}