<commit_before>/*globals process */
"use strict";

var express = require('express'),
    path = require('path'),
    config = require('./lib/config'),
    graph = require('ld-graph'),
    url = require('url'),
    app = express(),
    browserify = require('browserify-middleware'),
    Server;

browserify.settings.development("basedir",  "./");
app.use(express.static(path.join(__dirname, '/../public')));

app.get('/js/bundle.js', browserify([
  {'./client/src/search': {"expose": "search"}},
  {'./client/src/work': {"expose": "work"}},
  {'./client/src/person': {"expose": "person"}}
]));

app.get('/config', function (request, response) {
  response.json(config.get(process.env));
});

app.get('/search', function (request, response) {
  response.type(".html");
  response.status(200);
  response.sendFile('search.html', {title: 'Søk', root: __dirname + '/../public/'});
});

app.get('/person/:id', function (request, response) {
  response.type(".html");
  response.status(200);
  response.sendFile('person.html', {title: 'Person', root: __dirname + '/../public/'});
});

app.get('/work/:id', function (request, response) {
  response.type(".html");
  response.status(200);
  response.sendFile('work.html', {title: 'Verk', root: __dirname + '/../public/'});
});

app.get('/version', function (request, response) {
  response.json({'jenkinsId': process.env.JENKINSID, 'gitref': process.env.GITREF})
});

Server = app.listen(process.env.BIND_PORT || 8000, process.env.BIND_IP, function () {
  var host = Server.address().address,
      port = Server.address().port;
  console.log('Server listening at http://%s:%s', host, port);
});<commit_msg>Patron-client: Fix missing semicolon in server.js<commit_after>/*globals process */
"use strict";

var express = require('express'),
    path = require('path'),
    config = require('./lib/config'),
    graph = require('ld-graph'),
    url = require('url'),
    app = express(),
    browserify = require('browserify-middleware'),
    Server;

browserify.settings.development("basedir",  "./");
app.use(express.static(path.join(__dirname, '/../public')));

app.get('/js/bundle.js', browserify([
  {'./client/src/search': {"expose": "search"}},
  {'./client/src/work': {"expose": "work"}},
  {'./client/src/person': {"expose": "person"}}
]));

app.get('/config', function (request, response) {
  response.json(config.get(process.env));
});

app.get('/search', function (request, response) {
  response.type(".html");
  response.status(200);
  response.sendFile('search.html', {title: 'Søk', root: __dirname + '/../public/'});
});

app.get('/person/:id', function (request, response) {
  response.type(".html");
  response.status(200);
  response.sendFile('person.html', {title: 'Person', root: __dirname + '/../public/'});
});

app.get('/work/:id', function (request, response) {
  response.type(".html");
  response.status(200);
  response.sendFile('work.html', {title: 'Verk', root: __dirname + '/../public/'});
});

app.get('/version', function (request, response) {
  response.json({'jenkinsId': process.env.JENKINSID, 'gitref': process.env.GITREF});
});

Server = app.listen(process.env.BIND_PORT || 8000, process.env.BIND_IP, function () {
  var host = Server.address().address,
      port = Server.address().port;
  console.log('Server listening at http://%s:%s', host, port);
});
{'fraction_non_alphanumeric': 0.23342334233423342, 'fraction_numerical': 0.007800780078007801, 'mean_word_length': 4.483552631578948, 'pattern_counts': {'":': 6, '<': 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': '7572089', 'n_tokens_mistral': 1104, 'n_tokens_neox': 1093, 'n_words': 203}