-
-
Notifications
You must be signed in to change notification settings - Fork 23.4k
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 Langs incorrect #270
Comments
I'm not seeing any HTML on your top used languages image! |
It disappeared a few minutes after I opened the issue. Not sure what happened. |
@hjlarry This is not about if you use java or jupyter notebook, it's about how much code (in bytes) you have in your github profile. and as far as i can see you do have java repo https://github.com/hjlarry/practise-java |
thanks, my only one java project has some vendor files, so it effect the whole result. now I think the top langs is correct |
As far as i can see you have a lot of javascript code in your account, as i said it's now about how many repos you have, it's about how much code you have. try this GQL query on the explorer {
user(login: "axetroy") {
repositories(ownerAffiliations: OWNER, isFork: false, first: 100) {
nodes {
name
languages(first: 10, orderBy: {field: SIZE, direction: DESC}) {
edges {
size
node {
name
}
}
}
}
}
}
}
And there is soo much javascript dart is just excluded from the list |
@anuraghazra This is the problem because it only counts the first 100 items, not all of thems. |
I have the same issue; |
@axetroy Because github api limit repository number is 100. |
@vn7n24fzkq I know this. But we can request multiple times until get all repos. |
@axetroy Sure. query userInfo($login: String!) {
user(login: $login) {
repositories(ownerAffiliations: OWNER, isFork: false, first: 100,after:"Y3Vyc29yOnYyOpHOD4zl4g==") {
nodes {
languages(first: 10, orderBy: {field: SIZE, direction: DESC}) {
edges {
size
node {
color
name
}
}
}
}
pageInfo {
endCursor
hasNextPage
}
}
}
} |
Yeah doing that isn't an issue but performance is an issue we have limited amount of time to do all operations in vercel serverless function. |
Can we count it from the private repos? I have noticed that it doesn't count the lang used from private repos |
|
my is incorrect too php should not is top one for me @daniCh8 where are this image from? |
It works as expected, please checkout #136 #136 (comment) |
Are you able to reproduce the issue again? or else i would close this issue in favour of #136 |
Hey @anuraghazra how can I remove Jupyter Notebook from mine? It's showing ~ 99% in mine |
please read the docs. https://github.com/anuraghazra/github-readme-stats/#language-card-exclusive-options |
Thank you |
Mine is incorrect too. Jupyter is 97%. I think this is because you are looking at storage size and Jupyter notebooks has the image results embedded to it. |
As @anuraghazra stated above, add |
@flaviostutz |
Thanks, guys! I wish I could show my Jupyter experience too :) |
why is mine wrong? my contributions are private repos |
@anuraghazra, thank you for making this project Would it be possible for a normalizing constant to be used on the number of lines of Jupyter Notebook code, or users to hard code the percentage as a URL pram? Hiding isn't really an option for me, as 90% of my active work-time is in it. but showing it downplays all my past work.. and looks weird (92% code is jupyter). I suspect all the XML lines for cell formatting and |
Yes, this includes all languages used in forks, there needs to be an |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Is there something do to about this issue @anuraghazra? If not, I think you could mark this with a wont fix label or something. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Ping, this really needs fixing. |
Hi @Lucretia . |
In my overview readme top language card is not updating what is the issue i don't know. |
I discovered that if top languages in the url is greater than the amount of languages recognized on my Github account, some languages won't show. For example, I was specifying langs_count = 8 and it wouldn't show Python but once I dropped it to 6, the top langs card showed Python. |
I got a useful and balanced result (one that reflects code I have hand written or hacked, but not autogenerated code), by just excluding all autogenerated code using the documentation. Ie: |
Why do these two differ the first link which i am using for my gitHub profile shows 42% c++ which is on the top but in the second link javascript section area covers the major part (44.44%) and c++ is 11.11% |
Answered in #3083 (comment) |
Hi, I would rather the script just didn't include forks I have not pushed to, or separated out the forks into another card as well as having a forks I have pushed to card as well. |
Including forks is currently not possible due to GraphQL limitations. Please see #3109 for more information. |
I want the script to EXCLUDE forks, not include them. |
Describe the bug
None of my repos contain HTML, yet is 10% in my profile's top langs card.
Expected behavior
I should have ~0% HTML
Screenshots / Live demo link (paste the github-readme-stats link as markdown image)
https://github.com/maustinstar
The text was updated successfully, but these errors were encountered: