<commit_before>var https = require('https');
var projects = require('./lib/projects.js');
var issues = require('./lib/issues.js');
var utilities = require('./lib/utils.js');
var request = require('request');

var Client = function(authToken) {
  this.authToken = authToken;
  this.baseRequest = request.defaults({
    headers: {
      'Content-Type': 'application/json',
      'Authorization': 'Bearer ' + this.authToken
    }
  });
  this.protocol = 'https';
  this.host = 'api.taiga.io';
  this.apiPath = "/api/v1/";
}

Taiga = utilities.init(Client);
Taiga = projects.init(Client);
Taiga = issues.init(Client);

module.exports = {
  Client: Client
}<commit_msg>Integrating changes made in other API sections (issue and response) and converting client object to use nodejs events functionality.<commit_after>var https = require('https');
var projects = require('./lib/projects.js');
var issues = require('./lib/issues.js');
var utilities = require('./lib/utils.js');
var Response = require('./lib/response.js');
var request = require('request');
var util = require('util');
var EventEmitter = require('events').EventEmitter;

var Client = function(authToken) {
  this.authToken = authToken;
  this.baseRequest = request.defaults({
    headers: {
      'Content-Type': 'application/json',
      'Authorization': 'Bearer ' + this.authToken
    }
  });
  this.protocol = 'https';
  this.host = 'api.taiga.io';
  this.apiPath = "/api/v1/";
}

util.inherits(Client, EventEmitter);

Taiga = utilities.init(Client);
Taiga = projects.init(Client);
Taiga = issues.init(Client);

module.exports = {
  Client: Client,
  Response: Response,
  Issue: issues.Issue
}
{'fraction_non_alphanumeric': 0.1656590084643289, 'fraction_numerical': 0.0012091898428053204, 'mean_word_length': 4.237341772151899, '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': '2570531', 'n_tokens_mistral': 519, 'n_tokens_neox': 508, 'n_words': 119}