<commit_before>#! /usr/bin/env node
/* eslint no-var:0, vars-on-top:0, no-console:0 */

var path = require('path');
var globby = require('globby');
var runner = require('../dist/runner').runner;

var cwd = process.cwd();
var spawnArgs = ['resolve=.bin/protractor'];
var args = process.argv.slice(2);

const addConfigArgs = args.length && args[0][0] === '-';
if (addConfigArgs) {
  spawnArgs.push(path.relative(cwd, path.resolve(__dirname, '../dist/config/conf.js')));
}

var ix = args.indexOf('--specs');
if (ix !== -1) {
  var glob = args[ix + 1];
  var files = globby.sync(glob);
  if (files.length) {
    args[ix + 1] = files.join(',');
  }
}

try {<commit_msg>Fix for 'feeding' globby with an array of patterns (#53)<commit_after>#! /usr/bin/env node
/* eslint no-var:0, vars-on-top:0, no-console:0 */

var path = require('path');
var globby = require('globby');
var { runner } = require('../dist/runner');

var cwd = process.cwd();
var spawnArgs = ['resolve=.bin/protractor'];
var args = process.argv.slice(2);

const addConfigArgs = args.length && args[0][0] === '-';
if (addConfigArgs) {
  spawnArgs.push(path.relative(cwd, path.resolve(__dirname, '../dist/config/conf.js')));
}

var ix = args.indexOf('--specs');
if (ix !== -1) {
  var glob = args[ix + 1];
  // Convert comma seperated string to array if several glob are used
  glob = glob.split(', ');
  var files = globby.sync(glob);
  if (files.length) {
    args[ix + 1] = files.join(',');
  }
}

try {
{'fraction_non_alphanumeric': 0.21160409556313994, 'fraction_numerical': 0.013651877133105802, 'mean_word_length': 3.8543046357615895, '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': '754076', 'n_tokens_mistral': 550, 'n_tokens_neox': 536, 'n_words': 128}