<commit_before>`import Ember from 'ember'`
`import pagedArray from 'ember-cli-pagination/computed/paged-array'`

ProjectCommitsController = Ember.ArrayController.extend
  sortProperties: ['authoredAt']

  hideAccepted: true


  searchFilter: Ember.computed 'model', 'hideAccepted', 'page', ->
    if @get('hideAccepted') == false
      @get('model')
    else
      @get('model').filterProperty('isAccepted', false)

  actions:
    toggleAccepted: ->
      @set 'hideAccepted', !(@get('hideAccepted'))

  pagedContent: pagedArray('searchFilter')

  queryParams: ['page']
  pageBinding: 'pagedContent.page'
  perPageBinding: 'pagedContent.perPage'
  totalPageBinding: 'pagedContent.totalPages'
  page: 1


`export default ProjectCommitsController`<commit_msg>inserting the correct method [0a294e133b2dad3c12bbb47f26e30c705d683df1]<commit_after>`import Ember from 'ember'`
`import pagedArray from 'ember-cli-pagination/computed/paged-array'`

ProjectCommitsController = Ember.ArrayController.extend
  sortProperties: ['authoredAt']

  hideAccepted: true


  searchFilter: Ember.computed 'model', 'hideAccepted', 'page', ->
    if @get('hideAccepted') == false
      @get('model')
    else
      @get('model').filterProperty('isAccepted', false)

  actions:
    toggleAccepted: ->
      @toggleProperty('hideAccepted')

  pagedContent: pagedArray('searchFilter')

  queryParams: ['page']
  pageBinding: 'pagedContent.page'
  perPageBinding: 'pagedContent.perPage'
  totalPageBinding: 'pagedContent.totalPages'
  page: 1


`export default ProjectCommitsController`
{'fraction_non_alphanumeric': 0.1276459268762027, 'fraction_numerical': 0.01667735728030789, 'mean_word_length': 5.315789473684211, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '7732', 'n_tokens_mistral': 524, 'n_tokens_neox': 492, 'n_words': 93}