<commit_before>#!/usr/bin/env python

import click
from vumi_http_proxy import http_proxy


@click.command()
@click.option('--interface', default="0.0.0.0", help='eg 0.0.0.0')
@click.option('--port', default=8080, help='eg 80')
def cli(interface, port):
    """This script runs vumi-http-proxy on <interface>:<port>"""
    i = http_proxy.Initialize(["asdf.com"], str(interface), port)
    click.echo("Starting connection to %s:%d" % (str(interface), port))
    i.main()<commit_msg>XMerge branch 'develop' of github.com:praekelt/vumi-http-proxy into feature/issue-7-dns-lookup<commit_after>#!/usr/bin/env python

import click
from vumi_http_proxy import http_proxy


@click.command()
@click.option('--interface', default="0.0.0.0", help='eg 0.0.0.0')
@click.option('--port', default=8080, help='eg 80')
def cli(interface, port):
    cli.interface = str(interface)
    cli.port = port
    """This script runs vumi-http-proxy on <interface>:<port>"""
    click.echo("Starting connection to %s:%d" % (interface, port))
    i = http_proxy.Initialize(["asdf.com"], interface, port)
    i.main()


if __name__ == '__main__':
    cli()
{'fraction_non_alphanumeric': 0.18633540372670807, 'fraction_numerical': 0.025732031943212066, 'mean_word_length': 4.64, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, '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': '4121346', 'n_tokens_mistral': 417, 'n_tokens_neox': 395, 'n_words': 87}