From 66f5933ed549161b20240cf8efc75e99fb1ff908 Mon Sep 17 00:00:00 2001 From: Mohammad S Anwar Date: Sun, 25 Sep 2022 20:49:26 +0100 Subject: - Added solutions by Solathian. --- challenge-183/solathian/perl/183ch-1.pl | 67 -- challenge-183/solathian/perl/183ch-2.pl | 250 ------ challenge-183/solathian/perl/ch-1.pl | 67 ++ challenge-183/solathian/perl/ch-2.pl | 250 ++++++ stats/pwc-current.json | 359 +++++---- stats/pwc-language-breakdown-summary.json | 56 +- stats/pwc-language-breakdown.json | 1236 ++++++++++++++--------------- stats/pwc-leaders.json | 768 +++++++++--------- stats/pwc-summary-1-30.json | 54 +- stats/pwc-summary-121-150.json | 38 +- stats/pwc-summary-151-180.json | 32 +- stats/pwc-summary-181-210.json | 48 +- stats/pwc-summary-211-240.json | 104 +-- stats/pwc-summary-241-270.json | 96 +-- stats/pwc-summary-31-60.json | 40 +- stats/pwc-summary-61-90.json | 36 +- stats/pwc-summary-91-120.json | 92 +-- stats/pwc-summary.json | 38 +- 18 files changed, 1823 insertions(+), 1808 deletions(-) delete mode 100644 challenge-183/solathian/perl/183ch-1.pl delete mode 100644 challenge-183/solathian/perl/183ch-2.pl create mode 100644 challenge-183/solathian/perl/ch-1.pl create mode 100644 challenge-183/solathian/perl/ch-2.pl diff --git a/challenge-183/solathian/perl/183ch-1.pl b/challenge-183/solathian/perl/183ch-1.pl deleted file mode 100644 index e49b5328bd..0000000000 --- a/challenge-183/solathian/perl/183ch-1.pl +++ /dev/null @@ -1,67 +0,0 @@ -#!usr/bin/perl -w - -# Created for perl weekly challenge - 183 - 1 - -# You are given list of arrayrefs. -# Write a script to remove the duplicate arrayrefs from the given list. - -use strict; -use warnings; -use feature 'say'; - -no warnings 'experimental::smartmatch'; - -use constant -{ - FALSE => 0, - TRUE => 1, -}; - - -#example calls -# my @list = ([1,2], [3,4], [5,6], [1,2]); # ([1,2], [3,4], [5,6]) -# my @list = ([1,2], [3,4], [5,6], [1,2], [1,2,3], [6,5]); -# my @list = ([9,1], [3,7], [2,5], [2,5]); # ([9, 1], [3,7], [2,5]) - -# findDuplicates(\@list); - -sub findDuplicates -{ - my $arrayRef = shift; - my @arrayStorage; - - print "("; # print the starting parenthesis - - foreach my $subArray (@$arrayRef) - { - - # check that if current element matches any of the previous ones - my $duplicateFlag = FALSE; - foreach my $storedElem (@arrayStorage) - { - if($storedElem ~~ $subArray) # using smartmatch - { - $duplicateFlag = TRUE; - last; - } - - } - - # if it is a duplicated element - next if($duplicateFlag == TRUE); - - # start printing out the collected elements - print(",") if( 0 < @arrayStorage ); - print("[".join(',',@$subArray)."]"); - - # store the element - push(@arrayStorage, $subArray); - - - } - - print(")"); # print the closing parenthesis - - return \@arrayStorage; -} - diff --git a/challenge-183/solathian/perl/183ch-2.pl b/challenge-183/solathian/perl/183ch-2.pl deleted file mode 100644 index cbac88953b..0000000000 --- a/challenge-183/solathian/perl/183ch-2.pl +++ /dev/null @@ -1,250 +0,0 @@ -#!usr/bin/perl -w - -# Created for perl weekly challenge - 183 - 2 - -# You are given two dates, $date1 and $date2 in the format YYYY-MM-DD. -# Write a script to find the difference between the given dates in terms on years and days only. - -# The examples are bad since leapdays are not taken into account - -use strict; -use warnings; - -use feature 'say'; -use DateTime; - - - -#example inputs - -# my $date1 = "2019-02-10"; -# my $date2 = "2022-11-01"; # Output: 3 years 264 days ->265 - -# my $date1 = "2020-09-15"; -# my $date2 = "2022-03-29"; # Output: 1 year 195 days -> ok - - -# my $date1 = "2019-12-01"; -# my $date2 = "2019-12-31"; # Output: 30 day -> ok - -# my $date1 = "2019-12-31"; -# my $date2 = "2020-12-31"; # Output: 1 year -> and 1 day - -# my $date1 = "2019-12-31"; -# my $date2 = "2021-12-31"; # Output: 2 years -> and 1 day - -# my $date1 = "2020-09-15"; -# my $date2 = "2021-09-16"; # Output: 2 years -> and 1 day - -# my $date1 = "2019-09-15"; -# my $date2 = "2021-09-16"; # Output: 2 years 1day -> and 2day - -my $date1 = "2019-09-15"; -my $date2 = "2021-09-16"; # Output: 2 years 1day -> and 2day - - -# my own tests -# my $date1 = "934-2-10"; -# my $date2 = "934-1-5"; # not valid - -# my $date1 = "1932-2-29"; -# my $date2 = "1932-2-29"; #not valid - -# my $date1 = "2020-12-32"; -# my $date2 = "2021-2-27"; #not valid - -getDuration($date1, $date2); - - sub createDateObj -{ - my ($year, $month, $day) = @_; - - my $dateObj = DateTime->new( - year => $year, - month => $month, - day => $day, - hour => 0, - minute => 0, - second => 0, - nanosecond => 0, - ); - - return $dateObj; -} - -sub isLeapYear -{ - my $year = shift; - my $returnval = 0; - - if( ($year % 4) == 0) - { - # it is not a leapyear if it can be divied by 100 - if( ($year % 100) == 0) - { - #but is a leapyear if it can be divided by 400 - if( ($year % 400) == 0) - { - $returnval = 1; - } - } - - #it is leapyear - else - { - $returnval = 1; - } - } - - return $returnval; - -} -sub getDuration -{ - my($start, $end) = @_; - - my ($startYear, $startMonth, $startDay) = ($start =~ m/^ (\d{1,4}) - (\d{1,2}) - (\d{1,2}) $/x ); - my ($endYear, $endMonth, $endDay) = ($end =~ m/^ (\d{1,4}) - (\d{1,2}) - (\d{1,2}) $/x ); - - if( (not defined $startYear) || (not defined $startMonth) || (not defined $startDay) || - (not defined $endYear) || (not defined $endMonth) || (not defined $endDay)) - { - die("Please give valid date in yyyy-mm-dd format!!"); - } - - #check if the end date is greater than the start date - if( $startYear > $endYear ) - { - die "Start year is greater than previous year"; - } - else - { - if( ($startYear == $endYear) && ($startMonth > $endMonth)) - { - die "Start month is greater than previous month. Died"; - } - else - { - if( ($startDay == $endDay) && ($startDay > $endDay)) - { - die "Start day is greater than previous day. Died"; - } - else - { - # date is valid yay! - } - } - } - - my $startDate = createDateObj($startYear, $startMonth, $startDay); - my $endDate = createDateObj($endYear, $endMonth, $endDay); - - - my $duration = $endDate->delta_days($startDate); - - my $days = $duration->{days}; - - say qq(Start $startYear \t $startMonth \t $startDay); - say qq(Start $endYear \t $endMonth \t $endDay); - say qq(Number of days between the two dates: $days); - - my $durationInYears = int($endYear) - int($startYear); - my $returnYear; - my $leapDays = 0; - - my $resultYears; - my $resultDays; - - #if it is shorter than 1 year do not bothe with leapyear check - if($durationInYears < 1 ) - { - $returnYear = 0; - $resultDays = $days; - - } - - # leapyear checks - else - { - for(int($startYear)..int($endYear)) - { - $leapDays += isLeapYear($_); - } - - # to eliminate the possibility of adding leapdays if the starting day is after 02 28 - if( isLeapYear(int($startYear)) ) - { - #if it is not february or january - if( (int($startMonth)>2) ) - { - $leapDays--; - } - - # it is january or february - else - { - if( (int($startMonth) == 2) && (int($startDay) == 29)) - { - $leapDays--; - } - } - } - - # to eliminate the possibility of adding leapdays if the ending day is before 02.28 - if( isLeapYear(int($endYear)) ) - { - #if it is not february or january - if( (int($endMonth)>2) ) - { - $leapDays--; - #do nothing - } - - # the duration ends after 02.29 a leapday is present - else - { - - } - } - - say qq(Number of leapdays in the duration $leapDays); - my $daysWithoutLeapDays = $days - $leapDays; - - $resultYears = int($daysWithoutLeapDays / 365); - - $resultDays = ($days - $resultYears*365); - - } - - - # plural for for words - my $yearPlural= ""; - if($resultYears > 1) - { - $yearPlural ="s"; - } - - my $dayPlural= ""; - if($resultDays > 1) - { - $dayPlural ="s"; - } - - - if(not defined $resultYears) - { - say qq($resultDays day$dayPlural ); - } - elsif( $resultDays == 0) - { - say qq($resultYears year$yearPlural); - } - - else - { - - say qq($resultYears year$yearPlural and $resultDays day$dayPlural ); - } - - -} #END OF - sub getDuration \ No newline at end of file diff --git a/challenge-183/solathian/perl/ch-1.pl b/challenge-183/solathian/perl/ch-1.pl new file mode 100644 index 0000000000..e49b5328bd --- /dev/null +++ b/challenge-183/solathian/perl/ch-1.pl @@ -0,0 +1,67 @@ +#!usr/bin/perl -w + +# Created for perl weekly challenge - 183 - 1 + +# You are given list of arrayrefs. +# Write a script to remove the duplicate arrayrefs from the given list. + +use strict; +use warnings; +use feature 'say'; + +no warnings 'experimental::smartmatch'; + +use constant +{ + FALSE => 0, + TRUE => 1, +}; + + +#example calls +# my @list = ([1,2], [3,4], [5,6], [1,2]); # ([1,2], [3,4], [5,6]) +# my @list = ([1,2], [3,4], [5,6], [1,2], [1,2,3], [6,5]); +# my @list = ([9,1], [3,7], [2,5], [2,5]); # ([9, 1], [3,7], [2,5]) + +# findDuplicates(\@list); + +sub findDuplicates +{ + my $arrayRef = shift; + my @arrayStorage; + + print "("; # print the starting parenthesis + + foreach my $subArray (@$arrayRef) + { + + # check that if current element matches any of the previous ones + my $duplicateFlag = FALSE; + foreach my $storedElem (@arrayStorage) + { + if($storedElem ~~ $subArray) # using smartmatch + { + $duplicateFlag = TRUE; + last; + } + + } + + # if it is a duplicated element + next if($duplicateFlag == TRUE); + + # start printing out the collected elements + print(",") if( 0 < @arrayStorage ); + print("[".join(',',@$subArray)."]"); + + # store the element + push(@arrayStorage, $subArray); + + + } + + print(")"); # print the closing parenthesis + + return \@arrayStorage; +} + diff --git a/challenge-183/solathian/perl/ch-2.pl b/challenge-183/solathian/perl/ch-2.pl new file mode 100644 index 0000000000..cbac88953b --- /dev/null +++ b/challenge-183/solathian/perl/ch-2.pl @@ -0,0 +1,250 @@ +#!usr/bin/perl -w + +# Created for perl weekly challenge - 183 - 2 + +# You are given two dates, $date1 and $date2 in the format YYYY-MM-DD. +# Write a script to find the difference between the given dates in terms on years and days only. + +# The examples are bad since leapdays are not taken into account + +use strict; +use warnings; + +use feature 'say'; +use DateTime; + + + +#example inputs + +# my $date1 = "2019-02-10"; +# my $date2 = "2022-11-01"; # Output: 3 years 264 days ->265 + +# my $date1 = "2020-09-15"; +# my $date2 = "2022-03-29"; # Output: 1 year 195 days -> ok + + +# my $date1 = "2019-12-01"; +# my $date2 = "2019-12-31"; # Output: 30 day -> ok + +# my $date1 = "2019-12-31"; +# my $date2 = "2020-12-31"; # Output: 1 year -> and 1 day + +# my $date1 = "2019-12-31"; +# my $date2 = "2021-12-31"; # Output: 2 years -> and 1 day + +# my $date1 = "2020-09-15"; +# my $date2 = "2021-09-16"; # Output: 2 years -> and 1 day + +# my $date1 = "2019-09-15"; +# my $date2 = "2021-09-16"; # Output: 2 years 1day -> and 2day + +my $date1 = "2019-09-15"; +my $date2 = "2021-09-16"; # Output: 2 years 1day -> and 2day + + +# my own tests +# my $date1 = "934-2-10"; +# my $date2 = "934-1-5"; # not valid + +# my $date1 = "1932-2-29"; +# my $date2 = "1932-2-29"; #not valid + +# my $date1 = "2020-12-32"; +# my $date2 = "2021-2-27"; #not valid + +getDuration($date1, $date2); + + sub createDateObj +{ + my ($year, $month, $day) = @_; + + my $dateObj = DateTime->new( + year => $year, + month => $month, + day => $day, + hour => 0, + minute => 0, + second => 0, + nanosecond => 0, + ); + + return $dateObj; +} + +sub isLeapYear +{ + my $year = shift; + my $returnval = 0; + + if( ($year % 4) == 0) + { + # it is not a leapyear if it can be divied by 100 + if( ($year % 100) == 0) + { + #but is a leapyear if it can be divided by 400 + if( ($year % 400) == 0) + { + $returnval = 1; + } + } + + #it is leapyear + else + { + $returnval = 1; + } + } + + return $returnval; + +} +sub getDuration +{ + my($start, $end) = @_; + + my ($startYear, $startMonth, $startDay) = ($start =~ m/^ (\d{1,4}) - (\d{1,2}) - (\d{1,2}) $/x ); + my ($endYear, $endMonth, $endDay) = ($end =~ m/^ (\d{1,4}) - (\d{1,2}) - (\d{1,2}) $/x ); + + if( (not defined $startYear) || (not defined $startMonth) || (not defined $startDay) || + (not defined $endYear) || (not defined $endMonth) || (not defined $endDay)) + { + die("Please give valid date in yyyy-mm-dd format!!"); + } + + #check if the end date is greater than the start date + if( $startYear > $endYear ) + { + die "Start year is greater than previous year"; + } + else + { + if( ($startYear == $endYear) && ($startMonth > $endMonth)) + { + die "Start month is greater than previous month. Died"; + } + else + { + if( ($startDay == $endDay) && ($startDay > $endDay)) + { + die "Start day is greater than previous day. Died"; + } + else + { + # date is valid yay! + } + } + } + + my $startDate = createDateObj($startYear, $startMonth, $startDay); + my $endDate = createDateObj($endYear, $endMonth, $endDay); + + + my $duration = $endDate->delta_days($startDate); + + my $days = $duration->{days}; + + say qq(Start $startYear \t $startMonth \t $startDay); + say qq(Start $endYear \t $endMonth \t $endDay); + say qq(Number of days between the two dates: $days); + + my $durationInYears = int($endYear) - int($startYear); + my $returnYear; + my $leapDays = 0; + + my $resultYears; + my $resultDays; + + #if it is shorter than 1 year do not bothe with leapyear check + if($durationInYears < 1 ) + { + $returnYear = 0; + $resultDays = $days; + + } + + # leapyear checks + else + { + for(int($startYear)..int($endYear)) + { + $leapDays += isLeapYear($_); + } + + # to eliminate the possibility of adding leapdays if the starting day is after 02 28 + if( isLeapYear(int($startYear)) ) + { + #if it is not february or january + if( (int($startMonth)>2) ) + { + $leapDays--; + } + + # it is january or february + else + { + if( (int($startMonth) == 2) && (int($startDay) == 29)) + { + $leapDays--; + } + } + } + + # to eliminate the possibility of adding leapdays if the ending day is before 02.28 + if( isLeapYear(int($endYear)) ) + { + #if it is not february or january + if( (int($endMonth)>2) ) + { + $leapDays--; + #do nothing + } + + # the duration ends after 02.29 a leapday is present + else + { + + } + } + + say qq(Number of leapdays in the duration $leapDays); + my $daysWithoutLeapDays = $days - $leapDays; + + $resultYears = int($daysWithoutLeapDays / 365); + + $resultDays = ($days - $resultYears*365); + + } + + + # plural for for words + my $yearPlural= ""; + if($resultYears > 1) + { + $yearPlural ="s"; + } + + my $dayPlural= ""; + if($resultDays > 1) + { + $dayPlural ="s"; + } + + + if(not defined $resultYears) + { + say qq($resultDays day$dayPlural ); + } + elsif( $resultDays == 0) + { + say qq($resultYears year$yearPlural); + } + + else + { + + say qq($resultYears year$yearPlural and $resultDays day$dayPlural ); + } + + +} #END OF - sub getDuration \ No newline at end of file diff --git a/stats/pwc-current.json b/stats/pwc-current.json index 60ced85135..178d6a7879 100644 --- a/stats/pwc-current.json +++ b/stats/pwc-current.json @@ -1,149 +1,20 @@ { - "subtitle" : { - "text" : "[Champions: 20] Last updated at 2022-09-25 19:40:14 GMT" - }, - "plotOptions" : { - "series" : { - "dataLabels" : { - "enabled" : 1, - "format" : "{point.y}" - }, - "borderWidth" : 0 - } - }, - "xAxis" : { - "type" : "category" - }, - "series" : [ - { - "name" : "The Weekly Challenge - 183", - "colorByPoint" : 1, - "data" : [ - { - "y" : 1, - "name" : "Cheok-Yin Fung", - "drilldown" : "Cheok-Yin Fung" - }, - { - "drilldown" : "E. Choroba", - "name" : "E. Choroba", - "y" : 2 - }, - { - "drilldown" : "Flavio Poletti", - "name" : "Flavio Poletti", - "y" : 5 - }, - { - "y" : 2, - "drilldown" : "Jan Krnavek", - "name" : "Jan Krnavek" - }, - { - "y" : 2, - "name" : "Jorg Sommrey", - "drilldown" : "Jorg Sommrey" - }, - { - "y" : 8, - "drilldown" : "Luca Ferrari", - "name" : "Luca Ferrari" - }, - { - "name" : "Mark Anderson", - "drilldown" : "Mark Anderson", - "y" : 2 - }, - { - "name" : "Marton Polgar", - "drilldown" : "Marton Polgar", - "y" : 2 - }, - { - "name" : "Matthew Neleigh", - "drilldown" : "Matthew Neleigh", - "y" : 1 - }, - { - "y" : 2, - "name" : "Mohammad S Anwar", - "drilldown" : "Mohammad S Anwar" - }, - { - "y" : 2, - "drilldown" : "Niels van Dijke", - "name" : "Niels van Dijke" - }, - { - "y" : 3, - "name" : "Peter Campbell Smith", - "drilldown" : "Peter Campbell Smith" - }, - { - "drilldown" : "Robbie Hatley", - "name" : "Robbie Hatley", - "y" : 2 - }, - { - "drilldown" : "Robert DiCicco", - "name" : "Robert DiCicco", - "y" : 2 - }, - { - "y" : 2, - "name" : "Robert Ransbottom", - "drilldown" : "Robert Ransbottom" - }, - { - "y" : 5, - "name" : "Roger Bell_West", - "drilldown" : "Roger Bell_West" - }, - { - "name" : "Simon Green", - "drilldown" : "Simon Green", - "y" : 3 - }, - { - "name" : "Stephen G. Lynn", - "drilldown" : "Stephen G. Lynn", - "y" : 5 - }, - { - "drilldown" : "Ulrich Rieke", - "name" : "Ulrich Rieke", - "y" : 4 - }, - { - "name" : "W. Luis Mochan", - "drilldown" : "W. Luis Mochan", - "y" : 3 - } - ] - } - ], "yAxis" : { "title" : { "text" : "Total Solutions" } }, - "chart" : { - "type" : "column" - }, - "title" : { - "text" : "The Weekly Challenge - 183" - }, "drilldown" : { "series" : [ { - "name" : "Cheok-Yin Fung", - "id" : "Cheok-Yin Fung", "data" : [ [ "Raku", 1 ] - ] + ], + "id" : "Cheok-Yin Fung", + "name" : "Cheok-Yin Fung" }, { "data" : [ @@ -156,6 +27,8 @@ "id" : "E. Choroba" }, { + "id" : "Flavio Poletti", + "name" : "Flavio Poletti", "data" : [ [ "Perl", @@ -169,31 +42,31 @@ "Blog", 2 ] - ], - "id" : "Flavio Poletti", - "name" : "Flavio Poletti" + ] }, { - "name" : "Jan Krnavek", - "id" : "Jan Krnavek", "data" : [ [ "Raku", 2 ] - ] + ], + "id" : "Jan Krnavek", + "name" : "Jan Krnavek" }, { + "id" : "Jorg Sommrey", + "name" : "Jorg Sommrey", "data" : [ [ "Perl", 2 ] - ], - "name" : "Jorg Sommrey", - "id" : "Jorg Sommrey" + ] }, { + "name" : "Luca Ferrari", + "id" : "Luca Ferrari", "data" : [ [ "Raku", @@ -203,19 +76,17 @@ "Blog", 6 ] - ], - "id" : "Luca Ferrari", - "name" : "Luca Ferrari" + ] }, { + "name" : "Mark Anderson", + "id" : "Mark Anderson", "data" : [ [ "Raku", 2 ] - ], - "id" : "Mark Anderson", - "name" : "Mark Anderson" + ] }, { "data" : [ @@ -228,18 +99,18 @@ "id" : "Marton Polgar" }, { - "id" : "Matthew Neleigh", - "name" : "Matthew Neleigh", "data" : [ [ "Perl", 1 ] - ] + ], + "id" : "Matthew Neleigh", + "name" : "Matthew Neleigh" }, { - "id" : "Mohammad S Anwar", "name" : "Mohammad S Anwar", + "id" : "Mohammad S Anwar", "data" : [ [ "Perl", @@ -248,16 +119,18 @@ ] }, { - "id" : "Niels van Dijke", - "name" : "Niels van Dijke", "data" : [ [ "Perl", 2 ] - ] + ], + "id" : "Niels van Dijke", + "name" : "Niels van Dijke" }, { + "id" : "Peter Campbell Smith", + "name" : "Peter Campbell Smith", "data" : [ [ "Perl", @@ -267,9 +140,7 @@ "Blog", 1 ] - ], - "name" : "Peter Campbell Smith", - "id" : "Peter Campbell Smith" + ] }, { "id" : "Robbie Hatley", @@ -282,8 +153,6 @@ ] }, { - "name" : "Robert DiCicco", - "id" : "Robert DiCicco", "data" : [ [ "Perl", @@ -293,7 +162,9 @@ "Raku", 1 ] - ] + ], + "id" : "Robert DiCicco", + "name" : "Robert DiCicco" }, { "id" : "Robert Ransbottom", @@ -306,6 +177,8 @@ ] }, { + "id" : "Roger Bell_West", + "name" : "Roger Bell_West", "data" : [ [ "Perl", @@ -319,9 +192,7 @@ "Blog", 1 ] - ], - "id" : "Roger Bell_West", - "name" : "Roger Bell_West" + ] }, { "data" : [ @@ -338,8 +209,18 @@ "name" : "Simon Green" }, { - "id" : "Stephen G. Lynn", + "name" : "Solathian", + "id" : "Solathian", + "data" : [ + [ + "Perl", + 2 + ] + ] + }, + { "name" : "Stephen G. Lynn", + "id" : "Stephen G. Lynn", "data" : [ [ "Perl", @@ -356,6 +237,8 @@ ] }, { + "name" : "Ulrich Rieke", + "id" : "Ulrich Rieke", "data" : [ [ "Perl", @@ -365,11 +248,11 @@ "Raku", 2 ] - ], - "name" : "Ulrich Rieke", - "id" : "Ulrich Rieke" + ] }, { + "id" : "W. Luis Mochan", + "name" : "W. Luis Mochan", "data" : [ [ "Perl", @@ -379,16 +262,148 @@ "Blog", 1 ] - ], - "name" : "W. Luis Mochan", - "id" : "W. Luis Mochan" + ] } ] }, "tooltip" : { - "pointFormat" : "{point.name}: {point.y:f}
", "headerFormat" : "{series.name}
", - "followPointer" : 1 + "followPointer" : 1, + "pointFormat" : "{point.name}: {point.y:f}
" + }, + "plotOptions" : { + "series" : { + "borderWidth" : 0, + "dataLabels" : { + "format" : "{point.y}", + "enabled" : 1 + } + } + }, + "title" : { + "text" : "The Weekly Challenge - 183" + }, + "series" : [ + { + "data" : [ + { + "drilldown" : "Cheok-Yin Fung", + "y" : 1, + "name" : "Cheok-Yin Fung" + }, + { + "y" : 2, + "name" : "E. Choroba", + "drilldown" : "E. Choroba" + }, + { + "y" : 5, + "name" : "Flavio Poletti", + "drilldown" : "Flavio Poletti" + }, + { + "drilldown" : "Jan Krnavek", + "y" : 2, + "name" : "Jan Krnavek" + }, + { + "drilldown" : "Jorg Sommrey", + "y" : 2, + "name" : "Jorg Sommrey" + }, + { + "name" : "Luca Ferrari", + "y" : 8, + "drilldown" : "Luca Ferrari" + }, + { + "drilldown" : "Mark Anderson", + "name" : "Mark Anderson", + "y" : 2 + }, + { + "name" : "Marton Polgar", + "y" : 2, + "drilldown" : "Marton Polgar" + }, + { + "name" : "Matthew Neleigh", + "y" : 1, + "drilldown" : "Matthew Neleigh" + }, + { + "drilldown" : "Mohammad S Anwar", + "y" : 2, + "name" : "Mohammad S Anwar" + }, + { + "drilldown" : "Niels van Dijke", + "name" : "Niels van Dijke", + "y" : 2 + }, + { + "y" : 3, + "name" : "Peter Campbell Smith", + "drilldown" : "Peter Campbell Smith" + }, + { + "drilldown" : "Robbie Hatley", + "y" : 2, + "name" : "Robbie Hatley" + }, + { + "drilldown" : "Robert DiCicco", + "name" : "Robert DiCicco", + "y" : 2 + }, + { + "drilldown" : "Robert Ransbottom", + "y" : 2, + "name" : "Robert Ransbottom" + }, + { + "y" : 5, + "name" : "Roger Bell_West", + "drilldown" : "Roger Bell_West" + }, + { + "drilldown" : "Simon Green", + "name" : "Simon Green", + "y" : 3 + }, + { + "y" : 2, + "name" : "Solathian", + "drilldown" : "Solathian" + }, + { + "drilldown" : "Stephen G. Lynn", + "name" : "Stephen G. Lynn", + "y" : 5 + }, + { + "name" : "Ulrich Rieke", + "y" : 4, + "drilldown" : "Ulrich Rieke" + }, + { + "y" : 3, + "name" : "W. Luis Mochan", + "drilldown" : "W. Luis Mochan" + } + ], + "name" : "The Weekly Challenge - 183", + "colorByPoint" : 1 + } + ], + "chart" : { + "type" : "column" + }, + "subtitle" : { + "text" : "[Champions: 21] Last updated at 2022-09-25 19:47:43 GMT" + }, + "xAxis" : { + "type" : "category" }, "legend" : { "enabled" : 0 diff --git a/stats/pwc-language-breakdown-summary.json b/stats/pwc-language-breakdown-summary.json index 367716569c..69cb8389ca 100644 --- a/stats/pwc-language-breakdown-summary.json +++ b/stats/pwc-language-breakdown-summary.json @@ -1,30 +1,12 @@ { - "subtitle" : { - "text" : "Last updated at 2022-09-25 19:40:14 GMT" + "title" : { + "text" : "The Weekly Challenge Contributions [2019 - 2022]" }, "chart" : { "type" : "column" }, - "yAxis" : { - "title" : { - "text" : null - }, - "min" : 0 - }, "series" : [ { - "dataLabels" : { - "y" : 10, - "align" : "right", - "style" : { - "fontFamily" : "Verdana, sans-serif", - "fontSize" : "13px" - }, - "format" : "{point.y:.0f}", - "rotation" : -90, - "color" : "#FFFFFF", - "enabled" : "true" - }, "data" : [ [ "Blog", @@ -32,32 +14,50 @@ ], [ "Perl", - 8901 + 8903 ], [ "Raku", 5323 ] ], - "name" : "Contributions" + "name" : "Contributions", + "dataLabels" : { + "enabled" : "true", + "style" : { + "fontSize" : "13px", + "fontFamily" : "Verdana, sans-serif" + }, + "format" : "{point.y:.0f}", + "color" : "#FFFFFF", + "y" : 10, + "align" : "right", + "rotation" : -90 + } } ], "xAxis" : { + "type" : "category", "labels" : { "style" : { - "fontSize" : "13px", - "fontFamily" : "Verdana, sans-serif" + "fontFamily" : "Verdana, sans-serif", + "fontSize" : "13px" } - }, - "type" : "category" + } }, "legend" : { "enabled" : "false" }, + "subtitle" : { + "text" : "Last updated at 2022-09-25 19:47:43 GMT" + }, "tooltip" : { "pointFormat" : "{point.y:.0f}" }, - "title" : { - "text" : "The Weekly Challenge Contributions [2019 - 2022]" + "yAxis" : { + "title" : { + "text" : null + }, + "min" : 0 } } diff --git a/stats/pwc-language-breakdown.json b/stats/pwc-language-breakdown.json index 60ca62d797..f36c0d1da9 100644 --- a/stats/pwc-language-breakdown.json +++ b/stats/pwc-language-breakdown.json @@ -1,24 +1,23 @@ { "plotOptions" : { "series" : { + "borderWidth" : 0, "dataLabels" : { "enabled" : 1, "format" : "{point.y}" - }, - "borderWidth" : 0 + } } }, - "subtitle" : { - "text" : "Click the columns to drilldown the language breakdown. Last updated at 2022-09-25 19:40:14 GMT" - }, - "title" : { - "text" : "The Weekly Challenge Language" + "yAxis" : { + "title" : { + "text" : "Total Solutions" + } }, "drilldown" : { "series" : [ { - "name" : "001", "id" : "001", + "name" : "001", "data" : [ [ "Perl", @@ -35,6 +34,8 @@ ] }, { + "name" : "002", + "id" : "002", "data" : [ [ "Perl", @@ -48,9 +49,7 @@ "Blog", 10 ] - ], - "id" : "002", - "name" : "002" + ] }, { "data" : [ @@ -71,8 +70,6 @@ "id" : "003" }, { - "id" : "004", - "name" : "004", "data" : [ [ "Perl", @@ -86,9 +83,13 @@ "Blog", 10 ] - ] + ], + "name" : "004", + "id" : "004" }, { + "id" : "005", + "name" : "005", "data" : [ [ "Perl", @@ -102,11 +103,11 @@ "Blog", 12 ] - ], - "id" : "005", - "name" : "005" + ] }, { + "name" : "006", + "id" : "006", "data" : [ [ "Perl", @@ -120,13 +121,11 @@ "Blog", 7 ] - ], - "name" : "006", - "id" : "006" + ] }, { - "name" : "007", "id" : "007", + "name" : "007", "data" : [ [ "Perl", @@ -161,6 +160,8 @@ "name" : "008" }, { + "id" : "009", + "name" : "009", "data" : [ [ "Perl", @@ -174,9 +175,7 @@ "Blog", 13 ] - ], - "name" : "009", - "id" : "009" + ] }, { "data" : [ @@ -193,12 +192,12 @@ 11 ] ], - "name" : "010", - "id" : "010" + "id" : "010", + "name" : "010" }, { - "id" : "011", "name" : "011", + "id" : "011", "data" : [ [ "Perl", @@ -215,6 +214,8 @@ ] }, { + "id" : "012", + "name" : "012", "data" : [ [ "Perl", @@ -228,11 +229,11 @@ "Blog", 11 ] - ], - "name" : "012", - "id" : "012" + ] }, { + "name" : "013", + "id" : "013", "data" : [ [ "Perl", @@ -246,13 +247,9 @@ "Blog", 13 ] - ], - "name" : "013", - "id" : "013" + ] }, { - "id" : "014", - "name" : "014", "data" : [ [ "Perl", @@ -266,7 +263,9 @@ "Blog", 15 ] - ] + ], + "name" : "014", + "id" : "014" }, { "data" : [ @@ -283,12 +282,12 @@ 15 ] ], - "name" : "015", - "id" : "015" + "id" : "015", + "name" : "015" }, { - "id" : "016", "name" : "016", + "id" : "016", "data" : [ [ "Perl", @@ -323,6 +322,8 @@ ] }, { + "id" : "018", + "name" : "018", "data" : [ [ "Perl", @@ -336,9 +337,7 @@ "Blog", 14 ] - ], - "id" : "018", - "name" : "018" + ] }, { "data" : [ @@ -355,10 +354,12 @@ 13 ] ], - "name" : "019", - "id" : "019" + "id" : "019", + "name" : "019" }, { + "name" : "020", + "id" : "020", "data" : [ [ "Perl", @@ -372,13 +373,9 @@ "Blog", 13 ] - ], - "id" : "020", - "name" : "020" + ] }, { - "id" : "021", - "name" : "021", "data" : [ [ "Perl", @@ -392,9 +389,13 @@ "Blog", 10 ] - ] + ], + "name" : "021", + "id" : "021" }, { + "id" : "022", + "name" : "022", "data" : [ [ "Perl", @@ -408,9 +409,7 @@ "Blog", 10 ] - ], - "name" : "022", - "id" : "022" + ] }, { "name" : "023", @@ -431,6 +430,8 @@ ] }, { + "id" : "024", + "name" : "024", "data" : [ [ "Perl", @@ -444,9 +445,7 @@ "Blog", 11 ] - ], - "name" : "024", - "id" : "024" + ] }, { "data" : [ @@ -499,8 +498,8 @@ 9 ] ], - "id" : "027", - "name" : "027" + "name" : "027", + "id" : "027" }, { "id" : "028", @@ -557,8 +556,6 @@ ] }, { - "name" : "031", - "id" : "031", "data" : [ [ "Perl", @@ -572,9 +569,13 @@ "Blog", 9 ] - ] + ], + "name" : "031", + "id" : "031" }, { + "name" : "032", + "id" : "032", "data" : [ [ "Perl", @@ -588,9 +589,7 @@ "Blog", 10 ] - ], - "name" : "032", - "id" : "032" + ] }, { "id" : "033", @@ -611,8 +610,6 @@ ] }, { - "id" : "034", - "name" : "034", "data" : [ [ "Perl", @@ -626,11 +623,13 @@ "Blog", 11 ] - ] + ], + "id" : "034", + "name" : "034" }, { - "name" : "035", "id" : "035", + "name" : "035", "data" : [ [ "Perl", @@ -661,8 +660,8 @@ 11 ] ], - "id" : "036", - "name" : "036" + "name" : "036", + "id" : "036" }, { "data" : [ @@ -697,8 +696,8 @@ 12 ] ], - "name" : "038", - "id" : "038" + "id" : "038", + "name" : "038" }, { "data" : [ @@ -737,8 +736,6 @@ "name" : "040" }, { - "name" : "041", - "id" : "041", "data" : [ [ "Perl", @@ -752,9 +749,13 @@ "Blog", 9 ] - ] + ], + "name" : "041", + "id" : "041" }, { + "id" : "042", + "name" : "042", "data" : [ [ "Perl", @@ -768,13 +769,11 @@ "Blog", 11 ] - ], - "name" : "042", - "id" : "042" + ] }, { - "id" : "043", "name" : "043", + "id" : "043", "data" : [ [ "Perl", @@ -791,8 +790,8 @@ ] }, { - "id" : "044", "name" : "044", + "id" : "044", "data" : [ [ "Perl", @@ -809,6 +808,8 @@ ] }, { + "id" : "045", + "name" : "045", "data" : [ [ "Perl", @@ -822,9 +823,7 @@ "Blog", 11 ] - ], - "name" : "045", - "id" : "045" + ] }, { "name" : "046", @@ -845,8 +844,6 @@ ] }, { - "id" : "047", - "name" : "047", "data" : [ [ "Perl", @@ -860,7 +857,9 @@ "Blog", 10 ] - ] + ], + "id" : "047", + "name" : "047" }, { "data" : [ @@ -881,8 +880,6 @@ "name" : "048" }, { - "name" : "049", - "id" : "049", "data" : [ [ "Perl", @@ -896,7 +893,9 @@ "Blog", 12 ] - ] + ], + "name" : "049", + "id" : "049" }, { "data" : [ @@ -935,6 +934,8 @@ "name" : "051" }, { + "name" : "052", + "id" : "052", "data" : [ [ "Perl", @@ -948,9 +949,7 @@ "Blog", 14 ] - ], - "id" : "052", - "name" : "052" + ] }, { "data" : [ @@ -989,8 +988,6 @@ ] }, { - "name" : "055", - "id" : "055", "data" : [ [ "Perl", @@ -1004,11 +1001,11 @@ "Blog", 14 ] - ] + ], + "id" : "055", + "name" : "055" }, { - "name" : "056", - "id" : "056", "data" : [ [ "Perl", @@ -1022,11 +1019,11 @@ "Blog", 16 ] - ] + ], + "id" : "056", + "name" : "056" }, { - "name" : "057", - "id" : "057", "data" : [ [ "Perl", @@ -1040,7 +1037,9 @@ "Blog", 15 ] - ] + ], + "id" : "057", + "name" : "057" }, { "id" : "058", @@ -1061,8 +1060,8 @@ ] }, { - "id" : "059", "name" : "059", + "id" : "059", "data" : [ [ "Perl", @@ -1097,6 +1096,8 @@ ] }, { + "name" : "061", + "id" : "061", "data" : [ [ "Perl", @@ -1110,9 +1111,7 @@ "Blog", 14 ] - ], - "id" : "061", - "name" : "061" + ] }, { "id" : "062", @@ -1151,6 +1150,8 @@ ] }, { + "name" : "064", + "id" : "064", "data" : [ [ "Perl", @@ -1164,11 +1165,11 @@ "Blog", 16 ] - ], - "name" : "064", - "id" : "064" + ] }, { + "id" : "065", + "name" : "065", "data" : [ [ "Perl", @@ -1182,9 +1183,7 @@ "Blog", 15 ] - ], - "id" : "065", - "name" : "065" + ] }, { "data" : [ @@ -1201,12 +1200,12 @@ 14 ] ], - "name" : "066", - "id" : "066" + "id" : "066", + "name" : "066" }, { - "name" : "067", "id" : "067", + "name" : "067", "data" : [ [ "Perl", @@ -1237,10 +1236,12 @@ 13 ] ], - "name" : "068", - "id" : "068" + "id" : "068", + "name" : "068" }, { + "id" : "069", + "name" : "069", "data" : [ [ "Perl", @@ -1254,13 +1255,9 @@ "Blog", 16 ] - ], - "id" : "069", - "name" : "069" + ] }, { - "name" : "070", - "id" : "070", "data" : [ [ "Perl", @@ -1274,11 +1271,13 @@ "Blog", 17 ] - ] + ], + "name" : "070", + "id" : "070" }, { - "name" : "071", "id" : "071", + "name" : "071", "data" : [ [ "Perl", @@ -1313,8 +1312,6 @@ "id" : "072" }, { - "name" : "073", - "id" : "073", "data" : [ [ "Perl", @@ -1328,11 +1325,13 @@ "Blog", 17 ] - ] + ], + "name" : "073", + "id" : "073" }, { - "id" : "074", "name" : "074", + "id" : "074", "data" : [ [ "Perl", @@ -1349,6 +1348,8 @@ ] }, { + "id" : "075", + "name" : "075", "data" : [ [ "Perl", @@ -1362,13 +1363,9 @@ "Blog", 20 ] - ], - "name" : "075", - "id" : "075" + ] }, { - "name" : "076", - "id" : "076", "data" : [ [ "Perl", @@ -1382,11 +1379,11 @@ "Blog", 16 ] - ] + ], + "name" : "076", + "id" : "076" }, { - "name" : "077", - "id" : "077", "data" : [ [ "Perl", @@ -1400,9 +1397,13 @@ "Blog", 14 ] - ] + ], + "id" : "077", + "name" : "077" }, { + "name" : "078", + "id" : "078", "data" : [ [ "Perl", @@ -1416,9 +1417,7 @@ "Blog", 18 ] - ], - "id" : "078", - "name" : "078" + ] }, { "data" : [ @@ -1439,8 +1438,6 @@ "name" : "079" }, { - "id" : "080", - "name" : "080", "data" : [ [ "Perl", @@ -1454,9 +1451,13 @@ "Blog", 16 ] - ] + ], + "name" : "080", + "id" : "080" }, { + "id" : "081", + "name" : "081", "data" : [ [ "Perl", @@ -1470,13 +1471,11 @@ "Blog", 15 ] - ], - "name" : "081", - "id" : "081" + ] }, { - "id" : "082", "name" : "082", + "id" : "082", "data" : [ [ "Perl", @@ -1493,8 +1492,8 @@ ] }, { - "name" : "083", "id" : "083", + "name" : "083", "data" : [ [ "Perl", @@ -1525,8 +1524,8 @@ 12 ] ], - "id" : "084", - "name" : "084" + "name" : "084", + "id" : "084" }, { "data" : [ @@ -1547,6 +1546,8 @@ "name" : "085" }, { + "name" : "086", + "id" : "086", "data" : [ [ "Perl", @@ -1560,9 +1561,7 @@ "Blog", 15 ] - ], - "id" : "086", - "name" : "086" + ] }, { "id" : "087", @@ -1583,8 +1582,8 @@ ] }, { - "id" : "088", "name" : "088", + "id" : "088", "data" : [ [ "Perl", @@ -1601,6 +1600,8 @@ ] }, { + "name" : "089", + "id" : "089", "data" : [ [ "Perl", @@ -1614,9 +1615,7 @@ "Blog", 20 ] - ], - "name" : "089", - "id" : "089" + ] }, { "name" : "090", @@ -1637,8 +1636,6 @@ ] }, { - "id" : "091", - "name" : "091", "data" : [ [ "Perl", @@ -1652,7 +1649,9 @@ "Blog", 16 ] - ] + ], + "name" : "091", + "id" : "091" }, { "data" : [ @@ -1673,8 +1672,6 @@ "name" : "092" }, { - "name" : "093", - "id" : "093", "data" : [ [ "Perl", @@ -1688,7 +1685,9 @@ "Blog", 16 ] - ] + ], + "id" : "093", + "name" : "093" }, { "data" : [ @@ -1705,10 +1704,12 @@ 17 ] ], - "id" : "094", - "name" : "094" + "name" : "094", + "id" : "094" }, { + "id" : "095", + "name" : "095", "data" : [ [ "Perl", @@ -1722,11 +1723,11 @@ "Blog", 19 ] - ], - "name" : "095", - "id" : "095" + ] }, { + "id" : "096", + "name" : "096", "data" : [ [ "Perl", @@ -1740,9 +1741,7 @@ "Blog", 19 ] - ], - "id" : "096", - "name" : "096" + ] }, { "data" : [ @@ -1777,10 +1776,12 @@ 17 ] ], - "id" : "098", - "name" : "098" + "name" : "098", + "id" : "098" }, { + "name" : "099", + "id" : "099", "data" : [ [ "Perl", @@ -1794,9 +1795,7 @@ "Blog", 14 ] - ], - "name" : "099", - "id" : "099" + ] }, { "data" : [ @@ -1817,6 +1816,8 @@ "id" : "100" }, { + "id" : "101", + "name" : "101", "data" : [ [ "Perl", @@ -1830,11 +1831,11 @@ "Blog", 13 ] - ], - "id" : "101", - "name" : "101" + ] }, { + "name" : "102", + "id" : "102", "data" : [ [ "Perl", @@ -1848,9 +1849,7 @@ "Blog", 15 ] - ], - "name" : "102", - "id" : "102" + ] }, { "data" : [ @@ -1871,8 +1870,6 @@ "name" : "103" }, { - "id" : "104", - "name" : "104", "data" : [ [ "Perl", @@ -1886,11 +1883,11 @@ "Blog", 14 ] - ] + ], + "id" : "104", + "name" : "104" }, { - "id" : "105", - "name" : "105", "data" : [ [ "Perl", @@ -1904,7 +1901,9 @@ "Blog", 14 ] - ] + ], + "id" : "105", + "name" : "105" }, { "data" : [ @@ -1979,6 +1978,8 @@ "name" : "109" }, { + "name" : "110", + "id" : "110", "data" : [ [ "Perl", @@ -1992,9 +1993,7 @@ "Blog", 25 ] - ], - "id" : "110", - "name" : "110" + ] }, { "data" : [ @@ -2015,8 +2014,8 @@ "id" : "111" }, { - "name" : "112", "id" : "112", + "name" : "112", "data" : [ [ "Perl", @@ -2051,6 +2050,8 @@ ] }, { + "name" : "114", + "id" : "114", "data" : [ [ "Perl", @@ -2064,11 +2065,11 @@ "Blog", 21 ] - ], - "name" : "114", - "id" : "114" + ] }, { + "name" : "115", + "id" : "115", "data" : [ [ "Perl", @@ -2082,13 +2083,9 @@ "Blog", 20 ] - ], - "name" : "115", - "id" : "115" + ] }, { - "id" : "116", - "name" : "116", "data" : [ [ "Perl", @@ -2102,9 +2099,13 @@ "Blog", 17 ] - ] + ], + "id" : "116", + "name" : "116" }, { + "name" : "117", + "id" : "117", "data" : [ [ "Perl", @@ -2118,11 +2119,11 @@ "Blog", 19 ] - ], - "name" : "117", - "id" : "117" + ] }, { + "name" : "118", + "id" : "118", "data" : [ [ "Perl", @@ -2136,13 +2137,11 @@ "Blog", 17 ] - ], - "id" : "118", - "name" : "118" + ] }, { - "id" : "119", "name" : "119", + "id" : "119", "data" : [ [ "Perl", @@ -2213,6 +2212,8 @@ "id" : "122" }, { + "id" : "123", + "name" : "123", "data" : [ [ "Perl", @@ -2226,9 +2227,7 @@ "Blog", 18 ] - ], - "id" : "123", - "name" : "123" + ] }, { "id" : "124", @@ -2303,8 +2302,6 @@ ] }, { - "name" : "128", - "id" : "128", "data" : [ [ "Perl", @@ -2318,11 +2315,11 @@ "Blog", 15 ] - ] + ], + "id" : "128", + "name" : "128" }, { - "id" : "129", - "name" : "129", "data" : [ [ "Perl", @@ -2336,9 +2333,13 @@ "Blog", 14 ] - ] + ], + "name" : "129", + "id" : "129" }, { + "name" : "130", + "id" : "130", "data" : [ [ "Perl", @@ -2352,13 +2353,11 @@ "Blog", 13 ] - ], - "id" : "130", - "name" : "130" + ] }, { - "name" : "131", "id" : "131", + "name" : "131", "data" : [ [ "Perl", @@ -2375,6 +2374,8 @@ ] }, { + "id" : "132", + "name" : "132", "data" : [ [ "Perl", @@ -2388,11 +2389,11 @@ "Blog", 13 ] - ], - "name" : "132", - "id" : "132" + ] }, { + "id" : "133", + "name" : "133", "data" : [ [ "Perl", @@ -2406,9 +2407,7 @@ "Blog", 18 ] - ], - "name" : "133", - "id" : "133" + ] }, { "data" : [ @@ -2425,8 +2424,8 @@ 15 ] ], - "name" : "134", - "id" : "134" + "id" : "134", + "name" : "134" }, { "id" : "135", @@ -2447,8 +2446,6 @@ ] }, { - "id" : "136", - "name" : "136", "data" : [ [ "Perl", @@ -2462,9 +2459,13 @@ "Blog", 19 ] - ] + ], + "id" : "136", + "name" : "136" }, { + "name" : "137", + "id" : "137", "data" : [ [ "Perl", @@ -2478,13 +2479,11 @@ "Blog", 17 ] - ], - "name" : "137", - "id" : "137" + ] }, { - "id" : "138", "name" : "138", + "id" : "138", "data" : [ [ "Perl", @@ -2501,8 +2500,8 @@ ] }, { - "name" : "139", "id" : "139", + "name" : "139", "data" : [ [ "Perl", @@ -2551,8 +2550,8 @@ 20 ] ], - "id" : "141", - "name" : "141" + "name" : "141", + "id" : "141" }, { "name" : "142", @@ -2573,6 +2572,8 @@ ] }, { + "name" : "143", + "id" : "143", "data" : [ [ "Perl", @@ -2586,11 +2587,11 @@ "Blog", 18 ] - ], - "id" : "143", - "name" : "143" + ] }, { + "name" : "144", + "id" : "144", "data" : [ [ "Perl", @@ -2604,13 +2605,9 @@ "Blog", 17 ] - ], - "id" : "144", - "name" : "144" + ] }, { - "name" : "145", - "id" : "145", "data" : [ [ "Perl", @@ -2624,11 +2621,11 @@ "Blog", 20 ] - ] + ], + "id" : "145", + "name" : "145" }, { - "name" : "146", - "id" : "146", "data" : [ [ "Perl", @@ -26