<commit_before>/**
 * Gets all parameters of a listed parameters (not actual arguments) of a
 * function as an array of strings. In redbarn getParams is exposed as a Lodash
 * mixin.
 *
 * General usage:
 * function foo(bar, baz) {
 *   return bar + baz;
 * };
 * var params = getParams(foo);
 * // params => [ 'bar', 'baz' ]
 *
 * Redbarn usage:
 * function foo(bar, baz) {
 *   return bar + baz;
 * };
 * var params = _.getParams(foo);
 * // params => [ 'bar', 'baz' ]
 *
 * @param {Function} func The function to get parameters for.
 *
 * @return {Array} The names of all parameters in the function.  The array will
 *                 be empty if the function has no listed parameters.
 *
 * @author <NAME>
 * @since 0.1.0
 */
function getParams(func) {
    var text = func.toString(),
        start = text.indexOf('(') + 1,
        end = text.indexOf(')'),
        params = text.slice(start, end).match(/([^\s,]+)/g);
    if (!params) {<commit_msg>Updates JavaScript commentary for get-params.js<commit_after>/**
 * Gets all listed parameters (not actual arguments) of a function as an array
 * of strings. In redbarn getParams is exposed as a Lodash mixin.
 *
 * General usage:
 * function foo(bar, baz) {
 *   return bar + baz;
 * };
 * var params = getParams(foo);
 * // params => [ 'bar', 'baz' ]
 *
 * Redbarn usage:
 * function foo(bar, baz) {
 *   return bar + baz;
 * };
 * var params = _.getParams(foo);
 * // params => [ 'bar', 'baz' ]
 *
 * @param {Function} func The function to get parameters for.
 *
 * @return {Array} The names of all parameters in the function.  The array will
 *                 be empty if the function has no listed parameters.
 *
 * @author <NAME>
 * @since 0.1.0
 */
function getParams(func) {
    var text = func.toString(),
        start = text.indexOf('(') + 1,
        end = text.indexOf(')'),
        params = text.slice(start, end).match(/([^\s,]+)/g);
    if (!params) {
{'fraction_non_alphanumeric': 0.15581031787389266, 'fraction_numerical': 0.004168837936425221, 'mean_word_length': 2.75, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '1198930', 'n_tokens_mistral': 618, 'n_tokens_neox': 610, 'n_words': 213}