<commit_before>`import Ember from 'ember'`
`import TravisRoute from 'travis/routes/basic'`
`import config from 'travis/config/environment'`

Route = TravisRoute.extend

  model: (params) ->
    apiEndpoint = config.apiEndpoint
    repoId = @modelFor('repo').get('id')

    allTheBranches = Ember.ArrayProxy.create()

    options = {}
    if @get('auth.signedIn')
      options.headers = { Authorization: "token #{@auth.token()}" }

    $.ajax("#{apiEndpoint}/v3/repo/#{repoId}/branches?include=build.commit&limit=100", options).then (response) ->
      allTheBranches = response.branches

      defaultBranch = allTheBranches.filter (item, index) ->
        item if item.repository.default_branch['@href'] == item['@href']
      
      allTheBranches
      unless defaultBranch.length == 1
        $.ajax("#{apiEndpoint}/v3/repo/#{repoId}/branches?include=build.commit&limit=100&offset=1", options).then (response) ->
          allTheBranches = allTheBranches.concat(response.branches)

          allTheBranches

  activate: () ->
    $('.tab.tabs--main li').removeClass('active')<commit_msg>remove logic again because api takes care of it now<commit_after>`import Ember from 'ember'`
`import TravisRoute from 'travis/routes/basic'`
`import config from 'travis/config/environment'`

Route = TravisRoute.extend

  model: (params) ->
    apiEndpoint = config.apiEndpoint
    repoId = @modelFor('repo').get('id')

    allTheBranches = Ember.ArrayProxy.create()

    options = {}
    if @get('auth.signedIn')
      options.headers = { Authorization: "token #{@auth.token()}" }

    $.ajax("#{apiEndpoint}/v3/repo/#{repoId}/branches?include=build.commit&limit=100", options).then (response) ->
      allTheBranches = response.branches
      allTheBranches

  activate: () ->
    $('.tab.tabs--main li').removeClass('active')
{'fraction_non_alphanumeric': 0.1583287520615723, 'fraction_numerical': 0.007696536558548653, 'mean_word_length': 3.8533333333333335, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '1521614', 'n_tokens_mistral': 575, 'n_tokens_neox': 559, 'n_words': 101}