Arkanjo 0.2
A tool for find code duplicated functions in codebases
Loading...
Searching...
No Matches
BigCloneTailorEvaluator Class Reference

Evaluates clone detection using BigCloneBench methodology. More...

#include <big_clone_tailor_evaluator.hpp>

+ Inheritance diagram for BigCloneTailorEvaluator:
+ Collaboration diagram for BigCloneTailorEvaluator:

Public Member Functions

 COMMAND_DESCRIPTION ("Evaluate clone detection results using the BigCloneBench dataset " "methodology. The command compares detected similarities against " "ground truth labels and reports recall metrics per clone type.") explicit BigCloneTailorEvaluator(Similarity_Table *_similarity_table)
 Constructs evaluator with similarity data.
 
bool validate (const ParsedOptions &options) override
 Validate the arguments already analyzed.
 
bool run (const ParsedOptions &options) override
 Handles BigCloneBench evaluation command.
 
- Public Member Functions inherited from CommandBase< BigCloneTailorEvaluator >
virtual void print_help (const std::string command_name, const OptionsCollector *collector) const
 
const CliOptionoptions () const final
 
bool do_run (const std::string command_name, const ParsedOptions &options, const OptionsCollector *collector=nullptr) override
 
- Public Member Functions inherited from ICommand
virtual ~ICommand ()=default
 
virtual std::string_view description () const =0
 

Detailed Description

Evaluates clone detection using BigCloneBench methodology.

Implements evaluation metrics that compare detected clones against BigCloneBench ground truth data, following Tailor tool's approach.

Definition at line 36 of file big_clone_tailor_evaluator.hpp.

Member Function Documentation

◆ COMMAND_DESCRIPTION()

BigCloneTailorEvaluator::COMMAND_DESCRIPTION ( "Evaluate clone detection results using the BigCloneBench dataset " "methodology. The command compares detected similarities against " "ground truth labels and reports recall metrics per clone type." )

Constructs evaluator with similarity data.

Parameters
_similarity_tablePointer to similarity table

◆ run()

bool BigCloneTailorEvaluator::run ( const ParsedOptions & options)
overridevirtual

Handles BigCloneBench evaluation command.

Implements ICommand.

Definition at line 121 of file big_clone_tailor_evaluator.cpp.

◆ validate()

bool BigCloneTailorEvaluator::validate ( const ParsedOptions & options)
overridevirtual

Validate the arguments already analyzed.

Verify that all required options have been selected and that the values ​​provided are valid.

Parameters
optionsThe ParsedOptions structure will be populated with the arguments.
Returns
True if the arguments are valid, false otherwise.

Implements ICommand.

Definition at line 117 of file big_clone_tailor_evaluator.cpp.


The documentation for this class was generated from the following files: