mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
Implement the new query that selects data for training. For now we include clauses that implement logic that is identical to the old queries. Include a temporary wrapper query that converts the resulting data into the format expected by the endpoint pipeline. Move the small pieces of `ExtractEndpointData` that are still needed into `ExtractEndpointDataTraining.qll`.
12 lines
360 B
Plaintext
12 lines
360 B
Plaintext
/*
|
|
* For internal use only.
|
|
*
|
|
* Extracts training data we can use to train ML models for ML-powered queries.
|
|
*/
|
|
|
|
private import ExtractEndpointDataTraining as ExtractEndpointDataTraining
|
|
|
|
query predicate endpoints = ExtractEndpointDataTraining::reformattedTrainingEndpoints/5;
|
|
|
|
query predicate tokenFeatures = ExtractEndpointDataTraining::tokenFeatures/3;
|