70d3aa1b8c12d614f2ca1b1b550bb605d8c8a506,debug_toolbar/middleware.py,DebugToolbarMiddleware,process_request,#DebugToolbarMiddleware#,60

Before Change


        if self.show_toolbar(request):
            toolbar = DebugToolbar(request)
            for panel in toolbar.panels:
                panel.enabled = panel.dom_id() not in request.COOKIES
                if not panel.enabled:
                    continue
                panel.enable_instrumentation()
                panel.process_request(request)
            self.__class__.debug_toolbars[threading.current_thread().ident] = toolbar

After Change


            panel.enable_instrumentation()
        for panel in toolbar.enabled_panels:
            response = panel.process_request(request)
            if response:
                break
        self.__class__.debug_toolbars[threading.current_thread().ident] = toolbar
        return response

    def process_view(self, request, view_func, view_args, view_kwargs):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: jazzband/django-debug-toolbar
Commit Name: 70d3aa1b8c12d614f2ca1b1b550bb605d8c8a506
Time: 2013-11-15
Author: aymeric.augustin@m4x.org
File Name: debug_toolbar/middleware.py
Class Name: DebugToolbarMiddleware
Method Name: process_request


Project Name: biocore/scikit-bio
Commit Name: daf661c3edd949f8ac2cd70e4a725d9a055cc0c3
Time: 2016-06-27
Author: mcdonadt@colorado.edu
File Name: skbio/tree/_tree.py
Class Name: TreeNode
Method Name: shear


Project Name: coala/coala-bears
Commit Name: 2bff58313dbd12e5ebc00db492496e864f8eb4db
Time: 2017-08-28
Author: adhika.setyap@gmail.com
File Name: bears/general/CPDBear.py
Class Name: CPDBear
Method Name: run