<commit_before>const https = require('https')

module.exports = (options, data, callback) => {
  let request = https.request(options, response => {
    let output = ''

    response.on('data', chunk => {
      output += chunk
    })

    response.on('end', () => {
      try {
        callback(null, output.toString())
      } catch (exception) {
        callback(exception, null)
      }
    })

    response.on('error', error => {
      console.error(error)
      callback(error, null)
    })
  })

  request.on('error', error => {
    console.error(error)
    callback(error, null)
  })

  if (data) {<commit_msg>Remove an exception<commit_after>const https = require('https')

module.exports = (options, data, callback) => {
  let request = https.request(options, response => {
    let output = ''

    response.on('data', chunk => {
      output += chunk
    })

    response.on('end', () => {
      callback(null, output.toString())
    })

    response.on('error', error => {
      console.error(error)
      callback(error, null)
    })
  })

  request.on('error', error => {
    console.error(error)
    callback(error, null)
  })

  if (data) {
{'fraction_non_alphanumeric': 0.1707105719237435, 'fraction_numerical': 0.0, 'mean_word_length': 2.5869565217391304, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, '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': '5051191', 'n_tokens_mistral': 362, 'n_tokens_neox': 351, 'n_words': 71}