<commit_before>var app = (function(me) {
  me.engine = (function(me) {
    me.conveyor = (function(me) {
      me.itemFactory = (function(me) {

        var DEFAULTS = Object.freeze({
          CREATION_SPEED_MS: 5000
        });

        var _itemUID = 0;
        var shouldSpeedUp;
        var creationSpeedMS;
        var queueLoopID;

        init();

        function init() {
          me.start = start;
          me.stop = stop;
          me.reset = reset;

          me.requestSpeedIncrease = requestSpeedIncrease;

          reset();
        }

        function start() {
          queueCreateItem();
        }

        function stop() {
          clearTimeout(queueLoopID);
        }

        function requestSpeedIncrease() {
          shouldSpeedUp = true;
        }

        function reset() {
          shouldSpeedUp = false;
          creationSpeedMS = DEFAULTS.CREATION_SPEED_MS;
        }

        function queueCreateItem() {
          createNextItem();

          if (shouldSpeedUp) {
            shouldSpeedUp = false;
            performSpeedUpLogic();
          }

          queueLoopID = setTimeout(queueCreateItem, creationSpeedMS);
        }

        function performSpeedUpLogic() {
          creationSpeedMS *= 0.9;
        }

        function createNextItem() {
          var type;
          if (Math.random() * 10 > 5) {
            type = 'ball';
          } else {
            type = 'gift';
          }
          createItem(type);
        }<commit_msg>Bound data<commit_after>var app = (function(me) {
  me.engine = (function(me) {
    me.conveyor = (function(me) {
      me.itemFactory = (function(me) {

        var DEFAULTS = Object.freeze({
          CREATION_SPEED_MS: 3000
        });

        var _itemUID = 0;
        var shouldSpeedUp;
        var creationSpeedMS;
        var queueLoopID;

        init();

        function init() {
          me.start = start;
          me.stop = stop;
          me.reset = reset;

          me.requestSpeedIncrease = requestSpeedIncrease;

          reset();
        }

        function start() {
          queueCreateItem();
        }

        function stop() {
          clearTimeout(queueLoopID);
        }

        function requestSpeedIncrease() {
          shouldSpeedUp = true;
        }

        function reset() {
          shouldSpeedUp = false;
          creationSpeedMS = DEFAULTS.CREATION_SPEED_MS;
        }

        function queueCreateItem() {
          createNextItem();

          if (shouldSpeedUp) {
            shouldSpeedUp = false;
            performSpeedUpLogic();
          }

          queueLoopID = setTimeout(queueCreateItem, adjustForVariance(creationSpeedMS));
        }

        function adjustForVariance(speed) {
          return (speed * (Math.random() + 1));
        }

        function performSpeedUpLogic() {
          creationSpeedMS *= 0.9;
        }

        function createNextItem() {
          var type;
          if (Math.random() * 10 > 5) {
            type = 'ball';
          } else {
            type = 'gift';
          }
          createItem(type);
        }
{'fraction_non_alphanumeric': 0.09977324263038549, 'fraction_numerical': 0.006802721088435374, 'mean_word_length': 1.4664536741214058, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '4216577', 'n_tokens_mistral': 888, 'n_tokens_neox': 833, 'n_words': 167}