

def _store_template_info(self, sender, **kwargs):
    (template, context) = (kwargs['template'], kwargs['context'])
    if (isinstance(template.name, six.string_types) and template.name.startswith('debug_toolbar/')):
        return
    context_list = []
    for context_layer in context.dicts:
        temp_layer = {
            
        }
        if hasattr(context_layer, 'items'):
            for (key, value) in context_layer.items():
                if isinstance(value, http.HttpRequest):
                    kwargs[key] = '<<request>>'
                elif ((key == 'sql_queries') and isinstance(value, list)):
                    temp_layer[key] = '<<sql_queries>>'
                elif ((key == 'LANGUAGES') and isinstance(value, tuple)):
                    temp_layer[key] = '<<languages>>'
                elif isinstance(value, (QuerySet, RawQuerySet)):
                    model_name = ('%s.%s' % (value.model._meta.app_label, value.model.__name__))
                    temp_layer[key] = ('<<%s of %s>>' % (value.__class__.__name__.lower(), model_name))
                else:
                    try:
                        recording(False)
                        pformat(value)
                    except SQLQueryTriggered:
                        temp_layer[key] = '<<triggers database query>>'
                    except UnicodeEncodeError:
                        temp_layer[key] = '<<unicode encode error>>'
                    except Exception:
                        temp_layer[key] = '<<unhandled exception>>'
                    else:
                        temp_layer[key] = value
                    finally:
                        recording(True)
        try:
            context_list.append(pformat(temp_layer))
        except UnicodeEncodeError:
            pass
    kwargs['context'] = [force_text(item) for item in context_list]
    kwargs['context_processors'] = getattr(context, 'context_processors', None)
    self.templates.append(kwargs)

dataset/ETHPy150Open django-debug-toolbar/django-debug-toolbar/debug_toolbar/panels/templates/panel.py TemplatesPanel._store_template_info/VarMisuse@119/151 `temp_layer`->`kwargs`