Module Expr Str Import alias Import alias ImportFrom alias Import alias ImportFrom alias ImportFrom alias identifier Import alias Expr Call AttributeLoad NameLoad attr NameLoad ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias ImportFrom alias Expr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Str FunctionDef arguments args defaults body Assign NameStore Call NameLoad NameLoad keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str If CompareIs NameLoad NameLoad body Assign NameStore Num TryExcept body Assign NameStore Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Num TryExcept body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr Num Assign NameStore Call NameLoad NameLoad Assign NameStore ListComp TupleLoad AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad AttributeLoad NameLoad attr comprehension NameStore NameLoad If CompareEq Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr Num body Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad keyword NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore ListLoad Assign NameStore ListLoad Assign NameStore ListLoad Expr Call NameLoad Assign NameStore Call NameLoad For TupleStore NameStore NameStore NameStore NameLoad body Assign NameStore Call AttributeLoad Str attr NameLoad NameLoad Print Call AttributeLoad Str attr NameLoad BinOpMult Str Call NameLoad NameLoad Assign NameStore NameLoad For NameStore NameLoad body Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If NameLoad body Assign NameStore NameLoad Print Call AttributeLoad Str attr Call AttributeLoad NameLoad attr NameLoad If BoolOpAnd CompareIn NameLoad NameLoad CompareIsNot SubscriptLoad NameLoad Index NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body Print Str Print TupleLoad If NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Assign NameStore ListLoad Str Str Str Str Str Str Str Str Assign NameStore Str Print Call AttributeLoad Str attr NameLoad BinOpMult Str Call NameLoad NameLoad For NameStore NameLoad body Print Call AttributeLoad Str attr NameLoad SubscriptLoad NameLoad Index NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad If NameLoad body Assign NameStore ListComp NameLoad comprehension NameStore NameLoad CompareEq AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr Num Return NameLoad decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A 
IEPY rules verifier


Usage:
    rules_verifier.py <relation> [options]

Options:
  --shuffle             Chooses the sample randomly and not the first ones
  --create-evidences    Creates evidences that are missing [default: false]
  -r --rule=<rule>      Tests only this rule
  -l --limit=<limit>    Limits the amount of evidences uses
  -h --help             Show this screen
 N/A sys N/A logging docopt docopt N/A refo django.core.exceptions ObjectDoesNotExist colorama init colorama_init N/A iepy N/A N/A N/A iepy setup __file__ iepy.data models iepy.data.models EvidenceCandidate iepy.data.db CandidateEvidenceManager iepy.extraction.terminal TerminalEvidenceFormatter iepy.extraction.rules load_rules compile_rule generate_tokens_to_match iepy.metrics result_dict_from_predictions N/A N/A N/A logging basicConfig level N/A logging INFO format %(message)s run_from_command_line N/A N/A N/A N/A N/A opts N/A docopt __doc__ version N/A iepy __version__ N/A relation_name N/A N/A opts get <relation> N/A limit N/A N/A opts get --limit N/A rule_name N/A N/A opts get --rule N/A shuffle N/A N/A opts get --shuffle N/A create_evidences N/A N/A opts get --create-evidences N/A N/A limit None N/A N/A limit -1 N/A N/A N/A limit N/A int limit N/A N/A N/A ValueError N/A N/A N/A N/A logging error Invalid limit value, it must be a number N/A N/A N/A sys exit 1 N/A N/A N/A relation N/A N/A N/A N/A models Relation objects get name relation_name N/A N/A N/A ObjectDoesNotExist N/A N/A N/A N/A logging error N/A N/A Relation {!r} not found format relation_name N/A N/A N/A sys exit 1 N/A rules N/A get_rules rule_name N/A rule_regexes N/A N/A N/A rule __name__ N/A compile_rule rule relation N/A rule answer N/A rule rules N/A N/A N/A N/A N/A N/A N/A EvidenceCandidate objects all count 0 N/A N/A create_evidences True N/A evidences N/A N/A CandidateEvidenceManager candidates_for_relation relation create_evidences seg_limit limit shuffle_segs shuffle N/A conflict_solver N/A CandidateEvidenceManager conflict_resolution_newest_wins N/A answers N/A N/A CandidateEvidenceManager labels_for relation evidences conflict_solver N/A N/A run_tests rule_regexes evidences answers N/A run_tests N/A N/A rule_regexes evidences answers N/A N/A N/A predictions N/A N/A real_labels N/A N/A evidences_with_labels N/A N/A N/A colorama_init N/A formatter N/A TerminalEvidenceFormatter N/A N/A name regex answer rule_regexes N/A N/A title N/A N/A Matches for rule '{}' (value: {}) format name answer N/A N/A N/A 
{}
{} format title N/A - N/A len title N/A anything_matched False N/A evidence evidences N/A N/A tokens_to_match N/A generate_tokens_to_match evidence N/A match N/A N/A refo match regex tokens_to_match N/A match N/A N/A anything_matched True N/A N/A N/A   * {} format N/A N/A formatter colored_text evidence N/A N/A N/A evidence answers N/A N/A answers N/A evidence None N/A N/A N/A N/A evidences_with_labels append evidence N/A N/A N/A real_labels append N/A answers N/A evidence N/A match N/A N/A N/A N/A predictions append answer N/A N/A N/A N/A predictions append False N/A N/A anything_matched N/A N/A   nothing matched N/A N/A N/A real_labels N/A N/A results N/A result_dict_from_predictions evidences_with_labels real_labels predictions N/A N/A N/A results pop end_time N/A keys N/A true_positives true_negatives false_positives false_negatives precision recall accuracy f1 N/A title Metrics N/A N/A N/A {}
{} format title N/A - N/A len title N/A key keys N/A N/A N/A N/A {:>15}: {:.2f} format key N/A results N/A key N/A get_rules N/A N/A rule_name N/A N/A N/A rules N/A load_rules N/A rule_name N/A N/A rules N/A x N/A x rules N/A N/A x __name__ rule_name N/A N/A rules N/A N/A N/A N/A logging error N/A N/A rule '{}' does not exists format rule_name N/A N/A N/A sys exit 1 N/A rules N/A N/A N/A __name__ __main__ N/A N/A N/A run_from_command_line