<commit_before>var fs = require('fs');
var grunt = require('grunt');
var path = require('path');


exports.getConfigSection = function (cmd, config) {
  return (config || {})[cmd] || {};
};


exports.getArguments = function (cmd, config) {
  var args = [];
  var configSection = exports.getConfigSection(cmd, config);
  var serverPort = exports.getConfigSection('server', config).port || 1111;

  if (cmd === 'phantomjs') {
    args.push(__dirname + '/buster/phantom.js');
    args.push('http://localhost:' + serverPort + '/capture');
    return args;
  }

  if (cmd === 'test') {
    args.push('--server', 'http://localhost:' + serverPort);
  }

  for (var arg in configSection) {
    var value = configSection[arg];
    if (value !== false) {
      args.push('--' + arg);<commit_msg>Change relative `phantom.js` path<commit_after>var fs = require('fs');
var grunt = require('grunt');
var path = require('path');


exports.getConfigSection = function (cmd, config) {
  return (config || {})[cmd] || {};
};


exports.getArguments = function (cmd, config) {
  var args = [];
  var configSection = exports.getConfigSection(cmd, config);
  var serverPort = exports.getConfigSection('server', config).port || 1111;

  if (cmd === 'phantomjs') {
    args.push(__dirname + '/phantom.js');
    args.push('http://localhost:' + serverPort + '/capture');
    return args;
  }

  if (cmd === 'test') {
    args.push('--server', 'http://localhost:' + serverPort);
  }

  for (var arg in configSection) {
    var value = configSection[arg];
    if (value !== false) {
      args.push('--' + arg);
{'fraction_non_alphanumeric': 0.19204042956411876, 'fraction_numerical': 0.00505369551484523, 'mean_word_length': 3.7142857142857144, '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': '2449888', 'n_tokens_mistral': 512, 'n_tokens_neox': 492, 'n_words': 122}