<commit_before>
var FakeStorage = function(){
  this.storage = {};
}; 

FakeStorage.prototype.setGlobal = function (id, payload) {
  this.storage[id] = payload;
};

FakeStorage.prototype.getGlobal = function(id) {
  return this.storage[id];
}

FakeStorage.prototype.set = function (wid, id, payload) {
  this.storage[wid + '-' + id] = payload;
};

FakeStorage.prototype.get = function(wid, id) {
  return this.storage[wid + '-' +id];
}

FakeStorage.prototype.clear = function() {
  delete this['storage'];
}

FakeStorage.prototype.getWalletIds = function() {
  return [];
};

FakeStorage.prototype.setFromObj = function(walletId, obj) {
  for (var i in obj) {
    this.storage[walletId + '-' + i] = obj[i];
  };
};

module.exports = require('soop')(FakeStorage);<commit_msg>trying to fix broken test<commit_after>
var FakeStorage = function(){
  this.storage = {};
}; 

FakeStorage.prototype.setGlobal = function (id, payload) {
  this.storage[id] = payload;
};

FakeStorage.prototype.getGlobal = function(id) {
  return this.storage[id];
}

FakeStorage.prototype.set = function (wid, id, payload) {
  this.storage[wid + '-' + id] = payload;
};

FakeStorage.prototype.get = function(wid, id) {
  return this.storage[wid + '-' +id];
}

FakeStorage.prototype.setFromObj = function(id, wallet) {
  // TODO
};

FakeStorage.prototype.clear = function() {
  delete this['storage'];
}

FakeStorage.prototype.getWalletIds = function() {
  return [];
};

FakeStorage.prototype.setFromObj = function(walletId, obj) {
  for (var i in obj) {
    this.storage[walletId + '-' + i] = obj[i];
  };
};

module.exports = require('soop')(FakeStorage);
{'fraction_non_alphanumeric': 0.17095588235294118, 'fraction_numerical': 0.0, 'mean_word_length': 4.336601307189542, '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': '4007426', 'n_tokens_mistral': 548, 'n_tokens_neox': 551, 'n_words': 105}