code: def total_num_violations(self):
          
  
          return sum(
              len(summary.lines)
              for summary
              in self._diff_violations().values()
          )
docs: Returns the total number of lines in the diff
          that are in violation.