<commit_before>function l(m) { Ember.Logger.log(m); }

var App = Em.Application.create({
  name: "Paramedic",

  ready: function() {
    l(App.name + ' (re)loaded.')
    App.__initialize_page()
    App.__perform_refresh()
    App.__initialize_cubism()
    return this._super()
  },

  elasticsearch_url: function() {
    var location = window.location
    
    return (/_plugin/.test(location.href.toString())) ? location.href.substring(0, location.href.indexOf('/_plugin/') : "http://localhost:9200"
  }(),

  refresh_intervals : Ember.ArrayController.create({
    content: [
      {label: '1 sec',  value: 1000},
      {label: '5 sec',  value: 5000},
      {label: '15 sec', value: 15*1000},
      {label: '1 min',  value: 60*1000},
      {label: '5 min',  value: 5*60*1000},
      {label: '15 min', value: 15*60*1000}<commit_msg>Factor out href extraction and string conversion<commit_after>function l(m) { Ember.Logger.log(m); }

var App = Em.Application.create({
  name: "Paramedic",

  ready: function() {
    l(App.name + ' (re)loaded.')
    App.__initialize_page()
    App.__perform_refresh()
    App.__initialize_cubism()
    return this._super()
  },

  elasticsearch_url: function() {
    var href = window.location.href.toString()
    
    return (/_plugin/.test(href) ? href.substring(0, href.indexOf('/_plugin/') : "http://localhost:9200"
  }(),

  refresh_intervals : Ember.ArrayController.create({
    content: [
      {label: '1 sec',  value: 1000},
      {label: '5 sec',  value: 5000},
      {label: '15 sec', value: 15*1000},
      {label: '1 min',  value: 60*1000},
      {label: '5 min',  value: 5*60*1000},
      {label: '15 min', value: 15*60*1000}
{'fraction_non_alphanumeric': 0.17643540669856458, 'fraction_numerical': 0.05741626794258373, 'mean_word_length': 3.3007712082262213, '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': '5639558', 'n_tokens_mistral': 643, 'n_tokens_neox': 568, 'n_words': 125}