<commit_before>export default Ember.Route.extend({
  controllerName: 'run_request',
  templateName: 'run_request',
  shortcuts: {
    'ctrl+enter': 'submit'
  },
  actions: {
    submit: function() {
      this.controller.send('submit');
    }
  },
  setupController: function(controller, model) {
    var request = this.store.createRecord('run-request', {
          language: model.get('language'),
          version: model.get('version'),
          code: model.get('code')
        }),
        title = 'Compile & run code in ' + model.languageName();
    controller.shortcuts.get('filters').clear();
    controller.set('model', request);
    controller.set('languages', this.store.find('language'));
    controller.set('languageId', model.get('language'));
    this.controllerFor('application').set('title', title);
    document.title = title;
  }
});
<commit_msg>Return to run on escape in edit view<commit_after>export default Ember.Route.extend({
  controllerName: 'run_request',
  templateName: 'run_request',
  shortcuts: {
    'ctrl+enter': 'submit',
    'esc': 'showRun'
  },
  actions: {
    submit: function() {
      this.controller.send('submit');
    },
    showRun: function() {
      this.transitionTo('run', this.get('run'));
    }
  },
  setupController: function(controller, model) {
    var request = this.store.createRecord('run-request', {
          language: model.get('language'),
          version: model.get('version'),
          code: model.get('code')
        }),
        title = 'Compile & run code in ' + model.languageName();
    this.set('run', model);
    controller.shortcuts.get('filters').clear();
    controller.set('model', request);
    controller.set('languages', this.store.find('language'));
    controller.set('languageId', model.get('language'));
    this.controllerFor('application').set('title', title);
    document.title = title;
  }
});

{'fraction_non_alphanumeric': 0.17347480106100796, 'fraction_numerical': 0.0, 'mean_word_length': 3.4376470588235293, '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': '6516412', 'n_tokens_mistral': 553, 'n_tokens_neox': 546, 'n_words': 101}