def run_score(self):
diffs = <NUM_LIT:0><EOL>lines = <NUM_LIT:0><EOL>for file in self.files:<EOL><INDENT>try:<EOL><INDENT>results = self._check(file)<EOL><DEDENT>except Error as e:<EOL><INDENT>termcolor.cprint(e.msg, "<STR_LIT>", file=sys.stderr)<EOL>continue<EOL><DEDENT>diffs += results.diffs<EOL>lines += results.lines<EOL><DEDENT>try:<EOL><INDENT>print(max(<NUM_LIT:1> - diffs / lines, <NUM_LIT:0.0>))<EOL><DEDENT>except ZeroDivisionError:<EOL><INDENT>print(<NUM_LIT:0.0>)<EOL><DEDENT>
Run checks on self.files, printing raw percentage to stdout.