Skip to content

Commit

Permalink
✨ augment sensitive data logging codemod CodeTF with AI metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
ryandens committed Jul 25, 2024
1 parent e7ba075 commit 9a8997c
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 9a8997c

Please sign in to comment.