<commit_before>// Download the Node helper library from twilio.com/docs/node/install
// These consts are your accountSid and authToken from https://www.twilio.com/console
const accountSid = '<KEY>';
const authToken = '<PASSWORD>';
const workspaceSid = 'WSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';
const client = require('twilio')(accountSid, authToken);

client.taskrouter.v1
  .workspaces(workspaceSid)
  .workers
  .cumulativeStatistics()
  .fetch()
  .then(responseData => {
    console.log(responseData.cumulative.reservations_accepted);
  });<commit_msg>Fix: workspace.workers is a method call not a static property<commit_after>// Download the Node helper library from twilio.com/docs/node/install
// These consts are your accountSid and authToken from https://www.twilio.com/console
const accountSid = '<KEY>';
const authToken = '<PASSWORD>';
const workspaceSid = 'WSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';
const client = require('twilio')(accountSid, authToken);

client.taskrouter.v1
  .workspaces(workspaceSid)
  .workers()
  .cumulativeStatistics()
  .fetch()
  .then(responseData => {
    console.log(responseData.cumulative.reservations_accepted);
  });
{'fraction_non_alphanumeric': 0.12131715771230503, 'fraction_numerical': 0.0017331022530329288, 'mean_word_length': 5.4525139664804465, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2141797', 'n_tokens_mistral': 356, 'n_tokens_neox': 349, 'n_words': 83}