Skip to content
Discussion options

You must be logged in to vote

GitHub doesn’t calculate the language bar by number of files. It’s based on the total number of bytes per language, as detected by Linguist.

That means a single large file can outweigh many small ones. It also ignores certain files depending on how they’re classified (vendored code, generated files, minified assets, etc.), and it may exclude directories like target/ or other build outputs automatically.

So if the percentages don’t seem to match a simple “file count” or “visible line count,” it’s usually because:

  • The calculation is byte-based, not file-based

  • Some files are excluded from statistics

  • Some files might be classified differently than expected

The language bar reflects re…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@ShalokShalom
Comment options

@milentijev1c
Comment options

Answer selected by ShalokShalom
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug GitHub or a GitHub feature is not working as intended General General topics and discussions that don't fit into other categories, but are related to GitHub
2 participants