anuraghazra / github-readme-stats

:zap: Dynamically generated stats for your github readmes
https://github-readme-stats.vercel.app
MIT License
68.27k stars 22.36k forks source link

Incomplete language colors for wakatime when use compact layout #623

Closed amtoaer closed 3 years ago

amtoaer commented 3 years ago

Describe the bug I find that language colors seems to be incomplete for wakatime. They are not applied due to incorrect name (Vue in languageColors.json while Vue.js in wakatime) or missing (XML,Properties..)

Screenshots / Live demo link (paste the github-readme-stats link as markdown image)

nathanchu commented 3 years ago

For reference a list of all wakatime languages (I think): https://wakatime.com/leaders/languages Since this is github readme stats maybe linguist might be helpful: https://github.com/github/linguist/blob/master/lib/linguist/languages.yml

amtoaer commented 3 years ago

Thanks for your reply. I tried to merge linguist/languages.yml and languageColors.json with the wakatime languages list you given and got languageColors_new.json. After using this file, my wakatime week stats looks like this:

Some languages still don't have their colors because their colors are not defined in linguist/languages.yml or languageColors.json. So the question is, should we use colors of wakatime to get those languages be properly shown? (Although I think it's a little hard..) Also, that languages list seems to be incomplete because it doesn't contain Batchfile which is shown on my stats.

nathanchu commented 3 years ago

