0f0c1da0bc38317c7d2e8f70759c347878c747e5,debug_toolbar/middleware.py,DebugToolbarMiddleware,process_response,#DebugToolbarMiddleware#,86

Before Change


                panel.process_view(request, view_func, view_args, view_kwargs)

    def process_response(self, request, response):
        if request not in self.debug_toolbars:
            return response
        if self.debug_toolbars[request].config["INTERCEPT_REDIRECTS"]:
            if isinstance(response, HttpResponseRedirect):
                redirect_to = response.get("Location", None)
                if redirect_to:

After Change


        ident = thread.get_ident()
        toolbar = self.debug_toolbars.get(ident)
        if not toolbar:
            return
        if toolbar.config["INTERCEPT_REDIRECTS"]:
            if isinstance(response, HttpResponseRedirect):
                redirect_to = response.get("Location", None)
                if redirect_to:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: jazzband/django-debug-toolbar
Commit Name: 0f0c1da0bc38317c7d2e8f70759c347878c747e5
Time: 2011-03-28
Author: dcramer@gmail.com
File Name: debug_toolbar/middleware.py
Class Name: DebugToolbarMiddleware
Method Name: process_response


Project Name: ilastik/ilastik
Commit Name: 5c6d497235f3c687b27f4a29dafd3bae39332b04
Time: 2019-11-25
Author: tomaz.vieira@embl.de
File Name: ilastik/__init__.py
Class Name: Project
Method Name: workflowName


Project Name: erichson/ristretto
Commit Name: 89b703017ad90e56ce6382bb4686cab3430c46bc
Time: 2018-05-22
Author: jknox13@uw.edu
File Name: ristretto/sketch/transforms.py
Class Name:
Method Name: randomized_uniform_sampling