<commit_before>MochaWeb?.testOnly ->
  describe "Test", ->
    it "is frickin true", ->
      chai.assert.equal 5, 5

# describe 'Rock/Apollos User Sync Testing', ->

#   before ->
#     casper.start 'http://localhost:3000'
#     return

#   beforeEach (done) ->
#     casper.then ->
#       @.evaluate ->
#         # Need to write a delete method using a a testing shim
#         Meteor.logout()

#     done()

#   describe 'Verify Meteor', ->

#     it 'we should have a Meteor object', ->
#       casper.then ->
#         meteorIsAnObject = @.evaluate ->
#           return typeof Meteor is "object"
#         meteorIsAnObject.should.be.true
#       return

#   describe 'Create an Apollos account', ->

#     it 'should verify Apollos is loaded', ->
#       casper.then ->
#         apollosIsAnObject = @.evaluate ->
#           return typeof Apollos is "object"
#         apollosIsAnObject.should.be.true
#       return

#     it 'should verify Apollos.user.create is a function', ->
#       casper.then ->
#         userDotCreateIsAFunction = @.evaluate ->
#           return typeof Apollos.user.create is "function"
#         userDotCreateIsAFunction.should.be.true
#       return


#   #   it 'should create an Apollos user', (done) ->
#   #
#   #     casper.then ->
#   #
#   #       @.evaluate ->
#   #         Apollos.user.create(
#   #           "<EMAIL>"
#   #           "<PASSWORD>"
#   #           (err, data) ->
#   #             if err
#   #               __utils__.echo err
#   #
#   #             window.userCreated = true
#   #
#   #         )
#   #
#   #     casper.waitFor (->
#   #       return @.getGlobal("userCreated") is true
#   #     ), ->
#   #       true.should.be.true
#   #       done()<commit_msg>rewrite mocha-casperjs tests in mocha<commit_after>MochaWeb?.testOnly ->

  describe 'Rock/Apollos User Sync Testing', ->

    before ->
      Meteor.call 'velocity/isMirror', (err, isMirror) ->
        if isMirror
          console.log 'mirror'

    beforeEach ->
      Meteor.flush()

    describe 'Verify Meteor', ->

      it 'we should have a Meteor object', ->
        chai.assert.equal typeof Meteor is "object", true

    describe 'Create an Apollos account', ->

      it 'should verify Apollos is loaded', ->
        chai.assert.equal typeof Apollos is "object", true

      it 'should verify Apollos.user.create is a function', ->
        chai.assert.equal typeof Apollos.user.create is "function", true

      # it 'should create an Apollos user', (done) ->
      #   user = Apollos.user.create(
      #     "<EMAIL>"
      #     "<PASSWORD>"
      #     (err, data) ->
      #       console.log err
      #   )

       # casper.then ->

       #   @.evaluate ->
       #     Apollos.user.create(
       #       "<EMAIL>"
       #       "<PASSWORD>"
       #       (err, data) ->
       #         if err
       #           __utils__.echo err

       #         window.userCreated = true

       #     )

       # casper.waitFor (->
       #   return @.getGlobal("userCreated") is true
       # ), ->
       #   true.should.be.true
       #   done()
{'fraction_non_alphanumeric': 0.13495145631067962, 'fraction_numerical': 0.001941747572815534, 'mean_word_length': 1.6306382978723404, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 51, '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': '7650894', 'n_tokens_mistral': 1022, 'n_tokens_neox': 982, 'n_words': 222}