e676433ece6bc034beb9eedaeb19fc5b786dc565,server/website/website/views.py,,edit_knobs,#Any#Any#Any#,329
Before Change
instance.save()
return HttpResponse(status=204)
else:
knobs = KnobCatalog.objects.filter(dbms=session.dbms).order_by("-tunable")
forms = []
for knob in knobs:
knob_values = model_to_dict(knob)
if SessionKnob.objects.filter(session=session, knob=knob).exists():
After Change
for knob in knobs:
knob_values = model_to_dict(knob)
knob_values["session"] = session
knob_values["name"] = KnobCatalog.objects.get(pk=knob.knob.pk).name
forms.append(SessionKnobForm(initial=knob_values))
context = {
"project": project,
"session": session,
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: cmu-db/ottertune
Commit Name: e676433ece6bc034beb9eedaeb19fc5b786dc565
Time: 2019-10-03
Author: dvanaken@cs.cmu.edu
File Name: server/website/website/views.py
Class Name:
Method Name: edit_knobs
Project Name: MTG/freesound
Commit Name: 4b37e6597c6eb64ea95f3c11ad9aa18ab2e97207
Time: 2019-09-05
Author: frederic.font@upf.edu
File Name: sounds/views.py
Class Name:
Method Name: front_page
Project Name: comic/grand-challenge.org
Commit Name: b2c7e6356a441ec6d8ef4277f2a103c454c2d253
Time: 2019-04-09
Author: code@jmsmkn.com
File Name: app/grandchallenge/workstations/templatetags/workstations.py
Class Name:
Method Name: workstation_url