def show_progress(self, n, total_runs):
        if self.report_progress:
            percentage, logger_name, log_level = self.report_progress
            if logger_name == 'print':
                logger = 'print'
            else:
                logger = logging.getLogger(logger_name)

            if n == -1:
                # Compute the number of digits and avoid log10(0)
                digits = int(math.log10(total_runs + 0.1)) + 1
                self._format_string = 'PROGRESS: Finished %' + '%d' % digits + 'd/%d runs '

            fmt_string = self._format_string % (n + 1, total_runs) + '%s'
            reprint = log_level == 0
            progressbar(n, total_runs, percentage_step=percentage,
                        logger=logger, log_level=log_level,
                        fmt_string=fmt_string, reprint=reprint)
Inserts missing permissions into the database table.
dataset/ETHPy150Open SmokinCaterpillar/pypet/pypet/pypetlogging.py/LoggingManager.show_progress--crossover with--dataset/ETHPy150Open cloudera/hue/apps/useradmin/src/useradmin/models.py/update_app_permissions