<commit_before>describe "Teaspoon.Jasmine.Responder", ->

  beforeEach ->
    @reportRunnerStartingDetails =
      specs: -> {length: 42}
    @reportSuiteResultsDetails =
      id: 0
      description: "Jasmine 1 describe"
      getFullName: -> "Jasmine 1 describe"
    @reportSpecStartingDetails =
      id: 1
      getFullName: -> "Jasmine 2 describe has an it"
      description: "has an it"
      suite: @reportSuiteResultsDetails
    @reportSpecResultsDetails =
      id: 1
      getFullName: -> "Jasmine 2 describe has an it"
      description: "has an it"
      suite: @reportSuiteResultsDetails

    @reporter =
      reportRunnerStarting: ->
      reportRunnerResults: ->
      reportSuiteStarting: ->
      reportSuiteResults: ->
      reportSpecStarting: ->
      reportSpecResults: ->
    @responder = new Teaspoon.Jasmine.Responder(@reporter)


  describe "#reportRunnerStarting", ->

    it "reports the runner starting", ->
      spyOn(@reporter, 'reportRunnerStarting')

      @responder.reportRunnerStarting(@reportRunnerStartingDetails)

      expect(@reporter.reportRunnerStarting).toHaveBeenCalledWith(total: 42)


  describe "#reportRunnerResults", ->

    it "reports the runner finishing", ->
      spyOn(@reporter, 'reportRunnerResults')

      @responder.reportRunnerResults()

      expect(@reporter.reportRunnerResults).toHaveBeenCalled()


  describe "#reportSuiteResults", ->

    it "reports the suite finishing", ->
      spyOn(@reporter, 'reportSuiteResults')

      @responder.reportSuiteResults(@reportSuiteResultsDetails)

      expect(@reporter.reportSuiteResults).toHaveBeenCalledWith
        id: 0
        description: "Jasmine 1 describe"
        fullName: "Jasmine 1 describe"


  describe "#reportSpecStarting", ->

    it "reports the spec starting", ->
      spyOn(@reporter, 'reportSpecStarting')

      @responder.reportSpecStarting(@reportSpecStartingDetails)

      expect(@reporter.reportSpecStarting).toHaveBeenCalledWith(@reportSpecStartingDetails)


  describe "#reportSpecResults", ->

    it "reports the spec finishing", ->
      spyOn(@reporter, 'reportSpecResults')

      @responder.reportSpecResults(@reportSpecResultsDetails)

      expect(@reporter.reportSpecResults).toHaveBeenCalledWith(@reportSpecResultsDetails)
<commit_msg>Fix typo<commit_after>describe "Teaspoon.Jasmine.Responder", ->

  beforeEach ->
    @reportRunnerStartingDetails =
      specs: -> {length: 42}
    @reportSuiteResultsDetails =
      id: 0
      description: "Jasmine 1 describe"
      getFullName: -> "Jasmine 1 describe"
    @reportSpecStartingDetails =
      id: 1
      getFullName: -> "Jasmine 1 describe has an it"
      description: "has an it"
      suite: @reportSuiteResultsDetails
    @reportSpecResultsDetails =
      id: 1
      getFullName: -> "Jasmine 1 describe has an it"
      description: "has an it"
      suite: @reportSuiteResultsDetails

    @reporter =
      reportRunnerStarting: ->
      reportRunnerResults: ->
      reportSuiteStarting: ->
      reportSuiteResults: ->
      reportSpecStarting: ->
      reportSpecResults: ->
    @responder = new Teaspoon.Jasmine.Responder(@reporter)


  describe "#reportRunnerStarting", ->

    it "reports the runner starting", ->
      spyOn(@reporter, 'reportRunnerStarting')

      @responder.reportRunnerStarting(@reportRunnerStartingDetails)

      expect(@reporter.reportRunnerStarting).toHaveBeenCalledWith(total: 42)


  describe "#reportRunnerResults", ->

    it "reports the runner finishing", ->
      spyOn(@reporter, 'reportRunnerResults')

      @responder.reportRunnerResults()

      expect(@reporter.reportRunnerResults).toHaveBeenCalled()


  describe "#reportSuiteResults", ->

    it "reports the suite finishing", ->
      spyOn(@reporter, 'reportSuiteResults')

      @responder.reportSuiteResults(@reportSuiteResultsDetails)

      expect(@reporter.reportSuiteResults).toHaveBeenCalledWith
        id: 0
        description: "Jasmine 1 describe"
        fullName: "Jasmine 1 describe"


  describe "#reportSpecStarting", ->

    it "reports the spec starting", ->
      spyOn(@reporter, 'reportSpecStarting')

      @responder.reportSpecStarting(@reportSpecStartingDetails)

      expect(@reporter.reportSpecStarting).toHaveBeenCalledWith(@reportSpecStartingDetails)


  describe "#reportSpecResults", ->

    it "reports the spec finishing", ->
      spyOn(@reporter, 'reportSpecResults')

      @responder.reportSpecResults(@reportSpecResultsDetails)

      expect(@reporter.reportSpecResults).toHaveBeenCalledWith(@reportSpecResultsDetails)

{'fraction_non_alphanumeric': 0.10325968059505579, 'fraction_numerical': 0.006125574272588055, 'mean_word_length': 3.562874251497006, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 47, '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': '2768890', 'n_tokens_mistral': 1343, 'n_tokens_neox': 1216, 'n_words': 253}