Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Commits per language isn’t accurate for multiple-languages repos #45

Open
bfontaine opened this issue Dec 21, 2017 · 4 comments
Open

Comments

@bfontaine
Copy link

That’s probably more a limitation of the GitHub API itself.

I have a repo written in 25 different languages. CoffeeScript is the most used one, with 8.9% of the repo, but represents at most 10 commits or so out of 392. However, my profile shows 392 commits written in CoffeeScript.

I’m not that familiar with the GitHub API; do you think that’s something we could fix?

@tipsy
Copy link
Owner

tipsy commented Dec 21, 2017

Aha, that's a fun problem. There should be an API for getting the lang-percent per repo, could use that to weight things.

@magicgoose
Copy link

Number of commits is meaningless metric anyway, because it's easily inflated. (for example by committing everything line by line or word by word, etc…)

@tipsy
Copy link
Owner

tipsy commented Dec 21, 2017

Number of commits is meaningless metric anyway, because it's easily inflated. (for example by committing everything line by line or word by word, etc…)

This whole project is meaningless in that sense, everything on GitHub can be easily manipulated.

@Mohamed3on
Copy link

You can use this endpoint to get 'total bytes of code written in that language' and use that to weight things.
/repos/:owner/:repo/languages
https://developer.github.com/v3/repos/#list-languages

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants