<commit_before>`import Ember from 'ember'`
`import Pretender from 'pretender'`

Server = Ember.Object.extend
  init: ->
    @set('server', @_makePretender())

  shutdown: ->
    @get('server').shutdown()

  _makePretender: ->
    new Pretender ->
      @get '/api/v2/projects', ->
        [
          200, { "Content-type": "application/json" }, JSON.stringify( 
            projects: [ 
              { 
                id: 1
                accepted: 1
                rejected: 2
                pending: 6
                total: 10
                name: 'firstProject'
                grade: 'good'
                permission: [1]
              },{
                id: 2
                accepted: 0
                rejected: 2
                pending: 4 
                total: 10
                name: 'secondProject'
                grade: 'good'
                permission: [1]
              }
            ]
          ) 
        ]
      @get 'api/v2/users', ->
        [
          200, { "Content-type": "application/json" }, JSON.stringify(
            users:[
              {
                id: 1
                admin: true
                permissions: []
              },
              {
                id: 2
                admin: true
                permissions: []
              }
            ]
          )
        ]
      @get '/api/v2/users/me', ->
        [
          200, { "Content-type": "application/json" }, JSON.stringify(
            user:
              {
                id: 1
                admin: true
                permissions: []
              }
          )
        ]
      @get 'api/v2/permissions', ->
        [
          200, { "Content-type": "application/json"}, JSON.stringify(
            permissions: [
              {
                id: 1
                permissions:[1]
              }
            ]
          )
        ]
      @get '/api/v2/commits', ->
        [
          200, { "Content-type": "application/json" }, JSON.stringify(
            commits: [
              {
                id: 1
                project_id: 1
                authors: [
                  {
                    id:1
                    name: "<NAME>"
                  }
                ]
                meta: {total_pages: 1}
                tickets: []
              },
              {
                id: 2
                project_id: 2
              }
            ]
          ) 
        ]
`export default Server`<commit_msg>added stub put request for commits [#96451412]<commit_after>`import Ember from 'ember'`
`import Pretender from 'pretender'`

Server = Ember.Object.extend
  init: ->
    @set('server', @_makePretender())

  shutdown: ->
    @get('server').shutdown()

  _makePretender: ->
    new Pretender ->
      @get '/api/v2/projects', ->
        [
          200, { "Content-type": "application/json" }, JSON.stringify( 
            projects: [ 
              { 
                id: 1
                accepted: 1
                rejected: 2
                pending: 6
                total: 10
                name: 'firstProject'
                grade: 'good'
                permission: [1]
              },{
                id: 2
                accepted: 0
                rejected: 2
                pending: 4 
                total: 10
                name: 'secondProject'
                grade: 'good'
                permission: [1]
              }
            ]
          ) 
        ]
      @get 'api/v2/users', ->
        [
          200, { "Content-type": "application/json" }, JSON.stringify(
            users:[
              {
                id: 1
                admin: true
                permissions: []
              },
              {
                id: 2
                admin: true
                permissions: []
              }
            ]
          )
        ]
      @get '/api/v2/users/me', ->
        [
          200, { "Content-type": "application/json" }, JSON.stringify(
            user:
              {
                id: 1
                admin: true
                permissions: []
              }
          )
        ]
      @get 'api/v2/permissions', ->
        [
          200, { "Content-type": "application/json"}, JSON.stringify(
            permissions: [
              {
                id: 1
                permissions:[1]
              }
            ]
          )
        ]
      @get '/api/v2/commits', ->
        [
          200, { "Content-type": "application/json" }, JSON.stringify(
            commits: [
              {
                id: 1
                project_id: 1
                state: "passed"
                authors: [
                  {
                    id:1
                    name: "<NAME>"
                  }
                ]
                meta: {total_pages: 1}
                tickets: []
              },
              {
                id: 2
                project_id: 2
                author_id: 2
              }
            ]
          ) 
        ]
      @put '/api/v2/commits/2', ->
        [ 
          200, { "Content-type": "application/json" }, JSON.stringify(
            commit: {
              state: "accepted"
            }
          )
        ] 
`export default Server`
{'fraction_non_alphanumeric': 0.11057876581065543, 'fraction_numerical': 0.019931008049060943, 'mean_word_length': 0.7489946380697051, 'pattern_counts': {'":': 11, '<': 5, '<?xml version=': 0, '>': 24, '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': '1995577', 'n_tokens_mistral': 1474, 'n_tokens_neox': 1308, 'n_words': 262}