= Duplicate code analysis = == Parameters == ||Parameter||Description||Default value||Example|| ||files||files in which the search is carried out||all files from the database||{files,["/usr/local/lib/erlang/lib/mnesia-4.5/src/mnesia_log.erl","/usr/local/lib/erlang/lib/mnesia-4.5/src/mnesia_lib.erl"]}|| ||minlen||minimal length of a clone(in tokens)||10||{minlen,50}|| ||minnum||minimal number of clones in one clone group||2||{minnum,5}|| ||overlap||scale of the overlap||0||{overlap,1}|| * {files, Files} Files = [ Module::atom(), Filepath::string() | File::string() | RegExp::string() ] * {minlen, integer()} * {minnum, integer()} * {overlap, integer()} * {output, Filename::string()} * {name, atom()} == Examples == {{{#!erlang ri:search_duplicates([ {files, ["/home/csibe/Downloads/examples/one.erl", "^(/home)[0-9a-zA-Z/_]+(/src)$"]}]). }}} {{{#!erlang ri:search_duplicates([ {files, ["/home/csibe/Downloads/examples/one.erl", "^(/home)[0-9a-zA-Z/_]+(/src)$"]}, {minlen, 50}, {overlap, 1}]). }}}