From 9d2fe49233c5f4a6a8f18aaa14abbe682a70b6e3 Mon Sep 17 00:00:00 2001 From: Mohammad S Anwar Date: Mon, 25 Jan 2021 00:32:03 +0000 Subject: - Added solutions by Colin Crain. --- challenge-096/colin-crain/blog.txt | 1 + challenge-096/colin-crain/perl/ch-1.pl | 62 +++ challenge-096/colin-crain/perl/ch-2.pl | 69 +++ challenge-096/colin-crain/raku/ch-1.raku | 36 ++ challenge-096/colin-crain/raku/ch-2.raku | 53 +++ stats/pwc-current.json | 549 +++++++++++----------- stats/pwc-language-breakdown-summary.json | 52 +- stats/pwc-language-breakdown.json | 720 ++++++++++++++-------------- stats/pwc-leaders.json | 758 +++++++++++++++--------------- stats/pwc-summary-1-30.json | 36 +- stats/pwc-summary-121-150.json | 108 ++--- stats/pwc-summary-151-180.json | 100 ++-- stats/pwc-summary-181-210.json | 36 +- stats/pwc-summary-211-240.json | 36 +- stats/pwc-summary-31-60.json | 44 +- stats/pwc-summary-61-90.json | 96 ++-- stats/pwc-summary-91-120.json | 108 ++--- stats/pwc-summary.json | 50 +- 18 files changed, 1579 insertions(+), 1335 deletions(-) create mode 100644 challenge-096/colin-crain/blog.txt create mode 100644 challenge-096/colin-crain/perl/ch-1.pl create mode 100644 challenge-096/colin-crain/perl/ch-2.pl create mode 100644 challenge-096/colin-crain/raku/ch-1.raku create mode 100644 challenge-096/colin-crain/raku/ch-2.raku diff --git a/challenge-096/colin-crain/blog.txt b/challenge-096/colin-crain/blog.txt new file mode 100644 index 0000000000..8dcaf34c58 --- /dev/null +++ b/challenge-096/colin-crain/blog.txt @@ -0,0 +1 @@ +https://colincrain.com/2021/01/25/the-wagner-fischer-price-backwards/ diff --git a/challenge-096/colin-crain/perl/ch-1.pl b/challenge-096/colin-crain/perl/ch-1.pl new file mode 100644 index 0000000000..e7948fb71f --- /dev/null +++ b/challenge-096/colin-crain/perl/ch-1.pl @@ -0,0 +1,62 @@ +#! /opt/local/bin/perl +# +# backwards_sentence.pl +# +# TASK #1 › Reverse Words +# Submitted by: Mohammad S Anwar +# +# You are given a string $S. +# +# Write a script to reverse the order of words in the given string. +# The string may contain leading/trailing spaces. The string may have +# more than one space between words in the string. Print the result +# without leading/trailing spaces and there should be only one space +# between words. +# +# Example 1: +# Input: $S = "The Weekly Challenge" +# Output: "Challenge Weekly The" +# +# Example 2: +# Input: $S = " Perl and Raku are part of the same family " +# Output: "family same the of part are Raku and Perl" +# +# © 2021 colin crain +## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## + + + +use warnings; +use strict; +use feature ":5.26"; + +sub rev_sentence { + + return join ' ', reverse $_[0] =~ m/(\S+)/g; + +} + + +say rev_sentence(" Perl and Raku are part of the same family "); + + + + + +## ## ## ## ## tests: + +__END__ + +use Test::More; + +my ($str,$out); + +$str = "The Weekly Challenge"; +$out = "Challenge Weekly The"; +is ( rev_sentence($str), $out, "ex 1"); + +$str = " Perl and Raku are part of the same family "; +$out = "family same the of part are Raku and Perl"; +is ( rev_sentence($str), $out, "ex 2"); + +done_testing(); diff --git a/challenge-096/colin-crain/perl/ch-2.pl b/challenge-096/colin-crain/perl/ch-2.pl new file mode 100644 index 0000000000..2500ad84fb --- /dev/null +++ b/challenge-096/colin-crain/perl/ch-2.pl @@ -0,0 +1,69 @@ +#! /opt/local/bin/perl +# +# Wagner–Fischer-Price.pl +# +# TASK #2 › Edit Distance +# Submitted by: Mohammad S Anwar +# You are given two strings $S1 and $S2. +# +# Write a script to find out the minimum operations required to convert +# $S1 into $S2. The operations can be insert, remove or replace a +# character. Please check out Wikipedia page for more information. +# https://en.wikipedia.org/wiki/Edit_distance +# +# Example 1: +# Input: $S1 = "kitten"; $S2 = "sitting" +# Output: 3 +# +# Operation 1: replace 'k' with 's' +# Operation 2: replace 'e' with 'i' +# Operation 3: insert 'g' at the end +# +# Example 2: +# Input: $S1 = "sunday"; $S2 = "monday" +# Output: 2 +# +# Operation 1: replace 's' with 'm' +# Operation 2: replace 'u' with 'o' +# +# © 2021 colin crain +## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## + + + +use warnings; +use strict; +use feature ":5.26"; +use List::Util qw( min ); + +sub levenshtein { + my ($s, $t) = @_; + my ($m, $n) = map { length($_) } ($s, $t); + my @mat; + + $mat[$_][0] = $_ for ( 0..$m); + $mat[0] = [ 0..$n ]; + + for my $j ( 1..$n ) { + for my $i ( 1..$m ) { + my $cost = (substr($s,$i-1,1) eq substr($t,$j-1,1) ? 0 : 1); + $mat[$i][$j] = min( $mat[$i-1][$j] + 1, + $mat[$i][$j-1] + 1, + $mat[$i-1][$j-1] + $cost ); + } + } + + return $mat[$m][$n]; +} + + +use Test::More; + +is (levenshtein('kitten','sitting'), 3, 'ex 1'); +is (levenshtein('sunday','monday'), 2, 'ex 2'); +is (levenshtein('Sunday','Saturday'), 3, 'wiki'); + + +done_testing(); + + diff --git a/challenge-096/colin-crain/raku/ch-1.raku b/challenge-096/colin-crain/raku/ch-1.raku new file mode 100644 index 0000000000..8047093890 --- /dev/null +++ b/challenge-096/colin-crain/raku/ch-1.raku @@ -0,0 +1,36 @@ +#!/usr/bin/env perl6 +# +# +# backwards_sentence.raku +# +# TASK #1 › Reverse Words +# Submitted by: Mohammad S Anwar +# +# You are given a string $S. +# +# Write a script to reverse the order of words in the given string. +# The string may contain leading/trailing spaces. The string may have +# more than one space between words in the string. Print the result +# without leading/trailing spaces and there should be only one space +# between words. +# +# Example 1: +# Input: $S = "The Weekly Challenge" +# Output: "Challenge Weekly The" +# +# Example 2: +# Input: $S = " Perl and Raku are part of the same family " +# Output: "family same the of part are Raku and Perl" + +# +# © 2021 colin crain +## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## + + + +unit sub MAIN (Str $str = " The Weekly Challenge ") ; + +($str ~~ m:g/ (\S+) /).reverse + .join(' ') + .say; + diff --git a/challenge-096/colin-crain/raku/ch-2.raku b/challenge-096/colin-crain/raku/ch-2.raku new file mode 100644 index 0000000000..e157e50a46 --- /dev/null +++ b/challenge-096/colin-crain/raku/ch-2.raku @@ -0,0 +1,53 @@ +#!/usr/bin/env perl6 +# +# +# Wagner–Fischer-Price.pl +# +# TASK #2 › Edit Distance +# Submitted by: Mohammad S Anwar +# You are given two strings $S1 and $S2. +# +# Write a script to find out the minimum operations required to convert +# $S1 into $S2. The operations can be insert, remove or replace a +# character. Please check out Wikipedia page for more information. +# https://en.wikipedia.org/wiki/Edit_distance +# +# Example 1: +# Input: $S1 = "kitten"; $S2 = "sitting" +# Output: 3 +# +# Operation 1: replace 'k' with 's' +# Operation 2: replace 'e' with 'i' +# Operation 3: insert 'g' at the end +# +# Example 2: +# Input: $S1 = "sunday"; $S2 = "monday" +# Output: 2 +# +# Operation 1: replace 's' with 'm' +# Operation 2: replace 'u' with 'o' + +# +# © 2021 colin crain +## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## + + + +unit sub MAIN (Str $s = 'Sunday', Str $t = 'Saturday') ; + +my ($m, $n) = ($s, $t).map: {.chars}; +my @mat; + +@mat[$_][0] = $_ for 0..$m; +@mat[0] = 0..$n; + +for (1..$n) -> $j { + for (1..$m) -> $i { + @mat[$i][$j] = ( @mat[$i-1][$j] + 1, + @mat[$i][$j-1] + 1, + @mat[$i-1][$j-1] + ($s.substr($i-1,1) ne $t.substr($j-1,1)).Int ).min; + } +} + +say @mat[$m;$n]; + diff --git a/stats/pwc-current.json b/stats/pwc-current.json index 00cce5b0a4..7de9698cff 100644 --- a/stats/pwc-current.json +++ b/stats/pwc-current.json @@ -1,10 +1,218 @@ { + "legend" : { + "enabled" : 0 + }, + "chart" : { + "type" : "column" + }, + "xAxis" : { + "type" : "category" + }, + "series" : [ + { + "name" : "Perl Weekly Challenge - 096", + "colorByPoint" : 1, + "data" : [ + { + "name" : "Aaron Smith", + "y" : 3, + "drilldown" : "Aaron Smith" + }, + { + "drilldown" : "Abigail", + "name" : "Abigail", + "y" : 4 + }, + { + "name" : "Adam Russell", + "y" : 3, + "drilldown" : "Adam Russell" + }, + { + "drilldown" : "Andrew Shitov", + "name" : "Andrew Shitov", + "y" : 1 + }, + { + "drilldown" : "Arne Sommer", + "name" : "Arne Sommer", + "y" : 5 + }, + { + "drilldown" : "Athanasius", + "y" : 4, + "name" : "Athanasius" + }, + { + "drilldown" : "Ben Davies", + "y" : 2, + "name" : "Ben Davies" + }, + { + "y" : 2, + "name" : "Cheok-Yin Fung", + "drilldown" : "Cheok-Yin Fung" + }, + { + "y" : 5, + "name" : "Colin Crain", + "drilldown" : "Colin Crain" + }, + { + "drilldown" : "Cristina Heredia", + "name" : "Cristina Heredia", + "y" : 1 + }, + { + "drilldown" : "Dave Jacoby", + "name" : "Dave Jacoby", + "y" : 3 + }, + { + "drilldown" : "Duncan C. White", + "name" : "Duncan C. White", + "y" : 2 + }, + { + "drilldown" : "E. Choroba", + "y" : 2, + "name" : "E. Choroba" + }, + { + "y" : 4, + "name" : "Flavio Poletti", + "drilldown" : "Flavio Poletti" + }, + { + "y" : 2, + "name" : "Gustavo Chaves", + "drilldown" : "Gustavo Chaves" + }, + { + "drilldown" : "James Smith", + "name" : "James Smith", + "y" : 2 + }, + { + "name" : "Jan Krnavek", + "y" : 2, + "drilldown" : "Jan Krnavek" + }, + { + "y" : 3, + "name" : "Joan Mimosinnet", + "drilldown" : "Joan Mimosinnet" + }, + { + "drilldown" : "Jorg Sommrey", + "y" : 2, + "name" : "Jorg Sommrey" + }, + { + "name" : "Kang-min Liu", + "y" : 5, + "drilldown" : "Kang-min Liu" + }, + { + "drilldown" : "Lance Wicks", + "name" : "Lance Wicks", + "y" : 2 + }, + { + "drilldown" : "Laurent Rosenfeld", + "name" : "Laurent Rosenfeld", + "y" : 5 + }, + { + "y" : 2, + "name" : "Lubos Kolouch", + "drilldown" : "Lubos Kolouch" + }, + { + "name" : "Luca Ferrari", + "y" : 4, + "drilldown" : "Luca Ferrari" + }, + { + "name" : "Mark Anderson", + "y" : 2, + "drilldown" : "Mark Anderson" + }, + { + "drilldown" : "Nuno Vieira", + "y" : 2, + "name" : "Nuno Vieira" + }, + { + "drilldown" : "Paulo Custodio", + "y" : 2, + "name" : "Paulo Custodio" + }, + { + "y" : 2, + "name" : "Pete Houston", + "drilldown" : "Pete Houston" + }, + { + "name" : "Philip Hood", + "y" : 2, + "drilldown" : "Philip Hood" + }, + { + "name" : "Roger Bell_West", + "y" : 5, + "drilldown" : "Roger Bell_West" + }, + { + "y" : 2, + "name" : "Simon Proctor", + "drilldown" : "Simon Proctor" + }, + { + "drilldown" : "Stuart Little", + "y" : 4, + "name" : "Stuart Little" + }, + { + "y" : 4, + "name" : "Ulrich Rieke", + "drilldown" : "Ulrich Rieke" + }, + { + "y" : 3, + "name" : "W. Luis Mochan", + "drilldown" : "W. Luis Mochan" + }, + { + "drilldown" : "Wanderdoc", + "y" : 2, + "name" : "Wanderdoc" + } + ] + } + ], + "tooltip" : { + "headerFormat" : "{series.name}
", + "pointFormat" : "{point.name}: {point.y:f}
", + "followPointer" : 1 + }, + "plotOptions" : { + "series" : { + "borderWidth" : 0, + "dataLabels" : { + "enabled" : 1, + "format" : "{point.y}" + } + } + }, "title" : { "text" : "Perl Weekly Challenge - 096" }, "drilldown" : { "series" : [ { + "name" : "Aaron Smith", + "id" : "Aaron Smith", "data" : [ [ "Raku", @@ -14,11 +222,11 @@ "Blog", 1 ] - ], - "id" : "Aaron Smith", - "name" : "Aaron Smith" + ] }, { + "name" : "Abigail", + "id" : "Abigail", "data" : [ [ "Perl", @@ -28,12 +236,9 @@ "Blog", 2 ] - ], - "name" : "Abigail", - "id" : "Abigail" + ] }, { - "id" : "Adam Russell", "name" : "Adam Russell", "data" : [ [ @@ -44,21 +249,21 @@ "Blog", 1 ] - ] + ], + "id" : "Adam Russell" }, { - "id" : "Andrew Shitov", "name" : "Andrew Shitov", "data" : [ [ "Raku", 1 ] - ] + ], + "id" : "Andrew Shitov" }, { "name" : "Arne Sommer", - "id" : "Arne Sommer", "data" : [ [ "Perl", @@ -72,11 +277,10 @@ "Blog", 1 ] - ] + ], + "id" : "Arne Sommer" }, { - "name" : "Athanasius", - "id" : "Athanasius", "data" : [ [ "Perl", @@ -86,39 +290,61 @@ "Raku", 2 ] - ] + ], + "id" : "Athanasius", + "name" : "Athanasius" }, { - "name" : "Ben Davies", - "id" : "Ben Davies", "data" : [ [ "Raku", 2 ] - ] + ], + "id" : "Ben Davies", + "name" : "Ben Davies" }, { + "name" : "Cheok-Yin Fung", "data" : [ [ "Perl", 2 ] ], - "name" : "Cheok-Yin Fung", "id" : "Cheok-Yin Fung" }, { + "id" : "Colin Crain", "data" : [ [ "Perl", + 2 + ], + [ + "Raku", + 2 + ], + [ + "Blog", 1 ] ], + "name" : "Colin Crain" + }, + { "name" : "Cristina Heredia", + "data" : [ + [ + "Perl", + 1 + ] + ], "id" : "Cristina Heredia" }, { + "name" : "Dave Jacoby", + "id" : "Dave Jacoby", "data" : [ [ "Perl", @@ -128,28 +354,26 @@ "Blog", 1 ] - ], - "id" : "Dave Jacoby", - "name" : "Dave Jacoby" + ] }, { - "id" : "Duncan C. White", - "name" : "Duncan C. White", "data" : [ [ "Perl", 2 ] - ] + ], + "id" : "Duncan C. White", + "name" : "Duncan C. White" }, { + "name" : "E. Choroba", "data" : [ [ "Perl", 2 ] ], - "name" : "E. Choroba", "id" : "E. Choroba" }, { @@ -167,13 +391,13 @@ ] }, { + "name" : "Gustavo Chaves", "data" : [ [ "Perl", 2 ] ], - "name" : "Gustavo Chaves", "id" : "Gustavo Chaves" }, { @@ -183,22 +407,22 @@ 2 ] ], - "name" : "James Smith", - "id" : "James Smith" + "id" : "James Smith", + "name" : "James Smith" }, { + "name" : "Jan Krnavek", + "id" : "Jan Krnavek", "data" : [ [ "Raku", 2 ] - ], - "id" : "Jan Krnavek", - "name" : "Jan Krnavek" + ] }, { - "id" : "Joan Mimosinnet", "name" : "Joan Mimosinnet", + "id" : "Joan Mimosinnet", "data" : [ [ "Raku", @@ -211,16 +435,17 @@ ] }, { + "id" : "Jorg Sommrey", "data" : [ [ "Perl", 2 ] ], - "name" : "Jorg Sommrey", - "id" : "Jorg Sommrey" + "name" : "Jorg Sommrey" }, { + "name" : "Kang-min Liu", "data" : [ [ "Perl", @@ -235,10 +460,10 @@ 1 ] ], - "id" : "Kang-min Liu", - "name" : "Kang-min Liu" + "id" : "Kang-min Liu" }, { + "name" : "Lance Wicks", "data" : [ [ "Perl", @@ -249,11 +474,9 @@ 1 ] ], - "name" : "Lance Wicks", "id" : "Lance Wicks" }, { - "name" : "Laurent Rosenfeld", "id" : "Laurent Rosenfeld", "data" : [ [ @@ -268,7 +491,8 @@ "Blog", 1 ] - ] + ], + "name" : "Laurent Rosenfeld" }, { "data" : [ @@ -281,6 +505,7 @@ "name" : "Lubos Kolouch" }, { + "id" : "Luca Ferrari", "data" : [ [ "Raku", @@ -291,18 +516,17 @@ 2 ] ], - "name" : "Luca Ferrari", - "id" : "Luca Ferrari" + "name" : "Luca Ferrari" }, { + "name" : "Mark Anderson", + "id" : "Mark Anderson", "data" : [ [ "Raku", 2 ] - ], - "name" : "Mark Anderson", - "id" : "Mark Anderson" + ] }, { "name" : "Nuno Vieira", @@ -315,36 +539,37 @@ ] }, { + "id" : "Paulo Custodio", "data" : [ [ "Perl", 2 ] ], - "name" : "Paulo Custodio", - "id" : "Paulo Custodio" + "name" : "Paulo Custodio" }, { + "name" : "Pete Houston", + "id" : "Pete Houston", "data" : [ [ "Perl", 2 ] - ], - "name" : "Pete Houston", - "id" : "Pete Houston" + ] }, { + "name" : "Philip Hood", "data" : [ [ "Raku", 2 ] ], - "name" : "Philip Hood", "id" : "Philip Hood" }, { + "name" : "Roger Bell_West", "data" : [ [ "Perl", @@ -359,20 +584,20 @@ 1 ] ], - "id" : "Roger Bell_West", - "name" : "Roger Bell_West" + "id" : "Roger Bell_West" }, { + "name" : "Simon Proctor", "data" : [ [ "Raku", 2 ] ], - "id" : "Simon Proctor", - "name" : "Simon Proctor" + "id" : "Simon Proctor" }, { + "name" : "Stuart Little", "data" : [ [ "Perl", @@ -383,8 +608,7 @@ 2 ] ], - "id" : "Stuart Little", - "name" : "Stuart Little" + "id" : "Stuart Little" }, { "data" : [ @@ -401,6 +625,7 @@ "name" : "Ulrich Rieke" }, { + "id" : "W. Luis Mochan", "data" : [ [ "Perl", @@ -411,228 +636,26 @@ 1 ] ], - "name" : "W. Luis Mochan", - "id" : "W. Luis Mochan" + "name" : "W. Luis Mochan" }, { + "id" : "Wanderdoc", "data" : [ [ "Perl", 2 ] ], - "id" : "Wanderdoc", "name" : "Wanderdoc" } ] }, - "legend" : { - "enabled" : 0 - }, - "plotOptions" : { - "series" : { - "borderWidth" : 0, - "dataLabels" : { - "format" : "{point.y}", - "enabled" : 1 - } - } - }, - "series" : [ - { - "data" : [ - { - "name" : "Aaron Smith", - "drilldown" : "Aaron Smith", - "y" : 3 - }, - { - "name" : "Abigail", - "y" : 4, - "drilldown" : "Abigail" - }, - { - "name" : "Adam Russell", - "y" : 3, - "drilldown" : "Adam Russell" - }, - { - "drilldown" : "Andrew Shitov", - "y" : 1, - "name" : "Andrew Shitov" - }, - { - "name" : "Arne Sommer", - "drilldown" : "Arne Sommer", - "y" : 5 - }, - { - "drilldown" : "Athanasius", - "y" : 4, - "name" : "Athanasius" - }, - { - "drilldown" : "Ben Davies", - "y" : 2, - "name" : "Ben Davies" - }, - { - "y" : 2, - "drilldown" : "Cheok-Yin Fung", - "name" : "Cheok-Yin Fung" - }, - { - "y" : 1, - "drilldown" : "Cristina Heredia", - "name" : "Cristina Heredia" - }, - { - "name" : "Dave Jacoby", - "drilldown" : "Dave Jacoby", - "y" : 3 - }, - { - "name" : "Duncan C. White", - "drilldown" : "Duncan C. White", - "y" : 2 - }, - { - "drilldown" : "E. Choroba", - "y" : 2, - "name" : "E. Choroba" - }, - { - "drilldown" : "Flavio Poletti", - "y" : 4, - "name" : "Flavio Poletti" - }, - { - "y" : 2, - "drilldown" : "Gustavo Chaves", - "name" : "Gustavo Chaves" - }, - { - "name" : "James Smith", - "y" : 2, - "drilldown" : "James Smith" - }, - { - "name" : "Jan Krnavek", - "drilldown" : "Jan Krnavek", - "y" : 2 - }, - { - "name" : "Joan Mimosinnet", - "drilldown" : "Joan Mimosinnet", - "y" : 3 - }, - { - "name" : "Jorg Sommrey", - "y" : 2, - "drilldown" : "Jorg Sommrey" - }, - { - "name" : "Kang-min Liu", - "drilldown" : "Kang-min Liu", - "y" : 5 - }, - { - "drilldown" : "Lance Wicks", - "y" : 2, - "name" : "Lance Wicks" - }, - { - "drilldown" : "Laurent Rosenfeld", - "y" : 5, - "name" : "Laurent Rosenfeld" - }, - { - "name" : "Lubos Kolouch", - "y" : 2, - "drilldown" : "Lubos Kolouch" - }, - { - "y" : 4, - "drilldown" : "Luca Ferrari", - "name" : "Luca Ferrari" - }, - { - "name" : "Mark Anderson", - "drilldown" : "Mark Anderson", - "y" : 2 - }, - { - "drilldown" : "Nuno Vieira", - "y" : 2, - "name" : "Nuno Vieira" - }, - { - "name" : "Paulo Custodio", - "y" : 2, - "drilldown" : "Paulo Custodio" - }, - { - "name" : "Pete Houston", - "y" : 2, - "drilldown" : "Pete Houston" - }, - { - "drilldown" : "Philip Hood", - "y" : 2, - "name" : "Philip Hood" - }, - { - "y" : 5, - "drilldown" : "Roger Bell_West", - "name" : "Roger Bell_West" - }, - { - "name" : "Simon Proctor", - "y" : 2, - "drilldown" : "Simon Proctor" - }, - { - "name" : "Stuart Little", - "drilldown" : "Stuart Little", - "y" : 4 - }, - { - "name" : "Ulrich Rieke", - "y" : 4, - "drilldown" : "Ulrich Rieke" - }, - { - "name" : "W. Luis Mochan", - "drilldown" : "W. Luis Mochan", - "y" : 3 - }, - { - "drilldown" : "Wanderdoc", - "y" : 2, - "name" : "Wanderdoc" - } - ], - "colorByPoint" : 1, - "name" : "Perl Weekly Challenge - 096" - } - ], - "tooltip" : { - "headerFormat" : "{series.name}
", - "pointFormat" : "{point.name}: {point.y:f}
", - "followPointer" : 1 + "subtitle" : { + "text" : "[Champions: 35] Last updated at 2021-01-25 00:29:43 GMT" }, "yAxis" : { "title" : { "text" : "Total Solutions" } - }, - "subtitle" : { - "text" : "[Champions: 34] Last updated at 2021-01-25 00:10:07 GMT" - }, - "chart" : { - "type" : "column" - }, - "xAxis" : { - "type" : "category" } } diff --git a/stats/pwc-language-breakdown-summary.json b/stats/pwc-language-breakdown-summary.json index 7dae861f62..c5b8d21f0a 100644 --- a/stats/pwc-language-breakdown-summary.json +++ b/stats/pwc-language-breakdown-summary.json @@ -1,31 +1,40 @@ { + "yAxis" : { + "title" : { + "text" : null + }, + "min" : 0 + }, + "subtitle" : { + "text" : "Last updated at 2021-01-25 00:29:43 GMT" + }, "series" : [ { - "name" : "Contributions", "dataLabels" : { - "color" : "#FFFFFF", - "align" : "right", - "rotation" : -90, "y" : 10, - "format" : "{point.y:.0f}", + "align" : "right", "style" : { - "fontSize" : "13px", - "fontFamily" : "Verdana, sans-serif" + "fontFamily" : "Verdana, sans-serif", + "fontSize" : "13px" }, - "enabled" : "true" + "color" : "#FFFFFF", + "rotation" : -90, + "enabled" : "true", + "format" : "{point.y:.0f}" }, + "name" : "Contributions", "data" : [ [ "Blog", - 1279 + 1280 ], [ "Perl", - 4462 + 4464 ], [ "Raku", - 2907 + 2909 ] ] } @@ -33,30 +42,21 @@ "tooltip" : { "pointFormat" : "{point.y:.0f}" }, - "yAxis" : { - "min" : 0, - "title" : { - "text" : null - } + "title" : { + "text" : "Perl Weekly Challenge Contributions [2019 - 2020]" }, "xAxis" : { + "type" : "category", "labels" : { "style" : { - "fontFamily" : "Verdana, sans-serif", - "fontSize" : "13px" + "fontSize" : "13px", + "fontFamily" : "Verdana, sans-serif" } - }, - "type" : "category" - }, - "subtitle" : { - "text" : "Last updated at 2021-01-25 00:10:06 GMT" + } }, "chart" : { "type" : "column" }, - "title" : { - "text" : "Perl Weekly Challenge Contributions [2019 - 2020]" - }, "legend" : { "enabled" : "false" } diff --git a/stats/pwc-language-breakdown.json b/stats/pwc-language-breakdown.json index 434e4f56ba..7062c70644 100644 --- a/stats/pwc-language-breakdown.json +++ b/stats/pwc-language-breakdown.json @@ -1,19 +1,25 @@ { + "subtitle" : { + "text" : "Click the columns to drilldown the language breakdown. Last updated at 2021-01-25 00:29:43 GMT" + }, + "yAxis" : { + "title" : { + "text" : "Total Solutions" + } + }, "legend" : { "enabled" : "false" }, - "plotOptions" : { - "series" : { - "dataLabels" : { - "format" : "{point.y}", - "enabled" : 1 - }, - "borderWidth" : 0 - } + "chart" : { + "type" : "column" + }, + "xAxis" : { + "type" : "category" }, "drilldown" : { "series" : [ { + "id" : "001", "data" : [ [ "Perl", @@ -28,8 +34,7 @@ 11 ] ], - "name" : "001", - "id" : "001" + "name" : "001" }, { "name" : "002", @@ -50,7 +55,6 @@ ] }, { - "name" : "003", "id" : "003", "data" : [ [ @@ -65,11 +69,11 @@ "Blog", 9 ] - ] + ], + "name" : "003" }, { "name" : "004", - "id" : "004", "data" : [ [ "Perl", @@ -83,11 +87,10 @@ "Blog", 10 ] - ] + ], + "id" : "004" }, { - "name" : "005", - "id" : "005", "data" : [ [ "Perl", @@ -101,10 +104,11 @@ "Blog", 12 ] - ] + ], + "id" : "005", + "name" : "005" }, { - "name" : "006", "id" : "006", "data" : [ [ @@ -119,9 +123,11 @@ "Blog", 7 ] - ] + ], + "name" : "006" }, { + "name" : "007", "data" : [ [ "Perl", @@ -136,7 +142,6 @@ 10 ] ], - "name" : "007", "id" : "007" }, { @@ -158,8 +163,8 @@ ] }, { - "id" : "009", "name" : "009", + "id" : "009", "data" : [ [ "Perl", @@ -176,6 +181,7 @@ ] }, { + "name" : "010", "data" : [ [ "Perl", @@ -190,12 +196,10 @@ 11 ] ], - "id" : "010", - "name" : "010" + "id" : "010" }, { "id" : "011", - "name" : "011", "data" : [ [ "Perl", @@ -209,7 +213,8 @@ "Blog", 10 ] - ] + ], + "name" : "011" }, { "data" : [ @@ -226,10 +231,11 @@ 11 ] ], - "name" : "012", - "id" : "012" + "id" : "012", + "name" : "012" }, { + "name" : "013", "data" : [ [ "Perl", @@ -244,10 +250,10 @@ 13 ] ], - "id" : "013", - "name" : "013" + "id" : "013" }, { + "id" : "014", "data" : [ [ "Perl", @@ -262,10 +268,11 @@ 15 ] ], - "id" : "014", "name" : "014" }, { + "name" : "015", + "id" : "015", "data" : [ [ "Perl", @@ -279,13 +286,11 @@ "Blog", 15 ] - ], - "id" : "015", - "name" : "015" + ] }, { - "id" : "016", "name" : "016", + "id" : "016", "data" : [ [ "Perl", @@ -321,7 +326,6 @@ }, { "name" : "018", - "id" : "018", "data" : [ [ "Perl", @@ -335,9 +339,11 @@ "Blog", 14 ] - ] + ], + "id" : "018" }, { + "name" : "019", "data" : [ [ "Perl", @@ -352,10 +358,10 @@ 13 ] ], - "name" : "019", "id" : "019" }, { + "id" : "020", "data" : [ [ "Perl", @@ -370,10 +376,10 @@ 13 ] ], - "name" : "020", - "id" : "020" + "name" : "020" }, { + "name" : "021", "data" : [ [ "Perl", @@ -388,12 +394,9 @@ 10 ] ], - "id" : "021", - "name" : "021" + "id" : "021" }, { - "id" : "022", - "name" : "022", "data" : [ [ "Perl", @@ -407,10 +410,11 @@ "Blog", 10 ] - ] + ], + "id" : "022", + "name" : "022" }, { - "name" : "023", "id" : "023", "data" : [ [ @@ -425,9 +429,11 @@ "Blog", 12 ] - ] + ], + "name" : "023" }, { + "name" : "024", "data" : [ [ "Perl", @@ -442,10 +448,10 @@ 11 ] ], - "id" : "024", - "name" : "024" + "id" : "024" }, { + "name" : "025", "data" : [ [ "Perl", @@ -460,12 +466,9 @@ 12 ] ], - "name" : "025", "id" : "025" }, { - "name" : "026", - "id" : "026", "data" : [ [ "Perl", @@ -479,11 +482,11 @@ "Blog", 10 ] - ] + ], + "id" : "026", + "name" : "026" }, { - "name" : "027", - "id" : "027", "data" : [ [ "Perl", @@ -497,9 +500,12 @@ "Blog", 9 ] - ] + ], + "id" : "027", + "name" : "027" }, { + "name" : "028", "data" : [ [ "Perl", @@ -514,10 +520,10 @@ 9 ] ], - "id" : "028", - "name" : "028" + "id" : "028" }, { + "id" : "029", "data" : [ [ "Perl", @@ -532,10 +538,10 @@ 12 ] ], - "name" : "029", - "id" : "029" + "name" : "029" }, { + "name" : "030", "data" : [ [ "Perl", @@ -550,10 +556,10 @@ 10 ] ], - "id" : "030", - "name" : "030" + "id" : "030" }, { + "id" : "031", "data" : [ [ "Perl", @@ -568,10 +574,10 @@ 9 ] ], - "id" : "031", "name" : "031" }, { + "id" : "032", "data" : [ [ "Perl", @@ -586,10 +592,10 @@ 10 ] ], - "id" : "032", "name" : "032" }, { + "name" : "033", "data" : [ [ "Perl", @@ -604,11 +610,9 @@ 10 ] ], - "name" : "033", "id" : "033" }, { - "name" : "034", "id" : "034", "data" : [ [ @@ -623,7 +627,8 @@ "Blog", 11 ] - ] + ], + "name" : "034" }, { "data" : [ @@ -644,6 +649,7 @@ "name" : "035" }, { + "id" : "036", "data" : [ [ "Perl", @@ -658,10 +664,10 @@ 11 ] ], - "name" : "036", - "id" : "036" + "name" : "036" }, { + "id" : "037", "data" : [ [ "Perl", @@ -676,8 +682,7 @@ 9 ] ], - "name" : "037", - "id" : "037" + "name" : "037" }, { "data" : [ @@ -694,10 +699,11 @@ 12 ] ], - "name" : "038", - "id" : "038" + "id" : "038", + "name" : "038" }, { + "name" : "039", "data" : [ [ "Perl", @@ -712,11 +718,9 @@ 12 ] ], - "name" : "039", "id" : "039" }, { - "name" : "040", "id" : "040", "data" : [ [ @@ -731,10 +735,10 @@ "Blog", 10 ] - ] + ], + "name" : "040" }, { - "name" : "041", "id" : "041", "data" : [ [ @@ -749,11 +753,10 @@ "Blog", 9 ] - ] + ], + "name" : "041" }, { - "id" : "042", - "name" : "042", "data" : [ [ "Perl", @@ -767,11 +770,11 @@ "Blog", 11 ] - ] + ], + "id" : "042", + "name" : "042" }, { - "id" : "043", - "name" : "043", "data" : [ [ "Perl", @@ -785,9 +788,13 @@ "Blog", 11 ] - ] + ], + "id" : "043", + "name" : "043" }, { + "name" : "044", + "id" : "044", "data" : [ [ "Perl", @@ -801,11 +808,11 @@ "Blog", 11 ] - ], - "id" : "044", - "name" : "044" + ] }, { + "name" : "045", + "id" : "045", "data" : [ [ "Perl", @@ -819,11 +826,10 @@ "Blog", 11 ] - ], - "id" : "045", - "name" : "045" + ] }, { + "name" : "046", "data" : [ [ "Perl", @@ -838,10 +844,11 @@ 10 ] ], - "name" : "046", "id" : "046" }, { + "name" : "047", + "id" : "047", "data" : [ [ "Perl", @@ -855,9 +862,7 @@ "Blog", 10 ] - ], - "id" : "047", - "name" : "047" + ] }, { "data" : [ @@ -874,10 +879,11 @@ 12 ] ], - "name" : "048", - "id" : "048" + "id" : "048", + "name" : "048" }, { + "id" : "049", "data" : [ [ "Perl", @@ -892,10 +898,10 @@ 12 ] ], - "id" : "049", "name" : "049" }, { + "id" : "050", "data" : [ [ "Perl", @@ -910,10 +916,10 @@ 12 ] ], - "id" : "050", "name" : "050" }, { + "name" : "051", "data" : [ [ "Perl", @@ -928,10 +934,10 @@ 11 ] ], - "id" : "051", - "name" : "051" + "id" : "051" }, { + "id" : "052", "data" : [ [ "Perl", @@ -946,10 +952,11 @@ 14 ] ], - "name" : "052", - "id" : "052" + "name" : "052" }, { + "name" : "053", + "id" : "053", "data" : [ [ "Perl", @@ -963,9 +970,7 @@ "Blog", 15 ] - ], - "id" : "053", - "name" : "053" + ] }, { "data" : [ @@ -1004,8 +1009,6 @@ "name" : "055" }, { - "name" : "056", - "id" : "056", "data" : [ [ "Perl", @@ -1019,9 +1022,12 @@ "Blog", 16 ] - ] + ], + "id" : "056", + "name" : "056" }, { + "name" : "057", "data" : [ [ "Perl", @@ -1036,8 +1042,7 @@ 15 ] ], - "id" : "057", - "name" : "057" + "id" : "057" }, { "data" : [ @@ -1054,8 +1059,8 @@ 13 ] ], - "name" : "058", - "id" : "058" + "id" : "058", + "name" : "058" }, { "data" : [ @@ -1072,10 +1077,11 @@ 16 ] ], - "name" : "059", - "id" : "059" + "id" : "059", + "name" : "059" }, { + "id" : "060", "data" : [ [ "Perl", @@ -1090,10 +1096,10 @@ 16 ] ], - "id" : "060", "name" : "060" }, { + "id" : "061", "data" : [ [ "Perl", @@ -1108,12 +1114,10 @@ 14 ] ], - "name" : "061", - "id" : "061" + "name" : "061" }, { "name" : "062", - "id" : "062", "data" : [ [ "Perl", @@ -1127,9 +1131,11 @@ "Blog", 11 ] - ] + ], + "id" : "062" }, { + "name" : "063", "data" : [ [ "Perl", @@ -1144,12 +1150,10 @@ 13 ] ], - "id" : "063", - "name" : "063" + "id" : "063" }, { "id" : "064", - "name" : "064", "data" : [ [ "Perl", @@ -1163,7 +1167,8 @@ "Blog", 16 ] - ] + ], + "name" : "064" }, { "name" : "065", @@ -1184,8 +1189,6 @@ ] }, { - "name" : "066", - "id" : "066", "data" : [ [ "Perl", @@ -1199,11 +1202,11 @@ "Blog", 14 ] - ] + ], + "id" : "066", + "name" : "066" }, { - "name" : "067", - "id" : "067", "data" : [ [ "Perl", @@ -1217,10 +1220,11 @@ "Blog", 18 ] - ] + ], + "id" : "067", + "name" : "067" }, { - "name" : "068", "id" : "068", "data" : [ [ @@ -1235,11 +1239,11 @@ "Blog", 13 ] - ] + ], + "name" : "068" }, { "name" : "069", - "id" : "069", "data" : [ [ "Perl", @@ -1253,9 +1257,11 @@ "Blog", 16 ] - ] + ], + "id" : "069" }, { + "name" : "070", "data" : [ [ "Perl", @@ -1270,11 +1276,9 @@ 17 ] ], - "name" : "070", "id" : "070" }, { - "name" : "071", "id" : "071", "data" : [ [ @@ -1289,9 +1293,12 @@ "Blog", 15 ] - ] + ], + "name" : "071" }, { + "name" : "072", + "id" : "072", "data" : [ [ "Perl", @@ -1305,13 +1312,10 @@ "Blog", 19 ] - ], - "name" : "072", - "id" : "072" + ] }, { "id" : "073", - "name" : "073", "data" : [ [ "Perl", @@ -1325,9 +1329,12 @@ "Blog", 17 ] - ] + ], + "name" : "073" }, { + "name" : "074", + "id" : "074", "data" : [ [ "Perl", @@ -1341,13 +1348,11 @@ "Blog", 20 ] - ], - "id" : "074", - "name" : "074" + ] }, { - "id" : "075", "name" : "075", + "id" : "075", "data" : [ [ "Perl", @@ -1364,6 +1369,7 @@ ] }, { + "name" : "076", "data" : [ [ "Perl", @@ -1378,12 +1384,10 @@ 16 ] ], - "name" : "076", "id" : "076" }, { "id" : "077", - "name" : "077", "data" : [ [ "Perl", @@ -1397,11 +1401,11 @@ "Blog", 14 ] - ] + ], + "name" : "077" }, { "id" : "078", - "name" : "078", "data" : [ [ "Perl", @@ -1415,9 +1419,11 @@ "Blog", 18 ] - ] + ], + "name" : "078" }, { + "id" : "079", "data" : [ [ "Perl", @@ -1432,10 +1438,11 @@ 17 ] ], - "id" : "079", "name" : "079" }, { + "name" : "080", + "id" : "080", "data" : [ [ "Perl", @@ -1449,11 +1456,11 @@ "Blog", 16 ] - ], - "id" : "080", - "name" : "080" + ] }, { + "name" : "081", + "id" : "081", "data" : [ [ "Perl", @@ -1467,12 +1474,9 @@ "Blog", 15 ] - ], - "id" : "081", - "name" : "081" + ] }, { - "name" : "082", "id" : "082", "data" : [ [ @@ -1487,9 +1491,11 @@ "Blog", 17 ] - ] + ], + "name" : "082" }, { + "id" : "083", "data" : [ [ "Perl", @@ -1504,10 +1510,10 @@ 16 ] ], - "name" : "083", - "id" : "083" + "name" : "083" }, { + "id" : "084", "data" : [ [ "Perl", @@ -1522,12 +1528,9 @@ 12 ] ], - "name" : "084", - "id" : "084" + "name" : "084" }, { - "id" : "085", - "name" : "085", "data" : [ [ "Perl", @@ -1541,9 +1544,13 @@ "Blog", 18 ] - ] + ], + "id" : "085", + "name" : "085" }, { + "name" : "086", + "id" : "086", "data" : [ [ "Perl", @@ -1557,9 +1564,7 @@ "Blog", 15 ] - ], - "id" : "086", - "name" : "086" + ] }, { "data" : [ @@ -1576,12 +1581,12 @@ 14 ] ], - "name" : "087", - "id" : "087" + "id" : "087", + "name" : "087" }, { - "id" : "088", "name" : "088", + "id" : "088", "data" : [ [ "Perl", @@ -1612,10 +1617,11 @@ 20 ] ], - "name" : "089", - "id" : "089" + "id" : "089", + "name" : "089" }, { + "id" : "090", "data" : [ [ "Perl", @@ -1630,10 +1636,10 @@ 17 ] ], - "name" : "090", - "id" : "090" + "name" : "090" }, { + "name" : "091", "data" : [ [ "Perl", @@ -1648,12 +1654,9 @@ 16 ] ], - "name" : "091", "id" : "091" }, { - "id" : "092", - "name" : "092", "data" : [ [ "Perl", @@ -1667,11 +1670,11 @@ "Blog", 15 ] - ] + ], + "id" : "092", + "name" : "092" }, { - "name" : "093", - "id" : "093", "data" : [ [ "Perl", @@ -1685,11 +1688,12 @@ "Blog", 16 ] - ] + ], + "id" : "093", + "name" : "093" }, { "id" : "094", - "name" : "094", "data" : [ [ "Perl", @@ -1703,9 +1707,11 @@ "Blog", 17 ] - ] + ], + "name" : "094" }, { + "name" : "095", "data" : [ [ "Perl", @@ -1720,114 +1726,105 @@ 18 ] ], - "id" : "095", - "name" : "095" + "id" : "095" }, { - "id" : "096", - "name" : "096", "data" : [ [ "Perl", - 48 + 50 ], [ "Raku", - 31 + 33 ], [ "Blog", - 16 + 17 ] - ] + ], + "id" : "096", + "name" : "096" } ] }, "title" : { "text" : "Perl Weekly Challenge Language" }, - "chart" : { - "type" : "column" - }, - "xAxis" : { - "type" : "category" - }, - "subtitle" : { - "text" : "Click the columns to drilldown the language breakdown. Last updated at 2021-01-25 00:10:07 GMT" - }, - "yAxis" : { - "title" : { - "text" : "Total Solutions" - } + "tooltip" : { + "followPointer" : "true", + "pointFormat" : "Challenge {point.name}: {point.y:f}
", + "headerFormat" : "" }, "series" : [ { + "name" : "Perl Weekly Challenge Languages", "colorByPoint" : "true", "data" : [ { - "y" : 153, "drilldown" : "001", + "y" : 153, "name" : "#001" }, { - "name" : "#002", "y" : 118, + "name" : "#002", "drilldown" : "002" }, { "name" : "#003", - "drilldown" : "003", - "y" : 75 + "y" : 75, + "drilldown" : "003" }, { - "name" : "#004", + "drilldown" : "004", "y" : 95, - "drilldown" : "004" + "name" : "#004" }, { "y" : 76, - "drilldown" : "005", - "name" : "#005" + "name" : "#005", + "drilldown" : "005" }, { - "y" : 56, "drilldown" : "006", - "name" : "#006" + "name" : "#006", + "y" : 56 }, { - "y" : 63, "drilldown" : "007", - "name" : "#007" + "name" : "#007", + "y" : 63 }, { - "y" : 76, "drilldown" : "008", - "name" : "#008" + "name" : "#008", + "y" : 76 }, { - "name" : "#009", "drilldown" : "009", - "y" : 74 + "y" : 74, + "name" : "#009" }, { "drilldown" : "010", - "y" : 64, - "name" : "#010" + "name" : "#010", + "y" : 64 }, { - "name" : "#011", "drilldown" : "011", - "y" : 83 + "y" : 83, + "name" : "#011" }, { + "y" : 87, "name" : "#012", - "drilldown" : "012", - "y" : 87 + "drilldown" : "012" }, { + "drilldown" : "013", "name" : "#013", - "y" : 82, - "drilldown" : "013" + "y" : 82 }, { "name" : "#014", @@ -1835,28 +1832,28 @@ "drilldown" : "014" }, { + "y" : 97, "name" : "#015", - "drilldown" : "015", - "y" : 97 + "drilldown" : "015" }, { "drilldown" : "016", - "y" : 70, - "name" : "#016" + "name" : "#016", + "y" : 70 }, { - "name" : "#017", + "drilldown" : "017", "y" : 83, - "drilldown" : "017" + "name" : "#017" }, { + "name" : "#018", "y" : 80, - "drilldown" : "018", - "name" : "#018" + "drilldown" : "018" }, { - "name" : "#019", "drilldown" : "019", + "name" : "#019", "y" : 101 }, { @@ -1870,74 +1867,74 @@ "name" : "#021" }, { - "name" : "#022", "drilldown" : "022", - "y" : 67 + "y" : 67, + "name" : "#022" }, { + "y" : 95, "name" : "#023", - "drilldown" : "023", - "y" : 95 + "drilldown" : "023" }, { - "name" : "#024", "y" : 74, + "name" : "#024", "drilldown" : "024" }, { - "name" : "#025", "y" : 59, + "name" : "#025", "drilldown" : "025" }, { - "y" : 74, "drilldown" : "026", + "y" : 74, "name" : "#026" }, { - "name" : "#027", "y" : 60, + "name" : "#027", "drilldown" : "027" }, { "y" : 80, - "drilldown" : "028", - "name" : "#028" + "name" : "#028", + "drilldown" : "028" }, { - "y" : 79, "drilldown" : "029", - "name" : "#029" + "name" : "#029", + "y" : 79 }, { "drilldown" : "030", - "y" : 1