<commit_before>"""
Opens a bucket in the webbrowser.
"""

import webbrowser

from widely.bucket import get_current_or_specified_bucket


def _open(arguments):
    """
    Loads the running specified or current site in the webbrowser.

    Usage: widely open [--site <SITENAME>]
    """
    bucket = get_current_or_specified_bucket(arguments)
    url = 'http://' + bucket.get_website_endpoint()
    print('Opening {0}...'.format(bucket.name)), # This line may not
    # be Python 3
    # compatible.
    webbrowser.open_new_tab(url)
    print('done')<commit_msg>one small step toward python 3 compatibility<commit_after>"""
Opens a bucket in the webbrowser.
"""

from __future__ import print_function
import webbrowser

from widely.bucket import get_current_or_specified_bucket


def _open(arguments):
    """
    Loads the running specified or current site in the webbrowser.

    Usage: widely open [--site <SITENAME>]
    """
    bucket = get_current_or_specified_bucket(arguments)
    url = 'http://' + bucket.get_website_endpoint()
    print('Opening {0}...'.format(bucket.name), end="")
    webbrowser.open_new_tab(url)
    print('done')
{'fraction_non_alphanumeric': 0.11471103327495621, 'fraction_numerical': 0.0035026269702276708, 'mean_word_length': 3.9695652173913043, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6403060', 'n_tokens_mistral': 369, 'n_tokens_neox': 344, 'n_words': 96}