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

Before Change


                if not panel.enabled:
                    continue
                panel.enable_instrumentation()
                panel.process_request(request)
            self.__class__.debug_toolbars[threading.current_thread().ident] = toolbar

    def process_view(self, request, view_func, view_args, view_kwargs):
        __traceback_hide__ = True                                       // noqa

After Change


        for panel in toolbar.enabled_panels:
            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
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 8

Non-data size: 3

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: jazzband/django-debug-toolbar
Commit Name: 5299cf826284b6e082c5f18050e4f706faa81c39
Time: 2019-02-24
Author: jon.dufresne@gmail.com
File Name: tests/panels/test_staticfiles.py
Class Name: StaticFilesPanelTestCase
Method Name: test_insert_content


Project Name: jazzband/django-debug-toolbar
Commit Name: 5299cf826284b6e082c5f18050e4f706faa81c39
Time: 2019-02-24
Author: jon.dufresne@gmail.com
File Name: tests/panels/test_template.py
Class Name: TemplatesPanelTestCase
Method Name: test_object_with_non_ascii_repr_in_context


Project Name: jazzband/django-debug-toolbar
Commit Name: 5299cf826284b6e082c5f18050e4f706faa81c39
Time: 2019-02-24
Author: jon.dufresne@gmail.com
File Name: tests/test_integration.py
Class Name: DebugToolbarTestCase
Method Name: _resolve_stats


Project Name: jazzband/django-debug-toolbar
Commit Name: 5299cf826284b6e082c5f18050e4f706faa81c39
Time: 2019-02-24
Author: jon.dufresne@gmail.com
File Name: tests/panels/test_request.py
Class Name: RequestPanelTestCase
Method Name: test_non_ascii_session


Project Name: jazzband/django-debug-toolbar
Commit Name: 5299cf826284b6e082c5f18050e4f706faa81c39
Time: 2019-02-24
Author: jon.dufresne@gmail.com
File Name: tests/panels/test_request.py
Class Name: RequestPanelTestCase
Method Name: test_object_with_non_ascii_repr_in_request_params


Project Name: jazzband/django-debug-toolbar
Commit Name: 5299cf826284b6e082c5f18050e4f706faa81c39
Time: 2019-02-24
Author: jon.dufresne@gmail.com
File Name: tests/panels/test_template.py
Class Name: TemplatesPanelTestCase
Method Name: test_custom_context_processor


Project Name: jazzband/django-debug-toolbar
Commit Name: 5299cf826284b6e082c5f18050e4f706faa81c39
Time: 2019-02-24
Author: jon.dufresne@gmail.com
File Name: tests/panels/test_staticfiles.py
Class Name: StaticFilesPanelTestCase
Method Name: test_default_case