-
-
Notifications
You must be signed in to change notification settings - Fork 23.2k
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
Top Languages card results are incorrect #1801
Comments
Having a similar issue where it seems more like mine just hasn't updated in weeks |
same here |
Same |
Same :( my contribution to private repositories is not being accounted for, even though I added the param to show them. |
@JmKanmo Thanks for your issue. We are aware of the inaccuracy of the language card. Limitations of the current GraphQL implementation cause it (see #1803 and #1122 (comment) for more information). Currently, the GraphQL API does not allow us to fetch language results for individual users. It only returns language results for repositories. As a result, the language card is not showing the correct statistics. I created a feature request with GitHub that improves this behaviour. You can show your support at community/community#18230. If enough people show their support, we might be able to improve the language results of github-readme-stats in the future. Additionally, we currently only fetch the first 100 repositories causing the language card to be incorrect (see #1852). I also checked https://ionicabizau.github.io/github-profile-languages to see if it produced better results. That repository used the Github Rest API to fetch all repositories of a user to get the language results. Consequently, since this also includes forks, the results given by that tool will be worse for most user accounts. You can also show your support for #1732, which slightly improves the language card behaviour by allowing users to scale their language results. |
To summarize the following things can be done to improve the language card:
|
Hey @JmKanmo Are you using the default language weight?The top languages card shows the percentage based on the size of the repositories by default. Also: By default, the language card shows language results only from public repositories. To include languages used in private repositories, you should deploy your own instance using your own GitHub API token. AlgorithmIt uses the following algorithm to calculate the languages percentages on the language card: ranking_index = (byte_count ^ size_weight) * (repo_count ^ count_weight) By default, only the byte count is used for determining the languages percentages shown on the language card (i.e.
In my case, I am using |
Thank you all for your kind replies. I checked the answer and then updated README.MD like below
I have python repositories like below. If we were to calculate percentage statistics based on byte count, perhaps more code would be counted in the Python repository. At this level, I don't think it's that bad. Thank you for your detailed answer and guide. |
@JmKanmo, there are still some issues with the language algorithm that require attention:
Addressing the first three points could be accomplished by releasing a GitHub Action, as suggested in this issue (#2179). However, the last point requires intervention from GitHub itself, and you can just express your support for this improvement in the GitHub Community Discussions at (https://github.com/orgs/community/discussions/18230). Let's keep this issue open to monitor progress on resolving these problems. 🚀 |
I write it in my read.me file like below
but I don't use python language code ...
My major used language is java.
So I test it other below site.
http://ionicabizau.github.io/github-profile-languages/?user=JmKanmo
and the result is like it.
Why is this?
The text was updated successfully, but these errors were encountered: