mirror of
https://github.com/karma-riuk/crab.git
synced 2025-07-05 13:38:12 +02:00
changed the structure of the dataset
This commit is contained in:
@ -1,5 +1,5 @@
|
|||||||
from dataclasses import dataclass, field
|
from dataclasses import dataclass, field
|
||||||
from typing import List
|
from typing import Dict, List
|
||||||
import json
|
import json
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
@ -25,10 +25,10 @@ class Diff:
|
|||||||
@dataclass
|
@dataclass
|
||||||
class DatasetEntry:
|
class DatasetEntry:
|
||||||
metadata: Metadata
|
metadata: Metadata
|
||||||
files: List[FileData] # files before the PR (before the first PR commits)
|
files: Dict[str, FileData] # filename -> file data, files before the PR (before the first PR commits)
|
||||||
diffs_before: List[Diff] # diffs between the opening of the PR and the comment
|
diffs_before: Dict[str, Diff] # filename -> diff, diffs between the opening of the PR and the comment
|
||||||
comment: str
|
comment: str
|
||||||
diffs_after: List[Diff] # changes after the comment
|
diffs_after: Dict[str, Diff] # filename -> diff, changes after the comment
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
class Dataset:
|
class Dataset:
|
||||||
|
Reference in New Issue
Block a user