Flay analyzes code for structural similarities. Differences in literal values, variable, class, method names, whitespace, programming style, braces vs do/end, etc are all ignored.
seattlerb/flay has 774 GitHub stars.
It currently ranks #6659 daily, #7791 weekly, #11686 monthly by momentum on Trending Repos; its best-ever rank is #5783.