It'd be nice to have someone from GitHub comment on how these rankings are calculated. Raw LOC? Percentage of projects with at least one X language file in them? Percentage of projects that have a plurality of source code in X language?
pop[lang] = avg(loc(proj, lang) / loc(proj) for proj in projects)https://github.com/CM7-GB/android_device_motorola_droid2we
Note the language breakdown, under the Graphs tab.
But yes, it all hinges on how Github measures popularity. For one, I'm curious how forked repositories are counted; if I have a 100kloc Blub project and it gets forked 100 times, does Github count that as 100,000 or 10,000,000 lines of Blub?