70d3aa1b8c12d614f2ca1b1b550bb605d8c8a506,debug_toolbar/middleware.py,DebugToolbarMiddleware,process_response,#DebugToolbarMiddleware#,86

Before Change


                force_text(toolbar.render_toolbar() + self.tag))
            if response.get("Content-Length", None):
                response["Content-Length"] = len(response.content)
        del self.__class__.debug_toolbars[ident]
        return response

After Change


            new_response = panel.process_response(request, response)
            if new_response:
                response = new_response
        for panel in reversed(toolbar.enabled_panels):
            panel.disable_instrumentation()
        if ("gzip" not in response.get("Content-Encoding", "") and
                response.get("Content-Type", "").split("")[0] in _HTML_TYPES):
            response.content = replace_insensitive(
                force_text(response.content, encoding=settings.DEFAULT_CHARSET),
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

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_response


Project Name: BVLC/caffe
Commit Name: 5d584c27f062e9557aa920af6758b995f4094ed9
Time: 2014-05-16
Author: shelhamer@imaginarynumber.net
File Name: python/caffe/pycaffe.py
Class Name:
Method Name: _Net_forward_backward_all


Project Name: shaypal5/pdpipe
Commit Name: 99095d5412483ec623278bdb1a0c9e24b18bfc85
Time: 2017-03-16
Author: shaypal5@gmail.com
File Name: pdpipe/__init__.py
Class Name:
Method Name:


Project Name: BVLC/caffe
Commit Name: 5d584c27f062e9557aa920af6758b995f4094ed9
Time: 2014-05-16
Author: shelhamer@imaginarynumber.net
File Name: python/caffe/pycaffe.py
Class Name:
Method Name: _Net_forward_all