code: def set_stats(self, run_stats):
          
          self.stats = run_stats.copy()
          self.stats['files'] = ', '.join(self.stats['files'])
          self.stats['tot_files'] = len(run_stats['files'])
          self.stats['extra_tags'] = ', '.join(self.stats['extra_tags'])
docs: Set run statistics for the report.