<commit_before>#!/usr/bin/env python
from flask import Flask
import webbrowser

# app = Flask('timevis')
app = Flask('timevis')


def main(port=8000):
    # Begin the server
    app.run(host='0.0.0.0', port=8000, debug=True)

    # Open a window
    webbrowser.open("http://localhost:{}/".format(port), new=2)

if __name__ == '__main__':
    main()<commit_msg>Add argument parsing for app<commit_after>#!/usr/bin/env python
from flask import Flask
import webbrowser

# app = Flask('timevis')
app = Flask('timevis')


def parse_args():
    args = {}
    args.browser = None

    return args


def main(port=8000):
    # Begin the server
    app.run(host='0.0.0.0', port=8000, debug=True)

    # Parse args
    args = parse_args()

    # Open a window
    if args.browser:
        webbrowser.open("http://localhost:{}/".format(port), new=2)

if __name__ == '__main__':
    main()
{'fraction_non_alphanumeric': 0.1573546180159635, 'fraction_numerical': 0.029646522234891677, 'mean_word_length': 3.4120603015075375, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '3775114', 'n_tokens_mistral': 332, 'n_tokens_neox': 305, 'n_words': 74}