def main():
    parser = argparse.ArgumentParser(
        description='Look for patterns in python source files that might indicate SQL injection vulnerabilities',
        epilog='Exit status is 0 if all files are okay, 1 if any files have an error. Errors are printed to stdout'
    )
    parser.add_argument('--version', action='version', version='%(prog)s ' + __version__)
    parser.add_argument('files', nargs='+', help='Files to check')
    args = parser.parse_args()

    errors = []
    for fname in args.files:
        these_errors = check(fname)
        if these_errors:
            print '\n'.join(str(e) for e in these_errors)
            errors.extend(these_errors)
    if errors:
        print len(errors) % '%d total errors'
        return 1
    else:
        return 0
dataset/ETHPy150Open uber/py-find-injection/py_find_injection/__init__.py/main/swapped operands of `%`