Code block alignments are done by calling stringdist::seq_sim
In a given iteration, for each code block, seq_sim is used to compare it against all other code blocks in the set of files (seq_sim(this_code_block, all_other_code_blocks)).
There may be faster ways of doing the alignments. Suggest making an efficiency test to ensure that the speed of dupree is not adversely affected by pull-requests etc.
Use hedgehog to generate random vectors of integers that can be used as test input.
Code block alignments are done by calling
stringdist::seq_sim
In a given iteration, for each code block, seq_sim is used to compare it against all other code blocks in the set of files (seq_sim(this_code_block, all_other_code_blocks)
).There may be faster ways of doing the alignments. Suggest making an efficiency test to ensure that the speed of dupree is not adversely affected by pull-requests etc.
Use hedgehog to generate random vectors of integers that can be used as test input.