From 9a8997c624029872539fdb4979e97ebbeca91f40 Mon Sep 17 00:00:00 2001 From: Ryan Dens Date: Thu, 25 Jul 2024 11:27:55 -0700 Subject: [PATCH] :sparkles: augment sensitive data logging codemod CodeTF with AI metadata --- .../io/codemodder/codemods/SensitiveDataLoggingCodemod.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core-codemods/src/main/java/io/codemodder/codemods/SensitiveDataLoggingCodemod.java b/core-codemods/src/main/java/io/codemodder/codemods/SensitiveDataLoggingCodemod.java index 6705b00ea..88854fafe 100644 --- a/core-codemods/src/main/java/io/codemodder/codemods/SensitiveDataLoggingCodemod.java +++ b/core-codemods/src/main/java/io/codemodder/codemods/SensitiveDataLoggingCodemod.java @@ -10,6 +10,7 @@ import com.github.javaparser.ast.CompilationUnit; import com.github.javaparser.ast.stmt.Statement; import io.codemodder.*; +import io.codemodder.codetf.CodeTFAiMetadata; import io.codemodder.javaparser.JavaParserChanger; import io.codemodder.plugins.llm.OpenAIService; import io.codemodder.plugins.llm.StandardModel; @@ -79,7 +80,10 @@ public CodemodFileScanningResult visit( changes.add(change); } } - return CodemodFileScanningResult.from(changes, List.of()); + return CodemodFileScanningResult.from( + changes, + List.of(), + new CodeTFAiMetadata(service.providerName(), StandardModel.GPT_4O_2024_05_13.id(), 0)); } private SensitivityAndFixAnalysis performSensitivityAnalysis(