<commit_before>var util = require('util'),
    expect = require('chai').expect;

var index = require('../index');

describe('index', function() {
  describe('build_url', function() {
    it('should build an http URL', function() {
      var url = index.buildInspectorUrl(
        'example.com',
        '2223',
        '7863',
        null,
        false
      );
      expect(url).to.equal('http://example.com:2223/debug?ws=example.com:2223&port=7863');
    });

    it('should build an http URL', function() {
      var url = index.buildInspectorUrl(
        'example.com',
        '2223',
        '7863',
        null,
        true
      );
      expect(url).to.equal('https://example.com:2223/debug?ws=example.com:2223&port=7863');
    });
  });
});<commit_msg>Fix index tests<commit_after>var util = require('util'),
    expect = require('chai').expect;

var index = require('../index');

describe('index', function() {
  describe('build_url', function() {
    it('should build an http URL', function() {
      var url = index.buildInspectorUrl(
        'example.com',
        '2223',
        '7863',
        null,
        false
      );
      expect(url).to.equal('http://example.com:2223/?ws=example.com:2223&port=7863');
    });

    it('should build an http URL', function() {
      var url = index.buildInspectorUrl(
        'example.com',
        '2223',
        '7863',
        null,
        true
      );
      expect(url).to.equal('https://example.com:2223/?ws=example.com:2223&port=7863');
    });
  });
});
{'fraction_non_alphanumeric': 0.18265440210249673, 'fraction_numerical': 0.052562417871222074, 'mean_word_length': 2.4224719101123595, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '2302431', 'n_tokens_mistral': 535, 'n_tokens_neox': 488, 'n_words': 86}