<commit_before>var express = require('express')
var app = express()
var bodyParser= require('body-parser') 

app.use(bodyParser.urlencoded({extended:true}));

app.get('/', function (req, res) {
	res.send('Hello World!')
})

app.listen(3000, function() {	
	console.log('Example app listening on port 3000!')
})

app.post('/post',function (req,res){
	res.send('you posted :'+ req.body.name)<commit_msg>support json via body parser<commit_after>var express = require('express')
var app = express()
var bodyParser= require('body-parser') 

app.use(bodyParser.urlencoded({extended:true}));
app.use(bodyParser.json());

app.get('/', function (req, res) {
	res.send('Hello World!')
})

app.listen(3000, function() {	
	console.log('Example app listening on port 3000!')
})

app.post('/post',function (req,res){
	res.send('you posted :'+ req.body.name)
{'fraction_non_alphanumeric': 0.1933570581257414, 'fraction_numerical': 0.018979833926453145, 'mean_word_length': 5.918032786885246, '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': '1123369', 'n_tokens_mistral': 299, 'n_tokens_neox': 279, 'n_words': 62}