<commit_before>"use strict";
var connect_tokens = require('./connect_tokens');
var contacts = require('./contacts');
var email_addresses = require('./email_addresses');
var messages = require('./messages');
var sync = require('./sync');
var webhooks = require('./webhooks');

module.exports = (function(_callService, account_id) {
  var resource = 'accounts/';
  if (account_id) { resource += account_id + '/'; }

  return {
    get(params) {
      return _callService.get(resource, params);
    },

    post(body, params) {
      return _callService.post(resource, body, params);
    },

    delete() {
      if(!account_id) {
        throw new Error("Missing required parameter id");
      }
      return _callService.delete(resource);
    },

    //Connect Tokens
    connect_tokens(token) {
      return connect_tokens(_callService, account_id, token);
    },

    connectTokens(token) {
      return connect_tokens(_callService, account_id, token);
    },

    //Contacts
    contacts(email) {
      return contacts(_callService, account_id, email);
    },

    //Email Addresses
    email_addresses(email) {
      return email_addresses(_callService, account_id, email)
    },

    emailAddress(email) {
      return email_addresses(_callService, account_id, email)
    },

    //Files
    files(file_id) {
      return files(_callService, account_id, file_id)
    },

    //messages
    messages(message_id) {
      return messages(_callService, account_id, message_id);
    },

    //messages
    sync() {
      return sync(_callService, account_id);
    },

    //messages
    webhooks(webhook_id) {
      return webhooks(_callService, account_id, webhook_id);
    },
  }

});
<commit_msg>Missing require<commit_after>"use strict";
var connect_tokens = require('./connect_tokens');
var contacts = require('./contacts');
var email_addresses = require('./email_addresses');
var files = require('./files');
var messages = require('./messages');
var sync = require('./sync');
var webhooks = require('./webhooks');

module.exports = (function(_callService, account_id) {
  var resource = 'accounts/';
  if (account_id) { resource += account_id + '/'; }

  return {
    get(params) {
      return _callService.get(resource, params);
    },

    post(body, params) {
      return _callService.post(resource, body, params);
    },

    delete() {
      if(!account_id) {
        throw new Error("Missing required parameter id");
      }
      return _callService.delete(resource);
    },

    //Connect Tokens
    connect_tokens(token) {
      return connect_tokens(_callService, account_id, token);
    },

    connectTokens(token) {
      return connect_tokens(_callService, account_id, token);
    },

    //Contacts
    contacts(email) {
      return contacts(_callService, account_id, email);
    },

    //Email Addresses
    email_addresses(email) {
      return email_addresses(_callService, account_id, email)
    },

    emailAddress(email) {
      return email_addresses(_callService, account_id, email)
    },

    //Files
    files(file_id) {
      return files(_callService, account_id, file_id)
    },

    //messages
    messages(message_id) {
      return messages(_callService, account_id, message_id);
    },

    //messages
    sync() {
      return sync(_callService, account_id);
    },

    //messages
    webhooks(webhook_id) {
      return webhooks(_callService, account_id, webhook_id);
    },
  }

});

{'fraction_non_alphanumeric': 0.13236151603498542, 'fraction_numerical': 0.0, 'mean_word_length': 3.0748218527315916, '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': '5363372', 'n_tokens_mistral': 1030, 'n_tokens_neox': 1017, 'n_words': 212}