mirror of
https://github.com/karma-riuk/crab.git
synced 2025-07-05 05:28:13 +02:00
moved enums to top of file
This commit is contained in:
21
dataset.py
21
dataset.py
@ -3,6 +3,18 @@ from enum import Enum
|
|||||||
from typing import Any, Dict, List, Optional, Union
|
from typing import Any, Dict, List, Optional, Union
|
||||||
import json, argparse, os, uuid
|
import json, argparse, os, uuid
|
||||||
|
|
||||||
|
|
||||||
|
class OutputType(Enum):
|
||||||
|
FULL = "full"
|
||||||
|
CODE_REFINEMENT = "code_refinement"
|
||||||
|
COMMENT_GEN = "comment_gen"
|
||||||
|
|
||||||
|
|
||||||
|
class ArchiveState(Enum):
|
||||||
|
BASE = "base"
|
||||||
|
MERGED = "merged"
|
||||||
|
|
||||||
|
|
||||||
# fmt: off
|
# fmt: off
|
||||||
@dataclass
|
@dataclass
|
||||||
class FileData:
|
class FileData:
|
||||||
@ -25,10 +37,6 @@ class Selection:
|
|||||||
diff_after_address_change: Optional[bool]
|
diff_after_address_change: Optional[bool]
|
||||||
is_code_related: bool
|
is_code_related: bool
|
||||||
|
|
||||||
class ArchiveState(Enum):
|
|
||||||
BASE = "base"
|
|
||||||
MERGED = "merged"
|
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
class Metadata:
|
class Metadata:
|
||||||
id: str
|
id: str
|
||||||
@ -88,11 +96,6 @@ class CodeRefinementEntry:
|
|||||||
comments=entry.comments,
|
comments=entry.comments,
|
||||||
)
|
)
|
||||||
|
|
||||||
class OutputType(Enum):
|
|
||||||
FULL = "full"
|
|
||||||
CODE_REFINEMENT = "code_refinement"
|
|
||||||
COMMENT_GEN = "comment_gen"
|
|
||||||
|
|
||||||
# fmt: on
|
# fmt: on
|
||||||
@dataclass
|
@dataclass
|
||||||
class Dataset:
|
class Dataset:
|
||||||
|
Reference in New Issue
Block a user