From d62b85003dc0bf26d579a93fd0230b74d18f35cf Mon Sep 17 00:00:00 2001 From: Mohammad S Anwar Date: Sun, 21 Jul 2019 22:23:02 +0100 Subject: - Added solutions by Arne Sommer. --- challenge-017/arne-sommer/blog.txt | 1 + challenge-017/arne-sommer/perl6/ackermann-cached | 30 ++ challenge-017/arne-sommer/perl6/ackermann2 | 24 + challenge-017/arne-sommer/perl6/ch-1.p6 | 23 + challenge-017/arne-sommer/perl6/ch-2.p6 | 52 +++ challenge-017/arne-sommer/perl6/url-parse-grammar | 45 ++ stats/pwc-current.json | 415 +++++++++-------- stats/pwc-language-breakdown-summary.json | 56 +-- stats/pwc-language-breakdown.json | 296 ++++++------ stats/pwc-leaders.json | 540 +++++++++++----------- stats/pwc-summary-1-30.json | 114 ++--- stats/pwc-summary-31-60.json | 44 +- stats/pwc-summary-61-90.json | 46 +- stats/pwc-summary-91-120.json | 40 +- stats/pwc-summary.json | 34 +- 15 files changed, 977 insertions(+), 783 deletions(-) create mode 100644 challenge-017/arne-sommer/blog.txt create mode 100755 challenge-017/arne-sommer/perl6/ackermann-cached create mode 100755 challenge-017/arne-sommer/perl6/ackermann2 create mode 100755 challenge-017/arne-sommer/perl6/ch-1.p6 create mode 100755 challenge-017/arne-sommer/perl6/ch-2.p6 create mode 100755 challenge-017/arne-sommer/perl6/url-parse-grammar diff --git a/challenge-017/arne-sommer/blog.txt b/challenge-017/arne-sommer/blog.txt new file mode 100644 index 0000000000..3cdd966ed5 --- /dev/null +++ b/challenge-017/arne-sommer/blog.txt @@ -0,0 +1 @@ +https://perl6.eu/ackerman-url.html diff --git a/challenge-017/arne-sommer/perl6/ackermann-cached b/challenge-017/arne-sommer/perl6/ackermann-cached new file mode 100755 index 0000000000..6f59c82609 --- /dev/null +++ b/challenge-017/arne-sommer/perl6/ackermann-cached @@ -0,0 +1,30 @@ +#! /usr/bin/env perl6 + +subset PositiveInt of Int where * > 0; +subset PositiveIntZero of Int where * >= 0; + +sub MAIN(PositiveIntZero \m, PositiveIntZero \n) +{ + say A(m, n); +} +my %cache; + +sub A(PositiveIntZero \m, PositiveIntZero \n) +{ + unless %cache{m}{n}.defined + { + if m == 0 + { + %cache{m}{n} = n + 1; + } + elsif n == 0 + { + %cache{m}{n} = A(m - 1, 1); + } + else + { + %cache{m}{n} = A(m - 1, A(m, n - 1)); + } + } + return %cache{m}{n}; +} diff --git a/challenge-017/arne-sommer/perl6/ackermann2 b/challenge-017/arne-sommer/perl6/ackermann2 new file mode 100755 index 0000000000..98286c26f9 --- /dev/null +++ b/challenge-017/arne-sommer/perl6/ackermann2 @@ -0,0 +1,24 @@ +#! /usr/bin/env perl6 + +subset PositiveInt of Int where * > 0; +subset PositiveIntZero of Int where * >= 0; + +sub MAIN(PositiveIntZero \m, PositiveIntZero \n) +{ + say A(m, n); +} + +multi A(0, PositiveIntZero \n) +{ + return n + 1; +} + +multi A(PositiveInt \m, 0) +{ + return A(m - 1, 1); +} + +multi A(PositiveInt \m, PositiveInt \n) +{ + return A(m - 1, A(m, n - 1)); +} diff --git a/challenge-017/arne-sommer/perl6/ch-1.p6 b/challenge-017/arne-sommer/perl6/ch-1.p6 new file mode 100755 index 0000000000..e5f3268e3a --- /dev/null +++ b/challenge-017/arne-sommer/perl6/ch-1.p6 @@ -0,0 +1,23 @@ +#! /usr/bin/env perl6 + +subset PositiveIntZero of Int where * >= 0; + +sub MAIN(PositiveIntZero \m, PositiveIntZero \n) +{ + say A(m, n); +} + +multi A(PositiveIntZero \m where m == 0, PositiveIntZero \n) +{ + return n + 1; +} + +multi A(PositiveIntZero \m where m > 0, PositiveIntZero \n where n == 0) +{ + return A(m - 1, 1); +} + +multi A(PositiveIntZero \m where m > 0, PositiveIntZero \n where n > 0) +{ + return A(m - 1, A(m, n - 1)); +} diff --git a/challenge-017/arne-sommer/perl6/ch-2.p6 b/challenge-017/arne-sommer/perl6/ch-2.p6 new file mode 100755 index 0000000000..888e3771b5 --- /dev/null +++ b/challenge-017/arne-sommer/perl6/ch-2.p6 @@ -0,0 +1,52 @@ +#! /usr/bin/env perl6 + +sub MAIN ($url, :$verbose) +{ + if $url ~~ + /^ + (<[a..z]><[a..z 0..9 + . : \-]>*)\: # $0 scheme + [\/\/ # // + [(.*[\:.+]?)\@]? # $1 userinfo (optional) + (<[\w \. \-]>*) # $2 host + [\:(\d+)]? # $3 port (optional) + (\/?) # $4 path separator + ]? # $1-$4 are optional + ([<[\w \d -] - [#?]>]+)? # $5 path (optional) + [\?(<[\w \d \- =]>*)]? # $6 query (optional) + [\#(.*)]? # $7 fragment (optional) + $/ + { + + say $/ if $verbose; + + say "scheme: $0"; + say "userinfo: $1" if $1; + say "host: $2" if $2; + say "port: $3" if $3; + + my $path = $4 if $4; $path ~= $5 if $5; + + say "path: $path"; + say "query: $6" if $6; + say "fragment: $7" if $7; + } + else + { + say "Invalid URL."; + } +} + + +# Create a script to parse URL and print the components of URL. According to Wiki page, the URL syntax is as below: +# +# scheme:[//[userinfo@]host[:port]]path[?query][#fragment] +# +# For example: jdbc:mysql://user:password@localhost:3306/pwc?profile=true#h1 +# +# scheme: jdbc:mysql +# userinfo: user:password +# host: localhost +# port: 3306 +# path: /pwc +# query: profile=true +# fragment: h1 diff --git a/challenge-017/arne-sommer/perl6/url-parse-grammar b/challenge-017/arne-sommer/perl6/url-parse-grammar new file mode 100755 index 0000000000..5e502c06dc --- /dev/null +++ b/challenge-017/arne-sommer/perl6/url-parse-grammar @@ -0,0 +1,45 @@ +#! /usr/bin/env perl6 + +grammar URL +{ + regex TOP { ? ? ? ? } + regex SchemeW { } + regex SchemeS { ':' } + regex Scheme { <[a..z]><[a..z 0..9 + . : \-]>* } + regex Hostinfo { '//' ? ? } + regex UserinfoW { } + regex Userinfo { .*[\:.+]? } + regex UserinfoS { '@' } + regex Host { <[\w \. \-]>* } + regex PortW { } + regex PortS { ':' } + regex Port { \d+ } + regex Path { '/'? <[\w \d -] - [#?]>+ } + regex QueryW { } + regex QueryS { '?' } + regex Query { <[\w \d \- =]>* } + regex FragmentW { } + regex FragmentS { '#' } + regex Fragment { .+ } +} + +sub MAIN ($url, :$verbose) +{ + my $result = URL.parse($url); + + if $result + { + say $result if $verbose; + say "scheme: $/"; + say "userinfo: $/" if $/; + say "host: $/" if $/; + say "port: $/" if $/; + say "path: $/" if $/; + say "query: $/" if $/; + say "fragment: $/" if $/; + } + else + { + say "Invalid URL."; + } +} diff --git a/stats/pwc-current.json b/stats/pwc-current.json index 3661e109e8..e84f9034f0 100644 --- a/stats/pwc-current.json +++ b/stats/pwc-current.json @@ -2,162 +2,6 @@ "legend" : { "enabled" : 0 }, - "tooltip" : { - "followPointer" : 1, - "pointFormat" : "{point.name}: {point.y:f}
", - "headerFormat" : "{series.name}
" - }, - "yAxis" : { - "title" : { - "text" : "Total Solutions" - } - }, - "subtitle" : { - "text" : "[Champions: 24] Last updated at 2019-07-21 19:29:58 GMT" - }, - "title" : { - "text" : "Perl Weekly Challenge - 017" - }, - "plotOptions" : { - "series" : { - "borderWidth" : 0, - "dataLabels" : { - "format" : "{point.y}", - "enabled" : 1 - } - } - }, - "chart" : { - "type" : "column" - }, - "series" : [ - { - "data" : [ - { - "name" : "Adam Russell", - "y" : 4, - "drilldown" : "Adam Russell" - }, - { - "name" : "Andrezgz", - "drilldown" : "Andrezgz", - "y" : 2 - }, - { - "name" : "Athanasius", - "y" : 4, - "drilldown" : "Athanasius" - }, - { - "y" : 2, - "drilldown" : "Daniel Mantovani", - "name" : "Daniel Mantovani" - }, - { - "name" : "Dave Jacoby", - "y" : 3, - "drilldown" : "Dave Jacoby" - }, - { - "name" : "Duane Powell", - "y" : 2, - "drilldown" : "Duane Powell" - }, - { - "name" : "E. Choroba", - "y" : 3, - "drilldown" : "E. Choroba" - }, - { - "name" : "Feng Chang", - "y" : 4, - "drilldown" : "Feng Chang" - }, - { - "y" : 3, - "drilldown" : "Francis Whittle", - "name" : "Francis Whittle" - }, - { - "name" : "Joelle Maslak", - "drilldown" : "Joelle Maslak", - "y" : 5 - }, - { - "y" : 2, - "drilldown" : "Kevin Colyer", - "name" : "Kevin Colyer" - }, - { - "name" : "Kian-Meng Ang", - "y" : 2, - "drilldown" : "Kian-Meng Ang" - }, - { - "y" : 5, - "drilldown" : "Laurent Rosenfeld", - "name" : "Laurent Rosenfeld" - }, - { - "name" : "Lubos Kolouch", - "y" : 2, - "drilldown" : "Lubos Kolouch" - }, - { - "drilldown" : "Michael Hamlin", - "y" : 1, - "name" : "Michael Hamlin" - }, - { - "drilldown" : "Noud", - "y" : 2, - "name" : "Noud" - }, - { - "y" : 1, - "drilldown" : "Ozzy", - "name" : "Ozzy" - }, - { - "name" : "Randy Lauen", - "y" : 1, - "drilldown" : "Randy Lauen" - }, - { - "name" : "Roger Bell West", - "drilldown" : "Roger Bell West", - "y" : 2 - }, - { - "y" : 4, - "drilldown" : "Ruben Westerberg", - "name" : "Ruben Westerberg" - }, - { - "y" : 1, - "drilldown" : "Simon Proctor", - "name" : "Simon Proctor" - }, - { - "y" : 2, - "drilldown" : "Steven Wilson", - "name" : "Steven Wilson" - }, - { - "name" : "Veesh Goldman", - "y" : 4, - "drilldown" : "Veesh Goldman" - }, - { - "y" : 4, - "drilldown" : "Yozen Hernandez", - "name" : "Yozen Hernandez" - } - ], - "colorByPoint" : 1, - "name" : "Perl Weekly Challenge - 017" - } - ], "drilldown" : { "series" : [ { @@ -175,18 +19,31 @@ ] }, { + "id" : "Andrezgz", "data" : [ [ "Perl 5", 2 ] ], - "name" : "Andrezgz", - "id" : "Andrezgz" + "name" : "Andrezgz" + }, + { + "name" : "Arne Sommer", + "data" : [ + [ + "Perl 6", + 2 + ], + [ + "Blog", + 1 + ] + ], + "id" : "Arne Sommer" }, { "id" : "Athanasius", - "name" : "Athanasius", "data" : [ [ "Perl 5", @@ -196,16 +53,17 @@ "Perl 6", 2 ] - ] + ], + "name" : "Athanasius" }, { + "name" : "Daniel Mantovani", "data" : [ [ "Perl 5", 2 ] ], - "name" : "Daniel Mantovani", "id" : "Daniel Mantovani" }, { @@ -223,14 +81,14 @@ ] }, { + "name" : "Duane Powell", "data" : [ [ "Perl 5", 2 ] ], - "id" : "Duane Powell", - "name" : "Duane Powell" + "id" : "Duane Powell" }, { "data" : [ @@ -247,8 +105,6 @@ "id" : "E. Choroba" }, { - "name" : "Feng Chang", - "id" : "Feng Chang", "data" : [ [ "Perl 5", @@ -258,11 +114,11 @@ "Perl 6", 2 ] - ] + ], + "name" : "Feng Chang", + "id" : "Feng Chang" }, { - "name" : "Francis Whittle", - "id" : "Francis Whittle", "data" : [ [ "Perl 6", @@ -272,11 +128,12 @@ "Blog", 1 ] - ] + ], + "name" : "Francis Whittle", + "id" : "Francis Whittle" }, { "name" : "Joelle Maslak", - "id" : "Joelle Maslak", "data" : [ [ "Perl 5", @@ -286,29 +143,31 @@ "Perl 6", 3 ] - ] + ], + "id" : "Joelle Maslak" }, { - "name" : "Kevin Colyer", "id" : "Kevin Colyer", "data" : [ [ "Perl 6", 2 ] - ] + ], + "name" : "Kevin Colyer" }, { - "id" : "Kian-Meng Ang", "name" : "Kian-Meng Ang", "data" : [ [ "Perl 5", 2 ] - ] + ], + "id" : "Kian-Meng Ang" }, { + "name" : "Laurent Rosenfeld", "data" : [ [ "Perl 5", @@ -323,18 +182,17 @@ 1 ] ], - "id" : "Laurent Rosenfeld", - "name" : "Laurent Rosenfeld" + "id" : "Laurent Rosenfeld" }, { + "id" : "Lubos Kolouch", "data" : [ [ "Perl 5", 2 ] ], - "name" : "Lubos Kolouch", - "id" : "Lubos Kolouch" + "name" : "Lubos Kolouch" }, { "data" : [ @@ -343,8 +201,8 @@ 1 ] ], - "id" : "Michael Hamlin", - "name" : "Michael Hamlin" + "name" : "Michael Hamlin", + "id" : "Michael Hamlin" }, { "data" : [ @@ -353,22 +211,22 @@ 2 ] ], - "id" : "Noud", - "name" : "Noud" + "name" : "Noud", + "id" : "Noud" }, { + "name" : "Ozzy", "data" : [ [ "Perl 6", 1 ] ], - "id" : "Ozzy", - "name" : "Ozzy" + "id" : "Ozzy" }, { - "name" : "Randy Lauen", "id" : "Randy Lauen", + "name" : "Randy Lauen", "data" : [ [ "Perl 6", @@ -377,8 +235,8 @@ ] }, { - "name" : "Roger Bell West", "id" : "Roger Bell West", + "name" : "Roger Bell West", "data" : [ [ "Perl 5", @@ -387,6 +245,8 @@ ] }, { + "id" : "Ruben Westerberg", + "name" : "Ruben Westerberg", "data" : [ [ "Perl 5", @@ -396,29 +256,27 @@ "Perl 6", 2 ] - ], - "name" : "Ruben Westerberg", - "id" : "Ruben Westerberg" + ] }, { + "id" : "Simon Proctor", + "name" : "Simon Proctor", "data" : [ [ "Perl 6", 1 ] - ], - "id" : "Simon Proctor", - "name" : "Simon Proctor" + ] }, { + "id" : "Steven Wilson", "data" : [ [ "Perl 5", 2 ] ], - "name" : "Steven Wilson", - "id" : "Steven Wilson" + "name" : "Steven Wilson" }, { "data" : [ @@ -439,8 +297,6 @@ "id" : "Veesh Goldman" }, { - "id" : "Yozen Hernandez", - "name" : "Yozen Hernandez", "data" : [ [ "Perl 5", @@ -450,11 +306,174 @@ "Blog", 2 ] - ] + ], + "name" : "Yozen Hernandez", + "id" : "Yozen Hernandez" } ] }, + "subtitle" : { + "text" : "[Champions: 25] Last updated at 2019-07-21 21:22:24 GMT" + }, + "tooltip" : { + "headerFormat" : "{series.name}
", + "followPointer" : 1, + "pointFormat" : "{point.name}: {point.y:f}
" + }, + "series" : [ + { + "colorByPoint" : 1, + "data" : [ + { + "name" : "Adam Russell", + "y" : 4, + "drilldown" : "Adam Russell" + }, + { + "drilldown" : "Andrezgz", + "y" : 2, + "name" : "Andrezgz" + }, + { + "name" : "Arne Sommer", + "y" : 3, + "drilldown" : "Arne Sommer" + }, + { + "y" : 4, + "drilldown" : "Athanasius", + "name" : "Athanasius" + }, + { + "drilldown" : "Daniel Mantovani", + "y" : 2, + "name" : "Daniel Mantovani" + }, + { + "name" : "Dave Jacoby", + "y" : 3, + "drilldown" : "Dave Jacoby" + }, + { + "drilldown" : "Duane Powell", + "y" : 2, + "name" : "Duane Powell" + }, + { + "name" : "E. Choroba", + "drilldown" : "E. Choroba", + "y" : 3 + }, + { + "name" : "Feng Chang", + "y" : 4, + "drilldown" : "Feng Chang" + }, + { + "name" : "Francis Whittle", + "drilldown" : "Francis Whittle", + "y" : 3 + }, + { + "name" : "Joelle Maslak", + "y" : 5, + "drilldown" : "Joelle Maslak" + }, + { + "drilldown" : "Kevin Colyer", + "y" : 2, + "name" : "Kevin Colyer" + }, + { + "name" : "Kian-Meng Ang", + "y" : 2, + "drilldown" : "Kian-Meng Ang" + }, + { + "y" : 5, + "drilldown" : "Laurent Rosenfeld", + "name" : "Laurent Rosenfeld" + }, + { + "y" : 2, + "drilldown" : "Lubos Kolouch", + "name" : "Lubos Kolouch" + }, + { + "name" : "Michael Hamlin", + "drilldown" : "Michael Hamlin", + "y" : 1 + }, + { + "drilldown" : "Noud", + "y" : 2, + "name" : "Noud" + }, + { + "name" : "Ozzy", + "y" : 1, + "drilldown" : "Ozzy" + }, + { + "y" : 1, + "drilldown" : "Randy Lauen", + "name" : "Randy Lauen" + }, + { + "name" : "Roger Bell West", + "drilldown" : "Roger Bell West", + "y" : 2 + }, + { + "name" : "Ruben Westerberg", + "y" : 4, + "drilldown" : "Ruben Westerberg" + }, + { + "name" : "Simon Proctor", + "drilldown" : "Simon Proctor", + "y" : 1 + }, + { + "y" : 2, + "drilldown" : "Steven Wilson", + "name" : "Steven Wilson" + }, + { + "name" : "Veesh Goldman", + "drilldown" : "Veesh Goldman", + "y" : 4 + }, + { + "drilldown" : "Yozen Hernandez", + "y" : 4, + "name" : "Yozen Hernandez" + } + ], + "name" : "Perl Weekly Challenge - 017" + } + ], + "title" : { + "text" : "Perl Weekly Challenge - 017" + }, + "chart" : { + "type" : "column" + }, "xAxis" : { "type" : "category" + }, + "plotOptions" : { + "series" : { + "dataLabels" : { + "format" : "{point.y}", + "enabled" : 1 + }, + "borderWidth" : 0 + } + }, + "yAxis" : { + "title" : { + "text" : "Total Solutions" + } } } diff --git a/stats/pwc-language-breakdown-summary.json b/stats/pwc-language-breakdown-summary.json index 62123e7b54..6745fa901d 100644 --- a/stats/pwc-language-breakdown-summary.json +++ b/stats/pwc-language-breakdown-summary.json @@ -1,19 +1,38 @@ { - "legend" : { - "enabled" : "false" - }, "tooltip" : { "pointFormat" : "{point.y:.0f}" }, + "yAxis" : { + "min" : 0, + "title" : { + "text" : null + } + }, + "legend" : { + "enabled" : "false" + }, "chart" : { "type" : "column" }, "series" : [ { + "dataLabels" : { + "enabled" : "true", + "align" : "right", + "format" : "{point.y:.0f}", + "style" : { + "fontFamily" : "Verdana, sans-serif", + "fontSize" : "13px" + }, + "rotation" : -90, + "y" : 10, + "color" : "#FFFFFF" + }, + "name" : "Contributions", "data" : [ [ "Blog", - 161 + 162 ], [ "Perl 5", @@ -21,43 +40,24 @@ ], [ "Perl 6", - 407 + 409 ] - ], - "dataLabels" : { - "format" : "{point.y:.0f}", - "color" : "#FFFFFF", - "align" : "right", - "y" : 10, - "enabled" : "true", - "style" : { - "fontFamily" : "Verdana, sans-serif", - "fontSize" : "13px" - }, - "rotation" : -90 - }, - "name" : "Contributions" + ] } ], "subtitle" : { - "text" : "Last updated at 2019-07-21 19:30:19 GMT" + "text" : "Last updated at 2019-07-21 21:22:53 GMT" }, "xAxis" : { "type" : "category", "labels" : { "style" : { - "fontFamily" : "Verdana, sans-serif", - "fontSize" : "13px" + "fontSize" : "13px", + "fontFamily" : "Verdana, sans-serif" } } }, "title" : { "text" : "Perl Weekly Challenge Contributions - 2019" - }, - "yAxis" : { - "title" : { - "text" : null - }, - "min" : 0 } } diff --git a/stats/pwc-language-breakdown.json b/stats/pwc-language-breakdown.json index 3025070040..d4c81fd92b 100644 --- a/stats/pwc-language-breakdown.json +++ b/stats/pwc-language-breakdown.json @@ -1,132 +1,14 @@ { - "plotOptions" : { - "series" : { - "borderWidth" : 0, - "dataLabels" : { - "enabled" : 1, - "format" : "{point.y}" - } - } - }, "subtitle" : { - "text" : "Click the columns to drilldown the language breakdown. Last updated at 2019-07-21 19:30:19 GMT" - }, - "yAxis" : { - "title" : { - "text" : "Total Solutions" - } + "text" : "Click the columns to drilldown the language breakdown. Last updated at 2019-07-21 21:22:53 GMT" }, "title" : { "text" : "Perl Weekly Challenge Language" }, - "xAxis" : { - "type" : "category" - }, - "series" : [ - { - "name" : "Perl Weekly Challenge Languages", - "data" : [ - { - "drilldown" : "001", - "name" : "#001", - "y" : 123 - }, - { - "drilldown" : "002", - "y" : 104, - "name" : "#002" - }, - { - "drilldown" : "003", - "name" : "#003", - "y" : 66 - }, - { - "drilldown" : "004", - "name" : "#004", - "y" : 84 - }, - { - "y" : 66, - "name" : "#005", - "drilldown" : "005" - }, - { - "y" : 47, - "name" : "#006", - "drilldown" : "006" - }, - { - "y" : 54, - "name" : "#007", - "drilldown" : "007" - }, - { - "drilldown" : "008", - "name" : "#008", - "y" : 67 - }, - { - "drilldown" : "009", - "name" : "#009", - "y" : 65 - }, - { - "y" : 58, - "name" : "#010", - "drilldown" : "010" - }, - { - "drilldown" : "011", - "name" : "#011", - "y" : 77 - }, - { - "y" : 81, - "name" : "#012", - "drilldown" : "012" - }, - { - "drilldown" : "013", - "y" : 74, - "name" : "#013" - }, - { - "drilldown" : "014", - "y" : 94, - "name" : "#014" - }, - { - "y" : 90, - "name" : "#015", - "drilldown" : "015" - }, - { - "drilldown" : "016", - "name" : "#016", - "y" : 64 - }, - { - "drilldown" : "017", - "y" : 65, - "name" : "#017" - } - ], - "colorByPoint" : "true" - } - ], - "legend" : { - "enabled" : "false" - }, - "tooltip" : { - "pointFormat" : "Challenge {point.name}: {point.y:f}
", - "headerFormat" : "", - "followPointer" : "true" - }, "drilldown" : { "series" : [ { - "id" : "001", + "name" : "001", "data" : [ [ "Perl 5", @@ -141,9 +23,10 @@ 10 ] ], - "name" : "001" + "id" : "001" }, { + "id" : "002", "name" : "002", "data" : [ [ @@ -158,8 +41,7 @@ "Blog", 9 ] - ], - "id" : "002" + ] }, { "id" : "003", @@ -198,7 +80,6 @@ "id" : "004" }, { - "id" : "005", "data" : [ [ "Perl 5", @@ -213,9 +94,12 @@ 11 ] ], - "name" : "005" + "name" : "005", + "id" : "005" }, { + "id" : "006", + "name" : "006", "data" : [ [ "Perl 5", @@ -229,12 +113,9 @@ "Blog", 6 ] - ], - "id" : "006", - "name" : "006" + ] }, { - "name" : "007", "id" : "007", "data" : [ [ @@ -249,11 +130,10 @@ "Blog", 8 ] - ] + ], + "name" : "007" }, { - "name" : "008", - "id" : "008", "data" : [ [ "Perl 5", @@ -267,10 +147,11 @@ "Blog", 9 ] - ] + ], + "name" : "008", + "id" : "008" }, { - "name" : "009", "data" : [ [ "Perl 5", @@ -285,10 +166,12 @@ 11 ] ], + "name" : "009", "id" : "009" }, { "id" : "010", + "name" : "010", "data" : [ [ "Perl 5", @@ -302,11 +185,11 @@ "Blog", 9 ] - ], - "name" : "010" + ] }, { "id" : "011", + "name" : "011", "data" : [ [ "Perl 5", @@ -320,11 +203,11 @@ "Blog", 8 ] - ], - "name" : "011" + ] }, { "id" : "012", + "name" : "012", "data" : [ [ "Perl 5", @@ -338,11 +221,10 @@ "Blog", 9 ] - ], - "name" : "012" + ] }, { - "name" : "013", + "id" : "013", "data" : [ [ "Perl 5", @@ -357,10 +239,10 @@ 11 ] ], - "id" : "013" + "name" : "013" }, { - "name" : "014", + "id" : "014", "data" : [ [ "Perl 5", @@ -375,7 +257,7 @@ 13 ] ], - "id" : "014" + "name" : "014" }, { "id" : "015", @@ -396,7 +278,7 @@ "name" : "015" }, { - "id" : "016", + "name" : "016", "data" : [ [ "Perl 5", @@ -411,7 +293,7 @@ 10 ] ], - "name" : "016" + "id" : "016" }, { "id" : "017", @@ -422,18 +304,136 @@ ], [ "Perl 6", - 21 + 23 ], [ "Blog", - 8 + 9 ] ], "name" : "017" } ] }, + "xAxis" : { + "type" : "category" + }, + "tooltip" : { + "pointFormat" : "Challenge {point.name}: {point.y:f}
", + "headerFormat" : "", + "followPointer" : "true" + }, + "yAxis" : { + "title" : { + "text" : "Total Solutions" + } + }, + "legend" : { + "enabled" : "false" + }, + "series" : [ + { + "data" : [ + { + "name" : "#001", + "drilldown" : "001", + "y" : 123 + }, + { + "name" : "#002", + "drilldown" : "002", + "y" : 104 + }, + { + "drilldown" : "003", + "name" : "#003", + "y" : 66 + }, + { + "name" : "#004", + "drilldown" : "004", + "y" : 84 + }, + { + "name" : "#005", + "drilldown" : "005", + "y" : 66 + }, + { + "y" : 47, + "name" : "#006", + "drilldown" : "006" + }, + { + "name" : "#007", + "drilldown" : "007", + "y" : 54 + }, + { + "drilldown" : "008", + "name" : "#008", + "y" : 67 + }, + { + "y" : 65, + "name" : "#009", + "drilldown" : "009" + }, + { + "y" : 58, + "name" : "#010", + "drilldown" : "010" + }, + { + "name" : "#011", + "drilldown" : "011", + "y" : 77 + }, + { + "name" : "#012", + "drilldown" : "012", + "y" : 81 + }, + { + "y" : 74, + "drilldown" : "013", + "name" : "#013" + }, + { + "drilldown" : "014", + "name" : "#014", + "y" : 94 + }, + { + "y" : 90, + "name" : "#015", + "drilldown" : "015" + }, + { + "y" : 64, + "drilldown" : "016", + "name" : "#016" + }, + { + "y" : 68, + "drilldown" : "017", + "name" : "#017" + } + ], + "name" : "Perl Weekly Challenge Languages", + "colorByPoint" : "true" + } + ], "chart" : { "type" : "column" + }, + "plotOptions" : { + "series" : { + "borderWidth" : 0, + "dataLabels" : { + "format" : "{point.y}", + "enabled" : 1 + } + } } } diff --git a/stats/pwc-leaders.json b/stats/pwc-leaders.json index 602f5d2fa0..15272e398f 100644 --- a/stats/pwc-leaders.json +++ b/stats/pwc-leaders.json @@ -1,35 +1,27 @@ { - "yAxis" : { - "title" : { - "text" : "Total Score" - } - }, - "title" : { - "text" : "Perl Weekly Challenge Leaders (TOP 50)" + "chart" : { + "type" : "column" }, "xAxis" : { "type" : "category" }, - "legend" : { - "enabled" : "false" - }, "plotOptions" : { "series" : { - "borderWidth" : 0, "dataLabels" : { "format" : "{point.y}", "enabled" : 1 - } + }, + "borderWidth" : 0 } }, - "subtitle" : { - "text" : "Click the columns to drilldown the score breakdown. Last updated at 2019-07-21 19:30:17 GMT" - }, "drilldown" : { "series" : [ { - "name" : "Joelle Maslak", "data" : [ + [ + "Blog", + 4 + ], [ "Perl 5", 42 @@ -37,16 +29,17 @@ [ "Perl 6", 43 - ], - [ - "Blog", - 4 ] ], + "name" : "Joelle Maslak", "id" : "Joelle Maslak" }, { "data" : [ + [ + "Blog", + 21 + ], [ "Perl 5", 34 @@ -54,35 +47,32 @@ [ "Perl 6", 33 - ], - [ - "Blog", - 21 ] ], "name" : "Laurent Rosenfeld", "id" : "Laurent Rosenfeld" }, { + "id" : "Jaldhar H. Vyas", "name" : "Jaldhar H. Vyas", "data" : [ - [ - "Blog", - 3 - ], [ "Perl 6", 31 ], + [ + "Blog", + 3 + ], [ "Perl 5", 31 ] - ], - "id" : "Jaldhar H. Vyas" + ] }, { "name" : "Ruben Westerberg", + "id" : "Ruben Westerberg", "data" : [ [ "Perl 6", @@ -92,13 +82,14 @@ "Perl 5", 31 ] - ], - "id" : "Ruben Westerberg" + ] }, { - "id" : "Athanasius", - "name" : "Athanasius", "data" : [ + [ + "Blog", + 3 + ], [ "Perl 5", 37 @@ -106,70 +97,69 @@ [ "Perl 6", 13 - ], - [ - "Blog", - 3 ] - ] + ], + "name" : "Athanasius", + "id" : "Athanasius" }, { + "id" : "Adam Russell", "name" : "Adam Russell", "data" : [ - [ - "Blog", - 17 - ], [ "Perl 5", 35 + ], + [ + "Blog", + 17 ] - ], - "id" : "Adam Russell" + ] }, { - "id" : "Arne Sommer", "data" : [ [ - "Perl 6", - 29 + "Blog", + 16 ], [ - "Blog", - 15 + "Perl 6", + 31 ] ], + "id" : "Arne Sommer", "name" : "Arne Sommer" }, { - "name" : "E. Choroba", "data" : [ - [ - "Blog", - 13 - ], [ "Perl 5", 26 + ], + [ + "Blog", + 13 ] ], - "id" : "E. Choroba" + "id" : "E. Choroba", + "name" : "E. Choroba" }, { + "id" : "Francis Whittle", "name" : "Francis Whittle", "data" : [ - [ - "Blog", - 8 - ], [ "Perl 6", 31 + ], + [ + "Blog", + 8 ] - ], - "id" : "Francis Whittle" + ] }, { + "name" : "Kian-Meng Ang", "id" : "Kian-Meng Ang", "data" : [ [ @@ -180,11 +170,9 @@ "Perl 5", 28 ] - ], - "name" : "Kian-Meng Ang" + ] }, { - "name" : "Simon Proctor", "data" : [ [ "Blog", @@ -199,23 +187,24 @@ 27 ] ], + "name" : "Simon Proctor", "id" : "Simon Proctor" }, { - "id" : "Dave Jacoby", "name" : "Dave Jacoby", + "id" : "Dave Jacoby", "data" : [ [ "Blog", 15 ], - [ - "Perl 6", - 1 - ], [ "Perl 5", 21 + ], + [ + "Perl 6", + 1 ] ] }, @@ -230,32 +219,32 @@ ] }, { + "name" : "Gustavo Chaves", "id" : "Gustavo Chaves", "data" : [ - [ - "Blog", - 4 - ], [ "Perl 5", 28 + ], + [ + "Blog", + 4 ] - ], - "name" : "Gustavo Chaves" + ] }, { - "id" : "Yozen Hernandez", - "name" : "Yozen Hernandez", "data" : [ - [ - "Blog", - 12 - ], [ "Perl 5", 20 + ], + [ + "Blog", + 12 ] - ] + ], + "name" : "Yozen Hernandez", + "id" : "Yozen Hernandez" }, { "data" : [ @@ -268,22 +257,22 @@ 15 ] ], - "name" : "Feng Chang", - "id" : "Feng Chang" + "id" : "Feng Chang", + "name" : "Feng Chang" }, { - "id" : "Daniel Mantovani", - "name" : "Daniel Mantovani", "data" : [ [ "Perl 5", 28 ] - ] + ], + "name" : "Daniel Mantovani", + "id" : "Daniel Mantovani" }, { - "id" : "Steven Wilson", "name" : "Steven Wilson", + "id" : "Steven Wilson", "data" : [ [ "Blog", @@ -296,18 +285,16 @@ ] }, { - "id" : "Duncan C. White", - "name" : "Duncan C. White", "data" : [ [ "Perl 5", 26 ] - ] + ], + "id" : "Duncan C. White", + "name" : "Duncan C. White" }, { - "id" : "Jo Christian Oterhals", - "name" : "Jo Christian Oterhals", "data" : [ [ "Perl 6", @@ -321,9 +308,12 @@ "Blog", 6 ] - ] + ], + "id" : "Jo Christian Oterhals", + "name" : "Jo Christian Oterhals" }, { + "name" : "Dr James A. Smith", "id" : "Dr James A. Smith", "data" : [ [ @@ -334,48 +324,48 @@ "Perl 6", 10 ] - ], - "name" : "Dr James A. Smith" + ] }, { + "id" : "Guillermo Ramos", + "name" : "Guillermo Ramos", "data" : [ [ "Perl 5", 17 ] - ], - "name" : "Guillermo Ramos", - "id" : "Guillermo Ramos" + ] }, { + "name" : "Ozzy", "id" : "Ozzy", "data" : [ [ "Perl 6", 17 ] - ], - "name" : "Ozzy" + ] }, { - "name" : "Veesh Goldman", "data" : [ [ "Blog", 2 ], - [ - "Perl 6", - 1 - ], [ "Perl 5", 14 + ], + [ + "Perl 6", + 1 ] ], + "name" : "Veesh Goldman", "id" : "Veesh Goldman" }, { + "id" : "Mark Senn", "name" : "Mark Senn", "data" : [ [ @@ -386,12 +376,9 @@ "Blog", 4 ] - ], - "id" : "Mark Senn" + ] }, { - "id" : "Nick Logan", - "name" : "Nick Logan", "data" : [ [ "Perl 6", @@ -401,7 +388,9 @@ "Perl 5", 8 ] - ] + ], + "name" : "Nick Logan", + "id" : "Nick Logan" }, { "data" : [ @@ -410,153 +399,149 @@ 14 ] ], - "name" : "Kevin Colyer", - "id" : "Kevin Colyer" + "id" : "Kevin Colyer", + "name" : "Kevin Colyer" }, { "name" : "Lars Balker", + "id" : "Lars Balker", "data" : [ - [ - "Perl 5", - 10 - ], [ "Perl 6", 4 + ], + [ + "Perl 5", + 10 ] - ], - "id" : "Lars Balker" + ] }, { "id" : "Maxim Nechaev", + "name" : "Maxim Nechaev", "data" : [ [ "Perl 5", 12 ] - ], - "name" : "Maxim Nechaev" + ] }, { - "id" : "Alicia Bielsa", "data" : [ [ "Perl 5", 11 ] ], - "name" : "Alicia Bielsa" + "name" : "Alicia Bielsa", + "id" : "Alicia Bielsa" }, { + "name" : "Lubos Kolouch", + "id" : "Lubos Kolouch", "data" : [ [ "Perl 5", 11 ] - ], - "name" : "Lubos Kolouch", - "id" : "Lubos Kolouch" + ] }, { - "id" : "Doug Schrag", - "name" : "Doug Schrag", "data" : [ [ "Perl 6", 10 ] - ] + ], + "name" : "Doug Schrag", + "id" : "Doug Schrag" }, { "name" : "Roger Bell West", + "id" : "Roger Bell West", "data" : [ - [ - "Blog", - 2 - ], [ "Perl 5", 8 + ], + [ + "Blog", + 2 ] - ], - "id" : "Roger Bell West" + ] }, { + "id" : "Neil Bowers", "name" : "Neil Bowers", "data" : [ - [ - "Blog", - 3 - ], [ "Perl 5", 6 + ], + [ + "Blog", + 3 ] - ], - "id" : "Neil Bowers" + ] }, { - "id" : "Jaime Corchado", "data" : [ [ "Perl 5", 8 ] ], - "name" : "Jaime Corchado" + "name" : "Jaime Corchado", + "id" : "Jaime Corchado" }, { - "id" : "Noud", - "name" : "Noud", "data" : [ [ "Perl 6", 8 ] - ] + ], + "id" : "Noud", + "name" : "Noud" }, { "name" : "Robert Gratza", + "id" : "Robert Gratza", "data" : [ - [ - "Perl 6", - 6 - ], [ "Perl 5", 2 + ], + [ + "Perl 6", + 6 ] - ], - "id" : "Robert Gratza" + ] }, { + "id" : "Duane Powell", "name" : "Duane Powell", "data" : [ [ "Perl 5", 7 ] - ], - "id" : "Duane Powell" + ] }, { "name" : "John Barrett", + "id" : "John Barrett", "data" : [ [ "Perl 5", 7 ] - ], - "id" : "John Barrett" + ] }, { - "id" : "Khalid", "name" : "Khalid", + "id" : "Khalid", "data" : [ - [ - "Blog", - 1 - ], [ "Perl 6", 2 @@ -564,148 +549,160 @@ [ "Perl 5", 4 + ], + [ + "Blog", + 1 ] ] }, { - "name" : "Aaron Sherman", "data" : [ [ "Perl 6", 6 ] ], + "name" : "Aaron Sherman", "id" : "Aaron Sherman" }, { - "name" : "Donald Hunter", "data" : [ [ - "Blog", + "Perl 6", 3 ], [ - "Perl 6", + "Blog", 3 ] ], - "id" : "Donald Hunter" + "id" : "Donald Hunter", + "name" : "Donald Hunter" }, { - "id" : "Kivanc Yazan", - "name" : "Kivanc Yazan", "data" : [ [ "Perl 5", 6 ] - ] + ], + "id" : "Kivanc Yazan", + "name" : "Kivanc Yazan" }, { "name" : "Maxim Kolodyazhny", + "id" : "Maxim Kolodyazhny", "data" : [ [ "Perl 5", 6 ] - ], - "id" : "Maxim Kolodyazhny" + ] }, { - "id" : "Philippe Bruhat", "name" : "Philippe Bruhat", + "id" : "Philippe Bruhat", "data" : [ - [ - "Perl 5", - 4 - ], [ "Blog", 2 + ], + [ + "Perl 5", + 4 ] ] }, { - "name" : "Sergio Iglesias", "data" : [ [ "Perl 5", 6 ] ], + "name" : "Sergio Iglesias", "id" : "Sergio Iglesias" }, { + "id" : "Arpad Toth", "name" : "Arpad Toth", "data" : [ [ "Perl 5", 5 ] - ], - "id" : "Arpad Toth" + ] }, { "id" : "Pete Houston", + "name" : "Pete Houston", "data" : [ [ "Perl 5", 5 ] - ], - "name" : "Pete Houston" + ] }, { + "name" : "Steve Rogerson", "id" : "Steve Rogerson", "data" : [ - [ - "Perl 6", - 2 - ], [ "Perl 5", 3 + ], + [ + "Perl 6", + 2 ] - ], - "name" : "Steve Rogerson" + ] }, { "id" : "Walt Mankowski", + "name" : "Walt Mankowski", "data" : [ [ "Perl 5", 5 ] - ], - "name" : "Walt Mankowski" + ] } ] }, - "chart" : { - "type" : "column" + "yAxis" : { + "title" : { + "text" : "Total Score" + } + }, + "title" : { + "text" : "Perl Weekly Challenge Leaders (TOP 50)" + }, + "legend" : { + "enabled" : "false" }, "series" : [ { "data" : [ { - "drilldown" : "Joelle Maslak", "y" : 178, - "name" : "#1: Joelle Maslak" + "name" : "#1: Joelle Maslak", + "drilldown" : "Joelle Maslak" }, { - "y" : 176, "drilldown" : "Laurent Rosenfeld", - "name" : "#2: Laurent Rosenfeld" + "name" : "#2: Laurent Rosenfeld", + "y" : 176 }, { + "y" : 130, "name" : "#3: Jaldhar H. Vyas", - "drilldown" : "Jaldhar H. Vyas", - "y" : 130 + "drilldown" : "Jaldhar H. Vyas" }, { "y" : 124, - "drilldown" : "Ruben Westerberg", - "name" : "#4: Ruben Westerberg" + "name" : "#4: Ruben Westerberg", + "drilldown" : "Ruben Westerberg" }, { "name" : "#5: Athanasius", @@ -714,18 +711,18 @@ }, { "y" : 104, - "drilldown" : "Adam Russell", - "name" : "#6: Adam Russell" + "name" : "#6: Adam Russell", + "drilldown" : "Adam Russell" }, { "drilldown" : "Arne Sommer", - "y" : 88, - "name" : "#7: Arne Sommer" + "name" : "#7: Arne Sommer", + "y" : 94 }, { - "name" : "#8: E. Choroba", + "drilldown" : "E. Choroba", "y" : 78, - "drilldown" : "E. Choroba" + "name" : "#8: E. Choroba" }, { "drilldown" : "Francis Whittle", @@ -733,28 +730,28 @@ "name" : "#9: Francis Whittle" }, { - "name" : "#10: Kian-Meng Ang", "drilldown" : "Kian-Meng Ang", - "y" : 78 + "y" : 78, + "name" : "#10: Kian-Meng Ang" }, { - "drilldown" : "Simon Proctor", + "name" : "#11: Simon Proctor", "y" : 76, - "name" : "#11: Simon Proctor" + "drilldown" : "Simon Proctor" }, { - "drilldown" : "Dave Jacoby", "y" : 74, - "name" : "#12: Dave Jacoby" + "name" : "#12: Dave Jacoby", + "drilldown" : "Dave Jacoby" }, { + "y" : 64, "name" : "#13: Andrezgz", - "drilldown" : "Andrezgz", - "y" : 64 + "drilldown" : "Andrezgz" }, { - "name" : "#14: Gustavo Chaves", "drilldown" : "Gustavo Chaves", + "name" : "#14: Gustavo Chaves", "y" : 64 }, { @@ -763,33 +760,33 @@ "drilldown" : "Yozen Hernandez" }, { - "name" : "#16: Feng Chang", "drilldown" : "Feng Chang", - "y" : 60 + "y" : 60, + "name" : "#16: Feng Chang" }, { - "name" : "#17: Daniel Mantovani", "drilldown" : "Daniel Mantovani", + "name" : "#17: Daniel Mantovani", "y" : 56 }, { "drilldown" : "Steven Wilson", - "y" : 54, - "name" : "#18: Steven Wilson" + "name" : "#18: Steven Wilson", + "y" : 54 }, { "name" : "#19: Duncan C. White", - "drilldown" : "Duncan C. White", - "y" : 52 + "y" : 52, + "drilldown" : "Duncan C. White" }, { - "name" : "#20: Jo Christian Oterhals", + "drilldown" : "Jo Christian Oterhals", "y" : 48, - "drilldown" : "Jo Christian Oterhals" + "name" : "#20: Jo Christian Oterhals" }, { - "name" : "#21: Dr James A. Smith", "drilldown" : "Dr James A. Smith", + "name" : "#21: Dr James A. Smith", "y" : 44 }, { @@ -803,69 +800,69 @@ "drilldown" : "Ozzy" }, { - "y" : 34, "drilldown" : "Veesh Goldman", - "name" : "#24: Veesh Goldman" + "name" : "#24: Veesh Goldman", + "y" : 34 }, { "drilldown" : "Mark Senn", - "y" : 32, - "name" : "#25: Mark Senn" + "name" : "#25: Mark Senn", + "y" : 32 }, { - "y" : 32, "drilldown" : "Nick Logan", - "name" : "#26: Nick Logan" + "name" : "#26: Nick Logan", + "y" : 32 }, { - "name" : "#27: Kevin Colyer", "drilldown" : "Kevin Colyer", - "y" : 28 + "y" : 28, + "name" : "#27: Kevin Colyer" }, { - "name" : "#28: Lars Balker", "y" : 28, + "name" : "#28: Lars Balker", "drilldown" : "Lars Balker" }, { - "name" : "#29: Maxim Nechaev", + "drilldown" : "Maxim Nechaev", "y" : 24, - "drilldown" : "Maxim Nechaev" + "name" : "#29: Maxim Nechaev" }, { - "name" : "#30: Alicia Bielsa", "drilldown" : "Alicia Bielsa", + "name" : "#30: Alicia Bielsa", "y" : 22 }, { "y" : 22, - "drilldown" : "Lubos Kolouch", - "name" : "#31: Lubos Kolouch" + "name" : "#31: Lubos Kolouch", + "drilldown" : "Lubos Kolouch" }, { - "name" : "#32: Doug Schrag", "y" : 20, + "name" : "#32: Doug Schrag", "drilldown" : "Doug Schrag" }, { - "y" : 20, "drilldown" : "Roger Bell West", - "name" : "#33: Roger Bell West" + "name" : "#33: Roger Bell West", + "y" : 20 }, { - "drilldown" : "Neil Bowers", + "name" : "#34: Neil Bowers", "y" : 18, - "name" : "#34: Neil Bowers" + "drilldown" : "Neil Bowers" }, { "y" : 16, - "drilldown" : "Jaime Corchado", - "name" : "#35: Jaime Corchado" + "name" : "#35: Jaime Corchado", + "drilldown" : "Jaime Corchado" }, { "y" : 16, - "drilldown" : "Noud", - "name" : "#36: Noud" + "name" : "#36: Noud", + "drilldown" : "Noud" }, { "drilldown" : "Robert Gratza", @@ -874,13 +871,13 @@ }, { "name" : "#38: Duane Powell", - "drilldown" : "Duane Powell", - "y" : 14 + "y" : 14, + "drilldown" : "Duane Powell" }, { + "name" : "#39: John Barrett", "y" : 14, - "drilldown" : "John Barrett", - "name" : "#39: John Barrett" + "drilldown" : "John Barrett" }, { "drilldown" : "Khalid", @@ -888,54 +885,54 @@ "name" : "#40: Khalid" }, { - "drilldown" : "Aaron Sherman", + "name" : "#41: Aaron Sherman", "y" : 12, - "name" : "#41: Aaron Sherman" + "drilldown" : "Aaron Sherman" }, { - "drilldown" : "Donald Hunter", "y" : 12, - "name" : "#42: Donald Hunter" + "name" : "#42: Donald Hunter", + "drilldown" : "Donald Hunter" }, { - "drilldown" : "Kivanc Yazan", "y" : 12, - "name" : "#43: Kivanc Yazan" + "name" : "#43: Kivanc Yazan", + "drilldown" : "Kivanc Yazan" }, { - "name" : "#44: Maxim Kolodyazhny", "drilldown" : "Maxim Kolodyazhny", + "name" : "#44: Maxim Kolodyazhny", "y" : 12 }, { - "name" : "#45: Philippe Bruhat", "drilldown" : "Philippe Bruhat", + "name" : "#45: Philippe Bruhat", "y" : 12 }, { - "y" : 12, "drilldown" : "Sergio Iglesias", + "y" : 12, "name" : "#46: Sergio Iglesias" }, { "drilldown" : "Arpad Toth", - "y" : 10, - "name" : "#47: Arpad Toth" + "name" : "#47: Arpad Toth