<commit_before>`import Ember from 'ember'`

Controller = Ember.ObjectController.extend
  settings: Ember.computed.alias('model.settings')

  settingsChanged: (->
    value = @get('settings.maximum_number_of_builds')
    console.log value
    if parseInt(value) > 0 || value == '0' || value == 0
      @set('settings.maximum_number_of_builds_valid', '')
      @get('model').saveSettings(@get('settings')).then null, ->
        Travis.flash(error: 'There was an error while saving settings. Please try again.')
    else
      @set('settings.maximum_number_of_builds_valid', 'invalid')
  ).observes('settings.maximum_number_of_builds')

  actions:
    save: ->
      @get('model').saveSettings(@get('settings')).then null, ->
        Travis.flash(error: 'There was an error while saving settings. Please try again.')

`export default Controller`<commit_msg>Settings controller doesn't need to be ObjectController<commit_after>`import Ember from 'ember'`

Controller = Ember.Controller.extend
  settings: Ember.computed.alias('model.settings')

  settingsChanged: (->
    value = @get('settings.maximum_number_of_builds')
    console.log value
    if parseInt(value) > 0 || value == '0' || value == 0
      @set('settings.maximum_number_of_builds_valid', '')
      @get('model').saveSettings(@get('settings')).then null, ->
        Travis.flash(error: 'There was an error while saving settings. Please try again.')
    else
      @set('settings.maximum_number_of_builds_valid', 'invalid')
  ).observes('settings.maximum_number_of_builds')

  actions:
    save: ->
      @get('model').saveSettings(@get('settings')).then null, ->
        Travis.flash(error: 'There was an error while saving settings. Please try again.')

`export default Controller`
{'fraction_non_alphanumeric': 0.14277522935779816, 'fraction_numerical': 0.0034403669724770644, 'mean_word_length': 4.208955223880597, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, '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': '4875717', 'n_tokens_mistral': 529, 'n_tokens_neox': 519, 'n_words': 117}