<commit_before>Voice.CallQueueController = Ember.ArrayController.extend({

  needs:       ['calls', 'users']
  callSorting: ['calledAt']
  modelBinding: 'controllers.calls'

  currentCallBinding:      'Voice.currentCall'
  hideForeignCallsBinding: 'Voice.hideForeignCalls'


  actions:
    hangupCall: ->
      app.hangupCurrentCall()
      return false


  filteredCalls: Ember.computed.filterBy 'content', 'matchesFilter', true
  sortedCalls:   Ember.computed.sort 'filteredCalls', 'callSorting'


  init: ->
    @_super()
    @restoreHideForeignCalls()


  restoreHideForeignCalls: ->
    Ember.run.next =>
      @set 'hideForeignCalls', app.loadLocalKey('hideForeignCalls')


  persistHideForeignCalls: (->
    app.storeLocalKey('hideForeignCalls', @get 'hideForeignCalls')
  ).observes('hideForeignCalls')
<commit_msg>bind model to controller content<commit_after>Voice.CallQueueController = Ember.ArrayController.extend({

  needs:       ['calls', 'users']
  callSorting: ['calledAt']
  modelBinding: 'controllers.calls.content'

  currentCallBinding:      'Voice.currentCall'
  hideForeignCallsBinding: 'Voice.hideForeignCalls'


  actions:
    hangupCall: ->
      app.hangupCurrentCall()
      return false


  filteredCalls: Ember.computed.filterBy 'content',       'matchesFilter', true
  sortedCalls:   Ember.computed.sort     'filteredCalls', 'callSorting'


  init: ->
    @_super()
    @restoreHideForeignCalls()


  restoreHideForeignCalls: ->
    Ember.run.next =>
      @set 'hideForeignCalls', app.loadLocalKey('hideForeignCalls')


  persistHideForeignCalls: (->
    app.storeLocalKey('hideForeignCalls', @get 'hideForeignCalls')
  ).observes('hideForeignCalls')

{'fraction_non_alphanumeric': 0.12180629827688651, 'fraction_numerical': 0.0, 'mean_word_length': 4.229813664596273, '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': '3951654', 'n_tokens_mistral': 553, 'n_tokens_neox': 526, 'n_words': 84}