<commit_before>/**/
var http = require('http');
var express = require('express'); 
var fs = require('fs');

/**/
var init = require('./init.js');

/**/
var app = express();
var server = http.createServer(app).listen(process.env.PORT || 3000);

/**/
app.use('/static',  express.static('public'));
app.get('/', function(req, res){
	var data = fs.readFileSync('index.ejs', 'utf-8');

  	res.end(data);
});

var data = require('./data.js');

setTimeout(function(){
	console.log(data.constructions);
}, 10000);<commit_msg>add api<commit_after>/**/
var http = require('http');
var express = require('express'); 
var fs = require('fs');

/**/
var init = require('./init.js');
var datas = require('./data.js');

/**/
var app = express();
var server = http.createServer(app).listen(process.env.PORT || 3000);

/**/
app.use('/static',  express.static('public'));
app.get('/', function(req, res){
	var data = fs.readFileSync('index.ejs', 'utf-8');

  	res.end(data);
});
app.get('/getdata', function(req, res){
  	res.end(datas);
});

var data = require('./data.js');

setTimeout(function(){
	console.log(data.constructions);
}, 10000);
{'fraction_non_alphanumeric': 0.24711111111111111, 'fraction_numerical': 0.017777777777777778, 'mean_word_length': 4.574257425742574, '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': '3443535', 'n_tokens_mistral': 409, 'n_tokens_neox': 386, 'n_words': 79}