<commit_before>/* test rig */ var t = 1, tmax = 1
function ok (a, d) { console.log(a ? 'ok ' + (t++) + ' -' : 'not ok ' + (t++) + ' -', d); }
console.log(t + '..' + tmax);
ok(process.versions.colony, 'running in colony')

var url = require('url');
ok(url.parse('http://tools.ietf.org/html/draft-ietf-6man-text-addr-representation-04#section-6'), 'url parses');<commit_msg>Extened the test for url.parse<commit_after>/* test rig */ var t = 1, tmax = 9
function ok (a, d) { console.log(a ? 'ok ' + (t++) + ' -' : 'not ok ' + (t++) + ' -', d); }
function equal (a, b, d) { console.log((a === b) ? 'ok ' + (t++) + ' -' : 'not ok ' + (t++) + ' -', d); }

console.log(t + '..' + tmax);
ok(process.versions.colony, 'running in colony')

var url = require('url');
ok(url.parse('http://tools.ietf.org/html/draft-ietf-6man-text-addr-representation-04#section-6'), 'url parses');

var expected = { protocol: 'ws:',
  slashes: true,
  auth: 'user:pass',
  host: 'somedomain.com:1234',
  port: '1234',
  hostname: 'somedomain.com',
  hash: '#hash1',
  search: '?q=123',
  query: 'q=123',
  pathname: '/events',
  path: '/events?q=123',
  href: 'ws://user:pass@somedomain.com:1234/events?q=123#hash1' };

var actual = url.parse('ws://user:pass@somedomain.com:1234/events?q=123#hash1');

Object.keys(expected).forEach(function(k){
  equal(actual[k], expected[k], k + ' should matched expected '+ actual[k] + ' !== ' + expected[k] )
});

{'fraction_non_alphanumeric': 0.24771287825475016, 'fraction_numerical': 0.03237156931738212, 'mean_word_length': 3.9894736842105263, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '2083055', 'n_tokens_mistral': 596, 'n_tokens_neox': 560, 'n_words': 116}