stability_label_algorithm/modules/argumentation/labelers/acceptability_labeler.py
def color_rule(rule, labels):
        """
        Color the Rule, that is: check, based on its antecedents, if this Rule can still become unsatisfiable, defended,
        out or blocked.
        """
        if any([not labels.literal_labeling[literal].defended for literal in rule.antecedents]):
            labels.rule_labeling[rule].defended = False                     # R-D-a

        if all([not labels.literal_labeling[literal].out for literal in rule.antecedents]):
            labels.rule_labeling[rule].out = False                          # R-O-a

        if all([not labels.literal_labeling[literal].blocked for literal in rule.antecedents]):
            labels.rule_labeling[rule].blocked = False                      # R-B-a
        if any([not labels.literal_labeling[literal].blocked and
                not labels.literal_labeling[literal].defended for literal in rule.antecedents]):
            labels.rule_labeling[rule].blocked = False                      # R-B-b

        Color the Rule, that is: check, based on its antecedents, if this Rule can still become unsatisfiable, defended,
        out or blocked.
        
Color the Rule, that is: check, based on its antecedents, if this Rule can still become unsatisfiable, defended,
out or blocked.
Color the Rule that is : check based on its antecedents if this Rule can still become unsatisfiable defended out or blocked .
def color_rule(rule, labels):
        if any([not labels.literal_labeling[literal].defended for literal in rule.antecedents]):
            labels.rule_labeling[rule].defended = False                     
        if all([not labels.literal_labeling[literal].out for literal in rule.antecedents]):
            labels.rule_labeling[rule].out = False                          
        if all([not labels.literal_labeling[literal].blocked for literal in rule.antecedents]):
            labels.rule_labeling[rule].blocked = False                      
        if any([not labels.literal_labeling[literal].blocked and
                not labels.literal_labeling[literal].defended for literal in rule.antecedents]):
            labels.rule_labeling[rule].blocked = False                      
def color_rule ( rule , labels ) : if any ( [ not labels . literal_labeling [ literal ] . defended for literal in rule . antecedents ] ) : labels . rule_labeling [ rule ] . defended = False if all ( [ not labels . literal_labeling [ literal ] . out for literal in rule . antecedents ] ) : labels . rule_labeling [ rule ] . out = False if all ( [ not labels . literal_labeling [ literal ] . blocked for literal in rule . antecedents ] ) : labels . rule_labeling [ rule ] . blocked = False if any ( [ not labels . literal_labeling [ literal ] . blocked and not labels . literal_labeling [ literal ] . defended for literal in rule . antecedents ] ) : labels . rule_labeling [ rule ] . blocked = False
Color the Rule, that is: check, based on its antecedents, if this Rule can still become unsatisfiable, defended,
out or blocked.
Color the Rule that is : check based on its antecedents if this Rule can still become unsatisfiable defended out or blocked .
"""
        Color the Rule, that is: check, based on its antecedents, if this Rule can still become unsatisfiable, defended,
        out or blocked.
        """ # R-D-a # R-O-a # R-B-a # R-B-b
rule
labels