<commit_before>var debug = require('debug')('hip-client'),
    extend = require('amp-extend'),
    HipChatter = require('hipchatter');

function HipClient(token) {
  this.hipchatter = new HipChatter(token);
}

HipClient.prototype.sendDirectMessage =
  /**
   * This function is responsible for invoking the API described here:
   * https://www.hipchat.com/docs/apiv2/method/private_message_user
   */
  function(user, content, options, callback) {
    var optionsToUse = extend({ message: content }, options);
    debug('sendDirectMessage')
    debug('user: "' + user + '"');
    debug('content: "' + content + '"');
    debug('options');
    debug(optionsToUse);
    this.hipchatter.send_private_message(user, optionsToUse, callback);
  };

HipClient.prototype.sendRoomMessage =
  /**
   * This function is responsible for invoking the API described here:
   * https://www.hipchat.com/docs/apiv2/method/send_room_notification
   */
  function(room, content, options, callback) {
    var optionsToUse = extend({ message: content }, options);
    debug('sendRoomMessage')
    debug('room: "' + room + '"');
    debug('content: "' + content + '"');
    debug('options');
    debug(optionsToUse);
    this.hipchatter.notify(room, optionsToUse, callback);
  };

function client(token) {
  function stdoutCallback(err, response) {
    if (err) {
      console.log('Problem: ' + err);
    }
    if (response) {
      console.log('Response: "' + response + '"');
    }
  }<commit_msg>[hip-client] Added slight changes to pass jshint<commit_after>var debug = require('debug')('hip-client'),
    extend = require('amp-extend'),
    HipChatter = require('hipchatter');

function HipClient(token) {
  this.hipchatter = new HipChatter(token);
}

HipClient.prototype.sendDirectMessage =
  /**
   * This function is responsible for invoking the API described here:
   * https://www.hipchat.com/docs/apiv2/method/private_message_user
   */
  function(user, content, options, callback) {
    var optionsToUse = extend({ message: content }, options);
    debug('sendDirectMessage');
    debug('user: "' + user + '"');
    debug('content: "' + content + '"');
    debug('options');
    debug(optionsToUse);
    this.hipchatter.send_private_message(user, optionsToUse, callback);
  };

HipClient.prototype.sendRoomMessage =
  /**
   * This function is responsible for invoking the API described here:
   * https://www.hipchat.com/docs/apiv2/method/send_room_notification
   */
  function(room, content, options, callback) {
    var optionsToUse = extend({ message: content }, options);
    debug('sendRoomMessage');
    debug('room: "' + room + '"');
    debug('content: "' + content + '"');
    debug('options');
    debug(optionsToUse);
    this.hipchatter.notify(room, optionsToUse, callback);
  };

function client(token) {
  function stdoutCallback(err, response) {
    if (err) {
      console.log('Problem: ' + err);
    }
    if (response) {
      console.log('Response: "' + response + '"');
    }
  }
{'fraction_non_alphanumeric': 0.1561350718823136, 'fraction_numerical': 0.0013373453694416582, 'mean_word_length': 3.825806451612903, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 4, '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': '1308274', 'n_tokens_mistral': 916, 'n_tokens_neox': 902, 'n_words': 184}