<commit_before>var needle = require('needle');

function Client(base_url, token) {
  this.base_url = base_url
  this.token = token || {}
}

Client.prototype.get = function (path, body, callback) {
  this.__send('get', path, body, callback);
}
Client.prototype.post = function (path, body, callback) {
  this.__send('post', path, body, callback);
}

Client.prototype.put = function (path, body, callback) {
  this.__send('put', path, body, callback);
}

Client.prototype.delete = function (path, body, callback) {
  this.__send('delete', path, body, callback);
}

Client.prototype.__send = function (method, path, body, callback) {
  var headers = { 'X-Ticket-Sharing-Version': '1' }
  if (this.token) {
    headers['X-Ticket-Sharing-Token'] = this.token
  }

  var options = {
    'headers': headers<commit_msg>Use null instead of empty object as {} != false but null == false<commit_after>var needle = require('needle');

function Client(base_url, token) {
  this.base_url = base_url
  this.token = token || null
}

Client.prototype.get = function (path, body, callback) {
  this.__send('get', path, body, callback);
}
Client.prototype.post = function (path, body, callback) {
  this.__send('post', path, body, callback);
}

Client.prototype.put = function (path, body, callback) {
  this.__send('put', path, body, callback);
}

Client.prototype.delete = function (path, body, callback) {
  this.__send('delete', path, body, callback);
}

Client.prototype.__send = function (method, path, body, callback) {
  var headers = { 'X-Ticket-Sharing-Version': '1' }
  if (this.token) {
    headers['X-Ticket-Sharing-Token'] = this.token
  }

  var options = {
    'headers': headers
{'fraction_non_alphanumeric': 0.1610978520286396, 'fraction_numerical': 0.0011933174224343676, 'mean_word_length': 4.340764331210191, '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': '1400787', 'n_tokens_mistral': 542, 'n_tokens_neox': 539, 'n_words': 138}