<commit_before>/*global Arenite:true*/
Arenite.Storage = function (arenite, storage) {

  var _local;
  var _session;
  var _persistent;

  var _init = function (cb) {
    if (_local !== null) {

      var latch = arenite.async.latch(3, cb, 'storage');

      storage(function (sjs) {
        _local = sjs;
        latch.countDown();
      }, 'LocalStorage');

      storage(function (sjs) {
        _session = sjs;
        latch.countDown();
      }, 'SessionStorage');

      storage(function (sjs) {
        _persistent = sjs;
        latch.countDown();
      });
    }
  };

  return {
    init: _init,
    localStore: _local,
    sessionStore: _session,
    persistentStore: _persistent
  };
};<commit_msg>corrected small bug with the storage extension<commit_after>/*global Arenite:true*/
Arenite.Storage = function (arenite, storage) {

  var _local;
  var _session;
  var _persistent;

  var _init = function (cb) {
    if (_local !== null) {

      var latch = arenite.async.latch(3, cb, 'storage');

      storage(function (sjs) {
        _local = sjs;
        latch.countDown();
      }, 'LocalStorage');

      storage(function (sjs) {
        _session = sjs;
        latch.countDown();
      }, 'SessionStorage');

      storage(function (sjs) {
        _persistent = sjs;
        latch.countDown();
      });
    }
  };

  return {
    init: _init,
    localStore: function () {
      return _local;
    },
    sessionStore: function () {
      return _session;
    },
    persistentStore: function () {
      return _persistent;
    }
  };
};
{'fraction_non_alphanumeric': 0.13423249839434812, 'fraction_numerical': 0.0012845215157353885, 'mean_word_length': 2.2594142259414225, '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': '4310605', 'n_tokens_mistral': 517, 'n_tokens_neox': 500, 'n_words': 112}