<commit_before>var cache = {
  storeName: 'cacheStore',
  saveCache: function(object) {
    window.buildfire.localStorage.setItem(`${this.storeName}_${window.bfInstanceId}`, JSON.stringify(object), () => {});
  },
  getCache: function(callback) {
    window.buildfire.localStorage.getItem(`${this.storeName}_${window.bfInstanceId}`, (error, value) => {
      if (error) return callback(error, null);
      callback(null, JSON.parse(value));
    });
  }
};<commit_msg>BF Local storage checking for undefined fix.<commit_after>var cache = {
  storeName: 'cacheStore',
  saveCache: function(object) {
    window.buildfire.localStorage.setItem(`${this.storeName}_${window.bfInstanceId}`, JSON.stringify(object), () => {});
  },
  getCache: function(callback) {
    window.buildfire.localStorage.getItem(`${this.storeName}_${window.bfInstanceId}`, (error, value) => {
      if (error) return callback(error, null);
      callback(null, JSON.parse((typeof value === 'undefined') ? null : value));
    });
  }
};
{'fraction_non_alphanumeric': 0.18109452736318407, 'fraction_numerical': 0.0, 'mean_word_length': 4.883040935672515, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '6388450', 'n_tokens_mistral': 310, 'n_tokens_neox': 311, 'n_words': 50}