def should_be_python(self):
        # Get the file extension.
        _, ext = os.path.splitext(self.filename)

        # Anything named *.py* should be Python.
        if ext.startswith('.py'):
            return True
        # A file with no extension should be Python.
        if not ext:
            return True
        # Everything else is probably not Python.
        return False
Usage:
dataset/ETHPy150Open RoseOu/flasky/venv/lib/python2.7/site-packages/coverage/codeunit.py/CodeUnit.should_be_python--crossover with--dataset/ETHPy150Open evennia/evennia/evennia/locks/lockfuncs.py/inside