Source: I ran the query.
SELECT repository_language, COUNT(*) as num_repositories
FROM [githubarchive:year.2014]
WHERE type="CreateEvent"
AND IS_EXPLICITLY_DEFINED(repository_language)
GROUP BY repository_language
ORDER BY num_repositories DESC
LIMIT 10
which returns the top languages in 2014 by # of repositories created, per your statistic.The output is:
JavaScript 1273811
Java 930359
Ruby 769712
Python 630549
PHP 601101
C 473113
CSS 445501
C++ 355996
C# 183349
Objective-C 165102
Which doesn't completely match up with the order in the chart for 2014. (Positions for Python and PHP are reversed)
> The rank represents languages used in public & private repositories
The delta is due to private repository usage influencing the rank.
Agreed, does not make much sense if it isn't a weighted average. A simple count could very well be littered with Hello-world repos (I've found a lot of those, in various languages) by people who are 'trying' github on.
It would also make sense to weight in the date a project started. Newer (big) projects would then weight higher then older (big) projects.
So I think taking in account the number of lines and age together is a good way to really visualize trends.
I really am not fond of the trend of "arbitrary rankings" a lot of startups have been using recently as content marketing to create statistical analyses that cannot be questioned.
I could reverse-engineer the ranking chart using the GitHub Archive on BigQuery to check it, but I have no idea how to actually determine the statistic for ranking.