<commit_before>chai = require "chai"
sinon = require "sinon"
chai.use require "sinon-chai"

expect = chai.expect

describe "mail", ->
    beforeEach ->
        @robot =
            respond: sinon.spy()
            hear: sinon.spy()

        require("../src/mail")(@robot)

    it "registers a respond listener", ->
        expect(@robot.respond).to.have.been.calledWith(/mail (\S+) (.+)/i)
        expect(@robot.respond).to.have.been.calledWith(/unmail\s?(.*)/i)

    it 'registers a hear listener', ->
        expect(@robot.hear).to.have.been.calledWith(/./i)<commit_msg>Fixing test errors<commit_after>chai = require "chai"
sinon = require "sinon"
chai.use require "sinon-chai"

expect = chai.expect

describe "mail", ->
    beforeEach ->
        @robot =
            respond: sinon.spy()
            hear: sinon.spy()
            enter: sinon.spy()

        require("../src/mail")(@robot)

    it "registers a respond listener", ->
        expect(@robot.respond).to.have.been.calledWith(/mail (\S+) (.+)/i)
        expect(@robot.respond).to.have.been.calledWith(/unmail\s?(.*)/i)

    it 'registers a hear listener', ->
        expect(@robot.hear).to.have.been.calledWith(/./i)
{'fraction_non_alphanumeric': 0.17966101694915254, 'fraction_numerical': 0.0, 'mean_word_length': 2.453216374269006, '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': '3704238', 'n_tokens_mistral': 424, 'n_tokens_neox': 408, 'n_words': 73}