<commit_before>should = require 'should'
sinon = require 'sinon'
redis = require 'redis'
child_process = require 'child_process'

describe 'Box update subscriptions', ->
  context 'when we receive a message on the box channel', ->
    before (done) ->
      @server = require 'server'
      @psubSpy = sinon.spy @server.redisClient, 'psubscribe'
      @server.start (err) ->
        done()<commit_msg>Force a reload of the module (to no effect)<commit_after>should = require 'should'
sinon = require 'sinon'
redis = require 'redis'
child_process = require 'child_process'

describe 'Box update subscriptions', ->
  context 'when we receive a message on the box channel', ->
    before (done) ->
      delete require.cache.server
      @server = require 'server'
      @psubSpy = sinon.spy @server.redisClient, 'psubscribe'
      @server.start (err) ->
        done()
{'fraction_non_alphanumeric': 0.11778290993071594, 'fraction_numerical': 0.0, 'mean_word_length': 3.4922279792746114, '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': '3922329', 'n_tokens_mistral': 268, 'n_tokens_neox': 263, 'n_words': 85}