code: def _update_stat(self, submission_type, increase_success, increase_fail):
      
      stat = self.stats.get(submission_type, (0, 0))
      stat = (stat[0] + increase_success, stat[1] + increase_fail)
      self.stats[submission_type] = stat
docs: Common method to update submission statistics.