From 5314ea3c8338470f11dfbcaed6d983c08fc69277 Mon Sep 17 00:00:00 2001 From: kk-mats Date: Tue, 2 Apr 2019 02:02:47 +0900 Subject: [PATCH] add the jcln reference file --- core/matching_pair_table.cpp | 6 ++++ core/matching_pair_table.hpp | 11 +++++++ ref.jcln | 56 ++++++++++++++++++++++++++++++++++++ 3 files changed, 73 insertions(+) create mode 100644 core/matching_pair_table.cpp create mode 100644 core/matching_pair_table.hpp create mode 100644 ref.jcln diff --git a/core/matching_pair_table.cpp b/core/matching_pair_table.cpp new file mode 100644 index 0000000..ca08c45 --- /dev/null +++ b/core/matching_pair_table.cpp @@ -0,0 +1,6 @@ +#include "equivalent_pair_table.hpp" + +equivalent_pair_table::equivalent_pair_table() +{ + +} diff --git a/core/matching_pair_table.hpp b/core/matching_pair_table.hpp new file mode 100644 index 0000000..7f6c282 --- /dev/null +++ b/core/matching_pair_table.hpp @@ -0,0 +1,11 @@ +#ifndef EQUIVALENT_PAIR_TABLE_HPP +#define EQUIVALENT_PAIR_TABLE_HPP + + +class equivalent_pair_table +{ +public: + equivalent_pair_table(); +}; + +#endif // EQUIVALENT_PAIR_TABLE_HPP \ No newline at end of file diff --git a/ref.jcln b/ref.jcln new file mode 100644 index 0000000..8de5335 --- /dev/null +++ b/ref.jcln @@ -0,0 +1,56 @@ +{ + "global":{ + "target":"target_path", + "size":{ + "file_table":2, + "results":1, + "clone_pairs":[ + { + "result_id":0, + "size":1 + } + ] + } + }, + "file_table":[ + { + "file_id":0, + "path":"ft_0" + }, + { + "file_id":1, + "path":"ft_1" + } + ], + "results":[ + { + "result_id":0, + "environment":{ + "source":"r1_src", + "clone_detector":{ + "name":"CCFinderSW", + "parameters":{ + "p0":"v0", + "p1":"v1" + } + } + }, + "clone_pairs":[ + { + "clone_pair_id":0, + "similarity":85, + "fragment1":{ + "file_id":0, + "begin":1, + "end":2 + }, + "fragment2":{ + "file_id":1, + "begin":1, + "end":2 + } + } + ] + } + ] +} \ No newline at end of file