<commit_before>kernel.api.regulator = def(
  [
  ],

  function () {
    var create = function (oracle) {
      var can = function (id, demand) {
        var r = oracle(id, demand);
        return r.found !== undefined;
      };

      var regulate = function (id, define, require, demand) {
        var r = oracle(id, demand);
        if (r.notfound)
          throw 'assertion error: can should be used to validate before calls to regulate';
        return r.found.regulate(id, define, require, demand);
      };

      return {
        can: can,
        regulate: regulate
      };
    };

    return {
      create: create
    };
  }
);<commit_msg>cleanup; rename modulator.compound to api.regulator, rename modulator.modulate to modulator.get<commit_after>kernel.api.regulator = def(
  [
  ],

  function () {
    var create = function (oracle) {
      var can = function (id, demand) {
        var r = oracle(id, demand);
        return r.found !== undefined;
      };

      var regulate = function (id, define, require, demand) {
        var r = oracle(id, demand);
        if (r.notfound)
          throw 'assertion error: can should be used to validate before calls to regulate';
        return r.found.get(id, define, require, demand);
      };

      return {
        can: can,
        regulate: regulate
      };
    };

    return {
      create: create
    };
  }
);
{'fraction_non_alphanumeric': 0.1173062997827661, 'fraction_numerical': 0.0, 'mean_word_length': 2.024070021881838, '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': '5860445', 'n_tokens_mistral': 422, 'n_tokens_neox': 393, 'n_words': 124}