while going to my wakatime profile I found a maybe helpful block of code (with inspect):

  <span class="bootstrapped-data" data-namespace=language_colors style="display:none;">{&#34;ABAP&#34;: null, &#34;AGS Script&#34;: &#34;#B9D9FF&#34;, &#34;ANTLR&#34;: &#34;#9DC3FF&#34;, &#34;APL&#34;: &#34;#8a0707&#34;, &#34;ASP&#34;: &#34;#6a40fd&#34;, &#34;ATS&#34;: &#34;#1ac620&#34;, &#34;ActionScript&#34;: &#34;#e3491a&#34;, &#34;Ada&#34;: &#34;#02f88c&#34;, &#34;Agda&#34;: &#34;#467C91&#34;, &#34;Alloy&#34;: &#34;#cc5c24&#34;, &#34;Apex&#34;: null, &#34;AppleScript&#34;: null, &#34;Arc&#34;: &#34;#ca2afe&#34;, &#34;Arduino&#34;: &#34;#bd79d1&#34;, &#34;AspectJ&#34;: &#34;#1957b0&#34;, &#34;Assembly&#34;: &#34;#a67219&#34;, &#34;Augeas&#34;: null, &#34;AutoHotkey&#34;: &#34;#6594b9&#34;, &#34;AutoIt&#34;: &#34;#36699B&#34;, &#34;Awk&#34;: null, &#34;Batchfile&#34;: null, &#34;Befunge&#34;: null, &#34;BlitzBasic&#34;: null, &#34;BlitzMax&#34;: &#34;#cd6400&#34;, &#34;Bluespec&#34;: null, &#34;Boo&#34;: &#34;#d4bec1&#34;, &#34;Brainfuck&#34;: null, &#34;Brightscript&#34;: null, &#34;Bro&#34;: null, &#34;C&#34;: &#34;#555&#34;, &#34;C Sharp&#34;: &#34;#178600&#34;, &#34;C#&#34;: &#34;#5a25a2&#34;, &#34;C++&#34;: &#34;#f34b7d&#34;, &#34;C2hs Haskell&#34;: null, &#34;CLIPS&#34;: null, &#34;CMake&#34;: null, &#34;COBOL&#34;: null, &#34;CSS&#34;: &#34;#563d7c&#34;, &#34;Ceylon&#34;: null, &#34;Chapel&#34;: &#34;#8dc63f&#34;, &#34;ChucK&#34;: null, &#34;Cirru&#34;: &#34;#aaaaff&#34;, &#34;Clean&#34;: &#34;#3a81ad&#34;, &#34;Clojure&#34;: &#34;#db5855&#34;, &#34;CoffeeScript&#34;: &#34;#244776&#34;, &#34;ColdFusion&#34;: &#34;#ed2cd6&#34;, &#34;ColdFusion CFC&#34;: &#34;#ed2cd6&#34;, &#34;Common Lisp&#34;: &#34;#3fb68b&#34;, &#34;Component Pascal&#34;: &#34;#b0ce4e&#34;, &#34;Coq&#34;: null, &#34;Crystal&#34;: null, &#34;Cucumber&#34;: null, &#34;Cuda&#34;: null, &#34;Cython&#34;: null, &#34;D&#34;: &#34;#fcd46d&#34;, &#34;DCPU-16 ASM&#34;: null, &#34;DM&#34;: &#34;#075ff1&#34;, &#34;Darcs Patch&#34;: null, &#34;Dart&#34;: &#34;#98BAD6&#34;, &#34;Diff&#34;: null, &#34;Dogescript&#34;: &#34;#cca760&#34;, &#34;Dylan&#34;: &#34;#3ebc27&#34;, &#34;E&#34;: &#34;#ccce35&#34;, &#34;ECL&#34;: &#34;#8a1267&#34;, &#34;Eagle&#34;: &#34;#3994bc&#34;, &#34;Eiffel&#34;: &#34;#946d57&#34;, &#34;Elixir&#34;: &#34;#6e4a7e&#34;, &#34;Elm&#34;: &#34;#60B5CC&#34;, &#34;Emacs Lisp&#34;: &#34;#c065db&#34;, &#34;EmberScript&#34;: &#34;#f64e3e&#34;, &#34;Erlang&#34;: &#34;#0faf8d&#34;, &#34;F#&#34;: &#34;#b845fc&#34;, &#34;FLUX&#34;: &#34;#33CCFF&#34;, &#34;FORTRAN&#34;: &#34;#4d41b1&#34;, &#34;Factor&#34;: &#34;#636746&#34;, &#34;Fancy&#34;: &#34;#7b9db4&#34;, &#34;Fantom&#34;: &#34;#dbded5&#34;, &#34;Forth&#34;: &#34;#341708&#34;, &#34;Frege&#34;: &#34;#00cafe&#34;, &#34;GAMS&#34;: null, &#34;GAP&#34;: null, &#34;GAS&#34;: null, &#34;GLSL&#34;: null, &#34;Game Maker Language&#34;: &#34;#8ad353&#34;, &#34;Genshi&#34;: null, &#34;Gentoo Ebuild&#34;: null, &#34;Gentoo Eclass&#34;: null, &#34;Gettext Catalog&#34;: null, &#34;Glyph&#34;: &#34;#e4cc98&#34;, &#34;Gnuplot&#34;: &#34;#f0a9f0&#34;, &#34;Go&#34;: &#34;#375eab&#34;, &#34;Golo&#34;: &#34;#f6a51f&#34;, &#34;Gosu&#34;: &#34;#82937f&#34;, &#34;Grammatical Framework&#34;: &#34;#ff0000&#34;, &#34;Groff&#34;: null, &#34;Groovy&#34;: &#34;#e69f56&#34;, &#34;Groovy Server Pages&#34;: null, &#34;HTML&#34;: &#34;#e44b23&#34;, &#34;Harbour&#34;: &#34;#0e60e3&#34;, &#34;Haskell&#34;: &#34;#29b544&#34;, &#34;Haxe&#34;: &#34;#f7941e&#34;, &#34;Hy&#34;: &#34;#7891b1&#34;, &#34;IDL&#34;: &#34;#e3592c&#34;, &#34;IRC log&#34;: null, &#34;Idris&#34;: null, &#34;Inform 7&#34;: null, &#34;Inno Setup&#34;: null, &#34;Io&#34;: &#34;#a9188d&#34;, &#34;Ioke&#34;: &#34;#078193&#34;, &#34;Isabelle&#34;: &#34;#fdcd00&#34;, &#34;J&#34;: null, &#34;JSONiq&#34;: null, &#34;Java&#34;: &#34;#b07219&#34;, &#34;Java Server Pages&#34;: null, &#34;JavaScript&#34;: &#34;#f1e05a&#34;, &#34;Julia&#34;: &#34;#a270ba&#34;, &#34;KRL&#34;: &#34;#f5c800&#34;, &#34;Kotlin&#34;: null, &#34;LFE&#34;: &#34;#004200&#34;, &#34;LLVM&#34;: null, &#34;LOLCODE&#34;: &#34;#cc9900&#34;, &#34;LSL&#34;: &#34;#3d9970&#34;, &#34;Lasso&#34;: &#34;#2584c3&#34;, &#34;Latte&#34;: &#34;#A8FF97&#34;, &#34;LilyPond&#34;: null, &#34;Literate Agda&#34;: null, &#34;Literate CoffeeScript&#34;: null, &#34;Literate Haskell&#34;: null, &#34;LiveScript&#34;: &#34;#499886&#34;, &#34;Logos&#34;: null, &#34;Logtalk&#34;: null, &#34;LookML&#34;: &#34;#652B81&#34;, &#34;Lua&#34;: &#34;#fa1fa1&#34;, &#34;M&#34;: null, &#34;MTML&#34;: &#34;#0095d9&#34;, &#34;Makefile&#34;: null, &#34;Mako&#34;: null, &#34;Mask&#34;: &#34;#f97732&#34;, &#34;Mathematica&#34;: null, &#34;Matlab&#34;: &#34;#bb92ac&#34;, &#34;Max&#34;: &#34;#ce279c&#34;, &#34;Mercury&#34;: &#34;#abcdef&#34;, &#34;MiniD&#34;: null, &#34;Mirah&#34;: &#34;#c7a938&#34;, &#34;Monkey&#34;: null, &#34;Moocode&#34;: null, &#34;MoonScript&#34;: null, &#34;Myghty&#34;: null, &#34;NSIS&#34;: null, &#34;Nemerle&#34;: &#34;#0d3c6e&#34;, &#34;NetLogo&#34;: &#34;#ff2b2b&#34;, &#34;NewLisp&#34;: &#34;#eedd66&#34;, &#34;Nimrod&#34;: &#34;#37775b&#34;, &#34;Nit&#34;: &#34;#0d8921&#34;, &#34;Nix&#34;: &#34;#7070ff&#34;, &#34;Nu&#34;: &#34;#c9df40&#34;, &#34;NumPy&#34;: null, &#34;OCaml&#34;: &#34;#3be133&#34;, &#34;Objective-C&#34;: &#34;#438eff&#34;, &#34;Objective-C++&#34;: &#34;#4886FC&#34;, &#34;Objective-J&#34;: &#34;#ff0c5a&#34;, &#34;Omgrofl&#34;: &#34;#cabbff&#34;, &#34;Opa&#34;: null, &#34;Opal&#34;: &#34;#f7ede0&#34;, &#34;OpenCL&#34;: null, &#34;OpenEdge ABL&#34;: null, &#34;Ox&#34;: null, &#34;Oxygene&#34;: &#34;#5a63a3&#34;, &#34;Oz&#34;: &#34;#fcaf3e&#34;, &#34;PAWN&#34;: &#34;#dbb284&#34;, &#34;PHP&#34;: &#34;#4F5D95&#34;, &#34;Pan&#34;: &#34;#cc0000&#34;, &#34;Papyrus&#34;: &#34;#6600cc&#34;, &#34;Parrot&#34;: &#34;#f3ca0a&#34;, &#34;Parrot Assembly&#34;: null, &#34;Parrot Internal Representation&#34;: null, &#34;Pascal&#34;: &#34;#b0ce4e&#34;, &#34;Perl&#34;: &#34;#0298c3&#34;, &#34;Perl6&#34;: &#34;#0298c3&#34;, &#34;PigLatin&#34;: &#34;#fcd7de&#34;, &#34;Pike&#34;: &#34;#066ab2&#34;, &#34;PogoScript&#34;: &#34;#d80074&#34;, &#34;PowerShell&#34;: null, &#34;Processing&#34;: &#34;#2779ab&#34;, &#34;Prolog&#34;: &#34;#74283c&#34;, &#34;Propeller Spin&#34;: &#34;#2b446d&#34;, &#34;Puppet&#34;: &#34;#cc5555&#34;, &#34;Pure Data&#34;: &#34;#91de79&#34;, &#34;PureBasic&#34;: &#34;#5a6986&#34;, &#34;PureScript&#34;: &#34;#bcdc53&#34;, &#34;Python&#34;: &#34;#3581ba&#34;, &#34;QML&#34;: &#34;#44a51c&#34;, &#34;R&#34;: &#34;#198ce7&#34;, &#34;RAML&#34;: &#34;#77d9fb&#34;, &#34;REALbasic&#34;: null, &#34;Racket&#34;: &#34;#ae17ff&#34;, &#34;Ragel in Ruby Host&#34;: &#34;#ff9c2e&#34;, &#34;Raw token data&#34;: null, &#34;Rebol&#34;: &#34;#358a5b&#34;, &#34;Red&#34;: &#34;#ee0000&#34;, &#34;Redcode&#34;: null, &#34;RobotFramework&#34;: null, &#34;Rouge&#34;: &#34;#cc0088&#34;, &#34;Ruby&#34;: &#34;#701516&#34;, &#34;Rust&#34;: &#34;#dea584&#34;, &#34;SAS&#34;: &#34;#1E90FF&#34;, &#34;SQF&#34;: &#34;#FFCB1F&#34;, &#34;Sage&#34;: null, &#34;Scala&#34;: &#34;#7dd3b0&#34;, &#34;Scheme&#34;: &#34;#1e4aec&#34;, &#34;Scilab&#34;: null, &#34;Self&#34;: &#34;#0579aa&#34;, &#34;Shell&#34;: &#34;#5861ce&#34;, &#34;ShellSession&#34;: null, &#34;Shen&#34;: &#34;#120F14&#34;, &#34;Slash&#34;: &#34;#007eff&#34;, &#34;Slim&#34;: &#34;#ff8877&#34;, &#34;Smalltalk&#34;: &#34;#596706&#34;, &#34;Smarty&#34;: null, &#34;SourcePawn&#34;: &#34;#f69e1d&#34;, &#34;Squirrel&#34;: null, &#34;Standard ML&#34;: &#34;#dc566d&#34;, &#34;Stata&#34;: null, &#34;SuperCollider&#34;: &#34;#46390b&#34;, &#34;Swift&#34;: &#34;#ffac45&#34;, &#34;SystemVerilog&#34;: &#34;#343761&#34;, &#34;TXL&#34;: null, &#34;Tcl&#34;: &#34;#e4cc98&#34;, &#34;Tcsh&#34;: null, &#34;TeX&#34;: &#34;#3D6117&#34;, &#34;Turing&#34;: &#34;#45f715&#34;, &#34;TypeScript&#34;: &#34;#31859c&#34;, &#34;Unified Parallel C&#34;: &#34;#755223&#34;, &#34;UnrealScript&#34;: &#34;#a54c4d&#34;, &#34;VCL&#34;: &#34;#0298c3&#34;, &#34;VHDL&#34;: &#34;#543978&#34;, &#34;Vala&#34;: &#34;#ee7d06&#34;, &#34;Verilog&#34;: &#34;#848bf3&#34;, &#34;VimL&#34;: &#34;#199c4b&#34;, &#34;Visual Basic&#34;: &#34;#945db7&#34;, &#34;Volt&#34;: &#34;#0098db&#34;, &#34;Web Ontology Language&#34;: &#34;#3994bc&#34;, &#34;XC&#34;: null, &#34;XProc&#34;: null, &#34;XQuery&#34;: &#34;#2700e2&#34;, &#34;XS&#34;: null, &#34;XSLT&#34;: null, &#34;Xtend&#34;: null, &#34;Zephir&#34;: &#34;#118f9e&#34;, &#34;Zimpl&#34;: null, &#34;cpp&#34;: &#34;#f34b7d&#34;, &#34;eC&#34;: null, &#34;edn&#34;: &#34;#db5855&#34;, &#34;fish&#34;: null, &#34;mupad&#34;: null, &#34;nesC&#34;: &#34;#ffce3b&#34;, &#34;ooc&#34;: &#34;#b0b77e&#34;, &#34;wisp&#34;: &#34;#7582D1&#34;, &#34;xBase&#34;: &#34;#3a4040&#34;}</span>

<span class="bootstrapped-data" data-namespace=project_colors style="display:none;">{&#34;colors&#34;: [&#34;#1f9aef&#34;, &#34;#16ce40&#34;, &#34;#dc9658&#34;, &#34;#d62728&#34;, &#34;#9467bd&#34;, &#34;#8c564b&#34;, &#34;#aec7e8&#34;, &#34;#e377c2&#34;, &#34;#f7b6d2&#34;, &#34;#7f7f7f&#34;, &#34;#c7c7c7&#34;, &#34;#bcbd22&#34;, &#34;#dbdb8d&#34;, &#34;#17becf&#34;, &#34;#9edae5&#34;, &#34;#ffbb78&#34;, &#34;#98df8a&#34;, &#34;#ff9896&#34;, &#34;#c5b0d5&#34;, &#34;#c49c94&#34;]}</span>

<span class="bootstrapped-data" data-namespace=category_colors style="display:none;">{&#34;Browsing&#34;: &#34;#e59215&#34;, &#34;Building&#34;: &#34;#e8ce3d&#34;, &#34;Code Reviewing&#34;: &#34;#34f5db&#34;, &#34;Coding&#34;: &#34;#1f9aef&#34;, &#34;Debugging&#34;: &#34;#2af56d&#34;, &#34;Designing&#34;: &#34;#9061ca&#34;, &#34;Indexing&#34;: &#34;#fff09d&#34;, &#34;Learning&#34;: null, &#34;Manual Testing&#34;: &#34;#34be61&#34;, &#34;Researching&#34;: null, &#34;Running Tests&#34;: &#34;#ec5756&#34;, &#34;Writing Docs&#34;: &#34;#36e3ff&#34;, &#34;Writing Tests&#34;: &#34;#36e3ff&#34;}</span>

<span class="bootstrapped-data" data-namespace=editor_colors style="display:none;">{&#34;Adobe XD&#34;: &#34;#fd27bc&#34;, &#34;Android Studio&#34;: &#34;#99cd00&#34;, &#34;AppCode&#34;: &#34;#04dbde&#34;, &#34;Aptana&#34;: &#34;#ec8623&#34;, &#34;Atom&#34;: &#34;#49b77e&#34;, &#34;Azure Data Studio&#34;: &#34;#0271c6&#34;, &#34;Blender&#34;: &#34;#fb8007&#34;, &#34;Brackets&#34;: &#34;#067dc3&#34;, &#34;CLion&#34;: &#34;#14c9a5&#34;, &#34;Chrome&#34;: &#34;#fdd308&#34;, &#34;Cloud9&#34;: &#34;#25a6d9&#34;, &#34;Coda&#34;: &#34;#3e8e1c&#34;, &#34;Code::Blocks&#34;: &#34;#d0ce71&#34;, &#34;CodeTasty&#34;: &#34;#7368a8&#34;, &#34;DataGrip&#34;: &#34;#907cf2&#34;, &#34;Eclipse&#34;: &#34;#443582&#34;, &#34;EmEditor&#34;: &#34;#ed3103&#34;, &#34;Emacs&#34;: &#34;#8c76c3&#34;, &#34;Embarcadero Delphi&#34;: &#34;#d9242a&#34;, &#34;Eric&#34;: &#34;#423f13&#34;, &#34;Excel&#34;: &#34;#0f753c&#34;, &#34;Figma&#34;: &#34;#c7b9ff&#34;, &#34;Firefox&#34;: &#34;#d96527&#34;, &#34;Flash Builder&#34;: &#34;#aca3a4&#34;, &#34;Geany&#34;: &#34;#fbec75&#34;, &#34;Gedit&#34;: &#34;#872114&#34;, &#34;GoLand&#34;: &#34;#bd4ffc&#34;, &#34;IntelliJ&#34;: &#34;#237ce2&#34;, &#34;IntelliJ IDEA&#34;: &#34;#237ce2&#34;, &#34;Kakoune&#34;: &#34;#dd5f4a&#34;, &#34;Kate&#34;: &#34;#3f4040&#34;, &#34;Komodo&#34;: &#34;#fcb414&#34;, &#34;Light Table&#34;: &#34;#007ac1&#34;, &#34;MacRabbit Espresso&#34;: &#34;#e6593f&#34;, &#34;MonoDevelop&#34;: &#34;#6185b3&#34;, &#34;MySQL Workbench&#34;: &#34;#245279&#34;, &#34;NetBeans&#34;: &#34;#f1f6e2&#34;, &#34;Notepad++&#34;: &#34;#9ecf54&#34;, &#34;Nova&#34;: &#34;#ff054a&#34;, &#34;Photoshop&#34;: &#34;#0a0054&#34;, &#34;PhpStorm&#34;: &#34;#d93ac1&#34;, &#34;PowerPoint&#34;: &#34;#c6421f&#34;, &#34;Processing&#34;: &#34;#6a7152&#34;, &#34;PyCharm&#34;: &#34;#d2ee5c&#34;, &#34;Pymakr&#34;: &#34;#323d4f&#34;, &#34;QtCreator&#34;: &#34;#7fc342&#34;, &#34;RStudio&#34;: &#34;#2369c7&#34;, &#34;Rider&#34;: &#34;#f7a415&#34;, &#34;RubyMine&#34;: &#34;#ff6336&#34;, &#34;SQL Server Management Studio&#34;: &#34;#ffb901&#34;, &#34;Sketch&#34;: &#34;#fdad00&#34;, &#34;Sublime Text&#34;: &#34;#ff9800&#34;, &#34;TeXstudio&#34;: &#34;#652d96&#34;, &#34;Terminal&#34;: &#34;#133f1c&#34;, &#34;TextMate&#34;: &#34;#822b7a&#34;, &#34;Unity&#34;: &#34;#222d36&#34;, &#34;Unknown Editor&#34;: &#34;#1f9aef&#34;, &#34;VS Code&#34;: &#34;#027acd&#34;, &#34;Vim&#34;: &#34;#068304&#34;, &#34;Visual Studio&#34;: &#34;#9460cd&#34;, &#34;WebMatrix&#34;: &#34;#aeaeae&#34;, &#34;WebStorm&#34;: &#34;#00c6d7&#34;, &#34;Word&#34;: &#34;#0f4091&#34;, &#34;Xamarin&#34;: &#34;#3598db&#34;, &#34;Xcode&#34;: &#34;#3fa7e4&#34;}</span>

The first line, when decoded comes out to wakatimeColors.json

Finally, when merged with the existing languageColors.json we get languageColors.json

The problem is that while this does give more languages it still doesn't give all of them.

amtoaer commented 3 years ago

I found the languages list in FAQ:

What languages are supported? WakaTime plugins use the Pygments syntax highlighter for language detection. See the languages supported by Pygments, which is also the list of languages detected by WakaTime.

However, colors they use to display these languages are still unknown. Maybe the only way is to contact them for help? :(

nathanchu commented 3 years ago

@amtoaer that might be the only solution...

stale[bot] commented 3 years ago

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.