<commit_before>CD = ClueyData = {
  data: {}, //a hash of model type arrays
  list: function(klass) {
    var key = String(klass);
    var list = this.data[key];
    if(!list) {
      list = this.data[key] =  {};
    }
    return list;
  },
  find: function(klass, id) {
    return this.list(klass)[id];
  },
  save: function(model) {
    this.list(model.constructor)[model.get('id')] = model;
  },
  delete: function(model) {
    delete this.list(model.constructor)[model.get('id')];
  },
  classKeys: function() {
    return Object.keys(this.data);
  },
  serialize: function() {
    var serialized = {};
    var self = this;
    this.classKeys().forEach(function(classKey) {
      var models = self.data[classKey];
      var records = {};<commit_msg>null/undefined mixup<commit_after>CD = ClueyData = {
  data: {}, //a hash of model type arrays
  list: function(klass) {
    var key = String(klass);
    var list = this.data[key];
    if(!list) {
      list = this.data[key] =  {};
    }
    return list;
  },
  find: function(klass, id) {
		res = this.list(klass)[id];
		
		if(typeof(res) === "undefined") {
			return null;
		} else {
			return res;
		}
  },
  save: function(model) {
    this.list(model.constructor)[model.get('id')] = model;
  },
  delete: function(model) {
    delete this.list(model.constructor)[model.get('id')];
  },
  classKeys: function() {
    return Object.keys(this.data);
  },
  serialize: function() {
    var serialized = {};
    var self = this;
    this.classKeys().forEach(function(classKey) {
      var models = self.data[classKey];
      var records = {};
{'fraction_non_alphanumeric': 0.1724137931034483, 'fraction_numerical': 0.0, 'mean_word_length': 2.9407407407407407, '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': '3575845', 'n_tokens_mistral': 550, 'n_tokens_neox': 544, 'n_words': 112}