ad110e020cbae062ba024d91223df519af3adc96,debug_toolbar/panels/template.py,TemplateDebugPanel,content,#TemplateDebugPanel#,67

Before Change


                                context_layer[key] = "<<request>>"
                            // Replace the debugging sql_queries element. The SQL
                            // data is already made available from the SQL panel.
                            elif key == "sql_queries" and isinstance(value, list):
                                context_layer[key] = "<<sql_queries>>"
                            // Replace LANGUAGES, which is available in i18n context processor
                            elif key == "LANGUAGES" and isinstance(value, tuple):

After Change


            info["template"] = template
            // Clean up context for better readability
            if getattr(settings, "DEBUG_TOOLBAR_CONFIG", {}).get("SHOW_TEMPLATE_CONTEXT", True):
                context_list = template_data.get("context", [])
                info["context"] = "\n".join(context_list)
            template_context.append(info)

        context = self.context.copy()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: jazzband/django-debug-toolbar
Commit Name: ad110e020cbae062ba024d91223df519af3adc96
Time: 2011-07-12
Author: dcramer@gmail.com
File Name: debug_toolbar/panels/template.py
Class Name: TemplateDebugPanel
Method Name: content


Project Name: samuelclay/NewsBlur
Commit Name: f14de2403b7255d3703d0f558d481c164080fd1e
Time: 2010-09-16
Author: samuel@ofbrooklyn.com
File Name: utils/story_functions.py
Class Name:
Method Name: pre_process_story


Project Name: tensorflow/models
Commit Name: f3641f23b2f82cb98503bdd27d3e22077d3bf90b
Time: 2020-10-21
Author: hongkuny@google.com
File Name: official/nlp/modeling/models/seq2seq_transformer.py
Class Name: Seq2SeqTransformer
Method Name: call