<commit_before>var express    = require('express');
var cors       = require('cors');
var bodyParser = require('body-parser')
var fs         = require('fs');
var app = new express();

app.use(cors());
app.use(bodyParser.json());

app.get("/api/:path", function(req,res){
  fs.readFile('./json/' + req.params.path, function(err, data){
    if(err)
      res.end();
    else
      res.end(data);
  });
})<commit_msg>init server<commit_after>var express    = require('express');
var cors       = require('cors');
var bodyParser = require('body-parser')
var fs         = require('fs');
var app = new express();

app.use(cors());
app.use(bodyParser.json());

app.get("/api/:path", function(req,res){
  fs.readFile('./json/' + req.params.path + '.json', function(err, data){
    if(err)
      res.end();
    else
      res.end(data);
  });
})

app.listen(8080);
{'fraction_non_alphanumeric': 0.21052631578947367, 'fraction_numerical': 0.004678362573099415, 'mean_word_length': 3.4123711340206184, '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': '1720956', 'n_tokens_mistral': 294, 'n_tokens_neox': 292, 'n_words': 59}