19namespace fs = std::filesystem;
31 static constexpr const char* SAVING_MESSAGE =
"Saving results...";
35 std::vector<std::string> pass_through_args;
42 std::string build_command(
const fs::path& source_dir)
const;
57 std::vector<DuplicationEntry> read_results(FILE* pipe)
const;
63 void save_duplications(std::vector<DuplicationEntry>& file_duplication_pairs)
override;
74 std::vector<std::string> pass_through_args_ = {});
Semantic duplication detector using LLM embeddings.
void on_function(const FunctionData &fd) override
EmbeddingMethod(const fs::path &base_path_, double similarity_, std::vector< std::string > pass_through_args_={})
Constructs the LLM detector.
std::tuple< double, std::string, std::string > DuplicationEntry
tuple format of the detected duplicates (similarity_percentage, path1, path2)