Skip to content

Commit adcf4a3

Browse files
author
Stephan Brandauer
committed
documentation clean-up
1 parent 52a8230 commit adcf4a3

File tree

4 files changed

+6
-13
lines changed

4 files changed

+6
-13
lines changed

java/ql/src/Telemetry/AutomodelExtractCandidates.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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
*

java/ql/src/Telemetry/AutomodelExtractNegativeExamples.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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

java/ql/src/Telemetry/AutomodelExtractPositiveExamples.ql

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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
1313
private import AutomodelEndpointCharacteristics
1414
private 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-
2316
from Endpoint sink, SinkType sinkType, string message
2417
where
2518
// Exclude endpoints that have contradictory endpoint characteristics, because we only want examples we're highly

java/ql/src/Telemetry/AutomodelSharedCharacteristics.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
*/
7070
module SharedCharacteristics<CandidateSig Candidate> {

0 commit comments

Comments
 (0)