<commit_before>'use strict';

const Promise = require('bluebird'),
    mlb = require('../utils/mlb');

/**
 * @name cornelius.getRoster
 * @description Takes a team's ID and returns their 40 man roster.
 *
 * `options` should be an object.
 * If you provide no team ID, or an incorrect one, `getRoster` returns an empty array.
 * @summary Get a team's 40 man roster.
 *
 * @public
 * @param {Object} options - Options object.
 * @param {string} options.team_id - Team's ID.
 * @param {boolean} [options.short=false] - Return full player info with roster.
 * @param {boolean} [options.prune=true] - Prune the data.
 * @returns {Array | Object} - Pruned roster *or* MLB `roster_40` JSON data.
 * @example <caption>Get a team's roster by ID</caption>
 * cornelius.getRoster({ team_id: '121 }) // New York Mets
 *   .then(function (data) {
 *     // do stuff with roster data
 *   })<commit_msg>add missing quotemark<commit_after>'use strict';

const Promise = require('bluebird'),
    mlb = require('../utils/mlb');

/**
 * @name cornelius.getRoster
 * @description Takes a team's ID and returns their 40 man roster.
 *
 * `options` should be an object.
 * If you provide no team ID, or an incorrect one, `getRoster` returns an empty array.
 * @summary Get a team's 40 man roster.
 *
 * @public
 * @param {Object} options - Options object.
 * @param {string} options.team_id - Team's ID.
 * @param {boolean} [options.short=false] - Return full player info with roster.
 * @param {boolean} [options.prune=true] - Prune the data.
 * @returns {Array | Object} - Pruned roster *or* MLB `roster_40` JSON data.
 * @example <caption>Get a team's roster by ID</caption>
 * cornelius.getRoster({ team_id: '121' }) // New York Mets
 *   .then(function (data) {
 *     // do stuff with roster data
 *   })
{'fraction_non_alphanumeric': 0.14014517029592408, 'fraction_numerical': 0.010050251256281407, 'mean_word_length': 3.536708860759494, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '5676224', 'n_tokens_mistral': 603, 'n_tokens_neox': 563, 'n_words': 208}