mirror of
https://github.com/karma-riuk/crab.git
synced 2025-07-05 05:28:13 +02:00
added link to paraphrases extraction
This commit is contained in:
@ -30,6 +30,7 @@ def extract_comment_for_paraphrases(dataset_path: str, output_path: str):
|
|||||||
comment = entry.comments[0].__dict__
|
comment = entry.comments[0].__dict__
|
||||||
del comment["paraphrases"]
|
del comment["paraphrases"]
|
||||||
results[entry.metadata.id] = {
|
results[entry.metadata.id] = {
|
||||||
|
"link": f"https://github.com/{entry.metadata.repo}/pull/{entry.metadata.pr_number}",
|
||||||
"comment": comment,
|
"comment": comment,
|
||||||
"files": {fname: fdata.content_before_pr for fname, fdata in entry.files.items()},
|
"files": {fname: fdata.content_before_pr for fname, fdata in entry.files.items()},
|
||||||
"diffs_before": entry.diffs_before,
|
"diffs_before": entry.diffs_before,
|
||||||
|
Reference in New Issue
Block a user