<commit_before>import click
from time_tracker.core.usecases import get_entries_list, get_total_stats
from time_tracker.config import Config


@click.command()
@click.option('--login', prompt='GitHub login',
              help='Your GitHub login', default=None)
@click.option('--password', prompt='GitHub password', hide_input=True,
              help='Your GitHub password', default=None)
@click.option('--repo', prompt='Repo address (url or local path)',
              help='Repository.')
@click.option('--committer', default=None,
              help='Limit results to given committer.')
@click.option('--issue', default=None,
              help='Limit results to commits related to given issue.')
@click.option('--milestone', default=None,
              help='Limit results to commits related to given milestone.')
@click.option('--total/--non-total', default=False,
              help='Give total time/budget instead of a list of entries.')
def print_time_tracking_info(
        login, password, repo, committer, issue, milestone, total):
    """Print time/budget info"""
    click.echo('\nRepository: ' + repo)

    def pretty_print_entry(entry):
        output_string = ''
        if committer:
            output_string += 'Committer: ' + committer + ' '
        output_string += 'Time: %s Cost: %s' % (entry['time'], entry['cost'])
        output_string += ' Commit: ' + str(entry['commit'])<commit_msg>:clock1: 10m | GitHub personal token<commit_after>import click
from time_tracker.core.usecases import get_entries_list, get_total_stats
from time_tracker.config import Config


@click.command()
@click.option('--token', '--login',
              prompt='GitHub login or personal access token',
              help='Your GitHub login or personal access token')
@click.option('--password',
              prompt='GitHub password (leav empty if token used)',
              hide_input=True, help='Your GitHub password', default='')
@click.option('--repo', prompt='Repo name', help='Repository.')
@click.option('--committer', default=None,
              help='Limit results to given committer.')
@click.option('--issue', default=None,
              help='Limit results to commits related to given issue.')
@click.option('--milestone', default=None,
              help='Limit results to commits related to given milestone.')
@click.option('--total/--non-total', default=False,
              help='Give total time/budget instead of a list of entries.')
def print_time_tracking_info(
        login, password, repo, committer, issue, milestone, total):
    """Print time/budget info"""
    click.echo('\nRepository: ' + repo)

    def pretty_print_entry(entry):
        output_string = ''
        if committer:
            output_string += 'Committer: ' + committer + ' '
        output_string += 'Time: %s Cost: %s' % (entry['time'], entry['cost'])
        output_string += ' Commit: ' + str(entry['commit'])
{'fraction_non_alphanumeric': 0.14384033035099794, 'fraction_numerical': 0.0010323468685478321, 'mean_word_length': 3.293943870014771, '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': '5613404', 'n_tokens_mistral': 821, 'n_tokens_neox': 799, 'n_words': 222}