From 8db85cd488ebedbbda40cca5403676ce0ed8e072 Mon Sep 17 00:00:00 2001 From: Mohammad S Anwar Date: Mon, 22 Jan 2024 18:45:40 +0000 Subject: - Added solutions by Eric Cheung. - Added solutions by Laurent Rosenfeld. - Added solutions by Mark Anderson. - Added solutions by Niels van Dijke. - Added solutions by PokGoPun. - Added solutions by Luca Ferrari. - Added solutions by David Ferrone. - Added solutions by W. Luis Mochan. --- challenge-253/eric-cheung/python/ch-1.py | 14 + challenge-253/eric-cheung/python/ch-2.py | 17 + challenge-253/laurent-rosenfeld/blog.txt | 1 + challenge-253/laurent-rosenfeld/perl/ch-1.pl | 18 + challenge-253/laurent-rosenfeld/raku/ch-1.raku | 18 + challenge-253/perlboy1967/perl/ch-1.pl | 35 + challenge-253/perlboy1967/perl/ch-2.pl | 50 + challenge-253/perlboy1967/perl/ch1.pl | 35 - challenge-253/perlboy1967/perl/ch2.pl | 50 - stats/pwc-challenge-252.json | 665 ++ stats/pwc-current.json | 651 +- stats/pwc-language-breakdown-summary.json | 66 +- stats/pwc-language-breakdown.json | 9947 ++++++++++++------------ stats/pwc-leaders.json | 382 +- stats/pwc-summary-1-30.json | 96 +- stats/pwc-summary-121-150.json | 92 +- stats/pwc-summary-151-180.json | 110 +- stats/pwc-summary-181-210.json | 42 +- stats/pwc-summary-211-240.json | 102 +- stats/pwc-summary-241-270.json | 48 +- stats/pwc-summary-271-300.json | 40 +- stats/pwc-summary-301-330.json | 46 +- stats/pwc-summary-31-60.json | 90 +- stats/pwc-summary-61-90.json | 38 +- stats/pwc-summary-91-120.json | 48 +- stats/pwc-summary.json | 66 +- 26 files changed, 6506 insertions(+), 6261 deletions(-) create mode 100755 challenge-253/eric-cheung/python/ch-1.py create mode 100755 challenge-253/eric-cheung/python/ch-2.py create mode 100644 challenge-253/laurent-rosenfeld/blog.txt create mode 100644 challenge-253/laurent-rosenfeld/perl/ch-1.pl create mode 100644 challenge-253/laurent-rosenfeld/raku/ch-1.raku create mode 100755 challenge-253/perlboy1967/perl/ch-1.pl create mode 100755 challenge-253/perlboy1967/perl/ch-2.pl delete mode 100755 challenge-253/perlboy1967/perl/ch1.pl delete mode 100755 challenge-253/perlboy1967/perl/ch2.pl create mode 100644 stats/pwc-challenge-252.json diff --git a/challenge-253/eric-cheung/python/ch-1.py b/challenge-253/eric-cheung/python/ch-1.py new file mode 100755 index 0000000000..ac1c18f9c5 --- /dev/null +++ b/challenge-253/eric-cheung/python/ch-1.py @@ -0,0 +1,14 @@ + +## Example 1 +arrWords = ["one.two.three", "four.five", "six"] +strSeparator = "." + +## Example 2 +## arrWords = ["$perl$$", "$$raku$"] +## strSeparator = "$" + +arrOutput = [] +for strLoop in arrWords: + arrOutput = arrOutput + strLoop.split(strSeparator) + +print (",".join(["\"" + strLoop + "\"" for strLoop in arrOutput if strLoop])) diff --git a/challenge-253/eric-cheung/python/ch-2.py b/challenge-253/eric-cheung/python/ch-2.py new file mode 100755 index 0000000000..91e11aaa8b --- /dev/null +++ b/challenge-253/eric-cheung/python/ch-2.py @@ -0,0 +1,17 @@ + +def IsWeaker (rowA, rowB): + return True if rowA.count(1) <= rowB.count(1) else False + +## arrMatrix = [[1, 1, 0, 0, 0], [1, 1, 1, 1, 0], [1, 0, 0, 0, 0], [1, 1, 0, 0, 0], [1, 1, 1, 1, 1]] ## Example 1 +arrMatrix = [[1, 0, 0, 0], [1, 1, 1, 1], [1, 0, 0, 0], [1, 0, 0, 0]] ## Example 2 + +arrIndx = [nIndx for nIndx in range(len(arrMatrix))] + +for nRowLoop in range(len(arrIndx) - 1): + for nColLoop in range(nRowLoop + 1, len(arrIndx)): + if not IsWeaker (arrMatrix[arrIndx[nRowLoop]], arrMatrix[arrIndx[nColLoop]]): + vTemp = arrIndx[nRowLoop] + arrIndx[nRowLoop] = arrIndx[nColLoop] + arrIndx[nColLoop] = vTemp + +print (arrIndx) diff --git a/challenge-253/laurent-rosenfeld/blog.txt b/challenge-253/laurent-rosenfeld/blog.txt new file mode 100644 index 0000000000..3ce6bf5981 --- /dev/null +++ b/challenge-253/laurent-rosenfeld/blog.txt @@ -0,0 +1 @@ +https://blogs.perl.org/users/laurent_r/2024/01/perl-weekly-challenge-253-split-strings.html diff --git a/challenge-253/laurent-rosenfeld/perl/ch-1.pl b/challenge-253/laurent-rosenfeld/perl/ch-1.pl new file mode 100644 index 0000000000..8cccb2a672 --- /dev/null +++ b/challenge-253/laurent-rosenfeld/perl/ch-1.pl @@ -0,0 +1,18 @@ +use strict; +use warnings; +use feature 'say'; + +sub split_strings { + my ($sep, @strings) = @_; + $sep = quotemeta $sep; + my @result = grep { /\w+/ } + map { split $sep, $_ } @strings; + return @result; +} + +my @tests = ( [ '.', ["one.two.three","four.five","six"] ], + [ '$', ['$perl$$', '$$raku$'] ] ); +for my $test (@tests) { + printf "%-30s => ", "@{$test->[1]}"; + say join " ", split_strings $test->[0], @{$test->[1]}; +} diff --git a/challenge-253/laurent-rosenfeld/raku/ch-1.raku b/challenge-253/laurent-rosenfeld/raku/ch-1.raku new file mode 100644 index 0000000000..48e90b38e6 --- /dev/null +++ b/challenge-253/laurent-rosenfeld/raku/ch-1.raku @@ -0,0 +1,18 @@ +sub split-strings (:$sep, :@strings) { + my @result = grep { /\w+/ }, flat + map { split $sep, $_ }, @strings; + return @result; +} + + +my @tests = { + 'separator' => '.', + 'string' => ("one.two.three","four.five","six") + }, { + 'separator' => '$', + 'string' => ('$perl$$', '$$raku$')}; +for @tests -> %test { + printf "%-30s => ", %test; + say split-strings(sep => %test, + strings => %test); +} diff --git a/challenge-253/perlboy1967/perl/ch-1.pl b/challenge-253/perlboy1967/perl/ch-1.pl new file mode 100755 index 0000000000..b93afab37f --- /dev/null +++ b/challenge-253/perlboy1967/perl/ch-1.pl @@ -0,0 +1,35 @@ +#!/bin/perl + +=pod + +The Weekly Challenge - 253 +- https://theweeklychallenge.org/blog/perl-weekly-challenge-253 + +Author: Niels 'PerlBoy' van Dijke + +Task 1: Split Strings +Submitted by: Mohammad S Anwar + +You are given an array of strings and a character separator. + +Write a script to return all words separated by the given character excluding empty string. + +=cut + +use v5.32; +use feature qw(signatures); +use common::sense; + +use Test2::V0; + +sub splitStrings ($sep,@str) { + $sep = quotemeta $sep; + grep /\S/, map { split $sep } @str; +} + +is([splitStrings('.','one.two.three','four.five','six')], + ['one','two','three','four','five','six']); +is([splitStrings('$','$perl$$','$$raku$')], + ['perl','raku']); + +done_testing; diff --git a/challenge-253/perlboy1967/perl/ch-2.pl b/challenge-253/perlboy1967/perl/ch-2.pl new file mode 100755 index 0000000000..58d1e27c8a --- /dev/null +++ b/challenge-253/perlboy1967/perl/ch-2.pl @@ -0,0 +1,50 @@ +#!/bin/perl + +=pod + +The Weekly Challenge - 253 +- https://theweeklychallenge.org/blog/perl-weekly-challenge-253 + +Author: Niels 'PerlBoy' van Dijke + +Task 2: Weakest Row +Submitted by: Mohammad S Anwar + +You are given an m x n binary matrix i.e. only 0 and 1 where 1 always appear before 0. + +A row i is weaker than a row j if one of the following is true: + +|| a) The number of 1s in row i is less than the number of 1s in row j. +|| b) Both rows have the same number of 1 and i < j. + +Write a script to return the order of rows from weakest to strongest. + +=cut + +use v5.32; +use feature qw(signatures); +use common::sense; + +use Test2::V0; + +use List::Util qw(sum0); + +sub weakestRow ($ar) { + my $i = 0; + my @s = map { [$i++,sum0 @$_] } @$ar; + map { $$_[0] } sort { $$a[1] <=> $$b[1] or $$a[0] <=> $$b[0] } @s; +} + +is([weakestRow([ + [1, 1, 0, 0, 0], + [1, 1, 1, 1, 0], + [1, 0, 0, 0, 0], + [1, 1, 0, 0, 0], + [1, 1, 1, 1, 1]])],[2,0,3,1,4]); +is([weakestRow([ + [1, 0, 0, 0], + [1, 1, 1, 1], + [1, 0, 0, 0], + [1, 0, 0, 0]])], [0,2,3,1]); + +done_testing; diff --git a/challenge-253/perlboy1967/perl/ch1.pl b/challenge-253/perlboy1967/perl/ch1.pl deleted file mode 100755 index b93afab37f..0000000000 --- a/challenge-253/perlboy1967/perl/ch1.pl +++ /dev/null @@ -1,35 +0,0 @@ -#!/bin/perl - -=pod - -The Weekly Challenge - 253 -- https://theweeklychallenge.org/blog/perl-weekly-challenge-253 - -Author: Niels 'PerlBoy' van Dijke - -Task 1: Split Strings -Submitted by: Mohammad S Anwar - -You are given an array of strings and a character separator. - -Write a script to return all words separated by the given character excluding empty string. - -=cut - -use v5.32; -use feature qw(signatures); -use common::sense; - -use Test2::V0; - -sub splitStrings ($sep,@str) { - $sep = quotemeta $sep; - grep /\S/, map { split $sep } @str; -} - -is([splitStrings('.','one.two.three','four.five','six')], - ['one','two','three','four','five','six']); -is([splitStrings('$','$perl$$','$$raku$')], - ['perl','raku']); - -done_testing; diff --git a/challenge-253/perlboy1967/perl/ch2.pl b/challenge-253/perlboy1967/perl/ch2.pl deleted file mode 100755 index 58d1e27c8a..0000000000 --- a/challenge-253/perlboy1967/perl/ch2.pl +++ /dev/null @@ -1,50 +0,0 @@ -#!/bin/perl - -=pod - -The Weekly Challenge - 253 -- https://theweeklychallenge.org/blog/perl-weekly-challenge-253 - -Author: Niels 'PerlBoy' van Dijke - -Task 2: Weakest Row -Submitted by: Mohammad S Anwar - -You are given an m x n binary matrix i.e. only 0 and 1 where 1 always appear before 0. - -A row i is weaker than a row j if one of the following is true: - -|| a) The number of 1s in row i is less than the number of 1s in row j. -|| b) Both rows have the same number of 1 and i < j. - -Write a script to return the order of rows from weakest to strongest. - -=cut - -use v5.32; -use feature qw(signatures); -use common::sense; - -use Test2::V0; - -use List::Util qw(sum0); - -sub weakestRow ($ar) { - my $i = 0; - my @s = map { [$i++,sum0 @$_] } @$ar; - map { $$_[0] } sort { $$a[1] <=> $$b[1] or $$a[0] <=> $$b[0] } @s; -} - -is([weakestRow([ - [1, 1, 0, 0, 0], - [1, 1, 1, 1, 0], - [1, 0, 0, 0, 0], - [1, 1, 0, 0, 0], - [1, 1, 1, 1, 1]])],[2,0,3,1,4]); -is([weakestRow([ - [1, 0, 0, 0], - [1, 1, 1, 1], - [1, 0, 0, 0], - [1, 0, 0, 0]])], [0,2,3,1]); - -done_testing; diff --git a/stats/pwc-challenge-252.json b/stats/pwc-challenge-252.json new file mode 100644 index 0000000000..06efe7708a --- /dev/null +++ b/stats/pwc-challenge-252.json @@ -0,0 +1,665 @@ +{ + "subtitle" : { + "text" : "[Champions: 35] Last updated at 2024-01-22 18:31:03 GMT" + }, + "yAxis" : { + "title" : { + "text" : "Total Solutions" + } + }, + "series" : [ + { + "name" : "The Weekly Challenge - 252", + "colorByPoint" : 1, + "data" : [ + { + "drilldown" : "Adam Russell", + "name" : "Adam Russell", + "y" : 2 + }, + { + "name" : "Ali Moradi", + "y" : 5, + "drilldown" : "Ali Moradi" + }, + { + "drilldown" : "Arne Sommer", + "y" : 3, + "name" : "Arne Sommer" + }, + { + "y" : 4, + "name" : "Athanasius", + "drilldown" : "Athanasius" + }, + { + "drilldown" : "BarrOff", + "y" : 4, + "name" : "BarrOff" + }, + { + "drilldown" : "Bob Lied", + "name" : "Bob Lied", + "y" : 2 + }, + { + "y" : 2, + "name" : "Bruce Gray", + "drilldown" : "Bruce Gray" + }, + { + "y" : 2, + "name" : "Cheok-Yin Fung", + "drilldown" : "Cheok-Yin Fung" + }, + { + "drilldown" : "David Ferrone", + "name" : "David Ferrone", + "y" : 2 + }, + { + "y" : 2, + "name" : "E. Choroba", + "drilldown" : "E. Choroba" + }, + { + "drilldown" : "Jaldhar H. Vyas", + "name" : "Jaldhar H. Vyas", + "y" : 5 + }, + { + "drilldown" : "Jan Krnavek", + "y" : 1, + "name" : "Jan Krnavek" + }, + { + "name" : "Jorg Sommrey", + "y" : 3, + "drilldown" : "Jorg Sommrey" + }, + { + "drilldown" : "Laurent Rosenfeld", + "y" : 6, + "name" : "Laurent Rosenfeld" + }, + { + "name" : "Lubos Kolouch", + "y" : 4, + "drilldown" : "Lubos Kolouch" + }, + { + "drilldown" : "Luca Ferrari", + "name" : "Luca Ferrari", + "y" : 10 + }, + { + "name" : "Mark Anderson", + "y" : 2, + "drilldown" : "Mark Anderson" + }, + { + "name" : "Matthew Neleigh", + "y" : 2, + "drilldown" : "Matthew Neleigh" + }, + { + "drilldown" : "Mustafa Aydin", + "y" : 2, + "name" : "Mustafa Aydin" + }, + { + "drilldown" : "Nelo Tovar", + "y" : 2, + "name" : "Nelo Tovar" + }, + { + "drilldown" : "Niels van Dijke", + "name" : "Niels van Dijke", + "y" : 2 + }, + { + "drilldown" : "Packy Anderson", + "y" : 5, + "name" : "Packy Anderson" + }, + { + "drilldown" : "Paulo Custodio", + "name" : "Paulo Custodio", + "y" : 2 + }, + { + "drilldown" : "Peter Campbell Smith", + "name" : "Peter Campbell Smith", + "y" : 3 + }, + { + "drilldown" : "Peter Meszaros", + "y" : 2, + "name" : "Peter Meszaros" + }, + { + "name" : "Robbie Hatley", + "y" : 3, + "drilldown" : "Robbie Hatley" + }, + { + "name" : "Robert Ransbottom", + "y" : 2, + "drilldown" : "Robert Ransbottom" + }, + { + "drilldown" : "Roger Bell_West", + "name" : "Roger Bell_West", + "y" : 5 + }, + { + "y" : 2, + "name" : "Scott Sotka", + "drilldown" : "Scott Sotka" + }, + { + "y" : 3, + "name" : "Simon Green", + "drilldown" : "Simon Green" + }, + { + "drilldown" : "Simon Proctor", + "name" : "Simon Proctor", + "y" : 2 + }, + { + "drilldown" : "Stephen G. Lynn", + "y" : 3, + "name" : "Stephen G. Lynn" + }, + { + "drilldown" : "Thomas Kohler", + "y" : 4, + "name" : "Thomas Kohler" + }, + { + "name" : "Ulrich Rieke", + "y" : 4, + "drilldown" : "Ulrich Rieke" + }, + { + "name" : "W. Luis Mochan", + "y" : 3, + "drilldown" : "W. Luis Mochan" + } + ] + } + ], + "drilldown" : { + "series" : [ + { + "name" : "Adam Russell", + "data" : [ + [ + "Perl", + 2 + ] + ], + "id" : "Adam Russell" + }, + { + "name" : "Ali Moradi", + "id" : "Ali Moradi", + "data" : [ + [ + "Perl", + 2 + ], + [ + "Raku", + 2 + ], + [ + "Blog", + 1 + ] + ] + }, + { + "data" : [ + [ + "Raku", + 2 + ], + [ + "Blog", + 1 + ] + ], + "id" : "Arne Sommer", + "name" : "Arne Sommer" + }, + { + "name" : "Athanasius", + "id" : "Athanasius", + "data" : [ + [ + "Perl", + 2 + ], + [ + "Raku", + 2 + ] + ] + }, + { + "id" : "BarrOff", + "data" : [ + [ + "Perl", + 2 + ], + [ + "Raku", + 2 + ] + ], + "name" : "BarrOff" + }, + { + "id" : "Bob Lied", + "data" : [ + [ + "Perl", + 2 + ] + ], + "name" : "Bob Lied" + }, + { + "id" : "Bruce Gray", + "data" : [ + [ + "Raku", + 2 + ] + ], + "name" : "Bruce Gray" + }, + { + "id" : "Cheok-Yin Fung", + "data" : [ + [ + "Perl", + 2 + ] + ], + "name" : "Cheok-Yin Fung" + }, + { + "name" : "David Ferrone", + "data" : [ + [ + "Perl", + 2 + ] + ], + "id" : "David Ferrone" + }, + { + "id" : "E. Choroba", + "data" : [ + [ + "Perl", + 2 + ] + ], + "name" : "E. Choroba" + }, + { + "name" : "Jaldhar H. Vyas", + "id" : "Jaldhar H. Vyas", + "data" : [ + [ + "Perl", + 2 + ], + [ + "Raku", + 2 + ], + [ + "Blog", + 1 + ] + ] + }, + { + "name" : "Jan Krnavek", + "data" : [ + [ + "Raku", + 1 + ] + ], + "id" : "Jan Krnavek" + }, + { + "name" : "Jorg Sommrey", + "data" : [ + [ + "Perl", + 2 + ], + [ + "Blog", + 1 + ] + ], + "id" : "Jorg Sommrey" + }, + { + "name" : "Laurent Rosenfeld", + "id" : "Laurent Rosenfeld", + "data" : [ + [ + "Perl", + 2 + ], + [ + "Raku", + 2 + ], + [ + "Blog", + 2 + ] + ] + }, + { + "data" : [ + [ + "Perl", + 2 + ], + [ + "Raku", + 2 + ] + ], + "id" : "Lubos Kolouch", + "name" : "Lubos Kolouch" + }, + { + "name" : "Luca Ferrari", + "id" : "Luca Ferrari", + "data" : [ + [ + "Raku", + 2 + ], + [ + "Blog", + 8 + ] + ] + }, + { + "name" : "Mark Anderson", + "id" : "Mark Anderson", + "data" : [ + [ + "Raku", + 2 + ] + ] + }, + { + "name" : "Matthew Neleigh", + "id" : "Matthew Neleigh", + "data" : [ + [ + "Perl", + 2 + ] + ] + }, + { + "name" : "Mustafa Aydin", + "data" : [ + [ + "Raku", + 2 + ] + ], + "id" : "Mustafa Aydin" + }, + { + "id" : "Nelo Tovar", + "data" : [ + [ + "Perl", + 2 + ] + ], + "name" : "Nelo Tovar" + }, + { + "name" : "Niels van Dijke", + "data" : [ + [ + "Perl", + 2 + ] + ], + "id" : "Niels van Dijke" + }, + { + "data" : [ + [ + "Perl", + 2 + ], + [ + "Raku", + 2 + ], + [ + "Blog", + 1 + ] + ], + "id" : "Packy Anderson", + "name" : "Packy Anderson" + }, + { + "name" : "Paulo Custodio", + "data" : [ + [ + "Perl", + 2 + ] + ], + "id" : "Paulo Custodio" + }, + { + "data" : [ + [ + "Perl", + 2 + ], + [ + "Blog", + 1 + ] + ], + "id" : "Peter Campbell Smith", + "name" : "Peter Campbell Smith" + }, + { + "id" : "Peter Meszaros", + "data" : [ + [ + "Perl", + 2 + ] + ], + "name" : "Peter Meszaros" + }, + { + "name" : "Robbie Hatley", + "id" : "Robbie Hatley", + "data" : [ + [ + "Perl", + 2 + ], + [ + "Blog", + 1 + ] + ] + }, + { + "id" : "Robert Ransbottom", + "data" : [ + [ + "Raku", + 2 + ] + ], + "name" : "Robert Ransbottom" + }, + { + "id" : "Roger Bell_West", + "data" : [ + [ + "Perl", + 2 + ], + [ + "Raku", + 2 + ], + [ + "Blog", + 1 + ] + ], + "name" : "Roger Bell_West" + }, + { + "name" : "Scott Sotka", + "id" : "Scott Sotka", + "data" : [ + [ + "Raku", + 2 + ] + ] + }, + { + "name" : "Simon Green", + "data" : [ + [ + "Perl", + 2 + ], + [ + "Blog", + 1 + ] + ], + "id" : "Simon Green" + }, + { + "name" : "Simon Proctor", + "id" : "Simon Proctor", + "data" : [ + [ + "Raku", + 2 + ] + ] + }, + { + "id" : "Stephen G. Lynn", + "data" : [ + [ + "Perl", + 2 + ], + [ + "Blog", + 1 + ] + ], + "name" : "Stephen G. Lynn" + }, + { + "id" : "Thomas Kohler", + "data" : [ + [ + "Perl", + 2 + ], + [ + "Blog", + 2 + ] + ], + "name" : "Thomas Kohler" + }, + { + "name" : "Ulrich Rieke", + "id" : "Ulrich Rieke", + "data" : [ + [ + "Perl", + 2 + ], + [ + "Raku", + 2 + ] + ] + }, + { + "data" : [ + [ + "Perl", + 2 + ], + [ + "Blog", + 1 + ] + ], + "id" : "W. Luis Mochan", + "name" : "W. Luis Mochan" + } + ] + }, + "title" : { + "text" : "The Weekly Challenge - 252" + }, + "xAxis" : { + "type" : "category" + }, + "tooltip" : { + "followPointer" : 1, + "headerFormat" : "{series.name}
", + "pointFormat" : "{point.name}: {point.y:f}
" + }, + "legend" : { + "enabled" : 0 + }, + "plotOptions" : { + "series" : { + "dataLabels" : { + "enabled" : 1, + "format" : "{point.y}" + }, + "borderWidth" : 0 + } + }, + "chart" : { + "type" : "column" + } +} diff --git a/stats/pwc-current.json b/stats/pwc-current.json index 2d1d9c72f6..d1e8394d15 100644 --- a/stats/pwc-current.json +++ b/stats/pwc-current.json @@ -1,202 +1,93 @@ { "title" : { - "text" : "The Weekly Challenge - 252" + "text" : "The Weekly Challenge - 253" + }, + "series" : [ + { + "colorByPoint" : 1, + "data" : [ + { + "y" : 2, + "drilldown" : "David Ferrone", + "name" : "David Ferrone" + }, + { + "name" : "Laurent Rosenfeld", + "y" : 3, + "drilldown" : "Laurent Rosenfeld" + }, + { + "y" : 11, + "drilldown" : "Luca Ferrari", + "name" : "Luca Ferrari" + }, + { + "name" : "Mark Anderson", + "drilldown" : "Mark Anderson", + "y" : 2 + }, + { + "y" : 2, + "drilldown" : "Niels van Dijke", + "name" : "Niels van Dijke" + }, + { + "name" : "W. Luis Mochan", + "y" : 3, + "drilldown" : "W. Luis Mochan" + } + ], + "name" : "The Weekly Challenge - 253" + } + ], + "yAxis" : { + "title" : { + "text" : "Total Solutions" + } + }, + "tooltip" : { + "pointFormat" : "{point.name}: {point.y:f}
", + "followPointer" : 1, + "headerFormat" : "{series.name}
" + }, + "plotOptions" : { + "series" : { + "dataLabels" : { + "format" : "{point.y}", + "enabled" : 1 + }, + "borderWidth" : 0 + } }, "drilldown" : { "series" : [ { - "id" : "Adam Russell", + "id" : "David Ferrone", "data" : [ [ "Perl", 2 ] ], - "name" : "Adam Russell" + "name" : "David Ferrone" }, { - "id" : "Ali Moradi", + "id" : "Laurent Rosenfeld", "data" : [ [ "Perl", - 2 - ], - [ - "Raku", - 2 - ], - [ - "Blog", 1 - ] - ], - "name" : "Ali Moradi" - }, - { - "name" : "Arne Sommer", - "data" : [ - [ - "Raku", - 2 - ], - [ - "Blog", - 1 - ] - ], - "id" : "Arne Sommer" - }, - { - "id" : "Athanasius", - "name" : "Athanasius", - "data" : [ - [ - "Perl", - 2 ], [ "Raku", - 2 - ] - ] - }, - { - "data" : [ - [ - "Perl", - 2 - ], - [ - "Raku", - 2 - ] - ], - "name" : "BarrOff", - "id" : "BarrOff" - }, - { - "id" : "Bob Lied", - "name" : "Bob Lied", - "data" : [ - [ - "Perl", - 2 - ] - ] - }, - { - "data" : [ - [ - "Raku", - 2 - ] - ], - "name" : "Bruce Gray", - "id" : "Bruce Gray" - }, - { - "name" : "Cheok-Yin Fung", - "data" : [ - [ - "Perl", - 2 - ] - ], - "id" : "Cheok-Yin Fung" - }, - { - "id" : "David Ferrone", - "name" : "David Ferrone", - "data" : [ - [ - "Perl", - 2 - ] - ] - }, - { - "id" : "E. Choroba", - "name" : "E. Choroba", - "data" : [ - [ - "Perl", - 2 - ] - ] - }, - { - "id" : "Jaldhar H. Vyas", - "name" : "Jaldhar H. Vyas", - "data" : [ - [ - "Perl", - 2 - ], - [ - "Raku", - 2 - ], - [ - "Blog", 1 - ] - ] - }, - { - "id" : "Jan Krnavek", - "data" : [ - [ - "Raku", - 1 - ] - ], - "name" : "Jan Krnavek" - }, - { - "id" : "Jorg Sommrey", - "data" : [ - [ - "Perl", - 2 ], [ "Blog", 1 ] ], - "name" : "Jorg Sommrey" - }, - { - "id" : "Laurent Rosenfeld", - "name" : "Laurent Rosenfeld", - "data" : [ - [ - "Perl", - 2 - ], - [ - "Raku", - 2 - ], - [ - "Blog", - 2 - ] - ] - }, - { - "id" : "Lubos Kolouch", - "name" : "Lubos Kolouch", - "data" : [ - [ - "Perl", - 2 - ], - [ - "Raku", - 2 - ] - ] + "name" : "Laurent Rosenfeld" }, { "id" : "Luca Ferrari", @@ -207,40 +98,20 @@ ], [ "Blog", - 8 + 9 ] ], "name" : "Luca Ferrari" }, { - "id" : "Mark Anderson", - "data" : [ - [ - "Raku", - 2 - ] - ], - "name" : "Mark Anderson" - }, - { - "name" : "Matthew Neleigh", - "data" : [ - [ - "Perl", - 2 - ] - ], - "id" : "Matthew Neleigh" - }, - { - "name" : "Mustafa Aydin", "data" : [ [ "Raku", 2 ] ], - "id" : "Mustafa Aydin" + "name" : "Mark Anderson", + "id" : "Mark Anderson" }, { "data" : [ @@ -249,49 +120,10 @@ 2 ] ], - "name" : "Nelo Tovar", - "id" : "Nelo Tovar" - }, - { "name" : "Niels van Dijke", - "data" : [ - [ - "Perl", - 2 - ] - ], "id" : "Niels van Dijke" }, { - "data" : [ - [ - "Perl", - 2 - ], - [ - "Raku", - 2 - ], - [ - "Blog", - 1 - ] - ], - "name" : "Packy Anderson", - "id" : "Packy Anderson" - }, - { - "name" : "Paulo Custodio", - "data" : [ - [ - "Perl", - 2 - ] - ], - "id" : "Paulo Custodio" - }, - { - "id" : "Peter Campbell Smith", "data" : [ [ "Perl", @@ -302,364 +134,21 @@ 1 ] ], - "name" : "Peter Campbell Smith" - }, - { - "name" : "Peter Meszaros", - "data" : [ - [ - "Perl", - 2 - ] - ], - "id" : "Peter Meszaros" - }, - { - "id" : "Robbie Hatley", - "name" : "Robbie Hatley", - "data" : [ - [ - "Perl", - 2 - ], - [ - "Blog", - 1 - ] - ] - }, - { - "name" : "Robert Ransbottom", - "data" : [ - [ - "Raku", - 2 - ] - ], - "id" : "Robert Ransbottom" - }, - { - "name" : "Roger Bell_West", - "data" : [ - [ - "Perl", - 2 - ], - [ - "Raku", - 2 - ], - [ - "Blog", - 1 - ] - ], - "id" : "Roger Bell_West" - }, - { - "name" : "Scott Sotka", - "data" : [ - [ - "Raku", - 2 - ] - ], - "id" : "Scott Sotka" - }, - { - "data" : [ - [ - "Perl", - 2 - ], - [ - "Blog", - 1 - ] - ], - "name" : "Simon Green", - "id" : "Simon Green" - }, - { - "data" : [ - [ - "Raku", - 2 - ] - ], - "name" : "Simon Proctor", - "id" : "Simon Proctor" - }, - { - "data" : [ - [ - "Perl", - 2 - ], - [ - "Blog", - 1 - ] - ], - "name" : "Stephen G. Lynn", - "id" : "Stephen G. Lynn" - }, - { - "data" : [ - [ - "Perl", - 2 - ], - [ - "Blog", - 2 - ] - ], - "name" : "Thomas Kohler", - "id" : "Thomas Kohler" - }, - { - "data" : [ - [ - "Perl", - 2 - ], - [ - "Raku", - 2 - ] - ], - "name" : "Ulrich Rieke", - "id" : "Ulrich Rieke" - }, - { "name" : "W. Luis Mochan", - "data" : [ - [ - "Perl", - 2 - ], - [ - "Blog", - 1 - ] - ], "id" : "W. Luis Mochan" } ] }, - "tooltip" : { - "pointFormat" : "{point.name}: {point.y:f}
", - "followPointer" : 1, - "headerFormat" : "{series.name}
" - }, - "chart" : { - "type" : "column" + "subtitle" : { + "text" : "[Champions: 6] Last updated at 2024-01-22 18:36:30 GMT" }, "legend" : { "enabled" : 0 }, - "plotOptions" : { - "series" : { - "borderWidth" : 0, - "dataLabels" : { - "enabled" : 1, - "format" : "{point.y}" - } - } - }, - "subtitle" : { - "text" : "[Champions: 35] Last updated at 2024-01-22 00:04:08 GMT" - }, "xAxis" : { "type" : "category" }, - "yAxis" : { - "title" : { - "text" : "Total Solutions" - } - }, - "series" : [ - { - "data" : [ - { - "drilldown" : "Adam Russell", - "y" : 2, - "name" : "Adam Russell" - }, - { - "y" : 5, - "name" : "Ali Moradi", - "drilldown" : "Ali Moradi" - }, - { - "y" : 3, - "name" : "Arne Sommer", - "drilldown" : "Arne Sommer" - }, - { - "drilldown" : "Athanasius", - "name" : "Athanasius", - "y" : 4 - }, - { - "name" : "BarrOff", - "y" : 4, - "drilldown" : "BarrOff" - }, - { - "name" : "Bob Lied", - "y" : 2, - "drilldown" : "Bob Lied" - }, - { - "drilldown" : "Bruce Gray", - "y" : 2, - "name" : "Bruce Gray" - }, - { - "y" : 2, - "name" : "Cheok-Yin Fung", - "drilldown" : "Cheok-Yin Fung" - }, - { - "name" : "David Ferrone", - "y" : 2, - "drilldown" : "David Ferrone" - }, - { - "drilldown" : "E. Choroba", - "y" : 2, - "name" : "E. Choroba" - }, - { - "y" : 5, - "name" : "Jaldhar H. Vyas", - "drilldown" : "Jaldhar H. Vyas" - }, - { - "y" : 1, - "name" : "Jan Krnavek", - "drilldown" : "Jan Krnavek" - }, - { - "drilldown" : "Jorg Sommrey", - "y" : 3, - "name" : "Jorg Sommrey" - }, - { - "name" : "Laurent Rosenfeld", - "y" : 6, - "drilldown" : "Laurent Rosenfeld" - }, - { - "name" : "Lubos Kolouch", - "y" : 4, - "drilldown" : "Lubos Kolouch" - }, - { - "drilldown" : "Luca Ferrari", - "name" : "Luca Ferrari", - "y" : 10 - }, - { - "drilldown" : "Mark Anderson", - "y" : 2, - "name" : "Mark Anderson" - }, - { - "y" : 2, - "name" : "Matthew Neleigh", - "drilldown" : "Matthew Neleigh" - }, - { - "name" : "Mustafa Aydin", - "y" : 2, - "drilldown" : "Mustafa Aydin" - }, - { - "name" : "Nelo Tovar", - "y" : 2, - "drilldown" : "Nelo Tovar" - }, - { - "drilldown" : "Niels van Dijke", - "y" : 2, - "name" : "Niels van Dijke" - }, - { - "drilldown" : "Packy Anderson", - "y" : 5, - "name" : "Packy Anderson" - }, - { - "name" : "Paulo Custodio", - "y" : 2, - "drilldown" : "Paulo Custodio" - }, - { - "name" : "Peter Campbell Smith", - "y" : 3, - "drilldown" : "Peter Campbell Smith" - }, - { - "name" : "Peter Meszaros", - "y" : 2, - "drilldown" : "Peter Meszaros" - }, - { - "y" : 3, - "name" : "Robbie Hatley", - "drilldown" : "Robbie Hatley" - }, - { - "drilldown" : "Robert Ransbottom", - "y" : 2, - "name" : "Robert Ransbottom" - }, - { - "name" : "Roger Bell_West", - "y" : 5, - "drilldown" : "Roger Bell_West" - }, - { - "drilldown" : "Scott Sotka", - "name" : "Scott Sotka", - "y" : 2 - }, - { - "y" : 3, - "name" : "Simon Green", - "drilldown" : "Simon Green" - }, - { - "drilldown" : "Simon Proctor", - "name" : "Simon Proctor", - "y" : 2 - }, - { - "name" : "Stephen G. Lynn", - "y" : 3, - "drilldown" : "Stephen G. Lynn" - }, - { - "y" : 4, - "name" : "Thomas Kohler", - "drilldown" : "Thomas Kohler" - }, - { - "y" : 4, - "name" : "Ulrich Rieke", - "drilldown" : "Ulrich Rieke" - }, - { - "name" : "W. Luis Mochan", - "y" : 3, - "drilldown" : "W. Luis Mochan" - } - ], - "colorByPoint" : 1, - "name" : "The Weekly Challenge - 252" - } - ] + "chart" : { + "type" : "column" + } } diff --git a/stats/pwc-language-breakdown-summary.json b/stats/pwc-language-breakdown-summary.json index 2703b95fbd..571bf2b6af 100644 --- a/stats/pwc-language-breakdown-summary.json +++ b/stats/pwc-language-breakdown-summary.json @@ -1,63 +1,63 @@ { - "subtitle" : { - "text" : "Last updated at 2024-01-22 00:04:08 GMT" + "xAxis" : { + "labels" : { + "style" : { + "fontSize" : "13px", + "fontFamily" : "Verdana, sans-serif" + } + }, + "type" : "category" + }, + "chart" : { + "type" : "column" }, "legend" : { "enabled" : "false" }, - "yAxis" : { - "title" : { - "text" : null - }, - "min" : 0 + "subtitle" : { + "text" : "Last updated at 2024-01-22 18:36:29 GMT" }, - "xAxis" : { - "type" : "category", - "labels" : { - "style" : { - "fontFamily" : "Verdana, sans-serif", - "fontSize" : "13px" - } - } + "tooltip" : { + "pointFormat" : "{point.y:.0f}" + }, + "title" : { + "text" : "The Weekly Challenge Contributions [2019 - 2024]" }, "series" : [ { + "name" : "Contributions", "dataLabels" : { - "rotation" : -90, + "y" : 10, "align" : "right", "format" : "{point.y:.0f}", - "color" : "#FFFFFF", - "y" : 10, "style" : { - "fontSize" : "13px", - "fontFamily" : "Verdana, sans-serif" + "fontFamily" : "Verdana, sans-serif", + "fontSize" : "13px" }, + "rotation" : -90, + "color" : "#FFFFFF", "enabled" : "true" }, "data" : [ [ "Blog", - 4427 + 4438 ], [ "Perl", - 13018 + 13025 ], [ "Raku", - 7514 + 7519 ] - ], - "name" : "Contributions" + ] } ], - "title" : { - "text" : "The Weekly Challenge Contributions [2019 - 2024]" - }, - "tooltip" : { - "pointFormat" : "{point.y:.0f}" - }, - "chart" : { - "type" : "column" + "yAxis" : { + "title" : { + "text" : null + }, + "min" : 0 } } diff --git a/stats/pwc-language-breakdown.json b/stats/pwc-language-breakdown.json index 2101bc242f..0e382ef6c2 100644 --- a/stats/pwc-language-breakdown.json +++ b/stats/pwc-language-breakdown.json @@ -2,4678 +2,124 @@ "title" : { "text" : "The Weekly Challenge Language" }, - "tooltip" : { - "pointFormat" : "Challenge {point.name}: {point.y:f}
", - "headerFormat" : "", - "followPointer" : "true" - }, - "drilldown" : { - "series" : [ - { - "id" : "001", - "data" : [ - [ - "Perl", - 105 - ], - [ - "Raku", - 47 - ], - [ - "Blog", - 12 - ] - ], - "name" : "001" - }, - { - "data" : [ - [ - "Perl", - 83 - ], - [ - "Raku", - 36 - ], - [ - "Blog", - 10 - ] - ], - "name" : "002", - "id" : "002" - }, - { - "id" : "003", - "data" : [ - [ - "Perl", - 48 - ], - [ - "Raku", - 30 - ], - [ - "Blog", - 9 - ] - ], - "name" : "003" - }, - { - "name" : "004", - "data" : [ - [ - "Perl", - 60 - ], - [ - "Raku", - 33 - ], - [ - "Blog", - 10 - ] - ], - "id" : "004" - }, - { - "id" : "005", - "name" : "005", - "data" : [ - [ - "Perl", - 42 - ], - [ - "Raku", - 26 - ], - [ - "Blog", - 12 - ] - ] - }, - { - "data" : [ - [ - "Perl", - 36 - ], - [ - "Raku", - 18 - ], - [ - "Blog", - 7 - ] - ], - "name" : "006", - "id" : "006" - }, - { - "id" : "007", - "data" : [ - [ - "Perl", - 36 - ], - [ - "Raku", - 23 - ], - [ - "Blog", - 10 - ] - ], - "name" : "007" - }, - { - "id" : "008", - "name" : "008", - "data" : [ - [ - "Perl", - 48 - ], - [ - "Raku", - 22 - ], - [ - "Blog", - 12 - ] - ] - }, - { - "data" : [ - [ - "Perl", - 46 - ], - [ - "Raku", - 21 - ], - [ - "Blog", - 13 - ] - ], - "name" : "009", - "id" : "009" - }, - { - "name" : "010", - "data" : [ - [ - "Perl", - 39 - ], - [ - "Raku", - 19 - ], - [ - "Blog", - 11 - ] - ], - "id" : "010" - }, - { - "id" : "011", - "name" : "011", - "data" : [ - [ - "Perl", - 51 - ], - [ - "Raku", - 28 - ], - [ - "Blog", - 10 - ] - ] - }, - { - "id" : "012", - "data" : [ - [ - "Perl", - 51 - ], - [ - "Raku", - 30 - ], - [ - "Blog", - 11 - ] - ], - "name" : "012" - }, - { - "name" : "013", - "data" : [ - [ - "Perl", - 49 - ], - [ - "Raku", - 25 - ], - [ - "Blog", - 13 - ] - ], - "id" : "013" - }, - { - "data" : [ - [ - "Perl", - 56 - ], - [ - "Raku", - 31 - ], - [ - "Blog", - 15 - ] - ], - "name" : "014", - "id" : "014" - }, - { - "name" : "015", - "data" : [ - [ - "Perl", - 58 - ], - [ - "Raku", - 28 - ], - [ - "Blog", - 15 - ] - ], - "id" : "015" - }, - { - "id" : "016", - "name" : "016", - "data" : [ - [ - "Perl", - 38 - ], - [ - "Raku", - 24 - ], - [ - "Blog", - 13 - ] - ] - }, - { - "name" : "017", - "data" : [ - [ - "Perl", - 47 - ], - [ - "Raku", - 27 - ], - [ - "Blog", - 12 - ] - ], - "id" : "017" - }, - { - "data" : [ - [ - "Perl", - 38 - ], - [ - "Raku", - 31 - ], - [ - "Blog", - 14 - ] - ], - "name" : "018", - "id" : "018" - }, - { - "name" : "019", - "data" : [ - [ - "Perl", - 58 - ], - [ - "Raku", - 34 - ], - [ - "Blog", - 13 - ] - ], - "id" : "019" - }, - { - "data" : [ - [ - "Perl", - 53 - ], - [ - "Raku", - 37 - ], - [ - "Blog", - 13 - ] - ], - "name" : "020", - "id" : "020" - }, - { - "id" : "021", - "name" : "021", - "data" : [ - [ - "Perl", - 40 - ], - [ - "Raku", - 24 - ], - [ - "Blog", - 10 - ] - ] - }, - { - "id" : "022", - "data" : [ - [ - "Perl", - 39 - ], - [ - "Raku", - 23 - ], - [ - "Blog", - 10 - ] - ], - "name" : "022" - }, - { - "data" : [ - [ - "Perl", - 57 - ], - [ - "Raku", - 32 - ], - [ - "Blog", - 12 - ] - ], - "name" : "023", - "id" : "023" - }, - { - "name" : "024", - "data" : [ - [ - "Perl", - 40 - ], - [ - "Raku", - 26 - ], - [ - "Blog", - 11 - ] - ], - "id" : "024" - }, - { - "id" : "025", - "name" : "025", - "data" : [ - [ - "Perl", - 31 - ], - [ - "Raku", - 19 - ], - [ - "Blog", - 12 - ] - ] - }, - { - "name" : "026", - "data" : [ - [ - "Perl", - 37 - ], - [ - "Raku", - 29 - ], - [ - "Blog", - 10 - ] - ], - "id" : "026" - }, - { - "id" : "027", - "name" : "027", - "data" : [ - [ - "Perl", - 33 - ], - [ - "Raku", - 22 - ], - [ - "Blog", - 9 - ] - ] - }, - { - "id" : "028", - "name" : "028", - "data" : [ - [ - "Perl", - 47 - ], - [ - "Raku", - 26 - ], - [ - "Blog", - 9 - ] - ] - }, - { - "data" : [ - [ - "Perl", - 44 - ], - [ - "Raku", - 27 - ], - [ - "Blog", - 12 - ] - ], - "name" : "029", - "id" : "029" - }, - { - "id" : "030", - "data" : [ - [ - "Perl", - 78 - ], - [ - "Raku", - 33 - ], - [ - "Blog", - 10 - ] - ], - "name" : "030" - }, - { - "id" : "031", - "data" : [ - [ - "Perl", - 54 - ], - [ - "Raku", - 30 - ], - [ - "Blog", - 9 - ] - ], - "name" : "031" - }, - { - "id" : "032", - "name" : "032", - "data" : [ - [ - "Perl", - 61 - ], - [ - "Raku", - 27 - ], - [ - "Blog", - 10 - ] - ] - }, - { - "name" : "033", - "data" : [ - [ - "Perl", - 66 - ], - [ - "Raku", - 38 - ], - [ - "Blog", - 10 - ] - ], - "id" : "033" - }, - { - "id" : "034", - "name" : "034", - "data" : [ - [ - "Perl", - 36 - ], - [ - "Raku", - 23 - ], - [ - "Blog", - 11 - ] - ] - }, - { - "id" : "035", - "data" : [ - [ - "Perl", - 37 - ], - [ - "Raku", - 22 - ], - [ - "Blog", - 9 - ] - ], - "name" : "035" - }, - { - "name" : "036", - "data" : [ - [ - "Perl", - 37 - ], - [ - "Raku", - 22 - ], - [ - "Blog", - 11 - ] - ], - "id" : "036" - }, - { - "id" : "037", - "name" : "037", - "data" : [ - [ - "Perl", - 37 - ], - [ - "Raku", - 24 - ], - [ - "Blog", - 9 - ] - ] - }, - { - "id" : "038", - "name" : "038", - "data" : [ - [ - "Perl", - 38 - ], - [ - "Raku", - 24 - ], - [ - "Blog", - 12 - ] - ] - }, - { - "id" : "039", - "name" : "039", - "data" : [ - [ - "Perl", - 35 - ], - [ - "Raku", - 21 - ], - [ - "Blog", - 12 - ] - ] - }, - { - "name" : "040", - "data" : [ - [ - "Perl", - 43 - ], - [ - "Raku", - 24 - ], - [ - "Blog", - 10 - ] - ], - "id" : "040" - }, - { - "id" : "041", - "name" : "041", - "data" : [ - [ - "Perl", - 41 - ], - [ - "Raku", - 30 - ], - [ - "Blog", - 9 - ] - ] - }, - { - "data" : [ - [ - "Perl", - 53 - ], - [ - "Raku", - 34 - ], - [ - "Blog", - 11 - ] - ], - "name" : "042", - "id" : "042" - }, - { - "id" : "043", - "data" : [ - [ - "Perl", - 37 - ], - [ - "Raku", - 24 - ], - [ - "Blog", - 11 - ] - ], - "name" : "043" - }, - { - "id" : "044", - "data" : [ - [ - "Perl", - 46 - ], - [ - "Raku", - 33 - ], - [ - "Blog", - 11 - ] - ], - "name" : "044" - }, - { - "name" : "045", - "data" : [ - [ - "Perl", - 56 - ], - [ - "Raku", - 35 - ], - [ - "Blog", - 11 - ] - ], - "id" : "045" - }, - { - "id" : "046", - "name" : "046", - "data" : [ - [ - "Perl", - 50 - ], - [ - "Raku", - 33 - ], - [ - "Blog", - 10 - ] - ] - }, - { - "name" : "047", - "data" : [ - [ - "Perl", - 47 - ], - [ - "Raku", - 31 - ], - [ - "Blog", - 10 - ] - ], - "id" : "047" - }, - { - "data" : [ - [ - "Perl", - 63 -