<commit_before>'use strict'
const express = require('express')
const Promise = require("bluebird");
const path = require('path');

let app = express()
let readFile_prom = Promise.promisify(require("fs").readFile);
let here = path.join(__dirname, './')

app.get('/', function (req, res) {
    
    readFile_prom(here+'data.json')
        .then(data => res.json(data))
        // res.send('hello world');

});

var startServer = function () {

    var server = app.listen(1500, function () {

        var host = server.address().address
        var port = server.address().port
        console.log('server is listening at http://127.0.0.1:'+port)

    })

}

startServer();<commit_msg>toString method. ugly<commit_after>'use strict'
const express = require('express')
const Promise = require("bluebird");
const path = require('path');

let app = express()
let readFile_prom = Promise.promisify(require("fs").readFile);
let here = path.join(__dirname, './')

app.get('/', function (req, res) {
    
    readFile_prom(here+'data.json')
        .then(function(data){
            let msg = data.toString('utf8')
            res.json(msg)
        });
        // res.send('hello world');

});

var startServer = function () {

    var server = app.listen(1500, function () {

        var host = server.address().address
        var port = server.address().port
        console.log('server is listening at http://127.0.0.1:'+port)

    })

}

startServer();
{'fraction_non_alphanumeric': 0.1712707182320442, 'fraction_numerical': 0.014502762430939226, 'mean_word_length': 3.0588235294117645, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '2173184', 'n_tokens_mistral': 453, 'n_tokens_neox': 438, 'n_words': 100}