<commit_before>console.info('Starting this thing');

Server = require('./spec/support/dummy_server');

new Server().start();
<commit_msg>Test proxy with success<commit_after>console.info('Starting this thing');

var Server = require('./spec/support/dummy_server');
var EasyClient = require('./spec/support/easy_client');
var RedirecterHttp = require('./lib/redirecter/http');

new Server().start();

var client = new EasyClient({
  hostname: 'localhost',
  port: 3300
});

var config = {
  port: 3300,
  proxy: {
    host: 'localhost',
    port: 3000
  }
};

var redirect = RedirecterHttp(config);

redirect.listen();

client.call(function(data) {
  console.info(data);
});

{'fraction_non_alphanumeric': 0.17062314540059348, 'fraction_numerical': 0.017804154302670624, 'mean_word_length': 4.921052631578948, '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': '3570087', 'n_tokens_mistral': 224, 'n_tokens_neox': 210, 'n_words': 47}