ArKanjo 0.5.1
A tool for find code duplicated functions in codebases
tfidf_method.hpp
Go to the documentation of this file.
1
14#pragma once
15
16#include <string>
17#include <filesystem>
20namespace fs = std::filesystem;
21
29class TfidfMethod : public IMethod {
30 private:
31 static constexpr const char* SAVING_MESSAGE = "Saving results...";
32
33 fs::path base_path;
34 double similarity;
35
36 public:
42 TfidfMethod(const fs::path& base_path_, double similarity_);
43
50 void execute_by_feature(const fs::path& path, const std::string feature_name = "");
51
52 void on_function(const FunctionData& fd) override;
53
54 void execute() override;
55};
Main code duplication detection tool.
void execute() override
void on_function(const FunctionData &fd) override
TfidfMethod(const fs::path &base_path_, double similarity_)
Constructs the duplication finder tool.
void execute_by_feature(const fs::path &path, const std::string feature_name="")
Executes the full duplication analysis pipeline.
Code duplication results parser.