Language stats incorrectly show 99% JavaScript (should be different) #7552
-
Hi, I’ve noticed that the language breakdown for my repository is showing ~99% JavaScript, but this is not accurate. The project is primarily written in Processing, but it seems GitHub Linguist is incorrectly counting the files. I would like to see a more accurate language distribution that reflects the actual codebase. What can I do to fix the language statistics? Thanks in advance for any guidance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
The language stats are 100% accurate. Whilst you think the project it primarily written in Processing, the total bytes of JavaScript far outweighs everything else: $ github-linguist GenerativeArtworks/
99.87% 31315869 JavaScript
0.12% 36865 Processing
0.01% 2506 HTML
0.00% 426 CSS
$ As you can see, you have over 30mb of JavaScript but only 36kb of Processing. Why? Because you have six 5mb JavaScript files: $ ls -lSh GenerativeArtworks/arte_generativo/**/*.js
-rw-r--r--@ 1 lildude staff 5.0M 29 Aug 14:57 GenerativeArtworks/arte_generativo/p5js- tipografias/static/p5.js
-rw-r--r--@ 1 lildude staff 5.0M 29 Aug 14:57 GenerativeArtworks/arte_generativo/p5js-ondas/p5.js
-rw-r--r--@ 1 lildude staff 5.0M 29 Aug 14:57 GenerativeArtworks/arte_generativo/p5js-ruido perlin/p5.js
-rw-r--r--@ 1 lildude staff 5.0M 29 Aug 14:57 GenerativeArtworks/arte_generativo/p5js-sistema de particulas/p5.js
-rw-r--r--@ 1 lildude staff 5.0M 29 Aug 14:57 GenerativeArtworks/arte_generativo/p5js-vera molnar lineas/p5.js
-rw-r--r--@ 1 lildude staff 5.0M 29 Aug 14:57 GenerativeArtworks/arte_generativo/p5js-vera molnar triangulos/p5.js
-rw-r--r--@ 1 lildude staff 195K 29 Aug 14:57 GenerativeArtworks/arte_generativo/p5js- tipografias/static/p5.sound.min.js
[...] … and they're all identical: $ find ./ -name p5.js -exec cksum {} \;
1271484993 5217711 ./GenerativeArtworks/arte_generativo/p5js-ondas/p5.js
1271484993 5217711 ./GenerativeArtworks/arte_generativo/p5js-vera molnar lineas/p5.js
1271484993 5217711 ./GenerativeArtworks/arte_generativo/p5js- tipografias/static/p5.js
1271484993 5217711 ./GenerativeArtworks/arte_generativo/p5js-ruido perlin/p5.js
1271484993 5217711 ./GenerativeArtworks/arte_generativo/p5js-sistema de particulas/p5.js
1271484993 5217711 ./GenerativeArtworks/arte_generativo/p5js-vera molnar triangulos/p5.js
$ So to fix this, you will need to use an override to exclude those files. Marking the files as vendored would probably be the best option. |
Beta Was this translation helpful? Give feedback.
The language stats are 100% accurate. Whilst you think the project it primarily written in Processing, the total bytes of JavaScript far outweighs everything else:
As you can see, you have over 30mb of JavaScript but only 36kb of Processing.
Why? Because you have six 5mb JavaScript files: