def get_context_data(self, **kwargs):
        settings = DRFSettings().settings
        if settings["HIDE_DOCS"]:
            raise Http404("Django Rest Framework Docs are hidden. Check your settings.")

        context = super(DRFDocsView, self).get_context_data(**kwargs)
        docs = ApiDocumentation()
        endpoints = docs.get_endpoints()

        query = self.request.GET.get("search", "")
        if query and endpoints:
            endpoints = [endpoint for endpoint in endpoints if endpoint.path in query]

        context['query'] = query
        context['endpoints'] = endpoints
        return context
dataset/ETHPy150Open ekonstantinidis/django-rest-framework-docs/rest_framework_docs/views.py/DRFDocsView.get_context_data/swapped operands of `in`