Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 2.1k
ATM: Extract training data#11263
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
ATM: Extract training data #11263
Changes from all commits
9d7e773b47723d6b7612f9ecff07092e019fc078a4File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -4,23 +4,8 @@ | ||
| * Extracts training data we can use to train ML models for ML-powered queries. | ||
| */ | ||
| import javascript | ||
| import ExtractEndpointData as ExtractEndpointData | ||
| private import ExtractEndpointDataTraining as ExtractEndpointDataTraining | ||
| query predicate endpoints( | ||
tiferet marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| DataFlow::Node endpoint, string queryName, string key, string value, string valueType | ||
| ) { | ||
| ExtractEndpointData::endpoints(endpoint, queryName, key, value, valueType) and | ||
| // only select endpoints that are either Sink or NotASink | ||
| ExtractEndpointData::endpoints(endpoint, queryName, "sinkLabel", ["Sink", "NotASink"], "string") and | ||
| // do not select endpoints filtered out by end-to-end evaluation | ||
| ExtractEndpointData::endpoints(endpoint, queryName, "isExcludedFromEndToEndEvaluation", "false", | ||
| "boolean") and | ||
| // only select endpoints that can be part of a tainted flow | ||
| ExtractEndpointData::endpoints(endpoint, queryName, "isConstantExpression", "false", "boolean") | ||
| } | ||
| query predicate endpoints = ExtractEndpointDataTraining::reformattedTrainingEndpoints/5; | ||
| query predicate tokenFeatures(DataFlow::Node endpoint, string featureName, string featureValue) { | ||
| endpoints(endpoint, _, _, _, _) and | ||
| ExtractEndpointData::tokenFeatures(endpoint, featureName, featureValue) | ||
| } | ||
| query predicate tokenFeatures = ExtractEndpointDataTraining::tokenFeatures/3; | ||
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.