<commit_before>iSpy is a port of [Jasmine's](http://github.com/pivotal/jasmine) spies for ScrewUnit

Basic usage (if you've placed iSpy in /public/javascripts/iSpy):

  require('/javascripts/iSpy/lib/iSpy');
  require('/javascripts/iSpy/plugins/screw.iSpy');

  Screw.Unit(function () {
    describe('Basic Example', function() {
      it('should replace the specified function with a spy object', function() {
        var TestClass = {
          someFunction: function() {
            originalFunctionWasCalled = true;
          }
        };
        spyOn(TestClass, 'someFunction');

        expect(TestClass.someFunction).to_not(have_been_called);
        expect(TestClass.someFunction.callCount).to(equal, 0);
        TestClass.someFunction('foo');
        expect(TestClass.someFunction).to(have_been_called);
        expect(TestClass.someFunction.callCount).to(equal, 1);
        expect(TestClass.someFunction.mostRecentCall.args).to(equal, ['foo']);
        expect(TestClass.someFunction.mostRecentCall.object).to(equal, TestClass);

        TestClass.someFunction('bar');
        expect(TestClass.someFunction.callCount).to(equal, 2);
        expect(TestClass.someFunction.mostRecentCall.args).to(equal, ['bar']);
      });
    });
});
<commit_msg>Trying to get this silly markdown to format correctly<commit_after>iSpy is a port of [Jasmine's](http://github.com/pivotal/jasmine) spies for ScrewUnit

Basic usage (if you've placed iSpy in /public/javascripts/iSpy):

    require('/javascripts/iSpy/lib/iSpy');
    require('/javascripts/iSpy/plugins/screw.iSpy');

    Screw.Unit(function () {
      describe('Basic Example', function() {
        it('should replace the specified function with a spy object', function() {
          var TestClass = {
            someFunction: function() {
              originalFunctionWasCalled = true;
            }
          };
          spyOn(TestClass, 'someFunction');

          expect(TestClass.someFunction).to_not(have_been_called);
          expect(TestClass.someFunction.callCount).to(equal, 0);
          TestClass.someFunction('foo');
          expect(TestClass.someFunction).to(have_been_called);
          expect(TestClass.someFunction.callCount).to(equal, 1);
          expect(TestClass.someFunction.mostRecentCall.args).to(equal, ['foo']);
          expect(TestClass.someFunction.mostRecentCall.object).to(equal, TestClass);

          TestClass.someFunction('bar');
          expect(TestClass.someFunction.callCount).to(equal, 2);
          expect(TestClass.someFunction.mostRecentCall.args).to(equal, ['bar']);
        });
      });
    });

{'fraction_non_alphanumeric': 0.13538461538461538, 'fraction_numerical': 0.002307692307692308, 'mean_word_length': 3.174959871589085, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1822563', 'n_tokens_mistral': 786, 'n_tokens_neox': 755, 'n_words': 122}