5d095f66fde8f10b45a93c0b35be0a85762b0458,debug_toolbar/panels/templates/panel.py,TemplatesPanel,_store_template_info,#TemplatesPanel#,81

Before Change


                // If we can find this layer in our pseudo-cache then find the
                // matching prettified version in the associated list.
                key_values = sorted(context_layer.items())
                if key_values in self.seen_layers:
                    index = self.seen_layers.index(key_values)
                    pformatted = self.pformat_layers[index]
                else:

After Change


                // Check if the layer is in the cache.
                key_values = sorted(context_layer.items())
                pformatted = None
                for _key_values, _pformatted in self.pformat_layers:
                    if _key_values == key_values:
                        pformatted = _pformatted
                        break

                if pformatted is None:
                    temp_layer = {}
                    for key, value in context_layer.items():
                        // Replace any request elements - they have a large
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: jazzband/django-debug-toolbar
Commit Name: 5d095f66fde8f10b45a93c0b35be0a85762b0458
Time: 2019-06-20
Author: jon.dufresne@gmail.com
File Name: debug_toolbar/panels/templates/panel.py
Class Name: TemplatesPanel
Method Name: _store_template_info


Project Name: lingpy/lingpy
Commit Name: 4560e7769fc21e04c5f673f0549de6601d43de45
Time: 2013-09-09
Author: mattis.list@posteo.de
File Name: setup.py
Class Name:
Method Name:


Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: 5c362b15bdd7a158332d5ddc92b692416a10c834
Time: 2020-08-26
Author: 35782177+melaniedejong@users.noreply.github.com
File Name: iam/api-client/quickstartv2.py
Class Name:
Method Name: modify_policy_add_role