Update
Browse files
app.py
CHANGED
@@ -216,11 +216,11 @@ with demo:
|
|
216 |
fixed_bug_title_id_pairs = [(bug_id_to_title[bug_id], bug_id) for bug_id in sorted(fixed_bug_ids)]
|
217 |
with gr.Column():
|
218 |
inspect_issue = gr.Dropdown(fixed_bug_title_id_pairs, label="Inspct Issue", interactive=True)
|
219 |
-
golden_patch = gr.Code("", language="cpp", label="Golden Patch")
|
220 |
|
221 |
with gr.Column():
|
222 |
inspect_fix = gr.Dropdown(list(bug_ids_to_patches.keys()), label="Method(Model)", interactive=True)
|
223 |
-
method_patch = gr.Code("", language="cpp", label="APR Patch")
|
224 |
inspect_issue.change(
|
225 |
fn=lambda bug_id, method: (
|
226 |
bug_id_to_patch.get(bug_id, f"Not Available (bug_id = {bug_id})"),
|
|
|
216 |
fixed_bug_title_id_pairs = [(bug_id_to_title[bug_id], bug_id) for bug_id in sorted(fixed_bug_ids)]
|
217 |
with gr.Column():
|
218 |
inspect_issue = gr.Dropdown(fixed_bug_title_id_pairs, label="Inspct Issue", interactive=True)
|
219 |
+
golden_patch = gr.Code("", language="cpp", label="Golden Patch", wrap_lines=True)
|
220 |
|
221 |
with gr.Column():
|
222 |
inspect_fix = gr.Dropdown(list(bug_ids_to_patches.keys()), label="Method(Model)", interactive=True)
|
223 |
+
method_patch = gr.Code("", language="cpp", label="APR Patch", wrap_lines=True)
|
224 |
inspect_issue.change(
|
225 |
fn=lambda bug_id, method: (
|
226 |
bug_id_to_patch.get(bug_id, f"Not Available (bug_id = {bug_id})"),
|