<commit_before>describe '.explain', ->
  Given -> @explain = requireSubject('lib/explain')
  Given -> @create = requireSubject('lib/create')
  Given -> @when = requireSubject('lib/when')

  context 'a brand new test double', ->
    Given -> @testDouble = @create()
    When -> @result = @explain(@testDouble)
    Then -> expect(@result).to.deep.eq
      calls: []
      callCount: 0
      description: """
      This test double has 0 stubbings and 0 invocations.
      """<commit_msg>Failing test of how it should work<commit_after>describe '.explain', ->
  Given -> @explain = requireSubject('lib/explain')
  Given -> @create = requireSubject('lib/create')
  Given -> @when = requireSubject('lib/when')

  Given -> @testDouble = @create()
  When -> @result = @explain(@testDouble)

  context 'a brand new test double', ->
    Then -> expect(@result).to.deep.eq
      calls: []
      callCount: 0
      description: """
      This test double has 0 stubbings and 0 invocations.
      """

  context 'a double with some interactions', ->
    Given -> @when(@testDouble(88)).thenReturn(5)
    Given -> @testDouble(88)
    Given -> @testDouble("not 88", 44)

    Then -> expect(@result).to.deep.eq
      calls: [
        {context: this, args: [88]},
        {context: this, args: ["not 88", 44]}
      ]
      callCount: 2
      description: """
      This test double has 1 stubbings and 2 invocations.

      Stubbings:
        - when called with `(88)`, then return `5`.

      Invocations:
        - called with `(88)`
        - called with `("not 88", 44)`

      """
{'fraction_non_alphanumeric': 0.15477707006369426, 'fraction_numerical': 0.021019108280254776, 'mean_word_length': 2.594965675057208, 'pattern_counts': {'":': 0, '<': 3, '<?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': '2734746', 'n_tokens_mistral': 510, 'n_tokens_neox': 472, 'n_words': 138}