<commit_before>var request = require('request');
var errors = require('./errors.js');

var Client = function() {
  this.initialize.apply(this, arguments);
};

Client.prototype = {
  baseUrl: 'https://analytics.getstream.io/analytics/v1.0/',

  initialize: function(cfg) {
    var configs = cfg || {};
    if (!configs.apiKey || !configs.token) {
      throw new errors.MisconfiguredClient('the client must be initialized with apiKey and token');
    }

    this.apiKey = configs.apiKey;
    this.token = configs.token;
  },
<commit_msg>Updated base URL to getstream-io-api<commit_after>var request = require('request');
var errors = require('./errors.js');

var Client = function() {
  this.initialize.apply(this, arguments);
};

Client.prototype = {
  baseUrl: 'https://analytics.stream-io-api.com/analytics/v1.0/',

  initialize: function(cfg) {
    var configs = cfg || {};
    if (!configs.apiKey || !configs.token) {
      throw new errors.MisconfiguredClient('the client must be initialized with apiKey and token');
    }

    this.apiKey = configs.apiKey;
    this.token = configs.token;
  },

{'fraction_non_alphanumeric': 0.15272727272727274, 'fraction_numerical': 0.0036363636363636364, 'mean_word_length': 3.6851063829787236, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '1145319', 'n_tokens_mistral': 353, 'n_tokens_neox': 348, 'n_words': 78}