7bd485aacd5c3114b871477ba0bcaa7c154aa324,wiki/views.py,,history,#,79

Before Change



        diff = difflib.HtmlDiff(4, 55).make_table(version1.body.split("\n"), version2.body.split("\n"), "version %d" % version1.id, "version %d" % version2.id, True, 5)

    return render(request, "wiki/history.html", locals())

After Change



        diff = difflib.HtmlDiff(4, 55).make_table(version1.body.split("\n"), version2.body.split("\n"), "version %d" % version1.id, "version %d" % version2.id, True, 5)

    tvars = {"page": page,
             "versions": versions,
             "version1": version1,
             "version2": version2,
             "diff": diff}
    return render(request, "wiki/history.html", tvars)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: MTG/freesound
Commit Name: 7bd485aacd5c3114b871477ba0bcaa7c154aa324
Time: 2017-10-31
Author: alastair.porter@upf.edu
File Name: wiki/views.py
Class Name:
Method Name: history


Project Name: MTG/freesound
Commit Name: b65808684dd545081bbc72772b34dd365de903fb
Time: 2018-06-19
Author: alastair.porter@upf.edu
File Name: tickets/models.py
Class Name: Ticket
Method Name: send_notification_emails


Project Name: MTG/freesound
Commit Name: 7bd485aacd5c3114b871477ba0bcaa7c154aa324
Time: 2017-10-31
Author: alastair.porter@upf.edu
File Name: wiki/views.py
Class Name:
Method Name: editpage


Project Name: MTG/freesound
Commit Name: 7bd485aacd5c3114b871477ba0bcaa7c154aa324
Time: 2017-10-31
Author: alastair.porter@upf.edu
File Name: wiki/views.py
Class Name:
Method Name: page