Module ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Lambda arguments args NameParam NameParam defaults BinOpMult BinOpDiv Call NameLoad NameLoad BoolOpOr NameLoad NameLoad Num Num Assign NameStore IfExp NameLoad Call NameLoad keyword NameLoad Call NameLoad AugAssignBitAnd NameStore IfExp NameLoad Call NameLoad keyword NameLoad Call NameLoad For NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Str body Assign SubscriptStore NameLoad Index AttributeLoad NameLoad attr Dict Str Str Str Str Str Str Num Num Num Num Num Str If CompareGt Call NameLoad Call NameLoad AttributeLoad NameLoad attr Num body Assign NameStore SubscriptLoad NameLoad Index AttributeLoad Call AttributeLoad Call NameLoad AttributeLoad NameLoad attr attr attr Assign NameStore Call AttributeLoad Call AttributeLoad Call NameLoad AttributeLoad NameLoad attr attr keyword NameLoad attr Str Assign NameStore Call AttributeLoad Call NameLoad AttributeLoad NameLoad attr attr Str Assign NameStore BinOpAdd NameLoad BinOpMult AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore BinOpMult AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index AttributeLoad NameLoad attr Dict Str Str Str Str Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Call NameLoad NameLoad NameLoad Call NameLoad AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad For NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Return Call AttributeLoad Str attr NameLoad decorator_list
N/A collections OrderedDict mongoengine Q vulyk.app TASKS_TYPES vulyk.models.tasks Batch AbstractTask batch_completeness N/A N/A batch_name task_type N/A N/A N/A 
    Gathers completeness stats on every batch using 2 metrics:
    - actually completed tasks
    - actual reports to total planned amount ratio (tasks * redundancy)

    :param batch_name: Optional name of batch to filter by
    :type batch_name: basestring
    :param task_type: Optional name of task type to filter by
    :type task_type: basestring

    :rtype: OrderedDict
     N/A batches N/A OrderedDict N/A rs N/A N/A N/A batch N/A N/A N/A AbstractTask objects batch batch N/A percent N/A N/A N/A done total N/A N/A N/A N/A float done N/A total done 1 100 N/A query N/A batch_name N/A Q id batch_name N/A Q N/A query N/A task_type N/A Q task_type task_type N/A Q N/A b N/A N/A N/A N/A Batch objects query order_by id N/A N/A N/A batches N/A N/A b id N/A total flag flag_percent answers answers_percent breakdown 0 0 0 0 0 N/A N/A N/A len N/A rs N/A b id 0 N/A N/A rs_task N/A TASKS_TYPES N/A N/A N/A N/A N/A rs N/A b id first task_type N/A answers N/A N/A N/A N/A N/A rs N/A b id filter closed False sum users_count N/A answers_all N/A N/A N/A rs N/A b id sum users_count N/A answers_mix N/A answers N/A N/A rs_task redundancy N/A b tasks_processed N/A answers_needed N/A N/A b tasks_count N/A rs_task redundancy N/A N/A batches N/A N/A b id N/A total flag flag_percent answers answers_percent breakdown N/A b tasks_count N/A b tasks_processed N/A percent N/A b tasks_processed N/A b tasks_count answers_all N/A percent answers_mix answers_needed N/A _breakdown_by_processed N/A b id N/A batches N/A _breakdown_by_processed N/A N/A batch N/A N/A N/A 
    Combines stats on responses count ratio for certain batch

    :param batch: Batch ID
    :type batch: str | basestring

    :returns: string ready to be displayed in CLI
    :rtype: str
     N/A result N/A N/A rs N/A N/A AbstractTask objects batch batch N/A i N/A N/A N/A N/A rs item_frequencies users_count items N/A N/A N/A N/A result append N/A N/A {:>12}: {} format i N/A N/A N/A join result N/A