<commit_before>### # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# Mocks for:
#  1. Npm.require to deliver both stream and browserify mocks
#  2. Meteor.wrapAsync
#
# Note the @ making the variables package scoped
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # ###

# store results for test to verify with test.equal
@Result = {}

# plugin calls 'new stream.PassThrough()' so give it a class to instantiate
class PassThroughMock
  constructor: ->
    # store this was run<commit_msg>add process.argv which doesn't exist in testing<commit_after>### # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# Mocks for:
#  1. Npm.require to deliver both stream and browserify mocks
#  2. Meteor.wrapAsync
#
# Note the @ making the variables package scoped
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # ###

# when testing `process` is undefined, so, define it
@process = argv:[]

# store results for test to verify with test.equal
@Result = {}

# plugin calls 'new stream.PassThrough()' so give it a class to instantiate
class PassThroughMock
  constructor: ->
    # store this was run
{'fraction_non_alphanumeric': 0.18547681539807523, 'fraction_numerical': 0.003499562554680665, 'mean_word_length': 2.7755775577557755, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 16, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1602371', 'n_tokens_mistral': 397, 'n_tokens_neox': 389, 'n_words': 111}