<commit_before>var http = require('http')
var port = 80
var host = 'theblacksea.cc'

var server = http.createServer(function  (req,res) {
  if (req.headers.host === 'git.'+host) {
    console.log('git service req')
    console.log(req.method)
    res.end('git service req')
  }
  if (req.method === 'POST') {
    console.log(req.headers)
    req.on('data', function (d) {
      console.log(d)
    })
    req.on('end', function () {
      console.log(req.headers)
    })
  } else {
    res.statusCode = 404
    res.end('error 404')
  }
})
server.listen(port,host, function () {
  console.log('listening on port: '+port+' and host: '+host)
})
<commit_msg>log with toString in case of binary buffer<commit_after>var http = require('http')
var port = 80
var host = 'theblacksea.cc'

var server = http.createServer(function  (req,res) {
  if (req.headers.host === 'git.'+host) {
    console.log('git service req')
    console.log(req.method)
    res.end('git service req')
  }
  if (req.method === 'POST') {
    console.log(req.headers)
    req.on('data', function (d) {
      console.log(d)
      console.log(d.toString())
    })
    req.on('end', function () {
      console.log(req.headers)
    })
  } else {
    res.statusCode = 404
    res.end('error 404')
  }
})
server.listen(port,host, function () {
  console.log('listening on port: '+port+' and host: '+host)
})

{'fraction_non_alphanumeric': 0.1799561082662765, 'fraction_numerical': 0.011704462326261888, 'mean_word_length': 3.108108108108108, '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': '267181', 'n_tokens_mistral': 500, 'n_tokens_neox': 482, 'n_words': 104}