e40b2c0fbdbd932be5f9d0550a16b6652de0d38d,debug_toolbar/panels/template.py,TemplateDebugPanel,content,#TemplateDebugPanel#,47
Before Change
return ""
def content(self):
templates = [
(t.name, t.origin and t.origin.name or "No origin")
for t in self.templates_used
]
context = {
"templates": templates,
"template_dirs": settings.TEMPLATE_DIRS,
}
After Change
t.origin_name = "No origin"
info["template"] = t
// Clean up context for better readability
c = d.get("context", None)
info["context"] = "\n".join([_d.__repr__() for _d in c.dicts])
template_context.append(info)
context = {
"templates": template_context,
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: jazzband/django-debug-toolbar
Commit Name: e40b2c0fbdbd932be5f9d0550a16b6652de0d38d
Time: 2008-09-18
Author: rhudson@orcasinc.com
File Name: debug_toolbar/panels/template.py
Class Name: TemplateDebugPanel
Method Name: content
Project Name: scikit-learn-contrib/categorical-encoding
Commit Name: 9da9c8edd24bede6eeeeea8739835ea53ca58cbc
Time: 2018-10-21
Author: jcastaldo08@gmail.com
File Name: category_encoders/one_hot.py
Class Name: OneHotEncoder
Method Name: reverse_dummies
Project Name: scikit-learn-contrib/categorical-encoding
Commit Name: f4838c7408b81ad960c047df5984901927a86d86
Time: 2018-10-26
Author: jcastaldo08@gmail.com
File Name: category_encoders/one_hot.py
Class Name: OneHotEncoder
Method Name: generate_mapping