<commit_before>HospitalCheckup.module("Entities", function(Entities, HospitalCheckup, Backbone, Marionette, $, _){

  Entities.Infection = Backbone.Model.extend({
    defaults: {
      display_name: "No display name found!"
    }
  });

  Entities.InfectionCollection = Backbone.Collection.extend({
    url: "/src/assets/data/infections.json",
    initialize: function(){
      this.model= Entities.Infection;
      this.comparator= "display_name" //sort by
    }
  });

  var infections;
  var API = {
    getInfectionEntities: function(){
      //TODO make sure the data loads over the network, John used `defer`
      if(infections === undefined){
        infections = new Entities.InfectionCollection();
        infections.fetch({
          success: function(data){
            return data
          }
        });
      }
      return infections;
    }
  }<commit_msg>Grunt server serves from src directory<commit_after>HospitalCheckup.module("Entities", function(Entities, HospitalCheckup, Backbone, Marionette, $, _){

  Entities.Infection = Backbone.Model.extend({
    defaults: {
      display_name: "No display name found!"
    }
  });

  Entities.InfectionCollection = Backbone.Collection.extend({
    url: "/assets/data/infections.json",
    initialize: function(){
      this.model= Entities.Infection;
      this.comparator= "display_name" //sort by
    }
  });

  var infections;
  var API = {
    getInfectionEntities: function(){
      //TODO make sure the data loads over the network, John used `defer`
      if(infections === undefined){
        infections = new Entities.InfectionCollection();
        infections.fetch({
          success: function(data){
            return data
          }
        });
      }
      return infections;
    }
  }
{'fraction_non_alphanumeric': 0.11728045325779037, 'fraction_numerical': 0.0, 'mean_word_length': 2.70230607966457, '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': '7468891', 'n_tokens_mistral': 503, 'n_tokens_neox': 497, 'n_words': 115}