File tree Expand file tree Collapse file tree 4 files changed +6
-13
lines changed
Expand file tree Collapse file tree 4 files changed +6
-13
lines changed Original file line number Diff line number Diff line change 11/**
2- * Surfaces the endpoints that pass the endpoint filters and are not already known to be sinks, and are therefore used
3- * as candidates for classification with an ML model.
2+ * Surfaces the endpoints that are not already known to be sinks, and are therefore used as candidates for
3+ * classification with an ML model.
44 *
55 * Note: This query does not actually classify the endpoints using the model.
66 *
Original file line number Diff line number Diff line change 11/**
2- * Surfaces endpoints are non-sinks with high confidence, for use as negative examples in the prompt.
2+ * Surfaces endpoints that are non-sinks with high confidence, for use as negative examples in the prompt.
33 *
44 * @name Negative examples (experimental)
55 * @kind problem
Original file line number Diff line number Diff line change 11/**
2- * Surfaces endpoints are sinks with high confidence, for use as positive examples in the prompt.
2+ * Surfaces endpoints that are sinks with high confidence, for use as positive examples in the prompt.
33 *
44 * @name Positive examples (experimental)
55 * @kind problem
@@ -13,13 +13,6 @@ private import semmle.code.java.security.ExternalAPIs as ExternalAPIs
1313private import AutomodelEndpointCharacteristics
1414private import AutomodelEndpointTypes
1515
16- // private import experimental.adaptivethreatmodeling.ATMConfigs // To import the configurations of all supported Java queries
17- /*
18- * ****** WARNING: ******
19- * Before calling this query, make sure there's no codex-generated data extension file in `java/ql/lib/ext`. Otherwise,
20- * the ML-generated, noisy sinks will end up polluting the positive examples used in the prompt!
21- */
22-
2316from Endpoint sink , SinkType sinkType , string message
2417where
2518 // Exclude endpoints that have contradictory endpoint characteristics, because we only want examples we're highly
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ signature module CandidateSig {
1616
1717 class EndpointType ;
1818
19- /** The string representing the file+range of the endpoint. */
19+ /** Gets the string representing the file+range of the endpoint. */
2020 string getLocationString ( Endpoint e ) ;
2121
2222 /**
@@ -64,7 +64,7 @@ signature module CandidateSig {
6464 *
6565 * This module is language-agnostic, although the `CandidateSig` module will be language-specific.
6666 *
67- * The language specific implementation can also further extend the behaviour of this module by adding additional
67+ * The language specific implementation can also further extend the behavior of this module by adding additional
6868 * implementations of endpoint characteristics exported by this module.
6969 */
7070module SharedCharacteristics< CandidateSig Candidate> {
You can’t perform that action at this time.
0 commit comments