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

Erroneous language count. #1516

Closed
MUzairS15 opened this issue Jan 2, 2022 · 8 comments
Closed

Erroneous language count. #1516

MUzairS15 opened this issue Jan 2, 2022 · 8 comments
Labels
bug Something isn't working. lang-card Issues related to the language card.

Comments

@MUzairS15
Copy link

MUzairS15 commented Jan 2, 2022

In most used lang Dart is appearing on top, but I have never contributed in dart language, I just have a repo in which I have contributed in javascript and my friend has contributed in Dart.
Screenshot 2022-01-02 at 11 14 31 AM
Also, I have done contributions in Java language and have merged PRs in the central repo, but still, Java doesn't have even 0.1% weight.
(Even if I make counts to 50 or so Java doesn't appear)

@elsowiny
Copy link

elsowiny commented Jan 4, 2022

Dealing with this too, wondering if there is an active fix in place?

@AdaoBMF
Copy link

AdaoBMF commented Jan 11, 2022

Same here, my card is showing C and C++ that I had never committed and don't show any of Java that I have used a lot.
langCard

@stscoundrel
Copy link

If you want to ignore some languages, you can just add hide parameter in the request. In your case, &hide=dart

So for example:

Unsure if your Java is counted as Kotlin, as it does appear in there.

@MUzairS15
Copy link
Author

Hiding dart doesn't work, I tried, I also increased language counts but it didn't helped.

@rickstaa rickstaa added bug Something isn't working. lang-card Issues related to the language card. labels Mar 9, 2022
@EleoXDA
Copy link

EleoXDA commented Jul 11, 2022

If you want to ignore some languages, you can just add hide parameter in the request. In your case, &hide=dart

So for example:

Unsure if your Java is counted as Kotlin, as it does appear in there.

Just to add on this one, I tried to hide C++ from my language card. The reason is C++ and CMake files are autogenerated in dart projects and are not my contributions per se.
But whatever I tried I couldnt get rid of C++ from the card. I then checked out the languages.yml in Github Linguist, and added all the C++ extensions to list. But it still shows. Here is my card link if interested:
https://github-readme-stats.vercel.app/api/top-langs/?username=EleoXDA&langs_count=10&layout=compact&hide=cmake,dockerfile,cpp,c++,cc,cp,cxx,h,h++,hh,hpp,hxx,inc,inl,ino,ipp,ixx,re,tcc,tpp"/>
image

@rickstaa
Copy link
Collaborator

@elsowiny Thanks for your comment. We are aware of the limitations of the current language card. Several improvements have been proposed in #1801 (comment). Let's close #1516 and continue the discussion on #1801.

@rickstaa
Copy link
Collaborator

rickstaa commented Jul 12, 2022

@EleoXDA Sorry I overlooked your actual question. I think #251 (comment) might solve your problem.

[![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=EleoXDA&langs_count=10&layout=compact&hide=cmake,dockerfile,cpp,c%2B%2B,cc,cp,cxx,h,h++,hh,hpp,hxx,inc,inl,ino,ipp,ixx,re,tcc,tpp%22/%3E)](https://github.com/anuraghazra/github-readme-stats)

Top Langs

@EleoXDA
Copy link

EleoXDA commented Jul 12, 2022

Perfect! Thanks very much 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working. lang-card Issues related to the language card.
Projects
None yet
Development

No branches or pull requests

6 participants