<commit_before>var http = require('http');
var express = require('express');
var routes = require('./routes');
var app = express();

app.use(express.static('../client/dist'));
app.use('/', express.static('../client/dist'));

// Set up Routes for the application
require('./routes/index.js')(app);

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

var server = http.createServer(app);

server.listen(app.get('port'), function () {
    console.log( "Server started; listening on port " + app.get('port') );
});

exports.closeServer = function(){
    server.close();
};// this will we use on the specs run.<commit_msg>[FIX] server: static files path<commit_after>var http = require('http'),
    express = require('express'),
    routes = require('./routes'),
    path = require('path'),
    app = express(),
    server;

app.use(express.static(path.join(__dirname + '/../client/dist')));

// Set up Routes for the application
require('./routes/index.js')(app);

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

server = http.createServer(app);

server.listen(app.get('port'), function () {
    console.log( "Server started; listening on port " + app.get('port') );
});

exports.closeServer = function(){
    server.close();
};// this will we use on the specs run.
{'fraction_non_alphanumeric': 0.20414673046251994, 'fraction_numerical': 0.006379585326953748, 'mean_word_length': 4.229166666666667, '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': '3900011', 'n_tokens_mistral': 389, 'n_tokens_neox': 382, 'n_words': 97}