def has_coding(line):
    if not line.strip():
        return False
    return (
        line.lstrip()[0:1] == b'#' and (
            b'unicode' in line or
            b'encoding' in line or
            b'coding:' in line or
            b'coding=' in line
        )
    )
dataset/ETHPy150Open pre-commit/pre-commit-hooks/pre_commit_hooks/fix_encoding_pragma.py/has_coding/original