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

from __future__ import print_function

import sys
import argparse
import werkzeug.serving

def start_server():
    from package_manager import app
    app.run()

def start_server_with_reloader():
    def helper():
        start_server()

    werkzeug.serving.run_with_reloader(helper)

def run():
    parser = argparse.ArgumentParser()
    parser.add_argument(
        "--debug",
        action = "store_true",
        default = False,
    )

    args = parser.parse_args(sys.argv[1:])

    if args.debug:
        start_server_with_reloader()
    else:
        start_server()<commit_msg>Clean up server.py and add debug flag<commit_after>#!/usr/bin/env python

from __future__ import print_function

import sys
import argparse

def start_server(args):
    from package_manager import app
    if args.debug:
        app.debug = True
    app.run()

def run():
    parser = argparse.ArgumentParser()
    parser.add_argument(
        "--debug",
        action = "store_true",
        default = False,
    )

    args = parser.parse_args(sys.argv[1:])
    start_server(args)
{'fraction_non_alphanumeric': 0.1020776874435411, 'fraction_numerical': 0.0018066847335140017, 'mean_word_length': 2.9014084507042255, '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': '849265', 'n_tokens_mistral': 352, 'n_tokens_neox': 345, 'n_words': 81}