def view_exists(self, path, view):
        # Check if view already exists
        with open(path, 'r') as view_file:
            for line in view_file.readlines():
                if 'def {0}('.format(view) in line:
                    return True
        return False
dataset/ETHPy150Open Tivix/django-common/django_common/scaffold.py/Scaffold.view_exists/original