<commit_before>import { observable, action } from 'mobx'
import { FolderDocument, NoteDocument, Note, Folder } from '../lib/db/dataTypes'

export default class Storage {
  @observable folderMap: Map<string, FolderDocument> = new Map()
  @observable noteMap: Map<string, NoteDocument> = new Map()

  @action addFolder (...folders: FolderDocument[]) {
    folders.forEach(folder => {
      this.folderMap.set(folder._id, folder)
    })
  }

  @action removeFolder (id: string) {
    this.folderMap.delete(id)
  }

  @action addNote (...notes: NoteDocument[]) {
    notes.forEach(note => {<commit_msg>Fix data types used in Storage<commit_after>import { observable, action } from 'mobx'
import { Note, Folder } from '../lib/db/dataTypes'

export default class Storage {
  @observable folderMap: Map<string, Folder> = new Map()
  @observable noteMap: Map<string, Note> = new Map()

  @action addFolder (...folders: Folder[]) {
    folders.forEach(folder => {
      this.folderMap.set(folder._id, folder)
    })
  }

  @action removeFolder (id: string) {
    this.folderMap.delete(id)
  }

  @action addNote (...notes: Note[]) {
    notes.forEach(note => {
{'fraction_non_alphanumeric': 0.1476976542137272, 'fraction_numerical': 0.0, 'mean_word_length': 3.760330578512397, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 11, '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': '7558713', 'n_tokens_mistral': 373, 'n_tokens_neox': 364, 'n_words': 93}