We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2baa38 commit ffbd204Copy full SHA for ffbd204
1 file changed
src/codemodder/codetf.py
@@ -101,6 +101,17 @@ class Strategy(Enum):
101
deterministic = "deterministic"
102
103
104
+class Rating(BaseModel):
105
+ score: float
106
+ description: Optional[str] = None
107
+
108
109
+class FixQuality(BaseModel):
110
+ safetyRating: Rating
111
+ effectivenessRating: Rating
112
+ cleanlinessRating: Rating
113
114
115
class ChangeSet(BaseModel):
116
"""A set of changes made to a file at `path`"""
117
@@ -112,6 +123,7 @@ class ChangeSet(BaseModel):
123
provisional: Optional[bool] = False
124
# For fixed findings that are not associated with a specific change
125
fixedFindings: Optional[list[Finding]] = None
126
+ fixQuality: Optional[FixQuality] = None
127
128
def with_changes(self, changes: list[Change]) -> ChangeSet:
129
return ChangeSet(
0 commit comments