code>stringdist</code></a> package: matching occurs at the token level: the token “my_data” is no more similar to the token “myData” than it is to “x”.</p>
<p>If you find code-block-pairs with a similarity score much greater than 0.5 there is probably some commonality that could be abstracted away.</p>
<hr>
<p>Note that you can do something similar using the functions <code>dupree_dir</code> and (if you are analysing a package) <code>dupree_package</code>.</p>
<div class="sourceCode" id="cb4"><p