<commit_before>App.ApplianceTypeController = Ember.ObjectController.extend
  isEditing: false
  visibilities: ['unpublished', 'published']

  actions:
    edit: ->
      @set 'isEditing', true

    doneEditing: ->
      @get('content').save().then (appliance_type)=>
        @set 'isEditing', false

    delete: ->
      if (window.confirm('Are you sure you want to delete this post?'))
        @get('content').deleteRecord()
        @get('content').save().then =>
          @transitionToRoute('appliance_types')

App.ApplianceTypesNewController = Ember.ObjectController.extend
  visibilities: ['unpublished', 'published']

  actions:
    save: ->
      @get('content').save().then (appliance_type)=>
        @transitionToRoute('appliance_type', appliance_type)

    cancel: ->
      @get('content').deleteRecord()
      @transitionToRoute('appliance_types')<commit_msg>sorting AT using name attribute<commit_after>App.ApplianceTypeController = Ember.ObjectController.extend
  isEditing: false
  visibilities: ['unpublished', 'published']

  actions:
    edit: ->
      @set 'isEditing', true

    doneEditing: ->
      @get('content').save().then (appliance_type)=>
        @set 'isEditing', false

    delete: ->
      if (window.confirm('Are you sure you want to delete this post?'))
        @get('content').deleteRecord()
        @get('content').save().then =>
          @transitionToRoute('appliance_types')

App.ApplianceTypesNewController = Ember.ObjectController.extend
  visibilities: ['unpublished', 'published']

  actions:
    save: ->
      @get('content').save().then (appliance_type)=>
        @transitionToRoute('appliance_type', appliance_type)

    cancel: ->
      @get('content').deleteRecord()
      @transitionToRoute('appliance_types')

App.ApplianceTypesController = Ember.ArrayController.extend
  sortProperties: ['name']
  sortAscending: true
{'fraction_non_alphanumeric': 0.14453961456102785, 'fraction_numerical': 0.0, 'mean_word_length': 3.7436548223350252, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 19, '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': '3110629', 'n_tokens_mistral': 563, 'n_tokens_neox': 534, 'n_words': 101}