def _get_violation_success_percent(self, task, name):
        for violation in task['violations']:
            if violation['name'] == name:
                return violation.get('success_percent', 0)
The new-style print function.
dataset/ETHPy150Open nvbn/coviolations_web/projects/models.py/Project._get_violation_success_percent--crossover with--dataset/ETHPy150Open twisted/ldaptor/ldaptor/compat.py/print_