I maintain dupehound, an open source duplicate-code detector, and I hit a problem I do not have a clean answer to. Tests repeat the same setup on purpose: build a fake user, spin up a test database, arrange the inputs the same way, across dozens of tests. To a structural detector that looks exa...

Source: [Hacker News](https://news.ycombinator.com/item?id=48574082)

Sponsored