<commit_before>var express = require('express')
,   app = express()
,   http = require('http').Server(app)
, compress = require('compression')
,   fs = require('fs')
;

app.use(compress({
  threshold: 512
}));

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

app.get('/', function (req, res){
    res.sendfile('index.html');
});
app.get('/redirect.css', function (req, res) {
    res.redirect('/css/style.css');
});

exports.start = function (port) {
    port = port || 3001;
    http.listen(port, function(){
        console.log('listening on *:' + port);
    });
};

exports.close = function () {
    http.close();
};<commit_msg>allowing to run test server with different static files path<commit_after>var express = require('express')
,   app = express()
,   http = require('http').Server(app)
, compress = require('compression')
,   fs = require('fs')
;

app.use(compress({
  threshold: 512
}));


app.get('/', function (req, res){
    res.sendfile('index.html');
});
app.get('/redirect.css', function (req, res) {
    res.redirect('/css/style.css');
});

exports.start = function (port, path) {
    path = path || '/public';
    path =  __dirname + path;
    console.log(path);
    app.use(express.static(path));

    port = port || 3001;
    http.listen(port, function(){
        console.log('listening on *:' + port);
    });
};

exports.close = function () {
    http.close();
};
{'fraction_non_alphanumeric': 0.2053314121037464, 'fraction_numerical': 0.010086455331412104, 'mean_word_length': 3.5841584158415842, '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': '5975024', 'n_tokens_mistral': 467, 'n_tokens_neox': 452, 'n_words': 96}