d85509edab8290666d056ba5f0a9423feceb64d5,debug_toolbar/panels/sql.py,SQLDebugPanel,content,#SQLDebugPanel#,14

Before Change



    def content(self):
        query_info = []
        for q in connection.queries:
            query_info.append("<dt><strong>%s</strong></dt><dd>%s</dd>" % (q["time"], q["sql"]))
        return "<dl>%s</dl>" % ("".join(query_info))

After Change


        return ""

    def content(self):
        t = Template("""
            <dl>
                {% for q in queries %}
                    <dt><strong>{{ q.time }}</strong></dt>
                    <dd>{{ q.sql }}</dd>
                {% endfor %}
            </dl>
        """)
        c = Context({"queries": connection.queries})
        return t.render(c)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: jazzband/django-debug-toolbar
Commit Name: d85509edab8290666d056ba5f0a9423feceb64d5
Time: 2008-09-07
Author: rob@cogit8.org
File Name: debug_toolbar/panels/sql.py
Class Name: SQLDebugPanel
Method Name: content


Project Name: PIQuIL/QuCumber
Commit Name: 5041068ea241f946217690aee63942261911b42d
Time: 2018-08-07
Author: emerali@users.noreply.github.com
File Name: tasks.py
Class Name:
Method Name: build_docs


Project Name: MolSSI/QCEngine
Commit Name: b0ad8540b0aafd020da4d524399edf7fd58a35fe
Time: 2019-06-13
Author: sjrl423@gmail.com
File Name: qcengine/programs/molpro.py
Class Name: MolproHarness
Method Name: build_input