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)
 
(20 intermediate revisions by the same user not shown)
Line 11:
 
 
==Syntax highlighting and CSS guide==
==Reports:==
;* [[User:Thundergnat/Syntax_highlighting_and_CSS|Short guide to Rosetta Code syntax highlighting and CSS customization that I wrote]]
 
 
==Reports I Generate:==
;*[[Rosetta_Code/Rank_languages_by_popularity/Full_list|Rank languages by popularity]]
;*[[Rosetta_Code/List_authors_of_task_descriptions/Full_list|List authors of task descriptions]]
Line 21 ⟶ 25:
 
 
==Utilities I Wrote:==
'''[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:==
 
==Resources:==
;*[https://github.com/thundergnat/rc/tree/master Offsite repository of resource files for various tasks]
 
Line 44 ⟶ 47:
* Task count - The number of tasks for which there is an entry in that language.
* Average lines per entry - The average number of lines in code blocks per entry. Multiple versions under the same task all count as lines per task. (If there are four versions and each has 25 lines, it counts as 100 for that task.)
* Average number of charactercharacters - Average number of characters inside <nowiki><lang *></lang></nowiki> blocks per task including whitespace.
* Average whitespace - How many of the above characters are white space? (Including new line characters.)
* Average percent alpha-numerics - What percentage of the non-white space characters are alphabetic or numeric?
* 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-0209-2711
!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
|-
||PhixWren||15171571||5357||17051646||3231.7554 %||7875.3886 %||2124.6214 %||0.0309 %||Phixecmascript(1638) c(65) go(14) javascript(8) csharppython(2) rxml(2) cAutoHotkey(1) bash(1) perl(1) text(1)
|-
||Phix||1570||55||1782||32.69 %||78.27 %||21.73 %||0.04 %||phix(1922) Phix(7) javascript(1)
|-
||WrenJulia||15091538||5534||15831011||3127.5991 %||7577.7421 %||2422.2679 %||0.127 %||ecmascriptjulia(1817) ctext(4) goJulia(3) javascriptruby(3) Chtml5(2) foocpp(1) xmlhtml(1) pythonlua(1) bar bash bazxml(1)
|-
||JuliaRaku||14891518||3330||974895||2728.8278 %||7769.135 %||2230.965 %||0.2759 %||juliaraku(1958) Juliatext(7) pythonbash(4) ruby html5 lua cppc(4) xml(2) html(1) rust(1) shell(1)
|-
||RakuGo||14711497||3076||8831809||2834.8456 %||6975.3123 %||3024.6977 %||0.571 %||perl6go(1924) html(5) text(3) bash(2) c(2) Cxml(2) shellecmascript(1) XMLfuturebasic(1) bashhtml5(1) xmlproto(1) htmlthrift(1)
|-
||GoPerl||14601473||7734||1817925||3427.4302 %||7568.2617 %||2431.7483 %||0.111 %||goperl(2047) Gotext(12) htmlbash(5) shell(2) c(1) bashhtml5(1) xmllatex(1) thrift proto html5Perl(1)
|-
||PerlPython||14361406||3472||9182017||2730.0284 %||6875.1856 %||3124.8244 %||0.104 %||perlpython(2669) Perltext(13) bash(5) Shell latexhtml5(5) c(2) html5cmd(2) python3(2) AutoHotkey(1) ebnf(1) perl(1) Python(1) qb64(1) shell(1) xml(1)
|-
||Nim||13981402||48||13261332||24.6564 %||75.52 %||24.48 %||1.12 %||Nim nim(1599) text(10) python(8) Pythonc(4) Nim(3) ruby(3) C c $nimrod(1 Nimrod) xml(1)
|-
||PythonJ||13501275||7128||1993780||3026.7393 %||7569.4573 %||2430.5527 %||06.0453 %||pythonj(2986) Pythontext(48) html5J(11) bash cmd(7) c(4) ebnfsh(4) xmlbnf(1) python3html5(1) Shellmake(1) python(1) snusp(1) xml(1)
|-
||C||11991215||7879||18441873||28.6776 %||72.5262 %||27.4838 %||0.01 %||c(1656) Ctext(48) cpp(11) bash(6) XMLC(2) Assemblyxml(2) makeassembly(1) cafe(1) d(1) go perl(1) html5(1) make(1) perl(1) sh(1) Shellshell(1)
|-
||REXXMathematica||11441177||5512||3358422||4017.3356 %||6870.4477 %||3129.5623 %||80.4804 %||rexxmathematica(1485) REXXtext(35) RexxMathematica(8) shwolfram cobollanguage(2) mathematica (1) sh(1)
|-
||KotlinREXX||11311146||4756||13633373||3340.2133 %||7768.6247 %||2231.3853 %||08.0445 %||scala kotlin Kotlin c C groovy Groovy xml schemerexx(1766) HTML5text(11) javacobol(1) html5sh(1)
|-
||JHaskell||11311138||2745||7491355||2628.8334 %||6976.4784 %||3023.5316 %||60.4508 %||jhaskell(2089) Jtext(7) bash(3) sh %sHaskell(3) c foo C bnf(1) html5(1) SNUSP baz python make bar xmlsh(1)
|-
||Java||11251138||66||20612077||33.4252 %||78.56 %||21.44 %||0.01 %||java(1273) java5(223) Java Java5text(6) c(4) xmlbash(3) html5(3) bashxml(3) makeJava(2) foojava8(2) shellmake(2) cmd(1) Java8java bar12(1) javapython(1) 12shell(1)
|-
||HaskellKotlin||11131132||4447||13461365||28.33.21 %||7677.8961 %||2322.1139 %||0.0803 %||haskellscala(1110) Haskell bashkotlin(61) c(4) groovy(2) html5(2) scheme(2) shjava(1) textxml(1)
|-
||MathematicaC++||11061115||1173||4091973||1729.5227 %||70.72.71 %||2927.2829 %||0.0402 %||Mathematicacpp(1511) mathematicac++(14) fooc(8) barftext(4) bazsh(3) "~~html5(2) x~~"asm(1) shbash(1) cmake(1) d(1) barmake(1)
|-
||RacketRuby||10891103||3332||1118832||26.4718 %||7576.0549 %||2423.9551 %||0.2906 %||racketruby(1588) Racketbash(4) schemec(2) Chtml5(2) cmdRuby(2) html5rust(1) bashtcl(1) xmltext(1)
|-
||RubyRacket||1089||3234||8241155||26.2348 %||7675.4808 %||2324.5292 %||0.0629 %||rubyracket(1343) Rubyscheme(18) text(9) bash html5 foo(1) c(1) bazcmd(1) tcl barhtml5(1) rustxml(1)
|-
||C++FreeBASIC||10761073||7347||19841232||2930.2287 %||7282.6941 %||2717.3159 %||0.0203 %||cppfreebasic(1128) Cppbasic(2) C++qbasic(2) c CPP c++ sh html5 make(1) text(1) C cmake asm d bashzxbasic(1)
|-
||zkl||1011||19||688||17.98 %||69.69 %||30.31 %||0.03 %||zkl c(1728) bash(2) csharpc(2) html5 r(1)
|-
||FreeBASICSidef||10051003||4622||1203545||30.6182 %||8270.3218 %||1729.6882 %||0.0345 %||freebasic FreeBASIC FreeBasic qbasic basicruby(1251) csidef(4) Freebasicshell(2) zxbasichtml5(1)
|}
 
10,327

edits