Language bar incorrectly shows 'SVG 100%' #666

Open
opened 2 weeks ago by BWPanda · 7 comments

I have a private Codeberg repo where I'm developing a game. The repo includes the following file types:

  • MD
  • JSON
  • PNG
  • SVG
  • TTF

However, the language statistics bar at the top shows one solid colour which, when clicked, displays: "SVG 100%".

image

That's clearly not the case, as you can see. The majority of files are JSON. I think there are only three SVG files... I thought perhaps those statistics are based on file size, instead of file count, but the SVGs only take up ~15% of the total repo size (not including the .git directory).

Is this a bug?

I have a private Codeberg repo where I'm developing a game. The repo includes the following file types: - MD - JSON - PNG - SVG - TTF However, the language statistics bar at the top shows one solid colour which, when clicked, displays: "SVG 100%". ![image](/attachments/dc75e70e-8d6f-456e-b0c0-446dfc94d20b) That's clearly not the case, as you can see. The majority of files are JSON. I think there are only three SVG files... I thought perhaps those statistics are based on file size, instead of file count, but the SVGs only take up ~15% of the total repo size (not including the `.git` directory). Is this a bug?
Collaborator

Not really a bug, more a limitation in the current design. Only certain filetypes are detected by an upstream library AFAIK, and only those are counted. Also, I think some algorithm filters out uninteresting stuff. If you have an only-markdown repo, it's detected. If you have code, it's no longer in the calculation for some reason.

Not really a bug, more a limitation in the current design. Only certain filetypes are detected by an upstream library AFAIK, and only those are counted. Also, I think some algorithm filters out uninteresting stuff. If you have an only-markdown repo, it's detected. If you have code, it's no longer in the calculation for some reason.
Collaborator

@BWPanda can you retest?

@BWPanda can you retest?
Collaborator

and a link to the repo would be nice :)

and a link to the repo would be nice :)
Poster

@6543 It's still happening, if that's what you mean. Unless I need to do something specific to retest this...?

And, as mentioned above, the repo's private, so not sure a link would help.

@6543 It's still happening, if that's what you mean. Unless I need to do something specific to retest this...? And, as mentioned above, the repo's private, so not sure a link would help.
Collaborator

keep ToS in mind to not abuse codeberg for private cloud provider ... we are here to push FOSS ;)

keep ToS in mind to not abuse codeberg for private cloud provider ... we are here to push FOSS ;)
Poster

Yes:

Private repositories are only allowed for things required for FLOSS projects, like storing secrets, team-internal discussions or hiding projects from the public until they're ready for usage and/or contribution.

(https://codeberg.org/Codeberg/org/src/branch/main/TermsOfUse.md)

My game is still in development and not ready for release yet.

Yes: > Private repositories are only allowed for things required for FLOSS projects, like storing secrets, team-internal discussions *or hiding projects from the public until they're ready for usage and/or contribution*. (https://codeberg.org/Codeberg/org/src/branch/main/TermsOfUse.md) My game is still in development and not ready for release yet.
Collaborator

thanks for testing

thanks for testing
Sign in to join this conversation.
No Milestone
No Assignees
3 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: Codeberg/Community#666
Loading…
There is no content yet.