def _get_violation_success_percent(self, task, name):
        for violation in task['violations']:
            if violation['name'] == name:
                return violation.get('success_percent', 0)
Get violation success percent
dataset/ETHPy150Open nvbn/coviolations_web/projects/models.py/Project._get_violation_success_percent