Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Non-present languages in my list #3501

Answered by qwerty541
Tachytaenius asked this question in Q&A
Discussion options

Describe the bug

When I preview changes (showing more languages and excluding some more repos) to my language counter on my profile, it's convinced that there are tiny trace amounts of PHP and Pawn, which I have never programmed in before, and C++ which I have no non-forked public repositories of (though if I do a search for C++ files under my user that are not in forks, I get a bunch of assembly-related files (but PHP and Pawn do come up totally empty)).

Expected behavior

PHP and Pawn should not be present, and neither should C++, though I think that is on GitHub's end if it comes up with files that aren't C++ in a C++ search?

Screenshots / Live demo link

Additional context

No response

You must be logged in to vote

Hey, @Tachytaenius! We use GitHub GraphQL API under the hood to fetch stats data. It show that this repository contains PHP: https://github.com/Tachytaenius/game-boy-n-body. You can personally check the data which we receive from GitHub by running the following query in GraphQL explorer:

query userInfo($login: String!) {
 user(login: $login) {
 # fetch only owner repos & not forks
 repositories(ownerAffiliations: OWNER, isFork: false, first: 100) {
 nodes {
 name
 languages(first: 10, orderBy: {field: SIZE, direction: DESC}) {
 edges {
 size
 node {
 color
 name
 }
 }
 }
 }
 ...

Replies: 1 comment 1 reply

Comment options

Hey, @Tachytaenius! We use GitHub GraphQL API under the hood to fetch stats data. It show that this repository contains PHP: https://github.com/Tachytaenius/game-boy-n-body. You can personally check the data which we receive from GitHub by running the following query in GraphQL explorer:

query userInfo($login: String!) {
 user(login: $login) {
 # fetch only owner repos & not forks
 repositories(ownerAffiliations: OWNER, isFork: false, first: 100) {
 nodes {
 name
 languages(first: 10, orderBy: {field: SIZE, direction: DESC}) {
 edges {
 size
 node {
 color
 name
 }
 }
 }
 }
 }
 }
}
{ "login":"Tachytaenius" }

If it count some other files as PHP by mistake you can contact GitHub support about that. Our team can't do anything, correctness of https://github.com/github-linguist/linguist is not our responsibility. I can only suggest you to try silence these files using configuration of .gitattributes file.

You must be logged in to vote
1 reply
Comment options

In addition to @qwerty541's response, there's an ongoing need to enhance the language algorithm (refer to the GitHub issue here). It retrieves only the initial 100 repositories, leading to inaccuracies for users with an extensive repository count. A pull request has been initiated to address this issue, and upon approval, we'll release it as an environment variable, enabling usage within GitHub actions.

Apart from that, due to GraphQL limitations, we are currently constrained to fetching language data on a repository level rather than a user basis. I've initiated a feature request with GitHub to enhance this behaviour. Your support for this feature request is crucial in drawing attention to the issue at GitHub and increasing the likelihood of a solution.

Answer selected by qwerty541
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
Converted from issue

This discussion was converted from issue #3500 on November 23, 2023 18:45.

AltStyle によって変換されたページ (->オリジナル) /