<commit_before>var specky = require('./index.unspecked');
var isSpec = require('./utils/isSpec');
var isPred = require('./utils/isPred');
var fspec = specky.fspec, cat = specky.cat, keys = specky.keys, zeroOrMore = specky.zeroOrMore;

var specked = specky;
var specked = specThemAll(specky);

function specThemAll (s) {
  var specked = {};

  var fnSpecs = {
    isFn: fspec({args: s.any, ret: s.isBool}),
    keys: fspec({args: cat(keys({req: ['req']})), ret: isSpec}),
    or: fspec({args: zeroOrMore(s.or(isPred, isSpec))}),
    zeroOrMore: fspec({args: cat(s.or(isPred, isSpec))})
  };

  //apply fn specs if it exists
  for (var fnName in specky) {
    if(fnSpecs.hasOwnProperty(fnName)) {
      specked[fnName] = fnSpecs[fnName](specky[fnName]);
    } else {
      specked[fnName] = specky[fnName];
    }
  }
  return specked;
}


// module.exports = specked;
module.exports = specky;<commit_msg>enable specked<commit_after>var specky = require('./index.unspecked');
var isSpec = require('./utils/isSpec');
var isPred = require('./utils/isPred');
var fspec = specky.fspec, cat = specky.cat, keys = specky.keys, zeroOrMore = specky.zeroOrMore;

var specked = specky;
var specked = specThemAll(specky);

function specThemAll (s) {
  var specked = {};

  var fnSpecs = {
    isFn: fspec({args: s.any, ret: s.isBool}),
    keys: fspec({args: cat(keys({req: ['req']})), ret: isSpec}),
    or: fspec({args: zeroOrMore(s.or(isPred, isSpec))}),
    zeroOrMore: fspec({args: cat(s.or(isPred, isSpec))})
  };

  //apply fn specs if it exists
  for (var fnName in specky) {
    if(fnSpecs.hasOwnProperty(fnName)) {
      specked[fnName] = fnSpecs[fnName](specky[fnName]);
    } else {
      specked[fnName] = specky[fnName];
    }
  }
  return specked;
}


module.exports = specked;
// module.exports = specky;
{'fraction_non_alphanumeric': 0.17285318559556787, 'fraction_numerical': 0.0, 'mean_word_length': 3.907608695652174, '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': '172253', 'n_tokens_mistral': 720, 'n_tokens_neox': 683, 'n_words': 146}