<commit_before>import * as d3 from 'd3';

import  { observable, computed } from 'mobx';

export default class Store {
    //Autorun is a function from MobX that runs everytime that something inside is
    name = "blah";
    @observable numClicks = 0;

    //  @computed get oddOrEven() {
    //      return this.numClicks % 2 === 0 ? 'even' : 'odd'
    //  }

    //    var data = d3.csvParse(string);
    //psv = d3.dsvFormat("|");

    //muumble = psv.parse("foo|bar\n1|2");

    @observable experiments =  d3.csv.parse("morley.csv", function(error, experiments) {
        experiments.forEach(function(x) {
            x.Speed = +x.Speed;
        });
    });

}<commit_msg>data loading<commit_after>import * as d3 from 'd3';

import  { observable, computed } from 'mobx';

export default class Store {
    //Autorun is a function from MobX that runs everytime that something inside is
   // name = "blah";
   // @observable numClicks = 0;

    //  @computed get oddOrEven() {
    //      return this.numClicks % 2 === 0 ? 'even' : 'odd'
    //  }

    //    var data = d3.csvParse(string);
    //psv = d3.dsvFormat("|");

//    muumble = psv.parse("foo|bar\n1|2");

    @observable experiments =  d3.csv.parse("morley.csv", function(error, experiments) {
        experiments.forEach(function(x) {
            x.Speed = +x.Speed;
        });
    });

                                          // ndx = crossfilter(experiments);
}
{'fraction_non_alphanumeric': 0.15244755244755245, 'fraction_numerical': 0.013986013986013986, 'mean_word_length': 2.1941964285714284, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2442956', 'n_tokens_mistral': 489, 'n_tokens_neox': 471, 'n_words': 115}