code: def total_percent_covered(self):
          
          total_lines = self.total_num_lines()
  
          if total_lines > 0:
              num_covered = total_lines - self.total_num_violations()
              return int(float(num_covered) / total_lines * 100)
  
          else:
              return 100
docs: Returns the float percent of lines in the diff that are covered.
          (only counting lines for which we have coverage info).