

@stats.command('batch')
@click.option('-n', '--batch_name', 'batch_name', type=click.Choice(_batches.batches_list()))
@click.option('-t', '--task_type', 'task_type', type=click.Choice(TASKS_TYPES.keys()))
def batch(batch_name, task_type):
    '\n    Prints out some numbers which describe the state of tasks in certain batch\n    '
    headers = ['Batch', 'Total', 'Completed (flag)', 'Percent (flag)', 'Answers', 'Percent (answers)', 'Breakdown (answers: tasks)']
    pt = VeryPrettyTable(headers)
    pt.align = 'l'
    pt.left_padding_width = 1
    pt.hrules = ALL
    for (k, v) in _stats.batch_completeness(batch_name, task_type).items():
        values = [k, v['total'], v['flag'], '{:5.1f} %'.format(v['flag_percent']), v['answers'], '{:5.1f} %'.format(v['answers_percent']), v['breakdown']]
        pt.add_row(values)
    print(headers)

dataset/ETHPy150Open mrgambal/vulyk/vulyk/control.py batch/VarMisuse@193/336 `pt`->`headers`