-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
95 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
framework/codemodder-base/src/main/java/io/codemodder/AICodemodFileScanningResult.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package io.codemodder; | ||
|
||
import io.codemodder.codetf.CodeTFAiMetadata; | ||
import io.codemodder.codetf.UnfixedFinding; | ||
import java.util.List; | ||
|
||
record AICodemodFileScanningResult( | ||
List<CodemodChange> changes, | ||
List<UnfixedFinding> unfixedFindings, | ||
CodeTFAiMetadata codeTFAiMetadata) | ||
implements CodemodFileScanningResult, AIMetadataProvider {} |
12 changes: 12 additions & 0 deletions
12
framework/codemodder-base/src/main/java/io/codemodder/AIMetadataProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package io.codemodder; | ||
|
||
import io.codemodder.codetf.CodeTFAiMetadata; | ||
|
||
/** Marks a class so that it can provide {@link CodeTFAiMetadata} to its consumers. */ | ||
interface AIMetadataProvider { | ||
|
||
/** | ||
* @return the {@link CodeTFAiMetadata} describing how a class used an AI service. | ||
*/ | ||
CodeTFAiMetadata codeTFAiMetadata(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters