Thundergnat

Joined 24 August 2022
m
→‎Utilities I Wrote:: Update "language links" tapermonkey script to deal with new (Mediawiki 1.39) page title formatting
(→‎Language Stats:: update stats to the latest)
m (→‎Utilities I Wrote:: Update "language links" tapermonkey script to deal with new (Mediawiki 1.39) page title formatting)
 
(5 intermediate revisions by the same user not shown)
Line 9:
 
I would appreciate that any use includes a link back to the Rosettacode page from which it was obtained (but obviously would have no way to enforce that.)
 
 
==Syntax highlighting and CSS guide==
;* [[User:Thundergnat/Syntax_highlighting_and_CSS|Short guide to Rosetta Code syntax highlighting and CSS customization that I wrote]]
 
 
Line 24 ⟶ 28:
'''[https://www.tampermonkey.net/ Tampermonkey]''' or '''[https://www.greasespot.net/ Greasemonkey]''' javascript applets
 
;* [https://gist.github.com/thundergnat/c5a86a6d5e0018ac67bdea3fc48786a0#file-language_links-user-js Add language parameters to Category task entry links] - See [[Rosetta_Code:Village_Pump/Add_link_anchors_to_Language_Category_pages|this Village Pump page]] for details. Presently @ version 0.78 (20212023/0601/1622)
;* [https://gist.github.com/thundergnat/5f7f36dc0cf303b110f6d7c6275fbb85#file-toggle_syntax_highlighting-user-js Syntax highlighting toggle] Toggle the task syntax highlighting off and on. Presently @ version 0.12 (20212022/0608/1022)
 
 
==Resources I Host:==
Line 49 ⟶ 52:
* Average percent non-alpha-numerics - What percentage of the non-white space characters are not alphabetic or numeric? (Punctuation, symbols, etc)
* Average percent non-ASCII - What percentage of the non-white space characters are not ASCII characters?
* Syntax highlighting - What syntax highlighter does it use in order from most to least common.; the highlighting specifier with how many times it was seen (in parenthesis). Note that some variation is expected, especially for tasks like [[Call a foreign-language function]], [[Rosetta Code/Find bare lang tags]] or probably the largest source of oddball <nowiki><lang *></nowiki>markup tags: [[Rosetta Code/Fix_code_tags]].) In general, Pygments expects the lexer name to be all lower case.
 
{|class="wikitable sortable"
|+ As of 2022-0709-0311
!Language!!Task<br>Count!!Avg. #<br>Lines / Entry!!Avg. #<br>Characters!!Avg. %<br>White space!!Avg. %<br>Alphanumerics!!Avg. %Non<br>Alphanumerics!!Avg. %<br>Non-ASCII!!Syntax<br>highlighting
|-
||Wren||15461571||57||16431646||31.5254 %||75.8486 %||24.1614 %||0.09 %||ecmascript(1638) c(65) go(14) javascript(8) C foopython(2) xml(2) barAutoHotkey(1) bash(1) bazperl(1) pythontext(1)
|-
||Phix||15431570||55||17861782||32.6769 %||78.27 %||21.73 %||0.04 %||phix(1922) Phix c csharp(7) javascript r(1)
|-
||Julia||15171538||3334||9951011||27.9291 %||77.0821 %||22.9279 %||0.2827 %||julia(1817) text(4) Julia(3) ruby(3) html5 python(2) cpp(1) html(1) lua(1) xml(1)
|-
||GoRaku||14951518||7630||1809895||3428.5778 %||7569.2335 %||2430.7765 %||0.159 %||goraku(1958) Go htmltext(7) bash(4) c(4) xml(2) ecmascripthtml(1) futurebasicrust(1) html5 proto thriftshell(1)
|-
||RakuGo||14931497||3076||8901809||2834.8656 %||6975.3323 %||3024.6777 %||0.581 %||perl6go(1924) bashhtml(5) Ctext(3) bash(2) c(2) htmlxml(2) rustecmascript(1) shellfuturebasic(1) xmlhtml5(1) proto(1) XMLthrift(1)
|-
||Perl||14571473||34||917925||27.02 %||68.1817 %||31.8283 %||0.1 %||perl(2047) Perltext(12) bash(5) Shellshell(2) c(1) html5(1) latex(1) Perl(1)
|-
||NimPython||14011406||4872||13252017||2430.6684 %||75.5356 %||24.4744 %||10.1204 %||Nim nim python(2669) Pythontext(13) rubybash(5) Chtml5(5) c(2) $cmd(2) python3(2) AutoHotkey(1) Nimrodebnf(1) perl(1) Python(1) qb64(1) shell(1) xml(1)
|-
||PythonNim||13831402||7248||20061332||3024.8664 %||75.5152 %||24.4948 %||01.0412 %||pythonnim(1599) Pythontext(10) bash html5python(8) c(4) cmd python3 ebnfNim(3) QB64ruby(3) Shellnimrod(1) xml(1)
|-
||CJ||12071275||7928||1859780||2826.7393 %||7269.5473 %||2730.4627 %||06.0153 %||cj(2986) Ctext(48) cppJ(11) bash(7) XMLc(4) Assemblysh(4) d gobnf(1) html5(1) make(1) perlpython(1) shsnusp(1) Shellxml(1)
|-
||JC||11641215||2779||7611873||2728.0476 %||6972.3162 %||3027.6938 %||60.6201 %||jc(1656) Jtext(48) cpp(11) bash(6) shC(2) %sxml(2) cassembly(1) foocafe(1) bard(1) baz bnf Cgo(1) html5(1) make(1) pythonperl(1) SNUSPsh(1) xmlshell(1)
|-
||Mathematica||11451177||1112||408422||17.4356 %||70.8477 %||29.1623 %||0.04 %||Mathematica mathematica(1485) footext(35) WolframMathematica(8) Languagewolfram "~~language(2) x~~" bar barfmathematica baz(1) sh(1)
|-
||REXX||11451146||5556||33563373||40.33 %||68.4447 %||31.5653 %||8.4845 %||rexx(1766) REXX Rexxtext(11) cobol(1) sh(1)
|-
||JavaHaskell||11321138||6645||20671355||3328.4434 %||7876.5684 %||2123.4416 %||0.0108 %||javahaskell(2089) java5text(7) Javabash(3) Java5Haskell(3) c bash(1) html5(1) xml foo make bar cmd java 12 java8 Java8 shellsh(1)
|-
||KotlinJava||11311138||4766||13662077||33.2152 %||7778.6156 %||2221.3944 %||0.0301 %||scalajava(1273) kotlinjava5(223) Kotlintext(6) c(4) Cbash(3) groovyhtml5(3) Groovyxml(3) HTML5Java(2) html5java8(2) make(2) cmd(1) java scheme12(1) Schemepython(1) xmlshell(1)
|-
||HaskellKotlin||11251132||4547||13551365||2833.3421 %||7677.8661 %||2322.1439 %||0.0803 %||haskellscala(1110) Haskell bashkotlin(61) c(4) groovy(2) html5(2) scheme(2) shjava(1) textxml(1)
|-
||C++||11051115||73||19701973||29.2627 %||72.71 %||27.29 %||0.02 %||cpp(1511) Cpp Cc++(14) c(8) c++ CPPtext(4) sh(3) html5(2) asm(1) bash C(1) cmake(1) d(1) make text(1)
|-
||Ruby||10971103||32||833832||26.18 %||76.49 %||23.51 %||0.06 %||ruby Ruby(1588) bash(4) c foo(2) html5(2) bar bazRuby(2) rust(1) tcl(1) text(1)
|-
||Racket||10911089||3334||11391155||26.4948 %||75.0908 %||24.9192 %||0.29 %||racket Racket(1343) scheme(18) text(9) bash(1) Cc(1) cmd(1) html5(1) xml(1)
|-
||FreeBASIC||10661073||47||12371232||30.8887 %||82.3941 %||17.6159 %||0.03 %||freebasic(1128) FreeBASIC FreeBasicbasic(2) qbasic basic(2) c(1) Freebasictext(1) zxbasic(1)
|-
||zkl||1011||19||688||17.98 %||69.69 %||30.31 %||0.03 %||zkl c(1728) bash(2) csharpc(2) html5 r(1)
|-
||Sidef||1003||22||545||30.82 %||70.1718 %||29.8382 %||0.45 %||ruby(1251) sidef(4) shell(2) html5(1)
|}
 
 
<div style="padding:1em;background:#eeeeff;"><h3>Older commentary</h3>
10,327

edits