<commit_before>App.IndexController = Ember.ObjectController.extend({
  isLoading: false,
  isDisabled: false,
  
  actions: {
    openDoor: function() {
      var self = this;
      self.set('isLoading', true);
      self.set('isDisabled', true);
      
      Ember.$.get('/open_door', function() {
        self.set('isLoading', false);
        // prevent spamming:
        setTimeout(function() {
          self.set('isDisabled', false);
        }, 5000);
      });
    }
  }
});<commit_msg>Put index controller into "use strict"; block.<commit_after>(function() {
  "use strict";
  
  App.IndexController = Ember.ObjectController.extend({
    isLoading: false,
    isDisabled: false,
    
    actions: {
      openDoor: function() {
        var self = this;
        self.set('isLoading', true);
        self.set('isDisabled', true);
        
        Ember.$.get('/open_door', function() {
          self.set('isLoading', false);
          // prevent spamming:
          setTimeout(function() {
            self.set('isDisabled', false);
          }, 5000);
        });
      }
    }
  });
  
}());
{'fraction_non_alphanumeric': 0.1583257506824386, 'fraction_numerical': 0.007279344858962694, 'mean_word_length': 2.0985915492957745, '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': '4225477', 'n_tokens_mistral': 336, 'n_tokens_neox': 327, 'n_words': 61}