<commit_before>from typing import List

import click

from housekeeper.store import Store


@click.command()
@click.option('-t', '--tag', 'tags', multiple=True, help='filter by file tag')
@click.option('-v', '--version', type=int, help='filter by version of the bundle')
@click.argument('bundle', required=False)
@click.pass_context
def get(context, bundle: str, tags: List[str], version: int):
    """Get files."""
    store = Store(context.obj['database'], context.obj['root'])
    files = store.files(bundle=bundle, tags=tags, version=version)
    for file_obj in files:
        click.echo(file_obj.full_path)<commit_msg>add verbose option to get<commit_after>from typing import List

import click

from housekeeper.store import Store


@click.command()
@click.option('-t', '--tag', 'tags', multiple=True, help='filter by file tag')
@click.option('-v', '--version', type=int, help='filter by version of the bundle')
@click.option('--verbose', is_flag=True, help='print additional information')
@click.argument('bundle', required=False)
@click.pass_context
def get(context, tags: List[str], version: int, verbose: bool, bundle: str):
    """Get files."""
    store = Store(context.obj['database'], context.obj['root'])
    files = store.files(bundle=bundle, tags=tags, version=version)
    for file_obj in files:
        if verbose:
            tags = ', '.join(tag.name for tag in file_obj.tags)
            click.echo(f"{click.style(file_obj.id, fg='blue')} | {file_obj.full_path} | {tags}")
        else:
            click.echo(file_obj.full_path)
{'fraction_non_alphanumeric': 0.1643041237113402, 'fraction_numerical': 0.0, 'mean_word_length': 4.487632508833922, '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': '6163369', 'n_tokens_mistral': 485, 'n_tokens_neox': 479, 'n_words': 129}