<commit_before>import argparse
import os
import subprocess

from jinja2 import Template

GODOC_DEFAULT_PORT = 6060

parser = argparse.ArgumentParser(description='Produce configurable plist files')
parser.add_argument('template', help='The location of the plist template')
parser.add_argument('--port', help='Which port the service should listen on')

current_directory = os.path.dirname(os.path.abspath(__file__))

args = parser.parse_args()
if args.template == "go":
    port = args.port or GODOC_DEFAULT_PORT
    template = Template(open('templates/godoc.plist.template').read())
    try:
        godoc_binary = subprocess.check_output(["which", "godoc"]).strip()
    except subprocess.CalledProcessError as e:
        print "\nCould not find godoc on path! Install godoc to use the godoc server\n"<commit_msg>change port<commit_after>import argparse
import os
import subprocess

from jinja2 import Template

GODOC_DEFAULT_PORT = 6061

parser = argparse.ArgumentParser(description='Produce configurable plist files')
parser.add_argument('template', help='The location of the plist template')
parser.add_argument('--port', help='Which port the service should listen on')

current_directory = os.path.dirname(os.path.abspath(__file__))

args = parser.parse_args()
if args.template == "go":
    port = args.port or GODOC_DEFAULT_PORT
    template = Template(open('templates/godoc.plist.template').read())
    try:
        godoc_binary = subprocess.check_output(["which", "godoc"]).strip()
    except subprocess.CalledProcessError as e:
        print "\nCould not find godoc on path! Install godoc to use the godoc server\n"
{'fraction_non_alphanumeric': 0.10727496917385944, 'fraction_numerical': 0.006165228113440197, 'mean_word_length': 5.101503759398496, 'pattern_counts': {'":': 2, '<': 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': '3556491', 'n_tokens_mistral': 488, 'n_tokens_neox': 479, 'n_words': 134}