From 420133dbf67ad5b4e8a8b199f7ceb660ff360907 Mon Sep 17 00:00:00 2001 From: Mohammad S Anwar Date: Thu, 23 May 2019 12:04:51 +0100 Subject: - Added solutions by Steven Wilson. --- challenge-009/steven-wilson/perl5/ch-1.pl | 32 ++ challenge-009/steven-wilson/perl5/ch-2.pl | 115 +++++++ stats/pwc-current.json | 115 ++++--- stats/pwc-language-breakdown.json | 202 ++++++------ stats/pwc-leaders.json | 518 +++++++++++++++--------------- stats/pwc-summary-1-30.json | 122 +++---- stats/pwc-summary-31-60.json | 44 +-- stats/pwc-summary-61-90.json | 78 ++--- stats/pwc-summary.json | 206 ++++++------ 9 files changed, 797 insertions(+), 635 deletions(-) create mode 100644 challenge-009/steven-wilson/perl5/ch-1.pl create mode 100644 challenge-009/steven-wilson/perl5/ch-2.pl diff --git a/challenge-009/steven-wilson/perl5/ch-1.pl b/challenge-009/steven-wilson/perl5/ch-1.pl new file mode 100644 index 0000000000..b5f134ebad --- /dev/null +++ b/challenge-009/steven-wilson/perl5/ch-1.pl @@ -0,0 +1,32 @@ +#!/usr/bin/env perl +# Author: Steven Wilson +# Date: 2019-05-21 +# Challenge #9 +# Write a script that finds the first square number that has at least +# 5 distinct digits. This was proposed by Laurent Rosenfeld. + +use warnings; +use strict; +use feature qw/ say /; + +my $number = 0; +my $found = 0; +my $distinct = 5; +my $square; + +while ( !$found ) { + $square = $number**2; + my $distinct_digits = get_distinct($square); + if ( $distinct_digits == $distinct ) { $found = 1 } + $number++; +} + +say "The square of " . ( $number - 1 ) + . " ($square) is the first square that has at least $distinct distinct digits."; + +sub get_distinct { + my $number = shift; + my %unique = (); + undef @unique{ ( split //, $number ) }; + return keys %unique; +} diff --git a/challenge-009/steven-wilson/perl5/ch-2.pl b/challenge-009/steven-wilson/perl5/ch-2.pl new file mode 100644 index 0000000000..17d65f4bb3 --- /dev/null +++ b/challenge-009/steven-wilson/perl5/ch-2.pl @@ -0,0 +1,115 @@ +#!/usr/bin/env perl +# Author: Steven Wilson +# Date: 2019-05-22 +# Challenge #2 +# Write a script to perform different types of ranking as described below: +# 1. Standard Ranking (1224): Items that compare equal receive the +# same ranking number, and then a gap is left in the ranking numbers. +# 2. Modified Ranking (1334): It is done by leaving the gaps in the +# ranking numbers before the sets of equal-ranking items. +# 3. Dense Ranking (1223): Items that compare equally receive the +# same ranking number, and the next item(s) receive the immediately +# following ranking number. +# For more information, please refer to wiki page. +# https://en.wikipedia.org/wiki/Ranking + +use warnings; +use strict; +use feature qw/ say /; +use Test::More tests => 3; + +my @sorted_values = ( 1, 2, 2, 2, 3, 5, 5, 6, 6, 7, 7, 8, 8, 8, 8, 9, 9, 10 ); +my @test_values = ( 2, 4, 4, 7 ); + +ok( get_standard(@test_values) eq "1 2 2 4", "standard ranking" ); +ok( get_modified(@test_values) eq "1 3 3 4", "modified ranking" ); +ok( get_dense(@test_values) eq "1 2 2 3", "dense ranking" ); + +say + "\nRank the values @sorted_values\nenter\t's' (Standard Ranking)\n\t'm' (Modified Ranking)\n\t'd' (Dense Ranking)"; + +chomp( my $answer = <> ); + +if ( $answer eq 's' ) { + say "Standard Ranking: " . get_standard(@sorted_values); +} +elsif ( $answer eq 'm' ) { + say "Modified Ranking: " . get_modified(@sorted_values); +} +elsif ( $answer eq 'd' ) { + say "Dense Ranking: " . get_dense(@sorted_values); +} +else { + say "You did not enter a valid ranking"; +} + +# returns Standard Ranking as a string +sub get_standard { + my @values = @_; + my $rankings = ""; + my $position = 0; + my $rank = 1; + foreach (@values) { + if ( $position == 0 || $_ == $values[ $position - 1 ] ) { + $position++; + } + else { + $position++; + $rank = $position; + } + $rankings = $rankings . ( $rank . " " ); + } + $rankings =~ s/\s+$//; + return $rankings; +} + +# returns Modified Ranking as a string +sub get_modified { + my @values = @_; + my $rankings = ""; + my $position = 0; + my $count = 0; + foreach (@values) { + # Shorten with 1 long if statment which negates the first 2? + # $position and $count are incremented in each case. + # Might be harder to read. + if ( $position == 0 && $_ == $values[ $position + 1 ] ) { + $position++; + $count++; + } + elsif ( ( $position + 1 ) < scalar @values + && $_ == $values[ $position + 1 ] ) + { + $position++; + $count++; + } + else { + $position++; + $count++; + $rankings .= ( ( $position . " " ) x $count ); + $count = 0; + } + } + $rankings =~ s/\s+$//; + return $rankings; +} + +# returns Dense Ranking as a string +sub get_dense { + my @values = @_; + my $rankings = ""; + my $position = 0; + my $rank = 1; + foreach (@values) { + if ( $position == 0 || $_ == $values[ $position - 1 ] ) { + $position++; + } + else { + $position++; + $rank++; + } + $rankings .= ( $rank . " " ); + } + $rankings =~ s/\s+$//; + return $rankings; +} diff --git a/stats/pwc-current.json b/stats/pwc-current.json index 3a30d7292f..15e2e1157f 100644 --- a/stats/pwc-current.json +++ b/stats/pwc-current.json @@ -1,63 +1,102 @@ { - "title" : { - "text" : "Perl Weekly Challenge - 009" - }, "drilldown" : { "series" : [ { - "id" : "Dave Jacoby", "name" : "Dave Jacoby", "data" : [ [ "Perl 5", 2 ] - ] + ], + "id" : "Dave Jacoby" }, { - "id" : "Gustavo Chaves", "data" : [ [ "Perl 5", 2 ] ], + "id" : "Gustavo Chaves", "name" : "Gustavo Chaves" }, { + "name" : "Joelle Maslak", + "id" : "Joelle Maslak", "data" : [ [ "Perl 6", 1 ] - ], - "name" : "Joelle Maslak", - "id" : "Joelle Maslak" + ] }, { + "name" : "Simon Proctor", "id" : "Simon Proctor", "data" : [ [ "Perl 6", 1 ] + ] + }, + { + "name" : "Steven Wilson", + "data" : [ + [ + "Perl 5", + 2 + ] ], - "name" : "Simon Proctor" + "id" : "Steven Wilson" }, { "id" : "Yozen Hernandez", - "name" : "Yozen Hernandez", "data" : [ [ "Perl 5", 2 ] - ] + ], + "name" : "Yozen Hernandez" } ] }, + "legend" : { + "enabled" : 0 + }, + "subtitle" : { + "text" : "[Champions: 6] Last updated at 2019-05-23 11:04:25 GMT" + }, + "yAxis" : { + "title" : { + "text" : "Total Solutions" + } + }, + "title" : { + "text" : "Perl Weekly Challenge - 009" + }, + "tooltip" : { + "followPointer" : 1, + "headerFormat" : "{series.name}
", + "pointerFormat" : "{point.name}: {point.y:f}
" + }, + "chart" : { + "type" : "column" + }, + "plotOptions" : { + "series" : { + "dataLabels" : { + "enabled" : 1, + "format" : "{point.y}" + }, + "borderWidth" : 0 + } + }, "series" : [ { + "name" : "Champions", "colorByPoint" : 1, "data" : [ { @@ -66,58 +105,34 @@ "name" : "Dave Jacoby" }, { - "drilldown" : "Gustavo Chaves", + "name" : "Gustavo Chaves", "y" : 2, - "name" : "Gustavo Chaves" + "drilldown" : "Gustavo Chaves" }, { + "name" : "Joelle Maslak", "drilldown" : "Joelle Maslak", - "y" : 1, - "name" : "Joelle Maslak" + "y" : 1 }, { - "name" : "Simon Proctor", "drilldown" : "Simon Proctor", - "y" : 1 + "y" : 1, + "name" : "Simon Proctor" }, { - "name" : "Yozen Hernandez", + "drilldown" : "Steven Wilson", + "y" : 2, + "name" : "Steven Wilson" + }, + { + "y" : 2, "drilldown" : "Yozen Hernandez", - "y" : 2 + "name" : "Yozen Hernandez" } - ], - "name" : "Champions" + ] } ], - "subtitle" : { - "text" : "[Champions: 5] Last updated at 2019-05-22 14:05:48 GMT" - }, "xAxis" : { "type" : "category" - }, - "plotOptions" : { - "series" : { - "borderWidth" : 0, - "dataLabels" : { - "enabled" : 1, - "format" : "{point.y}" - } - } - }, - "legend" : { - "enabled" : 0 - }, - "chart" : { - "type" : "column" - }, - "yAxis" : { - "title" : { - "text" : "Total Solutions" - } - }, - "tooltip" : { - "followPointer" : 1, - "headerFormat" : "{series.name}
", - "pointerFormat" : "{point.name}: {point.y:f}
" } } diff --git a/stats/pwc-language-breakdown.json b/stats/pwc-language-breakdown.json index 5b2b4ebacd..54ddf22793 100644 --- a/stats/pwc-language-breakdown.json +++ b/stats/pwc-language-breakdown.json @@ -1,21 +1,92 @@ { - "subtitle" : { - "text" : "Click the columns to drilldown the language breakdown. Last updated at 2019-05-22 14:06:04 GMT" + "legend" : { + "enabled" : "false" + }, + "yAxis" : { + "title" : { + "text" : "Total Solutions" + } + }, + "tooltip" : { + "pointFormat" : "{point.name}: {point.y:f}
", + "followPointer" : "true", + "headerFormat" : "" + }, + "chart" : { + "type" : "column" }, "plotOptions" : { "series" : { + "borderWidth" : 0, "dataLabels" : { "enabled" : 1, "format" : "{point.y}" - }, - "borderWidth" : 0 + } } }, + "title" : { + "text" : "Perl Weekly Challenge Language" + }, + "series" : [ + { + "colorByPoint" : "true", + "name" : "Perl Weekly Challenge Languages", + "data" : [ + { + "drilldown" : "001", + "y" : 113, + "name" : "#001 [P5=76 P6=37]" + }, + { + "name" : "#002 [P5=63 P6=32]", + "drilldown" : "002", + "y" : 95 + }, + { + "y" : 58, + "drilldown" : "003", + "name" : "#003 [P5=32 P6=26]" + }, + { + "name" : "#004 [P5=46 P6=29]", + "drilldown" : "004", + "y" : 75 + }, + { + "name" : "#005 [P5=33 P6=22]", + "drilldown" : "005", + "y" : 55 + }, + { + "name" : "#006 [P5=27 P6=14]", + "y" : 41, + "drilldown" : "006" + }, + { + "name" : "#007 [P5=24 P6=20]", + "y" : 44, + "drilldown" : "007" + }, + { + "y" : 54, + "drilldown" : "008", + "name" : "#008 [P5=34 P6=20]" + }, + { + "y" : 10, + "drilldown" : "009", + "name" : "#009 [P5=8 P6=2]" + } + ] + } + ], + "xAxis" : { + "type" : "category" + }, "drilldown" : { "series" : [ { "id" : "001", - "name" : "001", "data" : [ [ "Perl 5", @@ -25,11 +96,10 @@ "Perl 6", 37 ] - ] + ], + "name" : "001" }, { - "name" : "002", - "id" : "002", "data" : [ [ "Perl 5", @@ -39,11 +109,11 @@ "Perl 6", 32 ] - ] + ], + "name" : "002", + "id" : "002" }, { - "name" : "003", - "id" : "003", "data" : [ [ "Perl 5", @@ -53,11 +123,11 @@ "Perl 6", 26 ] - ] + ], + "name" : "003", + "id" : "003" }, { - "id" : "004", - "name" : "004", "data" : [ [ "Perl 5", @@ -67,11 +137,12 @@ "Perl 6", 29 ] - ] + ], + "name" : "004", + "id" : "004" }, { "id" : "005", - "name" : "005", "data" : [ [ "Perl 5", @@ -81,10 +152,10 @@ "Perl 6", 22 ] - ] + ], + "name" : "005" }, { - "name" : "006", "id" : "006", "data" : [ [ @@ -95,9 +166,12 @@ "Perl 6", 14 ] - ] + ], + "name" : "006" }, { + "id" : "007", + "name" : "007", "data" : [ [ "Perl 5", @@ -107,11 +181,10 @@ "Perl 6", 20 ] - ], - "name" : "007", - "id" : "007" + ] }, { + "name" : "008", "data" : [ [ "Perl 5", @@ -122,98 +195,25 @@ 20 ] ], - "id" : "008", - "name" : "008" + "id" : "008" }, { + "id" : "009", "data" : [ [ "Perl 5", - 6 + 8 ], [ "Perl 6", 2 ] ], - "name" : "009", - "id" : "009" + "name" : "009" } ] }, - "chart" : { - "type" : "column" - }, - "legend" : { - "enabled" : "false" - }, - "xAxis" : { - "type" : "category" - }, - "title" : { - "text" : "Perl Weekly Challenge Language" - }, - "tooltip" : { - "followPointer" : "true", - "headerFormat" : "", - "pointFormat" : "{point.name}: {point.y:f}
" - }, - "series" : [ - { - "name" : "Perl Weekly Challenge Languages", - "colorByPoint" : "true", - "data" : [ - { - "name" : "#001 [P5=76 P6=37]", - "y" : 113, - "drilldown" : "001" - }, - { - "drilldown" : "002", - "y" : 95, - "name" : "#002 [P5=63 P6=32]" - }, - { - "name" : "#003 [P5=32 P6=26]", - "y" : 58, - "drilldown" : "003" - }, - { - "name" : "#004 [P5=46 P6=29]", - "y" : 75, - "drilldown" : "004" - }, - { - "drilldown" : "005", - "name" : "#005 [P5=33 P6=22]", - "y" : 55 - }, - { - "drilldown" : "006", - "name" : "#006 [P5=27 P6=14]", - "y" : 41 - }, - { - "name" : "#007 [P5=24 P6=20]", - "y" : 44, - "drilldown" : "007" - }, - { - "y" : 54, - "name" : "#008 [P5=34 P6=20]", - "drilldown" : "008" - }, - { - "drilldown" : "009", - "y" : 8, - "name" : "#009 [P5=6 P6=2]" - } - ] - } - ], - "yAxis" : { - "title" : { - "text" : "Total Solutions" - } + "subtitle" : { + "text" : "Click the columns to drilldown the language breakdown. Last updated at 2019-05-23 11:04:43 GMT" } } diff --git a/stats/pwc-leaders.json b/stats/pwc-leaders.json index 570707afc8..3362e3232b 100644 --- a/stats/pwc-leaders.json +++ b/stats/pwc-leaders.json @@ -1,21 +1,14 @@ { - "title" : { - "text" : "Perl Weekly Challenge Leaders (TOP 50)" - }, "chart" : { "type" : "column" }, - "subtitle" : { - "text" : "Click the columns to drilldown the score breakdown. Last updated at 2019-05-22 14:05:56 GMT" - }, - "tooltip" : { - "headerFormat" : "", - "pointFormat" : "{point.name}: {point.y:f}
", - "followPointer" : "true" - }, - "yAxis" : { - "title" : { - "text" : "Total Score" + "plotOptions" : { + "series" : { + "dataLabels" : { + "format" : "{point.y}", + "enabled" : 1 + }, + "borderWidth" : 0 } }, "series" : [ @@ -27,99 +20,99 @@ "name" : "#1: Laurent Rosenfeld" }, { + "name" : "#2: Joelle Maslak", "drilldown" : "Joelle Maslak", - "y" : 72, - "name" : "#2: Joelle Maslak" + "y" : 72 }, { - "name" : "#3: Jaldhar H. Vyas", "y" : 64, - "drilldown" : "Jaldhar H. Vyas" + "drilldown" : "Jaldhar H. Vyas", + "name" : "#3: Jaldhar H. Vyas" }, { - "drilldown" : "Ruben Westerberg", "name" : "#4: Ruben Westerberg", - "y" : 56 + "y" : 56, + "drilldown" : "Ruben Westerberg" }, { - "name" : "#5: Simon Proctor", "y" : 50, - "drilldown" : "Simon Proctor" + "drilldown" : "Simon Proctor", + "name" : "#5: Simon Proctor" }, { + "name" : "#6: Adam Russell", "drilldown" : "Adam Russell", - "y" : 48, - "name" : "#6: Adam Russell" + "y" : 48 }, { "y" : 44, - "name" : "#7: Dr James A. Smith", - "drilldown" : "Dr James A. Smith" + "drilldown" : "Dr James A. Smith", + "name" : "#7: Dr James A. Smith" }, { - "drilldown" : "Kian-Meng Ang", "name" : "#8: Kian-Meng Ang", - "y" : 44 + "y" : 44, + "drilldown" : "Kian-Meng Ang" }, { - "drilldown" : "Arne Sommer", + "name" : "#9: Arne Sommer", "y" : 42, - "name" : "#9: Arne Sommer" + "drilldown" : "Arne Sommer" }, { + "name" : "#10: Jo Christian Oterhals", "drilldown" : "Jo Christian Oterhals", - "y" : 42, - "name" : "#10: Jo Christian Oterhals" + "y" : 42 }, { + "y" : 38, "drilldown" : "Gustavo Chaves", - "name" : "#11: Gustavo Chaves", - "y" : 38 + "name" : "#11: Gustavo Chaves" }, { - "name" : "#12: Athanasius", + "drilldown" : "Athanasius", "y" : 32, - "drilldown" : "Athanasius" + "name" : "#12: Athanasius" }, { + "y" : 32, "drilldown" : "Nick Logan", - "name" : "#13: Nick Logan", - "y" : 32 + "name" : "#13: Nick Logan" }, { - "y" : 30, "name" : "#14: Andrezgz", - "drilldown" : "Andrezgz" + "drilldown" : "Andrezgz", + "y" : 30 }, { "y" : 30, - "name" : "#15: Dave Jacoby", - "drilldown" : "Dave Jacoby" + "drilldown" : "Dave Jacoby", + "name" : "#15: Dave Jacoby" }, { - "drilldown" : "Francis Whittle", "y" : 28, + "drilldown" : "Francis Whittle", "name" : "#16: Francis Whittle" }, { - "drilldown" : "Lars Balker", "y" : 28, + "drilldown" : "Lars Balker", "name" : "#17: Lars Balker" }, { + "name" : "#18: Mark Senn", "drilldown" : "Mark Senn", - "y" : 26, - "name" : "#18: Mark Senn" + "y" : 26 }, { - "drilldown" : "Daniel Mantovani", + "name" : "#19: Daniel Mantovani", "y" : 22, - "name" : "#19: Daniel Mantovani" + "drilldown" : "Daniel Mantovani" }, { - "drilldown" : "Doug Schrag", + "name" : "#20: Doug Schrag", "y" : 20, - "name" : "#20: Doug Schrag" + "drilldown" : "Doug Schrag" }, { "drilldown" : "Duncan C. White", @@ -128,32 +121,32 @@ }, { "name" : "#22: Robert Gratza", - "y" : 16, - "drilldown" : "Robert Gratza" + "drilldown" : "Robert Gratza", + "y" : 16 }, { "y" : 14, - "name" : "#23: E. Choroba", - "drilldown" : "E. Choroba" + "drilldown" : "E. Choroba", + "name" : "#23: E. Choroba" }, { + "drilldown" : "John Barrett", "y" : 14, - "name" : "#24: John Barrett", - "drilldown" : "John Barrett" + "name" : "#24: John Barrett" }, { + "name" : "#25: Ozzy", "drilldown" : "Ozzy", - "y" : 14, - "name" : "#25: Ozzy" + "y" : 14 }, { "drilldown" : "Alicia Bielsa", - "name" : "#26: Alicia Bielsa", - "y" : 12 + "y" : 12, + "name" : "#26: Alicia Bielsa" }, { - "drilldown" : "Maxim Kolodyazhny", "name" : "#27: Maxim Kolodyazhny", + "drilldown" : "Maxim Kolodyazhny", "y" : 12 }, { @@ -162,131 +155,122 @@ "name" : "#28: Philippe Bruhat" }, { - "name" : "#29: Sergio Iglesias", "y" : 12, - "drilldown" : "Sergio Iglesias" + "drilldown" : "Sergio Iglesias", + "name" : "#29: Sergio Iglesias" + }, + { + "name" : "#30: Steven Wilson", + "drilldown" : "Steven Wilson", + "y" : 12 }, { - "name" : "#30: Arpad Toth", "y" : 10, - "drilldown" : "Arpad Toth" + "drilldown" : "Arpad Toth", + "name" : "#31: Arpad Toth" }, { + "y" : 10, "drilldown" : "Guillermo Ramos", - "name" : "#31: Guillermo Ramos", - "y" : 10 + "name" : "#32: Guillermo Ramos" }, { + "name" : "#33: Khalid", "drilldown" : "Khalid", - "name" : "#32: Khalid", "y" : 10 }, { - "drilldown" : "Steve Rogerson", - "name" : "#33: Steve Rogerson", - "y" : 10 + "name" : "#34: Steve Rogerson", + "y" : 10, + "drilldown" : "Steve Rogerson" }, { "y" : 10, - "name" : "#34: Veesh Goldman", - "drilldown" : "Veesh Goldman" + "drilldown" : "Veesh Goldman", + "name" : "#35: Veesh Goldman" }, { - "name" : "#35: Yozen Hernandez", + "name" : "#36: Yozen Hernandez", "y" : 10, "drilldown" : "Yozen Hernandez" }, { + "name" : "#37: Alex Daniel", "drilldown" : "Alex Daniel", - "name" : "#36: Alex Daniel", "y" : 8 }, { - "name" : "#37: Bob Kleemann", + "name" : "#38: Bob Kleemann", "y" : 8, "drilldown" : "Bob Kleemann" }, { + "drilldown" : "Chenyf", "y" : 8, - "name" : "#38: Chenyf", - "drilldown" : "Chenyf" + "name" : "#39: Chenyf" }, { "drilldown" : "David Kayal", - "name" : "#39: David Kayal", - "y" : 8 + "y" : 8, + "name" : "#40: David Kayal" }, { + "y" : 8, "drilldown" : "Finley", - "name" : "#40: Finley", - "y" : 8 + "name" : "#41: Finley" }, { "y" : 8, - "name" : "#41: Jaime Corchado", - "drilldown" : "Jaime Corchado" + "drilldown" : "Jaime Corchado", + "name" : "#42: Jaime Corchado" }, { "y" : 8, - "name" : "#42: Luis F. Uceta", - "drilldown" : "Luis F. Uceta" + "drilldown" : "Luis F. Uceta", + "name" : "#43: Luis F. Uceta" }, { + "y" : 8, "drilldown" : "Matt Latusek", - "name" : "#43: Matt Latusek", - "y" : 8 + "name" : "#44: Matt Latusek" }, { - "y" : 8, - "name" : "#44: Maxim Nechaev", - "drilldown" : "Maxim Nechaev" + "name" : "#45: Maxim Nechaev", + "drilldown" : "Maxim Nechaev", + "y" : 8 }, { + "name" : "#46: Neil Bowers", "drilldown" : "Neil Bowers", - "name" : "#45: Neil Bowers", "y" : 8 }, { "y" : 8, - "name" : "#46: Simon Reinhardt", - "drilldown" : "Simon Reinhardt" + "drilldown" : "Simon Reinhardt", + "name" : "#47: Simon Reinhardt" }, { - "drilldown" : "Steven Wilson", - "name" : "#47: Steven Wilson", - "y" : 8 - }, - { - "y" : 8, "name" : "#48: Tim Smith", - "drilldown" : "Tim Smith" + "drilldown" : "Tim Smith", + "y" : 8 }, { + "y" : 6, "drilldown" : "Ailbhe Tweedie", - "name" : "#49: Ailbhe Tweedie", - "y" : 6 + "name" : "#49: Ailbhe Tweedie" }, { "y" : 6, - "name" : "#50: Dave Cross", - "drilldown" : "Dave Cross" + "drilldown" : "Dave Cross", + "name" : "#50: Dave Cross" } ], "name" : "Perl Weekly Challenge Leaders", "colorByPoint" : "true" } ], - "xAxis" : { - "type" : "category" - }, - "plotOptions" : { - "series" : { - "dataLabels" : { - "enabled" : 1, - "format" : "{point.y}" - }, - "borderWidth" : 0 - } + "subtitle" : { + "text" : "Click the columns to drilldown the score breakdown. Last updated at 2019-05-23 11:04:35 GMT" }, "drilldown" : { "series" : [ @@ -297,44 +281,44 @@ "Perl 5", 16 ], - [ - "Blog", - 9 - ], [ "Perl 6", 15 + ], + [ + "Blog", + 9 ] ], "id" : "Laurent Rosenfeld" }, { - "id" : "Joelle Maslak", - "name" : "Joelle Maslak", "data" : [ [ "Perl 6", 18 ], - [ - "Blog", - 1 - ], [ "Perl 5", 17 + ], + [ + "Blog", + 1 ] - ] + ], + "name" : "Joelle Maslak", + "id" : "Joelle Maslak" }, { "id" : "Jaldhar H. Vyas", "data" : [ [ - "Perl 6", + "Perl 5", 16 ], [ - "Perl 5", + "Perl 6", 16 ] ], @@ -345,11 +329,11 @@ "name" : "Ruben Westerberg", "data" : [ [ - "Perl 5", + "Perl 6", 14 ], [ - "Perl 6", + "Perl 5", 14 ] ] @@ -357,14 +341,14 @@ { "id" : "Simon Proctor", "data" : [ - [ - "Perl 5", - 4 - ], [ "Perl 6", 15 ], + [ + "Perl 5", + 4 + ], [ "Blog", 6 @@ -373,6 +357,7 @@ "name" : "Simon Proctor" }, { + "name" : "Adam Russell", "data" : [ [ "Blog", @@ -383,82 +368,81 @@ 16 ] ], - "name" : "Adam Russell", "id" : "Adam Russell" }, { - "id" : "Dr James A. Smith", "name" : "Dr James A. Smith", "data" : [ - [ - "Perl 5", - 12 - ], [ "Perl 6", 10 + ], + [ + "Perl 5", + 12 ] - ] + ], + "id" : "Dr James A. Smith" }, { + "id" : "Kian-Meng Ang", + "name" : "Kian-Meng Ang", "data" : [ - [ - "Blog", - 8 - ], [ "Perl 5", 14 + ], + [ + "Blog", + 8 ] - ], - "name" : "Kian-Meng Ang", - "id" : "Kian-Meng Ang" + ] }, { "id" : "Arne Sommer", + "name" : "Arne Sommer", "data" : [ - [ - "Perl 6", - 14 - ], [ "Blog", 7 + ], + [ + "Perl 6", + 14 ] - ], - "name" : "Arne Sommer" + ] }, { - "name" : "Jo Christian Oterhals", "data" : [ [ "Perl 6", 10 ], - [ - "Blog", - 5 - ], [ "Perl 5", 6 + ], + [ + "Blog", + 5 ] ], + "name" : "Jo Christian Oterhals", "id" : "Jo Christian Oterhals" }, { - "id" : "Gustavo Chaves", + "name" : "Gustavo Chaves", "data" : [ - [ - "Blog", - 4 - ], [ "Perl 5", 15 + ], + [ + "Blog", + 4 ] ], - "name" : "Gustavo Chaves" + "id" : "Gustavo Chaves" }, { "data" : [ @@ -473,11 +457,11 @@ { "data" : [ [ - "Perl 5", + "Perl 6", 8 ], [ - "Perl 6", + "Perl 5", 8 ] ], @@ -485,17 +469,17 @@ "id" : "Nick Logan" }, { - "id" : "Andrezgz", + "name" : "Andrezgz", "data" : [ [ "Perl 5", 15 ] ], - "name" : "Andrezgz" + "id" : "Andrezgz" }, { - "name" : "Dave Jacoby", + "id" : "Dave Jacoby", "data" : [ [ "Blog", @@ -506,9 +490,10 @@ 7 ] ], - "id" : "Dave Jacoby" + "name" : "Dave Jacoby" }, { + "id" : "Francis Whittle", "name" : "Francis Whittle", "data" : [ [ @@ -519,12 +504,9 @@ "Blog", 4 ] - ], - "id" : "Francis Whittle" + ] }, { - "id" : "Lars Balker", - "name" : "Lars Balker", "data" : [ [ "Perl 6", @@ -534,11 +516,11 @@ "Perl 5", 10 ] - ] + ], + "name" : "Lars Balker", + "id" : "Lars Balker" }, { - "id" : "Mark Senn", - "name" : "Mark Senn", "data" : [ [ "Blog", @@ -548,40 +530,41 @@ "Perl 6", 10 ] - ] + ], + "name" : "Mark Senn", + "id" : "Mark Senn" }, { - "id" : "Daniel Mantovani", "data" : [ [ "Perl 5", 11 ] ], - "name" : "Daniel Mantovani" + "name" : "Daniel Mantovani", + "id" : "Daniel Mantovani" }, { - "name" : "Doug Schrag", "data" : [ [ "Perl 6", 10 ] ], + "name" : "Doug Schrag", "id" : "Doug Schrag" }, { "id" : "Duncan C. White", - "name" : "Duncan C. White", "data" : [ [ "Perl 5", 10 ] - ] + ], + "name" : "Duncan C. White" }, { - "id" : "Robert Gratza", "data" : [ [ "Perl 6", @@ -592,7 +575,8 @@ 2 ] ], - "name" : "Robert Gratza" + "name" : "Robert Gratza", + "id" : "Robert Gratza" }, { "id" : "E. Choroba", @@ -609,24 +593,24 @@ ] }, { + "name" : "John Barrett", "data" : [ [ "Perl 5", 7 ] ], - "name" : "John Barrett", "id" : "John Barrett" }, { + "id" : "Ozzy", "name" : "Ozzy", "data" : [ [ "Perl 6", 7 ] - ], - "id" : "Ozzy" + ] }, { "name" : "Alicia Bielsa", @@ -639,100 +623,108 @@ "id" : "Alicia Bielsa" }, { - "id" : "Maxim Kolodyazhny", - "name" : "Maxim Kolodyazhny", "data" : [ [ "Perl 5", 6 ] - ] + ], + "name" : "Maxim Kolodyazhny", + "id" : "Maxim Kolodyazhny" }, { - "name" : "Philippe Bruhat", "data" : [ - [ - "Perl 5", - 4 - ], [ "Blog", 2 + ], + [ + "Perl 5", + 4 ] ], + "name" : "Philippe Bruhat", "id" : "Philippe Bruhat" }, { - "id" : "Sergio Iglesias", "name" : "Sergio Iglesias", "data" : [ [ "Perl 5", 6 ] - ] + ], + "id" : "Sergio Iglesias" + }, + { + "name" : "Steven Wilson", + "data" : [ + [ + "Perl 5", + 6 + ] + ], + "id" : "Steven Wilson" }, { - "name" : "Arpad Toth", "data" : [ [ "Perl 5", 5 ] ], + "name" : "Arpad Toth", "id" : "Arpad Toth" }, { - "name" : "Guillermo Ramos", + "id" : "Guillermo Ramos", "data" : [ [ "Perl 5", 5 ] ], - "id" : "Guillermo Ramos" + "name" : "Guillermo Ramos" }, { - "id" : "Khalid", + "name" : "Khalid", "data" : [ - [ - "Blog", - 1 - ], [ "Perl 5", 4 + ], + [ + "Blog", + 1 ] ], - "name" : "Khalid" + "id" : "Khalid" }, { "id" : "Steve Rogerson", - "name" : "Steve Rogerson", "data" : [ - [ - "Perl 5", - 3 - ], [ "Perl 6", 2 + ], + [ + "Perl 5", + 3 ] - ] + ], + "name" : "Steve Rogerson" }, { - "id" : "Veesh Goldman", - "name" : "Veesh Goldman", "data" : [ [ "Perl 5", 5 ] - ] + ], + "name" : "Veesh Goldman", + "id" : "Veesh Goldman" }, { - "id" : "Yozen Hernandez", - "name" : "Yozen Hernandez", "data" : [ [ "Perl 5", @@ -742,17 +734,19 @@ "Blog", 1 ] - ] + ], + "name" : "Yozen Hernandez", + "id" : "Yozen Hernandez" }, { - "id" : "Alex Daniel", "name" : "Alex Daniel", "data" : [ [ "Perl 6", 4 ] - ] + ], + "id" : "Alex Daniel" }, { "id" : "Bob Kleemann", @@ -765,34 +759,34 @@ "name" : "Bob Kleemann" }, { - "id" : "Chenyf", - "name" : "Chenyf", "data" : [ [ "Perl 6", 4 ] - ] + ], + "name" : "Chenyf", + "id" : "Chenyf" }, { - "id" : "David Kayal", "data" : [ [ "Perl 5", 4 ] ], - "name" : "David Kayal" + "name" : "David Kayal", + "id" : "David Kayal" }, { - "name" : "Finley", + "id" : "Finley", "data" : [ [ "Perl 6", 4 ] ], - "id" : "Finley" + "name" : "Finley" }, { "name" : "Jaime Corchado", @@ -806,43 +800,43 @@ }, { "id" : "Luis F. Uceta", - "name" : "Luis F. Uceta", "data" : [ [ "Perl 6", 4 ] - ] + ], + "name" : "Luis F. Uceta" }, { - "id" : "Matt Latusek", - "name" : "Matt Latusek", "data" : [ [ "Perl 5", 4 ] - ] + ], + "name" : "Matt Latusek", + "id" : "Matt Latusek" }, { "id" : "Maxim Nechaev", + "name" : "Maxim Nechaev", "data" : [ [ "Perl 5", 4 ] - ], - "name" : "Maxim Nechaev" + ] }, { + "id" : "Neil Bowers", + "name" : "Neil Bowers", "data" : [ [ "Perl 5", 4 ] - ], - "name" : "Neil Bowers", - "id" : "Neil Bowers" + ] }, { "id" : "Simon Reinhardt", @@ -855,51 +849,57 @@ "name" : "Simon Reinhardt" }, { - "data" : [ - [ - "Perl 5", - 4 - ] - ], - "name" : "Steven Wilson", - "id" : "Steven Wilson" - }, - { + "name" : "Tim Smith", "data" : [ [ "Perl 6", 4 ] ], - "name" : "Tim Smith", "id" : "Tim Smith" }, { + "id" : "Ailbhe Tweedie", "data" : [ [ "Perl 5", 3 ] ], - "name" : "Ailbhe Tweedie", - "id" : "Ailbhe Tweedie" + "name" : "Ailbhe Tweedie" }, { - "id" : "Dave Cross", "data" : [ - [ - "Perl 5", - 2 - ], [ "Blog", 1 + ], + [ + "Perl 5", + 2 ] ], - "name" : "Dave Cross" + "name" : "Dave Cross", + "id" : "Dave Cross" } ] }, + "tooltip" : { + "headerFormat" : "", + "pointFormat" : "{point.name}: {point.y:f}
", + "followPointer" : "true" + }, + "title" : { + "text" : "Perl Weekly Challenge Leaders (TOP 50)" + }, + "yAxis" : { + "title" : { + "text" : "Total Score" + } + }, + "xAxis" : { + "type" : "category" + }, "legend" : { "enabled" : "false" } diff --git a/stats/pwc-summary-1-30.json b/stats/pwc-summary-1-30.json index 8dc2dbc518..9463d8dc6d 100644 --- a/stats/pwc-summary-1-30.json +++ b/stats/pwc-summary-1-30.json @@ -1,4 +1,62 @@ { + "plotOptions" : { + "column" : { + "stacking" : "percent" + } + }, + "tooltip" : { + "shared" : 1, + "pointFormat" : "{series.name}: {point.y}
" + }, + "yAxis" : { + "title" : { + "text" : "" + }, + "min" : 0 + }, + "xAxis" : { + "categories" : [ + "Abigail", + "Adam Russell", + "Ailbhe Tweedie", + "Alex Daniel", + "Alexander Karelas", + "Alexey Melezhik", + "Alicia Bielsa", + "Andrezgz", + "Antonio Gamiz", + "Arne Sommer", + "Arpad Toth", + "Athanasius", + "Aubrey Quarcoo", + "Bill Palmer", + "Bob Kleemann", + "Clive Holloway", + "Daniel Mantovani", + "Dave Cross", + "Dave Jacoby", + "David Kayal", + "Denis Yurashku", + "Doug Schrag", + "Duncan C. White", + "E. Choroba", + "Eddy HS", + "Finley", + "Francis Whittle", + "Fred Zinn", + "Freddie B", + "Guillermo Ramos" + ] + }, + "subtitle" : { + "text" : "[Champions: 30] Last updated at 2019-05-23 11:04:25 GMT" + }, + "title" : { + "text" : "Perl Weekly Challenge - 2019" + }, + "chart" : { + "type" : "column" + }, "series" : [ { "data" : [ @@ -36,7 +94,6 @@ "name" : "Perl 5" }, { - "name" : "Perl 6", "data" : [ 0, 0, @@ -68,65 +125,8 @@ 0, 0, 0 - ] - } - ], - "title" : { - "text" : "Perl Weekly Challenge - 2019" - }, - "tooltip" : { - "shared" : 1, - "pointFormat" : "{series.name}: {point.y}
" - }, - "chart" : { - "type" : "column" - }, - "yAxis" : { - "min" : 0, - "title" : { - "text" : "" - } - }, - "subtitle" : { - "text" : "[Champions: 30] Last updated at 2019-05-22 14:05:48 GMT" - }, - "plotOptions" : { - "column" : { - "stacking" : "percent" + ], + "name" : "Perl 6" } - }, - "xAxis" : { - "categories" : [ - "Abigail", - "Adam Russell", - "Ailbhe Tweedie", - "Alex Daniel", - "Alexander Karelas", - "Alexey Melezhik", - "Alicia Bielsa", - "Andrezgz", - "Antonio Gamiz", - "Arne Sommer", - "Arpad Toth", - "Athanasius", - "Aubrey Quarcoo", - "Bill Palmer", - "Bob Kleemann", - "Clive Holloway", - "Daniel Mantovani", - "Dave Cross", - "Dave Jacoby", - "David Kayal", - "Denis Yurashku", - "Doug Schrag", - "Duncan C. White", - "E. Choroba", - "Eddy HS", - "Finley", - "Francis Whittle", - "Fred Zinn", - "Freddie B", - "Guillermo Ramos" - ] - } + ] } diff --git a/stats/pwc-summary-31-60.json b/stats/pwc-summary-31-60.json index 01f3f0db80..a2a45fb421 100644 --- a/stats/pwc-summary-31-60.json +++ b/stats/pwc-summary-31-60.json @@ -1,16 +1,28 @@ { - "title" : { - "text" : "Perl Weekly Challenge - 2019" + "plotOptions" : { + "column" : { + "stacking" : "percent" + } }, "tooltip" : { - "shared" : 1, - "pointFormat" : "{series.name}: {point.y}
" + "pointFormat" : "{series.name}: {point.y}
", + "shared" : 1 + }, + "yAxis" : { + "min" : 0, + "title" : { + "text" : "" + } + }, + "title" : { + "text" : "Perl Weekly Challenge - 2019" }, "chart" : { "type" : "column" }, "series" : [ { + "name" : "Perl 5", "data" : [ 15, 0, @@ -42,10 +54,10 @@ 0, 2, 0 - ], - "name" : "Perl 5" + ] }, { + "name" : "Perl 6", "data" : [ 0, 0, @@ -77,10 +89,12 @@ 4, 0, 7 - ], - "name" : "Perl 6" + ] } ], + "subtitle" : { + "text" : "[Champions: 30] Last updated at 2019-05-23 11:04:25 GMT" + }, "xAxis" : { "categories" : [ "Gustavo Chaves", @@ -114,19 +128,5 @@ "Oleksii Tsvietnov", "Ozzy" ] - }, - "subtitle" : { - "text" : "[Champions: 30] Last updated at 2019-05-22 14:05:48 GMT" - }, - "yAxis" : { - "min" : 0, - "title" : { - "text" : "" - } - }, - "plotOptions" : { - "column" : { - "stacking" : "percent" - } } } diff --git a/stats/pwc-summary-61-90.json b/stats/pwc-summary-61-90.json index 54f594b2df..a69bd261e5 100644 --- a/stats/pwc-summary-61-90.json +++ b/stats/pwc-summary-61-90.json @@ -1,11 +1,37 @@ { + "subtitle" : { + "text" : "[Champions: 23] Last updated at 2019-05-23 11:04:25 GMT" + }, + "xAxis" : { + "categories" : [ + "Pavel Jurca", + "Pavel Starikov", + "Pete Houston", + "Pete Sergeant", + "Philippe Bruhat", + "Prajith P", + "Robert Gratza", + "Ruben Westerberg", + "Sean Meininger", + "Sergio Iglesias", + "Simon Proctor", + "Simon Reinhardt", + "Steve Rogerson", + "Steven Lembark", + "Steven Wilson", + "Tiago Stock", + "Tim Smith", + "Tore Andersson", + "Luis F. Uceta", + "Veesh Goldman", + "William Gilmore", + "Yary H", + "Yozen Hernandez" + ] + }, "title" : { "text" : "Perl Weekly Challenge - 2019" }, - "tooltip" : { - "pointFormat" : "{series.name}: {point.y}
", - "shared" : 1 - }, "chart" : { "type" : "column" }, @@ -26,7 +52,7 @@ 4, 3, 0, - 4, + 6, 1, 0, 2, @@ -67,45 +93,19 @@ "name" : "Perl 6" } ], - "xAxis" : { - "categories" : [ - "Pavel Jurca", - "Pavel Starikov", - "Pete Houston", - "Pete Sergeant", - "Philippe Bruhat", - "Prajith P", - "Robert Gratza", - "Ruben Westerberg", - "Sean Meininger", - "Sergio Iglesias", - "Simon Proctor", - "Simon Reinhardt", - "Steve Rogerson", - "Steven Lembark", - "Steven Wilson", - "Tiago Stock", - "Tim Smith", - "Tore Andersson", - "Luis F. Uceta", - "Veesh Goldman", - "William Gilmore", - "Yary H", - "Yozen Hernandez" - ] + "plotOptions" : { + "column" : { + "stacking" : "percent" + } + }, + "tooltip" : { + "shared" : 1, + "pointFormat" : "{series.name}: {point.y}
" }, "yAxis" : { "title" : { "text" : "" }, "min" : 0 - }, - "subtitle" : { - "text" : "[Champions: 23] Last updated at 2019-05-22 14:05:48 GMT" - }, - "plotOptions" : { - "column" : { - "stacking" : "percent" - } } } diff --git a/stats/pwc-summary.json b/stats/pwc-summary.json index 6b026f30cf..dd48362fb4 100644 --- a/stats/pwc-summary.json +++ b/stats/pwc-summary.json @@ -1,9 +1,94 @@ { - "title" : { - "text" : "Perl Weekly Challenge - 2019" + "xAxis" : { + "categories" : [ + "Abigail", + "Adam Russell", + "Ailbhe Tweedie", + "Alex Daniel", + "Alexander Karelas", + "Alexey Melezhik", + "Alicia Bielsa", + "Andrezgz", + "Antonio Gamiz", + "Arne Sommer", + "Arpad Toth", + "Athanasius", + "Aubrey Quarcoo", + "Bill Palmer", + "Bob Kleemann", + "Clive Holloway", + "Daniel Mantovani", + "Dave Cross", + "Dave Jacoby", + "David Kayal", + "Denis Yurashku", + "Doug Schrag", + "Duncan C. White", + "E. Choroba", + "Eddy HS", + "Finley", + "Francis Whittle", + "Fred Zinn", + "Freddie B", + "Guillermo Ramos", + "Gustavo Chaves", + "Jacques Guinnebault", + "Jaime Corchado", + "Jaldhar H. Vyas", + "Dr James A. Smith", + "Jeff", + "Jeremy Carman", + "Jim Bacon", + "JJ Merelo", + "Jo Christian Oterhals", + "Joelle Maslak", + "John Barrett", + "Juan Caballero", + "Khalid", + "Kian-Meng Ang", + "Kivanc Yazan", + "Lars Balker", + "Laurent Rosenfeld", + "Magnus Woldrich", + "Mark Senn", + "Martin Mugeni", + "Matt Latusek", + "Maxim Kolodyazhny", + "Maxim Nechaev", + "Michael Schaap", + "Neil Bowers", + "Nick Logan", + "Chenyf", + "Oleksii Tsvietnov", + "Ozzy", + "Pavel Jurca", + "Pavel Starikov", + "Pete Houston", + "Pete Sergeant", + "Philippe Bruhat", + "Prajith P", + "Robert Gratza", + "Ruben Westerberg", + "Sean Meininger", + "Sergio Iglesias", + "Simon Proctor", + "Simon Reinhardt", + "Steve Rogerson", + "Steven Lembark", + "Steven Wilson", + "Tiago Stock", + "Tim Smith", + "Tore Andersson", + "Luis F. Uceta", + "Veesh Goldman", + "William Gilmore", + "Yary H", + "Yozen Hernandez" + ] }, "series" : [ { + "name" : "Perl 5", "data" : [ 2, 16, @@ -79,7 +164,7 @@ 4, 3, 0, - 4, + 6, 1, 0, 2, @@ -88,11 +173,9 @@ 1, 1, 4 - ], - "name" : "Perl 5" + ] }, { - "name" : "Perl 6", "data" : [ 0, 0, @@ -177,115 +260,32 @@ 0, 1, 0 - ] + ], + "name" : "Perl 6" } ], - "subtitle" : { - "text" : "[Champions: 83] Last updated at 2019-05-22 14:05:48 GMT" - }, - "xAxis" : { - "categories" : [ - "Abigail", - "Adam Russell", - "Ailbhe Tweedie", - "Alex Daniel", - "Alexander Karelas", - "Alexey Melezhik", - "Alicia Bielsa", - "Andrezgz", - "Antonio Gamiz", - "Arne Sommer", - "Arpad Toth", - "Athanasius", - "Aubrey Quarcoo", - "Bill Palmer", - "Bob Kleemann", - "Clive Holloway", - "Daniel Mantovani", - "Dave Cross", - "Dave Jacoby", - "David Kayal", - "Denis Yurashku", - "Doug Schrag", - "Duncan C. White", - "E. Choroba", - "Eddy HS", - "Finley", - "Francis Whittle", - "Fred Zinn", - "Freddie B", - "Guillermo Ramos", - "Gustavo Chaves", - "Jacques Guinnebault", - "Jaime Corchado", - "Jaldhar H. Vyas", - "Dr James A. Smith", - "Jeff", - "Jeremy Carman", - "Jim Bacon", - "JJ Merelo", - "Jo Christian Oterhals", - "Joelle Maslak", - "John Barrett", - "Juan Caballero", - "Khalid", - "Kian-Meng Ang", - "Kivanc Yazan", - "Lars Balker", - "Laurent Rosenfeld", - "Magnus Woldrich", - "Mark Senn", - "Martin Mugeni", - "Matt Latusek", - "Maxim Kolodyazhny", - "Maxim Nechaev", - "Michael Schaap", - "Neil Bowers", - "Nick Logan", - "Chenyf", - "Oleksii Tsvietnov", - "Ozzy", - "Pavel Jurca", - "Pavel Starikov", - "Pete Houston", - "Pete Sergeant", - "Philippe Bruhat", - "Prajith P", - "Robert Gratza", - "Ruben Westerberg", - "Sean Meininger", - "Sergio Iglesias", - "Simon Proctor", - "Simon Reinhardt", - "Steve Rogerson", - "Steven Lembark", - "Steven Wilson", - "Tiago Stock", - "Tim Smith", - "Tore Andersson", - "Luis F. Uceta", - "Veesh Goldman", - "William Gilmore", - "Yary H", - "Yozen Hernandez" - ] - }, "plotOptions" : { "column" : { "stacking" : "percent" } }, - "yAxis" : { - "min" : 0, - "title" : { - "text" : "" - } - }, "chart" : { "type" : "column" }, "tooltip" : { "pointFormat" : "{series.name}: {point.y}
", "shared" : 1 + }, + "title" : { + "text" : "Perl Weekly Challenge - 2019" + }, + "yAxis" : { + "min" : 0, + "title" : { + "text" : "" + } + }, + "subtitle" : { + "text" : "[Champions: 83] Last updated at 2019-05-23 11:04:25 GMT" } } -- cgit