<commit_before>"""Staplow!

Usage:
  staplow init
  staplow add (input|output) <port>

Options:
  -h --help     Show this screen.
  --version     Show version.
  -i <interface>, --interface <interface> Specify interface
  -s <source>, --source <source>
  -d <destination>, --destination <destination>

"""
from docopt import docopt

def console():
    arguments = docopt(__doc__, version='Staplow 0.1')
    print(arguments)<commit_msg>Work in progress, starting on init<commit_after>"""Staplow!

Usage:
  staplow init
  staplow add (input|output) <port>

Options:
  -h --help     Show this screen.
  --version     Show version.
  -i <interface>, --interface <interface> Specify interface
  -s <source>, --source <source>
  -d <destination>, --destination <destination>

"""
from docopt import docopt
from sh import iptables


def console():
    args = docopt(__doc__, version='Staplow 0.1')

    if args['init']:
        init(args)
    if args['add']:
        add(args)
    

def init(args):
    iptables.bake("-t", "mangle")
    chains_to_add = ("staplow_in", "staplow_out")
    for chains in chains_to_add:
        iptables("-N", chains)


def add(args):
    pass
{'fraction_non_alphanumeric': 0.14163090128755365, 'fraction_numerical': 0.0034334763948497852, 'mean_word_length': 3.2093862815884475, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, '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': '7439797', 'n_tokens_mistral': 394, 'n_tokens_neox': 387, 'n_words': 113}