Clone Digger contains clones itself :-)

19 views
Skip to first unread message

zpcspm

unread,
Sep 9, 2008, 1:30:46 PM9/9/08
to Clone Digger general
$ python ./clonedigger.py *.py
Parsing abstract_syntax_tree.py ... done
Parsing anti_unification.py ... done
Parsing arguments.py ... done
Parsing ast_suppliers.py ... done
Parsing clone_detection_algorithm.py ... done
Parsing clonedigger.py ... done
Parsing html_report.py ... done
Parsing __init__.py ... done
Parsing java_antlr.py ... done
Parsing lua_antlr.py ... done
Parsing python_compiler.py ... done
Parsing suffix_tree.py ... done
143 sequences
average sequence length: 5.188811
maximum sequence length: 41
Number of statements: 742
Calculating size for each statement... done
Building statement hash... done
Number of different hash values: 337
Building patterns... 353 patterns were discovered
Choosing pattern for each statement... done
Finding similar sequences of statements... 38 sequences were found
Refining candidates... 7 clones were found
Removing dominated clones... -2 clones were removed

I think this emphasizes the coolness of this tool. Clone Digger can be
used to make its own code look better.

Peter Bulychev

unread,
Sep 9, 2008, 1:42:45 PM9/9/08
to clonedigg...@googlegroups.com
I know that :)

Btw, people liked to ask me if the tool itself contains any clones; on the conferences, where I presented it

The most ugly clone was produced when I've added support for the Lua language. I've just  copy&pasted some functionality from the Java part. I didn't see any enthusiasm from the Lua community, so I stopped developing it and this clone will be a long-liver :)

2008/9/9 zpcspm <zpc...@gmail.com>



--
Best regards,
Peter Bulychev.
Reply all
Reply to author
Forward
0 new messages