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

Formats clone detection results for BigCloneBench evaluation. More...

#include <big_clone_formater.hpp>

+ Inheritance diagram for BigCloneFormater:
+ Collaboration diagram for BigCloneFormater:

Public Member Functions

 COMMAND_DESCRIPTION ("Format clone detection results into the BigCloneBench evaluation " "output format. The command converts internal similarity data into " "the standardized BigCloneEval compatible representation.") explicit BigCloneFormater(Similarity_Table *_similarity_table)
 Constructs formatter and processes similarity table.
 
bool validate (const ParsedOptions &options) override
 Validate the arguments already analyzed.
 
bool run (const ParsedOptions &options) override
 Handles BigCloneEval formatting command.
 
- Public Member Functions inherited from CommandBase< BigCloneFormater >
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

Formats clone detection results for BigCloneBench evaluation.

Converts internal path and similarity representations into the standardized BigCloneEval output format expected by the BigCloneBench dataset evaluation tools.

Note
Designed to operate within the BigCloneBench dataset directory structure

Definition at line 36 of file big_clone_formater.hpp.

Member Function Documentation

◆ COMMAND_DESCRIPTION()

BigCloneFormater::COMMAND_DESCRIPTION ( "Format clone detection results into the BigCloneBench evaluation " "output format. The command converts internal similarity data into " "the standardized BigCloneEval compatible representation." )

Constructs formatter and processes similarity table.

Parameters
_similarity_tablePointer to similarity data to format
Note
Immediately outputs all formatted pairs to stdout

◆ run()

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

Handles BigCloneEval formatting command.

Implements ICommand.

Definition at line 45 of file big_clone_formater.cpp.

◆ validate()

bool BigCloneFormater::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 41 of file big_clone_formater.cpp.


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