<commit_before>var assert = require('assert')
  , vows = require('vows')
  , nock = require('nock')
  , Feed = require('../lib/feed').Feed
  , Hook = require('hook.io').Hook
  ;


// mock http request made by FeedSub module
nock('http://rss.cnn.com')
  .get('/rss/cnn_latest.rss')
  .replyWithFile(200, __dirname + '/cnn_latest.rss');


var expected = [
    'Opponents dispute Nicaraguan election results'
  , 'Protesters break into Kuwaiti Parliament'
  , 'Jackson brothers sue over \'Thriller\' jacket deal'<commit_msg>better cross-platform tests<commit_after>var assert = require('assert')
  , path = require('path')
  , vows = require('vows')
  , nock = require('nock')
  , Feed = require('../lib/feed').Feed
  , Hook = require('hook.io').Hook
  ;


// mock http request made by FeedSub module
nock('http://rss.cnn.com')
  .get('/rss/cnn_latest.rss')
  .replyWithFile(200, path.join(__dirname, 'cnn_latest.rss'));


var expected = [
    'Opponents dispute Nicaraguan election results'
  , 'Protesters break into Kuwaiti Parliament'
  , 'Jackson brothers sue over \'Thriller\' jacket deal'
{'fraction_non_alphanumeric': 0.16025641025641027, 'fraction_numerical': 0.005494505494505495, 'mean_word_length': 3.990867579908676, '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': '4281034', 'n_tokens_mistral': 382, 'n_tokens_neox': 358, 'n_words': 87}