bugfinder.features.extraction.bag_of_words.any_hop.single_flow

Any hop single flow feature extractor module

class bugfinder.features.extraction.bag_of_words.any_hop.single_flow.FeatureExtractor(dataset, deprecation_warning=None)

Bases: FlowGraphFeatureExtractor

Any hop single flow feature extractor

FLOWS = ['CONTROLS', 'FLOWS_TO', 'REACHES']
configure_container()

Configure container variable

static finalize_features(features, labels)

Finalize feature before exporting to CSV file

get_flowgraph_count(flowgraph)

Count the number of flowgraphs

get_flowgraph_list_for_entrypoint(entrypoint)

Create list of flow graphs for a given entrypoint

get_label_from_flowgraph(flowgraph)

Create the label for a given flow graph