Rosetta Code/Find bare lang tags: Difference between revisions

m
Added syntax highlighting to Mathematica entry which 'magically' makes previously hidden entries for: Nim, Objeck, Perl, Phix and Python reappear!
m (→‎{{header|Phix}}: syntax coloured)
m (Added syntax highlighting to Mathematica entry which 'magically' makes previously hidden entries for: Nim, Objeck, Perl, Phix and Python reappear!)
Line 1,033:
 
=={{header|Mathematica}}/{{header|Wolfram Language}}==
<langsyntaxhighlight lang="Mathematica">tasks[page_: ""] :=
Module[{res =
Import["http://rosettacode.org/mw/api.php?format=xml&action=\
Line 1,063:
Function[task, MemberQ[task[[2]], # -> _Integer?Positive]]]],
"]], [["] <> "]])"] & @@@
Select[SortBy[langCounts, Keys], #[[2]] > 0 &];</langsyntaxhighlight>
This script looks for all of the pages in [[:Category:Programming Tasks]], downloads them, and gets the bare tags per language. Then, it gets the total of all of them, prints it, and sums up the bare tags by language. Note that it doesn't check if the tags are in a block or even closed, so it picks up false positives (especially on this page.)
{{out}}
9,485

edits