<commit_before>export default class Store {
  constructor(name, cb) {
    this._dbName = name;
    const dumpData = [
      {id: '2121', title: 'Task 1'},
      {id: '2122', title: 'Task 2'},
      {id: '2123', title: 'Task 3'}
    ];

    if(!window.localStorage[name]) {
      const data = {
        tasks: dumpData,
        completed: []
      };

      localStorage[name] = JSON.stringify(data);
    }

    if(cb) {
      cb.call(this, JSON.parse(localStorage[name]));
    }
  }

  findAll(cb) {
    if (cb) {
      cb.call(this, JSON.parse(localStorage[this._dbName]).tasks);
    }
  }

  find(query, cb) {
    const data = JSON.parse(localStorage[this._dbName]);
    const tasks = data.tasks;

    cb.call(this, tasks.filter(task => {
      for (let key in query) {
        if(query[key] !== task[key]) {
          return false;
        }
      }
      return true;
    }));
  }
<commit_msg>Updated temporary dumpData<commit_after>export default class Store {
  constructor(name, cb) {
    this._dbName = name;
    const dumpData = [
      {id: '2121', title: 'Task 1', completed: false},
      {id: '2122', title: 'Task 2', completed: true},
      {id: '2123', title: 'Task 3', completed: false}
    ];

    if(!window.localStorage[name]) {
      const data = {
        tasks: dumpData
      };

      localStorage[name] = JSON.stringify(data);
    }

    if(cb) {
      cb.call(this, JSON.parse(localStorage[name]));
    }
  }

  findAll(cb) {
    if (cb) {
      cb.call(this, JSON.parse(localStorage[this._dbName]).tasks);
    }
  }

  find(query, cb) {
    const data = JSON.parse(localStorage[this._dbName]);
    const tasks = data.tasks;

    cb.call(this, tasks.filter(task => {
      for (let key in query) {
        if(query[key] !== task[key]) {
          return false;
        }
      }
      return true;
    }));
  }

{'fraction_non_alphanumeric': 0.1622210125204137, 'fraction_numerical': 0.01633097441480675, 'mean_word_length': 2.2189141856392296, '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': '7019848', 'n_tokens_mistral': 652, 'n_tokens_neox': 623, 'n_words': 131}