<commit_before>var express = require('express');
var path = require('path');
var fs = require('fs');

var app = express();
//写一个static中间件
app.use(function(req,res,next){
    //fs.createReadStream((__dirname+'/public'+req.url).pipe(res));
});
//path.resolve('public') == __dirname+'/public'
app.use(express.static(path.resolve('public')));

app.listen(8080);<commit_msg>static<commit_after>var express = require('express');
var path = require('path');
var fs = require('fs');

var app = express();
//写一个static中间件
app.use(function(req,res,next){
    //fs.createReadStream((__dirname+'/public'+req.url).pipe(res));
});
//path.resolve('public') == __dirname+'/public'
app.use(express.static(path.resolve('public')));

app.listen(9090);
{'fraction_non_alphanumeric': 0.2270861833105335, 'fraction_numerical': 0.01094391244870041, 'mean_word_length': 6.705263157894737, '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': '1431039', 'n_tokens_mistral': 253, 'n_tokens_neox': 249, 'n_words': 37}