<commit_before>import sys
import argparse

import pyrox.server as server

from pyrox.http.filtering import HttpFilterChain
from pyrox.stock_filters.simple import SimpleFilter
from pyrox.stock_filters.keystone_meniscus import MeniscusKeystoneFilter

_FTEST_CONFIG_KEY = 'keystone_meniscus_ftest'

args_parser = argparse.ArgumentParser(
    prog='proxy',
    description='Pyrox, the fast Python HTTP middleware server.')
args_parser.add_argument(
    '-d',
    nargs='?',
    dest='downstream_host',
    default='127.0.0.1:80',
    help='Sets the downstream host to proxy to.')
args_parser.add_argument(
    '-b',
    nargs='?',
    dest='bind_host',
    default='127.0.0.1:8080',
    help='Sets the host to bind to and listen on.')
args_parser.add_argument(
    'start',
    default=False,
    help='Starts the daemon.')


def new_filter_chain():
    chain = HttpFilterChain()
    #chain.add_filter(SimpleFilter())
    chain.add_filter(MeniscusKeystoneFilter())
    return chain
<commit_msg>Whoops, left import for SimpleFilter that I was testing with<commit_after>import sys
import argparse

import pyrox.server as server

from pyrox.http.filtering import HttpFilterChain
from pyrox.stock_filters.keystone_meniscus import MeniscusKeystoneFilter

_FTEST_CONFIG_KEY = 'keystone_meniscus_ftest'

args_parser = argparse.ArgumentParser(
    prog='proxy',
    description='Pyrox, the fast Python HTTP middleware server.')
args_parser.add_argument(
    '-d',
    nargs='?',
    dest='downstream_host',
    default='127.0.0.1:80',
    help='Sets the downstream host to proxy to.')
args_parser.add_argument(
    '-b',
    nargs='?',
    dest='bind_host',
    default='127.0.0.1:8080',
    help='Sets the host to bind to and listen on.')
args_parser.add_argument(
    'start',
    default=False,
    help='Starts the daemon.')


def new_filter_chain():
    chain = HttpFilterChain()
    #chain.add_filter(SimpleFilter())
    chain.add_filter(MeniscusKeystoneFilter())
    return chain

{'fraction_non_alphanumeric': 0.11189873417721519, 'fraction_numerical': 0.018227848101265823, 'mean_word_length': 4.369565217391305, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6291539', 'n_tokens_mistral': 683, 'n_tokens_neox': 637, 'n_words': 149}