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)
m (→‎Utilities I Wrote:: Update "language links" tapermonkey script to deal with new (Mediawiki 1.39) page title formatting)
 
(4 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-2411
!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||15581571||57||16491646||31.5654 %||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||15571570||55||17911782||32.769 %||78.2627 %||21.7473 %||0.04 %||phix(1922) Phix c csharp(7) javascript r(1)
|-
||Julia||15271538||34||10101011||27.9491 %||77.1821 %||22.8279 %||0.27 %||julia(1817) text(4) Julia(3) ruby(3) html5 python(2) cpp(1) html(1) lua(1) xml(1)
|-
||Raku||15021518||30||893895||28.8678 %||69.3235 %||30.6865 %||0.5859 %||perl6raku(1958) text(7) bash(4) c(4) Cxml(2) html(1) rust(1) shell xml XML(1)
|-
||Go||14961497||76||1809||34.5756 %||75.2223 %||24.7877 %||0.1 %||go Go(1924) html(5) text(3) bash(2) c(2) xml(2) ecmascript(1) futurebasic(1) html5(1) proto(1) thrift(1)
|-
||Perl||14651473||34||922925||27.0102 %||68.1617 %||31.8483 %||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) bash(5) rubyhtml5(5) c(2) Ccmd(2) $python3(2) AutoHotkey(1) Nimrodebnf(1) perl(1) Python(1) qb64(1) shell(1) xml(1)
|-
||PythonNim||13911402||7248||20121332||3024.8564 %||75.52 %||24.48 %||01.0412 %||pythonnim(1599) Pythontext(10) bash html5python(8) c(4) cmd python3 ebnfNim(3) QB64ruby(3) Shellnimrod(1) xml(1)
|-
||J||12341275||2728||772780||2826.3493 %||69.2173 %||30.7927 %||6.7453 %||j(2986) text(48) J(11) bash sh %s C(7) c(4) foo bar bazsh(4) bnf(1) html5(1) make(1) python(1) SNUSPsnusp(1) xml(1)
|-
||C||12111215||79||18641873||28.7476 %||72.5462 %||27.4638 %||0.01 %||c(1656) Ctext(48) cpp(11) bash(6) C(2) xml(2) XMLassembly(1) Assemblycafe(1) d(1) go(1) html5(1) make(1) perl(1) sh(1) Shellshell(1)
|-
||Mathematica||11571177||1112||410422||17.4756 %||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||11351138||6645||20721355||3328.5334 %||7876.5584 %||2123.4516 %||0.0108 %||javahaskell(2089) java5text(7) Javabash(3) Java5Haskell(3) c bash(1) html5(1) xml foo make bar cmd java 12 java8 Java8 python shellsh(1)
|-
||KotlinJava||11311138||4766||13662077||33.2152 %||7778.6156 %||2221.3944 %||0.0301 %||scalajava(1273) kotlinjava5(223) Kotlin Ctext(6) c(4) groovy Groovybash(3) html5(3) xml(3) Java(2) java8(2) make(2) HTML5cmd(1) java Scheme12(1) schemepython(1) xmlshell(1)
|-
||HaskellKotlin||11261132||4547||13551365||2833.3421 %||7677.8561 %||2322.1539 %||0.0803 %||haskellscala(1110) Haskell bashkotlin(61) c(4) groovy(2) html5(2) scheme(2) shjava(1) textxml(1)
|-
||C++||11091115||73||19681973||29.27 %||72.6971 %||27.3129 %||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||11001103||32||832||26.18 %||76.549 %||23.551 %||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||10701073||47||12341232||30.8887 %||82.3841 %||17.6259 %||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