From aa14cbf8342e04b936f40bcc720a23a258137ecd Mon Sep 17 00:00:00 2001 From: Mohammad S Anwar Date: Mon, 28 Sep 2020 06:37:54 +0100 Subject: - Added solutions by Colin Crain. --- challenge-079/colin-crain/perl/ch-1.pl | 122 ++++++ challenge-079/colin-crain/perl/ch-2.pl | 103 +++++ challenge-079/colin-crain/raku/ch-1.raku | 73 ++++ challenge-079/colin-crain/raku/ch-2.raku | 71 ++++ stats/pwc-current.json | 660 +++++++++++++++--------------- stats/pwc-language-breakdown-summary.json | 64 +-- stats/pwc-language-breakdown.json | 540 ++++++++++++------------ stats/pwc-leaders.json | 394 +++++++++--------- stats/pwc-summary-1-30.json | 116 +++--- stats/pwc-summary-121-150.json | 102 ++--- stats/pwc-summary-151-180.json | 46 +-- stats/pwc-summary-181-210.json | 40 +- stats/pwc-summary-31-60.json | 108 ++--- stats/pwc-summary-61-90.json | 110 ++--- stats/pwc-summary-91-120.json | 46 +-- stats/pwc-summary.json | 40 +- 16 files changed, 1506 insertions(+), 1129 deletions(-) create mode 100644 challenge-079/colin-crain/perl/ch-1.pl create mode 100644 challenge-079/colin-crain/perl/ch-2.pl create mode 100644 challenge-079/colin-crain/raku/ch-1.raku create mode 100644 challenge-079/colin-crain/raku/ch-2.raku diff --git a/challenge-079/colin-crain/perl/ch-1.pl b/challenge-079/colin-crain/perl/ch-1.pl new file mode 100644 index 0000000000..4d54252938 --- /dev/null +++ b/challenge-079/colin-crain/perl/ch-1.pl @@ -0,0 +1,122 @@ +#! /opt/local/bin/perl +# +# count_set_match.pl +# +# TASK #1 › Count Set Bits +# Submitted by: Mohammad S Anwar +# You are given a positive number $N. +# +# Write a script to count the total number of set bits of the binary +# representations of all numbers from 1 to $N and return +# $total_count_set_bit % 1000000007. +# +# Example 1: +# Input: $N = 4 +# +# Explanation: First find out the set bit counts of all numbers +# i.e. 1, 2, 3 and 4. +# +# Decimal: 1 +# Binary: 001 +# Set Bit Counts: 1 +# +# Decimal: 2 +# Binary: 010 +# Set Bit Counts: 1 +# +# Decimal: 3 +# Binary: 011 +# Set Bit Counts: 2 +# +# Decimal: 4 +# Binary: 100 +# Set Bit Counts: 1 +# +# Total set bit count: 1 + 1 + 2 + 1 = 5 +# +# Output: Your script should print `5` as `5 % 1000000007 = 5`. +# Example 2: +# Input: $N = 3 +# +# Explanation: First find out the set bit counts of all numbers +# i.e. 1, 2 and 3. +# +# Decimal: 1 +# Binary: 01 +# Set Bit Count: 1 +# +# Decimal: 2 +# Binary: 10 +# Set Bit Count: 1 +# +# Decimal: 3 +# Binary: 11 +# Set Bit Count: 2 +# +# Total set bit count: 1 + 1 + 2 = 4 +# +# Output: Your script should print `4` as `4 % 1000000007 = 4`. +# +# method: +# The way I see it, there are three parts to this task. Over a loop +# of values, we need to first create a binary representation of a +# number, then count and sum the 1s present in those values. For the +# third and seemingly, puzzlingly unrelated part, we then modulo the +# total by one billion and seven. +# +# In weeks past, we've found easy ways to convert decimal to binary. +# For the counting the 1s step, this is the same as summing every +# digit, as these, being binary, are only going to be either 1 or 0. +# Breaking the digit string into a list of elements and then summing +# these accomplishes this well; after this step the sum is added to +# a running total for the sequence of 1 up to the target value. +# +# As for the modulo phase, a little explanation is in order. The +# value 1000000007 is ultimately arbitrary, and is selected because +# it: +# +# 1. is large, but not too large, and +# 2. is prime +# +# Beyond these criteria, there is no meaning behind that specific +# choice of number, and 1,000,000,033 would do just as well, or +# 2,000,000,033. Speaking to the first point, what this selection +# does is produce a verifiable, reproducable result that fits into +# common integer data types without any risk of overflow. +# +# This can even be done at every step of a calculation involving +# very very large numbers, constructing the correct modulo result +# without ever exceeding the range of a 32-bit integer. But then +# again there is no requirement here either to process an unusually +# big range or for that matter work properly on 32-bit machines. So +# even should we wish to include values past 2^32 in our +# intermediary steps, the 64-bit norm these day gives us +# considerably more range. +# +# So we're not going to bother to do that. I do wonder if anyone +# will. +# +# 2020 colin crain +## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## + + + +use warnings; +use strict; +use feature ":5.26"; + +## ## ## ## ## MAIN: + +my $input = shift // 100000; +my $tot; + +for my $i (1..$input) { + my $bin = sprintf "%b", $i; + my $j = length $bin; + while (--$j >= 0 ) { + substr( $bin, $j, 1 ) and $tot++; + } +} +my $out = $tot % 1000000007; + +say "out: $out"; diff --git a/challenge-079/colin-crain/perl/ch-2.pl b/challenge-079/colin-crain/perl/ch-2.pl new file mode 100644 index 0000000000..3300295a5d --- /dev/null +++ b/challenge-079/colin-crain/perl/ch-2.pl @@ -0,0 +1,103 @@ +#! /opt/local/bin/perl +# +# water_inside_a_duck.pl +# +# TASK #2 › Trapped Rain Water +# Submitted by: Mohammad S Anwar +# You are given an array of positive numbers @N. +# +# Write a script to represent it as Histogram Chart and find out how +# much water it can trap. +# +# Example 1: +# Input: @N = (2, 1, 4, 1, 2, 5) +# The histogram representation of the given array is as below. +# 5 # +# 4 # # +# 3 # # +# 2 # # # # +# 1 # # # # # # +# _ _ _ _ _ _ _ +# 2 1 4 1 2 5 +# Looking at the above histogram, we can see, it can trap 1 unit of rain +# water between 1st and 3rd column. Similary it can trap 5 units of rain +# water betweem 3rd and last column. +# +# Therefore your script should print 6. +# +# Example 2: +# Input: @N = (3, 1, 3, 1, 1, 5) +# The histogram representation of the given array is as below. +# 5 # +# 4 # +# 3 # # # +# 2 # # # +# 1 # # # # # # +# _ _ _ _ _ _ _ +# 3 1 3 1 1 5 +# Looking at the above histogram, we can see, it can trap 2 units of +# rain water between 1st and 3rd column. Also it can trap 4 units of +# rain water between 3rd and last column. +# +# Therefore your script should print 6. +# +# method: + +# Water falls from the sky and gathers, so that's where we'll start, +# at the top, descending. As we traverse the range from maximum to minimum, each level +# of the histogram is examined and an array is created from the +# indices of elements that extend to that height or +# beyond. A single result represents the solitary highest point that in +# itself cannot contain a volume, but any two adjectant elements in +# this array represent a gap that, given the opportunity, will fill +# with water. +# +# Water is assumed to collect in the spaces between the boundries of +# the histogram columns, thus it is the non-inclusive interstitial +# gap between a pair of indices that represents an expanse of water +# at a depth of one unit. Adjacent indices will simply have a gap of +# zero and thus will not fill. For each pair of indices, this is a +# volume of water collected. Examining in turn each adjacent pair of +# elements in the level array, a running tally gathers the total +# volume of water at that level. Repeating this process as we +# descend down the histogram, until we arrive at the minimum value, +# yields the total valume of water trapped by the whole structure. + +# +# 2020 colin crain +## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## + + + +use warnings; +use strict; +use feature ":5.26"; + +## ## ## ## ## MAIN: + +my @input = @ARGV; + +@input = (3,6,3,1,1,5) if scalar @ARGV == 0; + +my ($min,$max) = (sort {$a-$b} @input)[0,$#input]; + +say "histogram:\n"; + +my $vol; +for my $level (reverse($min..$max)) { + my @peaks = grep { $input[$_] >= $level } (0..$#input); + + ## draw the histogram while we're here + say "$level ", join ' ', map { $input[$_] >= $level ? '#' : ' ' } (0..$#input); + + while (scalar @peaks > 1) { + my $start_idx = shift @peaks; + $vol += $peaks[0] - $start_idx - 1; + } +} + +## out +say join ' ', ("-") x (scalar @input + 1); +say ' ', join ' ', @input; + +say "\nvolume: $vol"; diff --git a/challenge-079/colin-crain/raku/ch-1.raku b/challenge-079/colin-crain/raku/ch-1.raku new file mode 100644 index 0000000000..992f7e1861 --- /dev/null +++ b/challenge-079/colin-crain/raku/ch-1.raku @@ -0,0 +1,73 @@ +#!/usr/bin/env perl6 +# +# +# count-set-match.raku +# +# TASK #1 › Count Set Bits +# Submitted by: Mohammad S Anwar +# You are given a positive number $N. +# +# Write a script to count the total number of set bits of the binary +# representations of all numbers from 1 to $N and return +# $total_count_set_bit % 1000000007. +# +# Example 1: +# Input: $N = 4 +# +# Explanation: First find out the set bit counts of all numbers +# i.e. 1, 2, 3 and 4. +# +# Decimal: 1 +# Binary: 001 +# Set Bit Counts: 1 +# +# Decimal: 2 +# Binary: 010 +# Set Bit Counts: 1 +# +# Decimal: 3 +# Binary: 011 +# Set Bit Counts: 2 +# +# Decimal: 4 +# Binary: 100 +# Set Bit Counts: 1 +# +# Total set bit count: 1 + 1 + 2 + 1 = 5 +# +# Output: Your script should print `5` as `5 % 1000000007 = 5`. +# Example 2: +# Input: $N = 3 +# +# Explanation: First find out the set bit counts of all numbers +# i.e. 1, 2 and 3. +# +# Decimal: 1 +# Binary: 01 +# Set Bit Count: 1 +# +# Decimal: 2 +# Binary: 10 +# Set Bit Count: 1 +# +# Decimal: 3 +# Binary: 11 +# Set Bit Count: 2 +# +# Total set bit count: 1 + 1 + 2 = 4 +# +# Output: Your script should print `4` as `4 % 1000000007 = 4`. +# +# +# 2020 colin crain +## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## + + + +unit sub MAIN (Int $input = 100000) ; + +my $tot += .base(2).comb.sum for ^$input; + +say "input: $input"; +say "total: ", $tot %= 1000000007; + diff --git a/challenge-079/colin-crain/raku/ch-2.raku b/challenge-079/colin-crain/raku/ch-2.raku new file mode 100644 index 0000000000..e3b5e17c12 --- /dev/null +++ b/challenge-079/colin-crain/raku/ch-2.raku @@ -0,0 +1,71 @@ +#!/usr/bin/env perl6 +# +# +# water_inside_a_duck.raku +# +# TASK #2 › Trapped Rain Water +# Submitted by: Mohammad S Anwar +# You are given an array of positive numbers @N. +# +# Write a script to represent it as Histogram Chart and find out how +# much water it can trap. +# +# Example 1: +# Input: @N = (2, 1, 4, 1, 2, 5) +# The histogram representation of the given array is as below. +# 5 # +# 4 # # +# 3 # # +# 2 # # # # +# 1 # # # # # # +# _ _ _ _ _ _ _ +# 2 1 4 1 2 5 +# Looking at the above histogram, we can see, it can trap 1 unit of rain +# water between 1st and 3rd column. Similary it can trap 5 units of rain +# water betweem 3rd and last column. +# +# Therefore your script should print 6. +# +# Example 2: +# Input: @N = (3, 1, 3, 1, 1, 5) +# The histogram representation of the given array is as below. +# 5 # +# 4 # +# 3 # # # +# 2 # # # +# 1 # # # # # # +# _ _ _ _ _ _ _ +# 3 1 3 1 1 5 +# Looking at the above histogram, we can see, it can trap 2 units of +# rain water between 1st and 3rd column. Also it can trap 4 units of +# rain water between 3rd and last column. +# +# Therefore your script should print 6. +# +# +# +# 2020 colin crain +## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## + + + +unit sub MAIN (*@input) ; + +@input.elems == 0 and @input = 9,12,10,6,8,6,9,6; +my $vol; +say "histogram:\n"; + +for (@input.min..@input.max).reverse -> $level { + my @peaks = @input.keys.grep({ @input[$_] >= $level }); + $vol += ($_[1] - $_[0] - 1) for @peaks.rotor(2=>-1); + + ## draw the histogram while we're looping through the levels + say $level.fmt("%-2s | "), (^@input).map({ @input[$_] >= $level ?? '##' !! ' ' }).join: ' '; +} + +## out +say '---+' ~ '---' x @input.elems; +say ' | ' ~ @input.map(*.fmt("%-3s")).join ~ "\n"; + +say "volume: ", $vol; + diff --git a/stats/pwc-current.json b/stats/pwc-current.json index ec4a67a338..63e0c9af91 100644 --- a/stats/pwc-current.json +++ b/stats/pwc-current.json @@ -1,35 +1,279 @@ { - "subtitle" : { - "text" : "[Champions: 44] Last updated at 2020-09-28 00:56:39 GMT" - }, "yAxis" : { "title" : { "text" : "Total Solutions" } }, - "tooltip" : { - "headerFormat" : "{series.name}
", - "followPointer" : 1, - "pointFormat" : "{point.name}: {point.y:f}
" + "chart" : { + "type" : "column" }, "xAxis" : { "type" : "category" }, + "series" : [ + { + "name" : "Perl Weekly Challenge - 079", + "colorByPoint" : 1, + "data" : [ + { + "drilldown" : "Abigail", + "name" : "Abigail", + "y" : 2 + }, + { + "drilldown" : "Adam Russell", + "y" : 3, + "name" : "Adam Russell" + }, + { + "drilldown" : "Alexander Pankoff", + "y" : 2, + "name" : "Alexander Pankoff" + }, + { + "drilldown" : "Andrew Shitov", + "name" : "Andrew Shitov", + "y" : 2 + }, + { + "drilldown" : "Anton Fedotov", + "y" : 1, + "name" : "Anton Fedotov" + }, + { + "drilldown" : "Arne Sommer", + "name" : "Arne Sommer", + "y" : 4 + }, + { + "drilldown" : "Athanasius", + "name" : "Athanasius", + "y" : 4 + }, + { + "y" : 2, + "name" : "Bob Lied", + "drilldown" : "Bob Lied" + }, + { + "name" : "Cheok-Yin Fung", + "y" : 1, + "drilldown" : "Cheok-Yin Fung" + }, + { + "drilldown" : "Colin Crain", + "name" : "Colin Crain", + "y" : 5 + }, + { + "drilldown" : "Cristina Heredia", + "name" : "Cristina Heredia", + "y" : 1 + }, + { + "y" : 4, + "name" : "Daniel Mantovani", + "drilldown" : "Daniel Mantovani" + }, + { + "y" : 2, + "name" : "Dave Cross", + "drilldown" : "Dave Cross" + }, + { + "drilldown" : "Dave Jacoby", + "y" : 2, + "name" : "Dave Jacoby" + }, + { + "drilldown" : "E. Choroba", + "name" : "E. Choroba", + "y" : 2 + }, + { + "y" : 4, + "name" : "Flavio Poletti", + "drilldown" : "Flavio Poletti" + }, + { + "name" : "Jaldhar H. Vyas", + "y" : 5, + "drilldown" : "Jaldhar H. Vyas" + }, + { + "drilldown" : "James Smith", + "name" : "James Smith", + "y" : 2 + }, + { + "drilldown" : "Jan Krnavek", + "y" : 2, + "name" : "Jan Krnavek" + }, + { + "drilldown" : "Jorg Sommrey", + "name" : "Jorg Sommrey", + "y" : 2 + }, + { + "y" : 4, + "name" : "Julio de Castro", + "drilldown" : "Julio de Castro" + }, + { + "drilldown" : "Kang-min Liu", + "name" : "Kang-min Liu", + "y" : 2 + }, + { + "y" : 5, + "name" : "Laurent Rosenfeld", + "drilldown" : "Laurent Rosenfeld" + }, + { + "y" : 1, + "name" : "Leo Manfredi", + "drilldown" : "Leo Manfredi" + }, + { + "drilldown" : "Lubos Kolouch", + "y" : 2, + "name" : "Lubos Kolouch" + }, + { + "y" : 2, + "name" : "Mark Anderson", + "drilldown" : "Mark Anderson" + }, + { + "name" : "Markus Holzer", + "y" : 2, + "drilldown" : "Markus Holzer" + }, + { + "name" : "Mohammad S Anwar", + "y" : 5, + "drilldown" : "Mohammad S Anwar" + }, + { + "y" : 5, + "name" : "Myoungjin Jeon", + "drilldown" : "Myoungjin Jeon" + }, + { + "drilldown" : "Niels van Dijke", + "y" : 2, + "name" : "Niels van Dijke" + }, + { + "name" : "Nuno Vieira", + "y" : 2, + "drilldown" : "Nuno Vieira" + }, + { + "drilldown" : "Pete Houston", + "y" : 2, + "name" : "Pete Houston" + }, + { + "drilldown" : "Rakulius", + "name" : "Rakulius", + "y" : 1 + }, + { + "y" : 1, + "name" : "Richard Park", + "drilldown" : "Richard Park" + }, + { + "y" : 5, + "name" : "Roger Bell_West", + "drilldown" : "Roger Bell_West" + }, + { + "drilldown" : "Shawn Wagner", + "name" : "Shawn Wagner", + "y" : 2 + }, + { + "drilldown" : "Simon Green", + "y" : 3, + "name" : "Simon Green" + }, + { + "drilldown" : "Simon Proctor", + "name" : "Simon Proctor", + "y" : 2 + }, + { + "name" : "Steven Wilson", + "y" : 3, + "drilldown" : "Steven Wilson" + }, + { + "name" : "Ted Leahy", + "y" : 2, + "drilldown" : "Ted Leahy" + }, + { + "name" : "Ulrich Rieke", + "y" : 3, + "drilldown" : "Ulrich Rieke" + }, + { + "name" : "Vinod Kumar K", + "y" : 1, + "drilldown" : "Vinod Kumar K" + }, + { + "drilldown" : "Walt Mankowski", + "y" : 3, + "name" : "Walt Mankowski" + }, + { + "drilldown" : "Wanderdoc", + "y" : 2, + "name" : "Wanderdoc" + } + ] + } + ], + "plotOptions" : { + "series" : { + "dataLabels" : { + "enabled" : 1, + "format" : "{point.y}" + }, + "borderWidth" : 0 + } + }, + "subtitle" : { + "text" : "[Champions: 44] Last updated at 2020-09-28 05:37:38 GMT" + }, + "title" : { + "text" : "Perl Weekly Challenge - 079" + }, + "legend" : { + "enabled" : 0 + }, + "tooltip" : { + "followPointer" : 1, + "headerFormat" : "{series.name}
", + "pointFormat" : "{point.name}: {point.y:f}
" + }, "drilldown" : { "series" : [ { + "name" : "Abigail", "id" : "Abigail", "data" : [ [ "Perl", 2 ] - ], - "name" : "Abigail" + ] }, { - "name" : "Adam Russell", - "id" : "Adam Russell", "data" : [ [ "Perl", @@ -39,27 +283,29 @@ "Blog", 1 ] - ] + ], + "id" : "Adam Russell", + "name" : "Adam Russell" }, { - "id" : "Alexander Pankoff", "data" : [ [ "Perl", 2 ] ], - "name" : "Alexander Pankoff" + "name" : "Alexander Pankoff", + "id" : "Alexander Pankoff" }, { + "name" : "Andrew Shitov", "id" : "Andrew Shitov", "data" : [ [ "Raku", 2 ] - ], - "name" : "Andrew Shitov" + ] }, { "data" : [ @@ -72,6 +318,7 @@ "name" : "Anton Fedotov" }, { + "id" : "Arne Sommer", "name" : "Arne Sommer", "data" : [ [ @@ -86,11 +333,9 @@ "Blog", 1 ] - ], - "id" : "Arne Sommer" + ] }, { - "name" : "Athanasius", "data" : [ [ "Perl", @@ -101,6 +346,7 @@ 2 ] ], + "name" : "Athanasius", "id" : "Athanasius" }, { @@ -114,34 +360,42 @@ ] }, { + "id" : "Cheok-Yin Fung", + "name" : "Cheok-Yin Fung", "data" : [ [ "Perl", 1 ] - ], - "id" : "Cheok-Yin Fung", - "name" : "Cheok-Yin Fung" + ] }, { + "id" : "Colin Crain", + "name" : "Colin Crain", "data" : [ + [ + "Perl", + 2 + ], + [ + "Raku", + 2 + ], [ "Blog", 1 ] - ], - "id" : "Colin Crain", - "name" : "Colin Crain" + ] }, { + "name" : "Cristina Heredia", "id" : "Cristina Heredia", "data" : [ [ "Perl", 1 ] - ], - "name" : "Cristina Heredia" + ] }, { "data" : [ @@ -158,13 +412,13 @@ "name" : "Daniel Mantovani" }, { - "id" : "Dave Cross", "data" : [ [ "Perl", 2 ] ], + "id" : "Dave Cross", "name" : "Dave Cross" }, { @@ -188,7 +442,6 @@ ] }, { - "name" : "Flavio Poletti", "data" : [ [ "Perl", @@ -199,6 +452,7 @@ 2 ] ], + "name" : "Flavio Poletti", "id" : "Flavio Poletti" }, { @@ -216,40 +470,41 @@ 1 ] ], - "id" : "Jaldhar H. Vyas", - "name" : "Jaldhar H. Vyas" + "name" : "Jaldhar H. Vyas", + "id" : "Jaldhar H. Vyas" }, { - "name" : "James Smith", "data" : [ [ "Perl", 2 ] ], + "name" : "James Smith", "id" : "James Smith" }, { "name" : "Jan Krnavek", + "id" : "Jan Krnavek", "data" : [ [ "Raku", 2 ] - ], - "id" : "Jan Krnavek" + ] }, { - "name" : "Jorg Sommrey", "data" : [ [ "Perl", 2 ] ], - "id" : "Jorg Sommrey" + "id" : "Jorg Sommrey", + "name" : "Jorg Sommrey" }, { + "name" : "Julio de Castro", "id" : "Julio de Castro", "data" : [ [ @@ -260,8 +515,7 @@ "Raku", 2 ] - ], - "name" : "Julio de Castro" + ] }, { "name" : "Kang-min Liu", @@ -274,6 +528,8 @@ ] }, { + "name" : "Laurent Rosenfeld", + "id" : "Laurent Rosenfeld", "data" : [ [ "Perl", @@ -287,9 +543,7 @@ "Blog", 1 ] - ], - "id" : "Laurent Rosenfeld", - "name" : "Laurent Rosenfeld" + ] }, { "data" : [ @@ -302,14 +556,14 @@ "name" : "Leo Manfredi" }, { + "id" : "Lubos Kolouch", + "name" : "Lubos Kolouch", "data" : [ [ "Perl", 2 ] - ], - "id" : "Lubos Kolouch", - "name" : "Lubos Kolouch" + ] }, { "data" : [ @@ -318,20 +572,22 @@ 2 ] ], - "id" : "Mark Anderson", - "name" : "Mark Anderson" + "name" : "Mark Anderson", + "id" : "Mark Anderson" }, { - "id" : "Markus Holzer", "data" : [ [ "Raku", 2 ] ], - "name" : "Markus Holzer" + "name" : "Markus Holzer", + "id" : "Markus Holzer" }, { + "name" : "Mohammad S Anwar", + "id" : "Mohammad S Anwar", "data" : [ [ "Perl", @@ -345,12 +601,9 @@ "Blog", 1 ] - ], - "id" : "Mohammad S Anwar", - "name" : "Mohammad S Anwar" + ] }, { - "id" : "Myoungjin Jeon", "data" : [ [ "Perl", @@ -365,41 +618,42 @@ 1 ] ], - "name" : "Myoungjin Jeon" + "name" : "Myoungjin Jeon", + "id" : "Myoungjin Jeon" }, { - "id" : "Niels van Dijke", "data" : [ [ "Perl", 2 ] ], + "id" : "Niels van Dijke", "name" : "Niels van Dijke" }, { + "name" : "Nuno Vieira", + "id" : "Nuno Vieira", "data" : [ [ "Perl", 2 ] - ], - "id" : "Nuno Vieira", - "name" : "Nuno Vieira" + ] }, { - "name" : "Pete Houston", "data" : [ [ "Perl", 2 ] ], + "name" : "Pete Houston", "id" : "Pete Houston" }, { - "name" : "Rakulius", "id" : "Rakulius", + "name" : "Rakulius", "data" : [ [ "Raku", @@ -408,14 +662,14 @@ ] }, { - "name" : "Richard Park", - "id" : "Richard Park", "data" : [ [ "Blog", 1 ] - ] + ], + "id" : "Richard Park", + "name" : "Richard Park" }, { "name" : "Roger Bell_West", @@ -436,17 +690,16 @@ ] }, { - "name" : "Shawn Wagner", - "id" : "Shawn Wagner", "data" : [ [ "Perl", 2 ] - ] + ], + "id" : "Shawn Wagner", + "name" : "Shawn Wagner" }, { - "name" : "Simon Green", "data" : [ [ "Perl", @@ -457,20 +710,22 @@ 1 ] ], - "id" : "Simon Green" + "id" : "Simon Green", + "name" : "Simon Green" }, { + "id" : "Simon Proctor", + "name" : "Simon Proctor", "data" : [ [ "Raku", 2 ] - ], - "id" : "Simon Proctor", - "name" : "Simon Proctor" + ] }, { "name" : "Steven Wilson", + "id" : "Steven Wilson", "data" : [ [ "Perl", @@ -480,17 +735,16 @@ "Blog", 1 ] - ], - "id" : "Steven Wilson" + ] }, { - "id" : "Ted Leahy", "data" : [ [ "Perl", 2 ] ], + "id" : "Ted Leahy", "name" : "Ted Leahy" }, { @@ -504,18 +758,18 @@ 2 ] ], - "id" : "Ulrich Rieke", - "name" : "Ulrich Rieke" + "name" : "Ulrich Rieke", + "id" : "Ulrich Rieke" }, { + "id" : "Vinod Kumar K", "name" : "Vinod Kumar K", "data" : [ [ "Perl", 1 ] - ], - "id" : "Vinod Kumar K" + ] }, { "name" : "Walt Mankowski", @@ -532,261 +786,15 @@ ] }, { + "id" : "Wanderdoc", + "name" : "Wanderdoc", "data" : [ [ "Perl", 2 ] - ], - "id" : "Wanderdoc", - "name" : "Wanderdoc" + ] } ] - }, - "title" : { - "text" : "Perl Weekly Challenge - 079" - }, - "plotOptions" : { - "series" : { - "dataLabels" : { - "format" : "{point.y}", - "enabled" : 1 - }, - "borderWidth" : 0 - } - }, - "legend" : { - "enabled" : 0 - }, - "series" : [ - { - "colorByPoint" : 1, - "data" : [ - { - "y" : 2, - "drilldown" : "Abigail", - "name" : "Abigail" - }, - { - "name" : "Adam Russell", - "y" : 3, - "drilldown" : "Adam Russell" - }, - { - "drilldown" : "Alexander Pankoff", - "y" : 2, - "name" : "Alexander Pankoff" - }, - { - "drilldown" : "Andrew Shitov", - "y" : 2, - "name" : "Andrew Shitov" - }, - { - "name" : "Anton Fedotov", - "drilldown" : "Anton Fedotov", - "y" : 1 - }, - { - "name" : "Arne Sommer", - "drilldown" : "Arne Sommer", - "y" : 4 - }, - { - "name" : "Athanasius", - "drilldown" : "Athanasius", - "y" : 4 - }, - { - "drilldown" : "Bob Lied", - "y" : 2, - "name" : "Bob Lied" - }, - { - "name" : "Cheok-Yin Fung", - "drilldown" : "Cheok-Yin Fung", - "y" : 1 - }, - { - "drilldown" : "Colin Crain", - "y" : 1, - "name" : "Colin Crain" - }, - { - "drilldown" : "Cristina Heredia", - "y" : 1, - "name" : "Cristina Heredia" - }, - { - "name" : "Daniel Mantovani", - "y" : 4, - "drilldown" : "Daniel Mantovani" - }, - { - "name" : "Dave Cross", - "y" : 2, - "drilldown" : "Dave Cross" - }, - { - "y" : 2, - "drilldown" : "Dave Jacoby", - "name" : "Dave Jacoby" - }, - { - "drilldown" : "E. Choroba", - "y" : 2, - "name" : "E. Choroba" - }, - { - "drilldown" : "Flavio Poletti", - "y" : 4, - "name" : "Flavio Poletti" - }, - { - "drilldown" : "Jaldhar H. Vyas", - "y" : 5, - "name" : "Jaldhar H. Vyas" - }, - { - "name" : "James Smith", - "y" : 2, - "drilldown" : "James Smith" - }, - { - "name" : "Jan Krnavek", - "drilldown" : "Jan Krnavek", - "y" : 2 - }, - { - "drilldown" : "Jorg Sommrey", - "y" : 2, - "name" : "Jorg Sommrey" - }, - { - "name" : "Julio de Castro", - "drilldown" : "Julio de Castro", - "y" : 4 - }, - { - "name" : "Kang-min Liu", - "y" : 2, - "drilldown" : "Kang-min Liu" - }, - { - "y" : 5, - "drilldown" : "Laurent Rosenfeld", - "name" : "Laurent Rosenfeld" - }, - { - "name" : "Leo Manfredi", - "y" : 1, - "drilldown" : "Leo Manfredi" - }, - { - "name" : "Lubos Kolouch", - "drilldown" : "Lubos Kolouch", - "y" : 2 - }, - { - "name" : "Mark Anderson", - "drilldown" : "Mark Anderson", - "y" : 2 - }, - { - "name" : "Markus Holzer", - "drilldown" : "Markus Holzer", - "y" : 2 - }, - { - "drilldown" : "Mohammad S Anwar", - "y" : 5, - "name" : "Mohammad S Anwar" - }, - { - "name" : "Myoungjin Jeon", - "y" : 5, - "drilldown" : "Myoungjin Jeon" - }, - { - "drilldown" : "Niels van Dijke", - "y" : 2, - "name" : "Niels van Dijke" - }, - { - "name" : "Nuno Vieira", - "y" : 2, - "drilldown" : "Nuno Vieira" - }, - { - "name" : "Pete Houston", - "drilldown" : "Pete Houston", - "y" : 2 - }, - { - "name" : "Rakulius", - "y" : 1, - "drilldown" : "Rakulius" - }, - { - "y" : 1, - "drilldown" : "Richard Park", - "name" : "Richard Park" - }, - { - "name" : "Roger Bell_West", - "drilldown" : "Roger Bell_West", - "y" : 5 - }, - { - "drilldown" : "Shawn Wagner", - "y" : 2, - "name" : "Shawn Wagner" - }, - { - "name" : "Simon Green", - "drilldown" : "Simon Green", - "y" : 3 - }, - { - "name" : "Simon Proctor", - "drilldown" : "Simon Proctor", - "y" : 2 - }, - { - "name" : "Steven Wilson", - "drilldown" : "Steven Wilson", - "y" : 3 - }, - { - "drilldown" : "Ted Leahy", - "y" : 2, - "name" : "Ted Leahy" - }, - { - "drilldown" : "Ulrich Rieke", - "y" : 3, - "name" : "Ulrich Rieke" - }, - { - "name" : "Vinod Kumar K", - "drilldown" : "Vinod Kumar K", - "y" : 1 - }, - { - "drilldown" : "Walt Mankowski", - "y" : 3, - "name" : "Walt Mankowski" - }, - { - "y" : 2, - "drilldown" : "Wanderdoc", - "name" : "Wanderdoc" - } - ], - "name" : "Perl Weekly Challenge - 079" - } - ], - "chart" : { - "type" : "column" } } diff --git a/stats/pwc-language-breakdown-summary.json b/stats/pwc-language-breakdown-summary.json index ce9eb26b75..d22947c678 100644 --- a/stats/pwc-language-breakdown-summary.json +++ b/stats/pwc-language-breakdown-summary.json @@ -1,36 +1,49 @@ { + "subtitle" : { + "text" : "Last updated at 2020-09-28 05:37:38 GMT" + }, "tooltip" : { "pointFormat" : "{point.y:.0f}" }, - "subtitle" : { - "text" : "Last updated at 2020-09-28 00:56:39 GMT" + "legend" : { + "enabled" : "false" }, - "yAxis" : { - "min" : 0, - "title" : { - "text" : null - } + "title" : { + "text" : "Perl Weekly Challenge Contributions [2019 - 2020]" }, "xAxis" : { + "type" : "category", "labels" : { "style" : { - "fontFamily" : "Verdana, sans-serif", - "fontSize" : "13px" + "fontSize" : "13px", + "fontFamily" : "Verdana, sans-serif" } - }, - "type" : "category" - }, - "title" : { - "text" : "Perl Weekly Challenge Contributions [2019 - 2020]" + } }, "chart" : { "type" : "column" }, - "legend" : { - "enabled" : "false" + "yAxis" : { + "min" : 0, + "title" : { + "text" : null + } }, "series" : [ { + "name" : "Contributions", + "dataLabels" : { + "align" : "right", + "y" : 10, + "style" : { + "fontSize" : "13px", + "fontFamily" : "Verdana, sans-serif" + }, + "enabled" : "true", + "rotation" : -90, + "format" : "{point.y:.0f}", + "color" : "#FFFFFF" + }, "data" : [ [ "Blog", @@ -38,26 +51,13 @@ ], [ "Perl", - 3382 + 3384 ], [ "Raku", - 2188 + 2190 ] - ], - "dataLabels" : { - "enabled" : "true", - "rotation" : -90, - "format" : "{point.y:.0f}", - "y" : 10, - "align" : "right", - "style" : { - "fontSize" : "13px", - "fontFamily" : "Verdana, sans-serif" - }, - "color" : "#FFFFFF" - }, - "name" : "Contributions" + ] } ] } diff --git a/stats/pwc-language-breakdown.json b/stats/pwc-language-breakdown.json index d4773a9a0f..a49aa1ce5b 100644 --- a/stats/pwc-language-breakdown.json +++ b/stats/pwc-language-breakdown.json @@ -1,18 +1,7 @@ { - "title" : { - "text" : "Perl Weekly Challenge Language" - }, - "plotOptions" : { - "series" : { - "dataLabels" : { - "format" : "{point.y}", - "enabled" : 1 - }, - "borderWidth" : 0 - } - }, "series" : [ { + "name" : "Perl Weekly Challenge Languages", "data" : [ { "name" : "#001", @@ -20,13 +9,13 @@ "drilldown" : "001" }, { + "name" : "#002", "y" : 111, - "drilldown" : "002", - "name" : "#002" + "drilldown" : "002" }, { - "y" : 71, "drilldown" : "003", + "y" : 71, "name" : "#003" }, { @@ -35,18 +24,18 @@ "name" : "#004" }, { - "name" : "#005", "drilldown" : "005", + "name" : "#005", "y" : 72 }, { - "y" : 52, "drilldown" : "006", + "y" : 52, "name" : "#006" }, { - "name" : "#007", "drilldown" : "007", + "name" : "#007", "y" : 59 }, { @@ -60,33 +49,33 @@ "drilldown" : "009" }, { - "name" : "#010", + "drilldown" : "010", "y" : 60, - "drilldown" : "010" + "name" : "#010" }, { - "name" : "#011", "drilldown" : "011", + "name" : "#011", "y" : 79 }, { - "name" : "#012", "drilldown" : "012", + "name" : "#012", "y" : 83 }, { "y" : 78, - "drilldown" : "013", - "name" : "#013" + "name" : "#013", + "drilldown" : "013" }, { - "name" : "#014", "drilldown" : "014", + "name" : "#014", "y" : 96 }, { - "name" : "#015", "y" : 93, + "name" : "#015", "drilldown" : "015" }, { @@ -105,9 +94,9 @@ "name" : "#018" }, { + "name" : "#019", "y" : 97, - "drilldown" : "019", - "name" : "#019" + "drilldown" : "019" }, { "drilldown" : "020", @@ -115,74 +104,74 @@ "name" : "#020" }, { - "name" : "#021", "y" : 67, + "name" : "#021", "drilldown" : "021" }, { - "y" : 63, "drilldown" : "022", + "y" : 63, "name" : "#022" }, { - "name" : "#023", "drilldown" : "023", + "name" : "#023", "y" : 91 }, { - "name" : "#024", "drilldown" : "024", - "y" : 70 + "y" : 70, + "name" : "#024" }, { "name" : "#025", - "drilldown" : "025", - "y" : 55 + "y" : 55, + "drilldown" : "025" }, { - "drilldown" : "026", + "name" : "#026", "y" : 70, - "name" : "#026" + "drilldown" : "026" }, { - "name" : "#027", "drilldown" : "027", - "y" : 58 + "y" : 58, + "name" : "#027" }, { - "y" : 78, "drilldown" : "028", + "y" : 78, "name" : "#028" }, { - "name" : "#029", "y" : 77, + "name" : "#029", "drilldown" : "029" }, { - "name" : "#030", "drilldown" : "030", + "name" : "#030", "y" : 115 }, { "name" : "#031", - "drilldown" : "031", - "y" : 87 + "y" : 87, + "drilldown" : "031" }, { - "y" : 92, "drilldown" : "032", + "y" : 92, "name" : "#032" }, { + "name" : "#033", "y" : 108, - "drilldown" : "033", - "name" : "#033" + "drilldown" : "033" }, { "y" : 62, - "drilldown" : "034", - "name" : "#034" + "name" : "#034", + "drilldown" : "034" }, { "name" : "#035", @@ -191,32 +180,32 @@ }, { "name" : "#036", - "drilldown" : "036", - "y" : 66 + "y" : 66, + "drilldown" : "036" }, { "drilldown" : "037", - "y" : 65, - "name" : "#037" + "name" : "#037", + "y" : 65 }, { - "name" : "#038", + "drilldown" : "038", "y" : 65, - "drilldown" : "038" + "name" : "#038" }, { "name" : "#039", - "drilldown" : "039", - "y" : 60 + "y" : 60, + "drilldown" : "039" }, { + "y" : 71, "name" : "#040", - "drilldown" : "040", - "y" : 71 + "drilldown" : "040" }, { - "y" : 74, "drilldown" : "041", + "y" : 74, "name" : "#041" }, { @@ -230,29 +219,29 @@ "name" : "#043" }, { - "drilldown" : "044", "y" : 82, - "name" : "#044" + "name" : "#044", + "drilldown" : "044" }, { + "name" : "#045", "y" : 94, - "drilldown" : "045", - "name" : "#045" + "drilldown" : "045" }, { - "drilldown" : "046", "y" : 85, - "name" : "#046" + "name" : "#046", + "drilldown" : "046" }, { - "name" : "#047", "y" : 82, + "name" : "#047", "drilldown" : "047" }, { - "name" : "#048", "drilldown" : "048", - "y" : 106 + "y" : 106, + "name" : "#048" }, { "drilldown" : "049", @@ -260,28 +249,28 @@ "name" : "#049" }, { - "drilldown" : "050", + "name" : "#050", "y" : 96, - "name" : "#050" + "drilldown" : "050" }, { - "name" : "#051", + "drilldown" : "051", "y" : 87, - "drilldown" : "051" + "name" : "#051" }, { + "y" : 89, "name" : "#052", - "drilldown" : "052", - "y" : 89 + "drilldown" : "052" }, { + "drilldown" : "053", "name" : "#053", - "y" : 99, - "drilldown" : "053" + "y" : 99 }, { - "name" : "#054", "y" : 101, + "name" : "#054", "drilldown" : "054" }, { @@ -295,54 +284,54 @@ "name" : "#056" }, { - "drilldown" : "057", "y" : 78, - "name" : "#057" + "name" : "#057", + "drilldown" : "057" }, { - "name" : "#058", "drilldown" : "058", + "name" : "#058", "y" : 67 }, { "name" : "#059", - "drilldown" : "059", - "y" : 87 + "y" : 87, + "drilldown" : "059" }, { "y" : 83, - "drilldown" : "060", - "name" : "#060" + "name" : "#060", + "drilldown" : "060" }, { + "name" : "#061", "y" : 79, - "drilldown" : "061", - "name" : "#061" + "drilldown" : "061" }, { - "drilldown" : "062", "y" : 54, - "name" : "#062" + "name" : "#062", + "drilldown" : "062" }, { - "drilldown" : "063", + "name" : "#063", "y" : 87, - "name" : "#063" + "drilldown" : "063" }, { - "y" : 78, "drilldown" : "064", - "name" : "#064" + "name" : "#064", + "y" : 78 }, { + "drilldown" : "065", "name" : "#065", - "y" : 71, - "drilldown" : "065" + "y" : 71 }, { - "y" : 82, "drilldown" : "066", - "name" : "#066" + "name" : "#066", + "y" : 82 }, { "name" : "#067", @@ -350,14 +339,14 @@ "drilldown" : "067" }, { - "name" : "#068", "drilldown" : "068", - "y" : 73 + "y" : 73, + "name" : "#068" }, { + "y" : 81, "name" : "#069", - "drilldown" : "069", - "y" : 81 + "drilldown" : "069" }, { "name" : "#070", @@ -366,23 +355,23 @@ }, { "drilldown" : "071", - "y" : 76, - "name" : "#071" + "name" : "#071", + "y" : 76 }, { - "drilldown" : "072", + "name" : "#072", "y" : 110, - "name" : "#072" + "drilldown" : "072" }, { + "drilldown" : "073", "name" : "#073", - "y" : 108, - "drilldown" : "073" + "y" : 108 }, { + "drilldown" : "074", "name" : "#074", - "y" : 113, - "drilldown" : "074" + "y" : 113 }, { "drilldown" : "075", @@ -390,9 +379,9 @@ "name" : "#075" }, { + "y" : 91, "name" : "#076", - "drilldown" : "076", - "y" : 91 + "drilldown" : "076" }, { "name" : "#077", @@ -400,45 +389,54 @@ "drilldown" : "077" }, { + "y" : 121, "name" : "#078", - "drilldown" : "078", - "y" : 121 + "drilldown" : "078" }, { "name" : "#079", - "y" : 110, + "y" : 114, "drilldown" : "079" } ], - "colorByPoint" : "true", - "name" : "Perl Weekly Challenge Languages" + "colorByPoint" : "true" } ], - "legend" : { - "enabled" : "false" - }, - "chart" : { - "type" : "column" - }, - "subtitle" : { - "text" : "Click the columns to drilldown the language breakdown. Last updated at 2020-09-28 00:56:39 GMT" + "plotOptions" : { + "series" : { + "dataLabels" : { + "enabled" : 1, + "format" : "{point.y}" + }, + "borderWidth" : 0 + } }, "yAxis" : { "title" : { "text" : "Total Solutions" } }, - "tooltip" : { - "followPointer" : "true", - "pointFormat" : "Challenge {point.name}: {point.y:f}
", - "headerFormat" : "" + "chart" : { + "type" : "column" }, "xAxis" : { "type" : "category" }, + "title" : { + "text" : "Perl Weekly Challenge Language" + }, + "legend" : { + "enabled" : "false" + }, + "tooltip" : { + "followPointer" : "true", + "headerFormat" : "", + "pointFormat" : "Challenge {point.name}: {point.y:f}
" + }, "drilldown" : { "series" : [ { + "name" : "001", "id" : "001", "data" : [ [ @@ -453,11 +451,9 @@ "Blog", 11 ] - ], - "name" : "001" + ] }, { - "id" : "002", "data" : [ [ "Perl", @@ -472,10 +468,10 @@ 10 ] ], + "id" : "002", "name" : "002" }, { - "id" : "003", "data" : [ [ "Perl", @@ -490,11 +486,10 @@ 9 ] ], - "name" : "003" + "name" : "003", + "id" : "003" }, { - "name" : "004", - "id" : "004", "data" : [ [ "Perl", @@ -508,9 +503,12 @@ "Blog", 10 ] - ] + ], + "id" : "004", + "name" : "004" }, { + "id" : "005", "name" : "005", "data" : [ [ @@ -525,10 +523,11 @@ "Blog", 12 ] - ], - "id" : "005" + ] }, { + "name" : "006", + "id" : "006", "data" : [ [ "Perl", @@ -542,12 +541,11 @@ "Blog", 7 ] - ], - "id" : "006", - "name" : "006" + ] }, { "id" : "007", + "name" : "007", "data" : [ [ "Perl", @@ -561,8 +559,7 @@ "Blog", 10 ] - ], - "name" : "007" + ] }, { "name" : "008", @@ -583,6 +580,7 @@ ] }, { + "name" : "009", "id" : "009", "data" : [ [ @@ -597,12 +595,9 @@ "Blog", 13 ] - ], - "name" : "009" + ] }, { - "name" : "010", - "id" : "010", "data" : [ [ "Perl", @@ -616,10 +611,13 @@ "Blog", 11 ] - ] + ], + "name" : "010", + "id" : "010" }, { "id" : "011", + "name" : "011", "data" : [ [ "Perl", @@ -633,8 +631,7 @@ "Blog", 10 ] - ], - "name" : "011" + ] }, { "name" : "012", @@ -655,8 +652,6 @@ ] }, { - "name" : "013", - "id" : "013", "data" : [ [ "Perl", @@ -670,10 +665,11 @@ "Blog", 13 ] - ] + ], + "name" : "013", + "id" : "013" }, { - "id" : "014", "data" : [ [ "Perl", @@ -688,10 +684,10 @@ 15 ] ], + "id" : "014", "name" : "014" }, { - "id" : "015", "data" : [ [ "Perl", @@ -706,9 +702,12 @@ 15 ] ], + "id" : "015", "name" : "015" }, { + "id" : "016", + "name" : "016", "data" : [ [ "Perl", @@ -722,9 +721,7 @@ "Blog", 12 ] - ], - "id" : "016", - "name" : "016" + ] }, { "data" : [ @@ -745,6 +742,7 @@ "name" : "017" }, { + "id" : "018", "name" : "018", "data" : [ [ @@ -759,11 +757,9 @@ "Blog", 14 ] - ], - "id" : "018" + ] }, { - "name" : "019", "data" : [ [ "Perl", @@ -778,9 +774,12 @@ 13 ] ], + "name" : "019", "id" : "019" }, { + "name" : "020", + "id" : "020", "data" : [ [ "Perl", @@ -794,9 +793,7 @@ "Blog", 13 ] - ], - "id" : "020", - "name" : "020" + ] }, { "name" : "021", @@ -817,8 +814,8 @@ ] }, { - "name" : "022", "id" : "022", + "name" : "022", "data" : [ [ "Perl", @@ -835,6 +832,8 @@ ] }, { + "id" : "023", + "name" : "023", "data" : [ [ "Perl", @@ -848,9 +847,7 @@ "Blog", 12 ] - ], - "id" : "023", - "name" : "023" + ] }, { "name" : "024", @@ -885,11 +882,10 @@ 12 ] ], - "id" : "025", - "name" : "025" + "name" : "025", + "id" : "025" }, { - "name" : "026", "data" : [ [ "Perl", @@ -904,10 +900,10 @@ 10 ] ], - "id" : "026" + "id" : "026", + "name" : "026" }, { - "id" : "027", "data" : [ [ "Perl", @@ -922,10 +918,12 @@ 9 ] ], - "name" : "027" + "name" : "027", + "id" : "027" }, { "id" : "028", + "name" : "028", "data" : [ [ "Perl", @@ -939,8 +937,7 @@ "Blog", 9 ] - ], - "name" : "028" + ] }, { "data" : [ @@ -957,12 +954,10 @@ 12 ] ], - "id" : "029", - "name" : "029" + "name" : "029", + "id" : "029" }, { - "name" : "030", - "id" : "030", "data" : [ [ "Perl", @@ -976,9 +971,13 @@ "Blog", 10 ] - ] + ], + "name" : "030", + "id" : "030" }, { + "name" : "031", + "id" : "031", "data" : [ [ "Perl", @@ -992,9 +991,7 @@ "Blog", 9 ] - ], - "id" : "031", - "name" : "031" + ] }, { "name" : "032", @@ -1015,8 +1012,6 @@ ] }, { - "name" : "033", - "id" : "033", "data" : [ [ "Perl", @@ -1030,10 +1025,11 @@ "Blog", 10 ] - ] + ], + "name" : "033", + "id" : "033" }, { -