Understanding Github's Language Calculations
Ever noticed this at the top of a Github repo?

This filetype percentage is calculated by Github's Linguist project.
There's just one problem: 'Today I Learned' isn't a JavaScript project; it's a Rails application. I would expect the majority of the files to be Ruby files. Labeling 'Today I Learned' a JavaScript project misrepresents it to the Github community.
I found several techniques to correct the Linguist evaluation; this pull request explains one I tried in greater detail.
My solution? Once I moved some vendored JS files into a directory with a name that Linguist ignores (ace-builds/
), the calculation started to look like a Rails app.
Here's the updated header:
