<commit_before>minispade.register('app', function() {

  RiakCsControl = Ember.Application.create();

  $("body").bind("ajaxSend", function(elm, xhr, s){
    var csrf_token = $('meta[name=csrf_token]').attr('content');

    if (s.type === 'POST' || s.type === 'PUT') {
        xhr.setRequestHeader('X-CSRF-Token', csrf_token);
    }
  });

  DS.Model.reopen({
    reload: function() {
      var store = this.get('store');
      store.get('adapter').find(store, this.constructor, this.get('id'));
      }
  });

  DS.RecordArray.reopen({
    reload: function() {
      Ember.assert("Can only reload base RecordArrays",
        this.constructor === DS.RecordArray);
      var store = this.get('store');
      store.get('adapter').findAll(store, this.get('type'));
      }
  });

  RiakCsControl.Store = DS.Store.extend({
    revision: 11,
    adapter: DS.RESTAdapter.create()
  });<commit_msg>Debugging.<commit_after>minispade.register('app', function() {

  RiakCsControl = Ember.Application.create({
    LOG_TRANSITIONS: true
  });

  $("body").bind("ajaxSend", function(elm, xhr, s){
    var csrf_token = $('meta[name=csrf_token]').attr('content');

    if (s.type === 'POST' || s.type === 'PUT') {
        xhr.setRequestHeader('X-CSRF-Token', csrf_token);
    }
  });

  DS.Model.reopen({
    reload: function() {
      var store = this.get('store');
      var adapter = store.get('adapter');
      adapter.find(store, this.constructor, this.get('id'));
    }
  });

  DS.RecordArray.reopen({
    reload: function() {
      Ember.assert("Can only reload base RecordArrays",
        this.constructor === DS.RecordArray);
      var store = this.get('store');
      var adapter = store.get('adapter');
      adapter.findAll(store, this.get('type'));
      }
  });

  RiakCsControl.Store = DS.Store.extend({
    revision: 11,
    adapter: DS.RESTAdapter.create()
  });
{'fraction_non_alphanumeric': 0.19185423365487675, 'fraction_numerical': 0.0021436227224008574, 'mean_word_length': 3.195505617977528, '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': '2440058', 'n_tokens_mistral': 644, 'n_tokens_neox': 622, 'n_words': 104}