<commit_before>`import Ember from 'ember'`

RequestsController = Ember.Controller.extend
  actions:
    sendRequest: ->
      @set 'sending', true
      @set 'response', null
      window.$.ajax @get('url'),
        complete: (response , status) =>
          @set 'sending', false
          @set 'response', response.responseText
          if status != "success"
            alert('the request did not complete successfully')
  response: null
  sending: false
  path: ""
  url: Ember.computed 'path', ->
    '/api/friends/dispatch/' + @get('path')

`export default RequestsController`<commit_msg>using a query parameter for the request path so it can more easily be shared.<commit_after>`import Ember from 'ember'`

RequestsController = Ember.Controller.extend
  queryParams: ['path']
  actions:
    sendRequest: ->
      @set 'sending', true
      @set 'response', null
      window.$.ajax @get('url'),
        complete: (response , status) =>
          @set 'sending', false
          @set 'response', response.responseText
          if status != "success"
            alert('the request did not complete successfully')
  response: null
  sending: false
  path: ""
  url: Ember.computed 'path', ->
    '/api/friends/dispatch/' + @get('path')

`export default RequestsController`
{'fraction_non_alphanumeric': 0.1296875, 'fraction_numerical': 0.0, 'mean_word_length': 2.9054878048780486, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '4025303', 'n_tokens_mistral': 359, 'n_tokens_neox': 358, 'n_words': 109}