<commit_before>var
	craigslist = requireWithCoverage('index');

describe('unit tests for node-craigslist', function () {
	'use strict';

	var
		client,
		requestOptions,
		testMarkup = '<!DOCTYPE html><html><head></head><body class="toc search"><div class="content"><p class="row" data-pid="4355583965"> <a href="/see/vgm/4355583965.html" class="i" data-id="0:00P0P_8hKd1VlQDCd"><span class="price">&#x0024;250</span></a> <span class="star"></span> <span class="pl"> <span class="date">Mar  1</span>  <a href="/see/vgm/4355583965.html">NEW &amp; UNSEALED XBOX 360 - 250 GB BLACK FRIDAY BUNDLE  </a> </span> <span class="l2"> <span class="price">&#x0024;250</span>  <span class="pnr"> <small> (renton)</small> <span class="px"> <span class="p"> pic</span></span> </span>  <a class="gc" href="/vgm/" data-cat="vgm">video gaming - by owner</a> </span> </p> <p class="row" data-latitude="47.6889961595583" data-longitude="-122.321962887269" data-pid="4357055000"> <a href="/see/vgm/4357055000.html" class="i" data-id="0:00d0d_hYKRHRR9Pse"><span class="price">&#x0024;500</span></a> <span class="star"></span> <span class="pl"> <span class="date">Mar  2</span>  <a href="/see/vgm/4357055000.html">Xbox One - Day One Edition (BRAND NEW &amp; SEALED)</a> </span> <span class="l2"> <span class="price">&#x0024;500</span>  <span class="pnr"> <small> (Maple Leaf)</small> <span class="px"> <span class="p"> pic&nbsp;<a href="#" class="maptag" data-pid="4357055000">map</a></span></span> </span>  <a class="gc" href="/vgm/" data-cat="vgm">video gaming - by owner</a> </span> </p> </div></body></html>';

	beforeEach(function () {
		client = craigslist.initialize({
				city : 'seattle'
			});

		client.request.get = function (options, callback) {
			requestOptions = options;<commit_msg>fixing unit tests<commit_after>var
	craigslist = requireWithCoverage('index');

describe('unit tests for node-craigslist', function () {
	'use strict';

	var
		client,
		requestOptions,
		testMarkup = '<!DOCTYPE html><html><head></head><body class="toc search"><div class="content"><p class="row" data-pid="4355583965"> <span class="pl"> <time datetime="2015-04-07 23:31" title="Tue 07 Apr 11:31:09 PM (6 hours ago)">Apr 7</time> <a href="/see/vgm/4355583965.html" class="i" data-id="0:00P0P_8hKd1VlQDCd"></span><span class="price">&#x0024;250</span></a> <span class="star"></span> <span class="pl"> <span class="date">Mar  1</span>  <a href="/see/vgm/4355583965.html">NEW &amp; UNSEALED XBOX 360 - 250 GB BLACK FRIDAY BUNDLE  </a> </span> <span class="l2"> <span class="price">&#x0024;250</span>  <span class="pnr"> <small> (renton)</small> <span class="px"> <span class="p"> pic</span></span> </span>  <a class="gc" href="/vgm/" data-cat="vgm">video gaming - by owner</a> </span> </p> <p class="row" data-latitude="47.6889961595583" data-longitude="-122.321962887269" data-pid="4357055000"> <a href="/see/vgm/4357055000.html" class="i" data-id="0:00d0d_hYKRHRR9Pse"><span class="price">&#x0024;500</span></a> <span class="star"></span> <span class="pl"> <span class="date">Mar  2</span>  <a href="/see/vgm/4357055000.html">Xbox One - Day One Edition (BRAND NEW &amp; SEALED)</a> </span> <span class="l2"> <span class="price">&#x0024;500</span>  <span class="pnr"> <small> (Maple Leaf)</small> <span class="px"> <span class="p"> pic&nbsp;<a href="#" class="maptag" data-pid="4357055000">map</a></span></span> </span>  <a class="gc" href="/vgm/" data-cat="vgm">video gaming - by owner</a> </span> </p> </div></body></html>';

	beforeEach(function () {
		client = craigslist.initialize({
				city : 'seattle'
			});

		client.request.get = function (options, callback) {
			requestOptions = options;
{'fraction_non_alphanumeric': 0.22965986394557822, 'fraction_numerical': 0.08707482993197278, 'mean_word_length': 5.769797421731123, 'pattern_counts': {'":': 0, '<': 141, '<?xml version=': 0, '>': 141, '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': '5171352', 'n_tokens_mistral': 1621, 'n_tokens_neox': 1366, 'n_words': 287}