4 ms·
Good point. Also, I wonder how those would be weighted if you counted projects that consist of >90% identical code as the same project (for example, how many o
by silentbicycle 17y ago
Good point.
Also, I wonder how those would be weighted if you counted projects that consist of >90% identical code as the same project (for example, how many of those Ruby projects are thinly veiled forks of Rails?), filtered out projects that are less than (say) 10k of source, etc. Maybe more Python projects are on bitbucket because of Merucial.
The 90% and 10k there are pretty arbitrary; just, those language stats need a lot more clarification before their meaning is clear.
- wizard_2 17y agoI wonder if you could pull all the projects into one repo, repack and figure out it's unique objects using git. I always wondered if a global object store was possible or even a good idea for a site like github. I guess that's a different project though.
- silentbicycle 17y agoFWIW, finding duplicated code (particularly in a language-independent manner!) is a surprisingly difficult problem. You need to scan not just for large copy-and-pasted blobs, but code chunks that have just had constants changed, variable names adjusted, indentation style changes, etc. I've been working on a tool for this in my spare time, and I hope to have it out sometime this summer.
- deleted 17y ago[deleted]