mirror of
https://github.com/karma-riuk/crab.git
synced 2025-07-04 13:18:13 +02:00
made code more consistent
This commit is contained in:
@ -16,8 +16,8 @@ class OutputType(Enum):
|
|||||||
@dataclass
|
@dataclass
|
||||||
class CommentGenSubmission:
|
class CommentGenSubmission:
|
||||||
path: str
|
path: str
|
||||||
line_from: int
|
from_: int
|
||||||
line_to: Optional[int]
|
to: Optional[int]
|
||||||
body: str
|
body: str
|
||||||
|
|
||||||
|
|
||||||
@ -52,8 +52,8 @@ def extract_comment_predictions(dataset_path: str, output_path: str):
|
|||||||
if sel and sel.comment_suggests_change:
|
if sel and sel.comment_suggests_change:
|
||||||
results[entry.metadata.id] = CommentGenSubmission(
|
results[entry.metadata.id] = CommentGenSubmission(
|
||||||
path=entry.comments[0].file,
|
path=entry.comments[0].file,
|
||||||
line_from=entry.comments[0].from_,
|
from_=entry.comments[0].from_,
|
||||||
line_to=entry.comments[0].to,
|
to=entry.comments[0].to,
|
||||||
body=entry.comments[0].body,
|
body=entry.comments[0].body,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user