<commit_before>import alt from '../alt'
import Actions from '../actions/Actions'

// The store for people
// This stores all of the people in an array
class PersonStore {
  constructor() {
    this.bindAction(Actions.addPerson, this.onAddPerson);
    this.bindAction(Actions.deletePerson, this.onDeletePerson);
    this.people = JSON.parse(localStorage.getItem('people')) || [{name:'Example',desc:'This is an example person.'}];
  }
  onAddPerson(person) {
    this.people.push(person);
    localStorage.setItem('people', JSON.stringify(this.people));
  }
  onDeletePerson(index) {
    this.people.splice(index, 1);
    localStorage.removeItem('people', JSON.stringify(this.people));
  }
  static getPeople() {
    return {
      people: this.getState().people<commit_msg>quick fix for people deletion<commit_after>import alt from '../alt'
import Actions from '../actions/Actions'

// The store for people
// This stores all of the people in an array
class PersonStore {
  constructor() {
    this.bindAction(Actions.addPerson, this.onAddPerson);
    this.bindAction(Actions.deletePerson, this.onDeletePerson);
    this.people = JSON.parse(localStorage.getItem('people')) || [{name:'Example',desc:'This is an example person.'}];
  }
  onAddPerson(person) {
    this.people.push(person);
    localStorage.setItem('people', JSON.stringify(this.people));
  }
  onDeletePerson(index) {
    this.people.splice(index, 1);
    localStorage.setItem('people', JSON.stringify(this.people));
  }
  static getPeople() {
    return {
      people: this.getState().people
{'fraction_non_alphanumeric': 0.1438664097623635, 'fraction_numerical': 0.0012845215157353885, 'mean_word_length': 4.210702341137123, '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': '4306821', 'n_tokens_mistral': 464, 'n_tokens_neox': 460, 'n_words': 101}