discovers duplicate code in Python and Java