From c5b0010f1c4cf28ee945bb9dd8f4f2a2172a88c9 Mon Sep 17 00:00:00 2001 From: Mohammad S Anwar Date: Sun, 11 Oct 2020 19:51:48 +0100 Subject: - Added solutions by Colin Crain. --- challenge-081/colin-crain/perl/ch-1.pl | 81 +++++ challenge-081/colin-crain/perl/ch-2.pl | 130 +++++++ challenge-081/colin-crain/raku/ch-1.raku | 73 ++++ challenge-081/colin-crain/raku/ch-2.raku | 124 +++++++ stats/pwc-current.json | 300 ++++++++-------- stats/pwc-language-breakdown-summary.json | 60 ++-- stats/pwc-language-breakdown.json | 560 +++++++++++++++--------------- stats/pwc-leaders.json | 404 ++++++++++----------- stats/pwc-summary-1-30.json | 102 +++--- stats/pwc-summary-121-150.json | 106 +++--- stats/pwc-summary-151-180.json | 110 +++--- stats/pwc-summary-181-210.json | 38 +- stats/pwc-summary-31-60.json | 118 +++---- stats/pwc-summary-61-90.json | 96 ++--- stats/pwc-summary-91-120.json | 52 +-- stats/pwc-summary.json | 440 +++++++++++------------ 16 files changed, 1605 insertions(+), 1189 deletions(-) create mode 100644 challenge-081/colin-crain/perl/ch-1.pl create mode 100644 challenge-081/colin-crain/perl/ch-2.pl create mode 100644 challenge-081/colin-crain/raku/ch-1.raku create mode 100644 challenge-081/colin-crain/raku/ch-2.raku diff --git a/challenge-081/colin-crain/perl/ch-1.pl b/challenge-081/colin-crain/perl/ch-1.pl new file mode 100644 index 0000000000..e5be33336f --- /dev/null +++ b/challenge-081/colin-crain/perl/ch-1.pl @@ -0,0 +1,81 @@ +#! /opt/local/bin/perl +# +# common_bonds.pl +# TASK #1 › Common Base String +# Submitted by: Mohammad S Anwar +# You are given 2 strings, $A and $B. +# +# Write a script to find out common base strings in $A and $B. +# +# A substring of a string $S is called base string if +# repeated concatenation of the substring results in the string. +# +# Example 1: +# Input: +# $A = "abcdabcd" +# $B = "abcdabcdabcdabcd" +# +# Output: +# ("abcd", "abcdabcd") +# Example 2: +# Input: +# $A = "aaa" +# $B = "aa" +# +# Output: +# ("a") +# +# method: +# This really isn't as complicated as it may sound. +# +# A common base string must by definition be sized as a harmonic +# divisor of the original: 1/2, 1/3, 1/4 etc. We can save some +# trouble by looking at only those substrings that fit this basic +# constraint. +# +# Any base string will begin the source string and extend for n +# characters, with n contained within the set of fractional +# components outlined above with respect to the source string +# length. Thus 1/2 length, or 1/3, 1/4 etc. +# +# It's also rather difficult to come up with a good example as most +# input variations produce super-obvious results. Not much of a +# needle in a haystack going on here. +# +# 2020 colin crain +## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## + + + +use warnings; +use strict; +use feature ":5.26"; + +## ## ## ## ## MAIN: + +@ARGV == 0 and @ARGV = qw(agtcagtcagtcagtc agtcagtcagtcagtcagtcagtcagtcagtc); + +my ($A, $B) = @ARGV; +my @out; +my %subs_a = map {$_ => 1} find_base_strings($A); +for (find_base_strings($B)) { + push @out, $_ if exists $subs_a{$_} ; +} +say $_ for @out; + + +## ## ## ## ## SUBS: + +sub find_base_strings { + my $str = shift; + my $len = length $str; + my @out; + + for (1..$len) { + next unless $len % $_ == 0; + my $sub = substr $str, 0, $len/$_; + my $res = $str =~ /^(?:$sub)+$/; + push @out, $sub if $res; + } + return @out; +} \ No newline at end of file diff --git a/challenge-081/colin-crain/perl/ch-2.pl b/challenge-081/colin-crain/perl/ch-2.pl new file mode 100644 index 0000000000..4e65791988 --- /dev/null +++ b/challenge-081/colin-crain/perl/ch-2.pl @@ -0,0 +1,130 @@ +#! /opt/local/bin/perl +# +# bag-o-sharks.pl +# +# TASK #2 › Frequency Sort +# Submitted by: Mohammad S Anwar +# You are given file named input. +# +# Write a script to find the frequency of all the words. +# +# It should print the result as first column of each line should be the +# frequency of the the word followed by all the words of that frequency +# arranged in lexicographical order. Also sort the words in the +# ascending order of frequency. +# +# INPUT file +# +# West Side Story +# +# The award-winning adaptation of the classic romantic tragedy "Romeo +# and Juliet". The feuding families become two warring New York City +# gangs, the white Jets led by Riff and the Latino Sharks, led by +# Bernardo. Their hatred escalates to a point where neither can coexist +# with any form of understanding. But when Riff's best friend (and +# former Jet) Tony and Bernardo's younger sister Maria meet at a dance, +# no one can do anything to stop their love. Maria and Tony begin +# meeting in secret, planning to run away. Then the Sharks and Jets plan +# a rumble under the highway--whoever wins gains control of the streets. +# Maria sends Tony to stop it, hoping it can end the violence. It goes +# terribly wrong, and before the lovers know what's happened, tragedy +# strikes and doesn't stop until the climactic and heartbreaking ending. + +# NOTE +# For the sake of this task, please ignore the following in the input file: +# . " ( ) , 's -- + +# OUTPUT +# 1 But City It Jet Juliet Latino New Romeo Side Story Their Then West +# York adaptation any anything at award-winning away become before begin +# best classic climactic coexist control dance do doesn't end ending +# escalates families feuding form former friend gains gangs goes +# happened hatred heartbreaking highway hoping in know love lovers meet +# meeting neither no one plan planning point romantic rumble run secret +# sends sister streets strikes terribly their two under understanding +# until violence warring what when where white whoever wins with wrong +# younger +# +# 2 Bernardo Jets Riff Sharks The by it led tragedy +# +# 3 Maria Tony a can of stop +# +# 4 to +# +# 9 and the + +# method: +# a bit of NLP for you all. A naive bag of words output by +# frequency. We'll start by pretreating the data: scrub certain +# defined punctuation and possessive case into spaces, and lowercase +# normalize all text. WE will make sure to keep a single hyphen. We +# won't be doing any name recognition so the we won't worry about +# losing capitalization for those entities here and concern +# ourselves rather with making sure "their" and "Their" get counted +# as the same word. This is of course a judgement call and not +# specified behavior but seems fitting to this basic word analysis. + +# Consequently the output is slightly different as, for instance, +# 'their' is moved to the second category, and the output is +# actually in lexicographic order as requested, rather than the +# example ASCII sort with capital letters first. +# +# Next-level improvements on this method might be begin to identify +# Named Entities by selectively removing the capitalization of +# letters only at beginning of sentences, that is to say after a +# period or certain punctuation, or at the beginning of a paragraph +# or quote. Then unusually capitalized words could be identified in +# the corpus on basis of their grammarical uniqueness. +# +# +# 2020 colin crain +## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## + + + +use warnings; +use strict; +use feature ":5.26"; + +## ## ## ## ## MAIN: + +local $/ = undef; +my $input = ; + +## preproc +$input =~ s/[. " ( ) ,]|'s|--/ /xg; +$input = lc($input); + +my %bag; +my %freq; + +## proc +my @words = split /\s+/, $input; +$bag{$_}++ for @words; + +while (my ($key, $value) = each %bag) { + push $freq{$value}->@*, $key; +} + +## output phase +for (sort {$a-$b} keys %freq) { + say +(sprintf "%-4s", $_) . join "\n ", sort $freq{$_}->@*; + say ''; +} + + +__DATA__ +West Side Story + +The award-winning adaptation of the classic romantic tragedy "Romeo +and Juliet". The feuding families become two warring New York City +gangs, the white Jets led by Riff and the Latino Sharks, led by +Bernardo. Their hatred escalates to a point where neither can coexist +with any form of understanding. But when Riff's best friend (and +former Jet) Tony and Bernardo's younger sister Maria meet at a dance, +no one can do anything to stop their love. Maria and Tony begin +meeting in secret, planning to run away. Then the Sharks and Jets plan +a rumble under the highway--whoever wins gains control of the streets. +Maria sends Tony to stop it, hoping it can end the violence. It goes +terribly wrong, and before the lovers know what's happened, tragedy +strikes and doesn't stop until the climactic and heartbreaking ending. \ No newline at end of file diff --git a/challenge-081/colin-crain/raku/ch-1.raku b/challenge-081/colin-crain/raku/ch-1.raku new file mode 100644 index 0000000000..5b26fcb94f --- /dev/null +++ b/challenge-081/colin-crain/raku/ch-1.raku @@ -0,0 +1,73 @@ +#!/usr/bin/env perl6 +# +# +# common-bonds.raku +# +# TASK #1 › Common Base String +# Submitted by: Mohammad S Anwar +# You are given 2 strings, $A and $B. +# +# Write a script to find out common base strings in $A and $B. +# +# A substring of a string $S is called base string if +# repeated concatenation of the substring results in the string. +# +# Example 1: +# Input: +# $A = "abcdabcd" +# $B = "abcdabcdabcdabcd" +# +# Output: +# ("abcd", "abcdabcd") +# Example 2: +# Input: +# $A = "aaa" +# $B = "aa" +# +# Output: +# ("a") +# +# method: +# This really isn't as complicated as it may sound. +# +# A common base string must by definition be sized as a harmonic +# divisor of the original: 1/2, 1/3, 1/4 etc. We can save some +# trouble by looking at only those substrings that fit this basic +# constraint. +# +# Any base string will begin the source string and extend for n +# characters, with n contained within the set of fractional +# components outlined above with respect to the source string +# length. Thus 1/2 length, or 1/3, 1/4 etc. +# +# It's also rather difficult to come up with a good example as most +# input variations produce super-obvious results. Not much of a +# needle in a haystack going on here. +# +# +# 2020 colin crain +## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## + + + +unit sub MAIN ($A = "aaaaaaaaaaaaaaaaaaaaaaaa", $B = "aaaaaaaaaaaa") ; +my @out; + +my $bag-A = (find_base_strings($A)).Bag; +@out.push: $_ if $bag-A{$_}:exists for find_base_strings($B); +.say for @out; + + + +sub find_base_strings ($str) { + my @bases; + for (1..$str.chars).grep($str.chars %% *) + .map($str.chars/*) { + my $sub = $str.substr(0,$_); + @bases.push: $sub if so $str ~~ /^ $sub+ $/; + } + @bases; +} + + + diff --git a/challenge-081/colin-crain/raku/ch-2.raku b/challenge-081/colin-crain/raku/ch-2.raku new file mode 100644 index 0000000000..7437998469 --- /dev/null +++ b/challenge-081/colin-crain/raku/ch-2.raku @@ -0,0 +1,124 @@ +#!/usr/bin/env perl6 +# +# +# bag-o-sharks.raku +# +# TASK #2 › Frequency Sort +# Submitted by: Mohammad S Anwar +# You are given file named input. +# +# Write a script to find the frequency of all the words. +# +# It should print the result as first column of each line should be the +# frequency of the the word followed by all the words of that frequency +# arranged in lexicographical order. Also sort the words in the +# ascending order of frequency. +# +# INPUT file +# +# West Side Story +# +# The award-winning adaptation of the classic romantic tragedy "Romeo +# and Juliet". The feuding families become two warring New York City +# gangs, the white Jets led by Riff and the Latino Sharks, led by +# Bernardo. Their hatred escalates to a point where neither can coexist +# with any form of understanding. But when Riff's best friend (and +# former Jet) Tony and Bernardo's younger sister Maria meet at a dance, +# no one can do anything to stop their love. Maria and Tony begin +# meeting in secret, planning to run away. Then the Sharks and Jets plan +# a rumble under the highway--whoever wins gains control of the streets. +# Maria sends Tony to stop it, hoping it can end the violence. It goes +# terribly wrong, and before the lovers know what's happened, tragedy +# strikes and doesn't stop until the climactic and heartbreaking ending. + +# NOTE +# For the sake of this task, please ignore the following in the input file: +# . " ( ) , 's -- +# +# OUTPUT +# 1 But City It Jet Juliet Latino New Romeo Side Story Their Then West +# York adaptation any anything at award-winning away become before begin +# best classic climactic coexist control dance do doesn't end ending +# escalates families feuding form former friend gains gangs goes +# happened hatred heartbreaking highway hoping in know love lovers meet +# meeting neither no one plan planning point romantic rumble run secret +# sends sister streets strikes terribly their two under understanding +# until violence warring what when where white whoever wins with wrong +# younger +# +# 2 Bernardo Jets Riff Sharks The by it led tragedy +# +# 3 Maria Tony a can of stop +# +# 4 to +# +# 9 and the +# +# method: +# a bit of NLP for you all. A naive bag of words output by +# frequency. We'll start by pretreating the data: scrub certain +# defined punctuation and possessive case into spaces, and lowercase +# normalize all text. WE will make sure to keep a single hyphen. We +# won't be doing any name recognition so the we won't worry about +# losing capitalization for those entities here and concern +# ourselves rather with making sure "their" and "Their" get counted +# as the same word. This is of course a judgement call and not +# specified behavior but seems fitting to this basic word analysis. +# +# Consequently the output is slightly different as, for instance, +# 'their' is moved to the second category, and the output is +# actually in lexicographic order as requested, rather than the +# example ASCII sort with capital letters first. +# +# Next-level improvements on this method might be begin to identify +# Named Entities by selectively removing the capitalization of +# letters only at beginning of sentences, that is to say after a +# period or certain punctuation, or at the beginning of a paragraph +# or quote. Then unusually capitalized words could be identified in +# the corpus on basis of their grammarical uniqueness. +# +# +# 2020 colin crain +## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## + + + +unit sub MAIN () ; + +my $input = q:to/__END__/; + West Side Story + + The award-winning adaptation of the classic romantic tragedy "Romeo + and Juliet". The feuding families become two warring New York City + gangs, the white Jets led by Riff and the Latino Sharks, led by + Bernardo. Their hatred escalates to a point where neither can coexist + with any form of understanding. But when Riff's best friend (and + former Jet) Tony and Bernardo's younger sister Maria meet at a dance, + no one can do anything to stop their love. Maria and Tony begin + meeting in secret, planning to run away. Then the Sharks and Jets plan + a rumble under the highway--whoever wins gains control of the streets. + Maria sends Tony to stop it, hoping it can end the violence. It goes + terribly wrong, and before the lovers know what's happened, tragedy + strikes and doesn't stop until the climactic and heartbreaking ending. + __END__ + +## preproc +$input ~~ s:g/ <[."(),]> | \'s | \-\- / /; +$input .= lc; +$input .= trim; + +## freq analysis +my %freq; +for $input.split(/\s+/) + .Bag + .kv -> $key, $val { + %freq{$val}.push: $key; +} + +## out +for %freq.keys.sort({ $^a <=> $^b }) { + say $_.fmt("%-5s") ~ %freq{$_}.sort.join("\n ") ~ "\n"; +} + + + diff --git a/stats/pwc-current.json b/stats/pwc-current.json index e06739ae70..1ee7d0294f 100644 --- a/stats/pwc-current.json +++ b/stats/pwc-current.json @@ -2,14 +2,14 @@ "drilldown" : { "series" : [ { - "id" : "Abigail", "name" : "Abigail", "data" : [ [ "Perl", 2 ] - ] + ], + "id" : "Abigail" }, { "name" : "Alexander Pankoff", @@ -22,8 +22,8 @@ "id" : "Alexander Pankoff" }, { - "id" : "Andinus", "name" : "Andinus", + "id" : "Andinus", "data" : [ [ "Perl", @@ -36,14 +36,14 @@ ] }, { - "id" : "Andrew Shitov", "name" : "Andrew Shitov", "data" : [ [ "Raku", 2 ] - ] + ], + "id" : "Andrew Shitov" }, { "id" : "Athanasius", @@ -60,58 +60,64 @@ "name" : "Athanasius" }, { - "name" : "Bob Lied", "data" : [ [ "Perl", 2 ] ], - "id" : "Bob Lied" + "id" : "Bob Lied", + "name" : "Bob Lied" }, { - "name" : "Cheok-Yin Fung", "data" : [ [ "Perl", 2 ] ], - "id" : "Cheok-Yin Fung" + "id" : "Cheok-Yin Fung", + "name" : "Cheok-Yin Fung" }, { - "name" : "Colin Crain", + "id" : "Colin Crain", "data" : [ + [ + "Perl", + 2 + ], + [ + "Raku", + 2 + ], [ "Blog", 1 ] ], - "id" : "Colin Crain" + "name" : "Colin Crain" }, { - "id" : "Dave Jacoby", "data" : [ [ "Perl", 2 ] ], + "id" : "Dave Jacoby", "name" : "Dave Jacoby" }, { - "name" : "E. Choroba", "data" : [ [ "Perl", 2 ] ], - "id" : "E. Choroba" + "id" : "E. Choroba", + "name" : "E. Choroba" }, { - "id" : "Flavio Poletti", - "name" : "Flavio Poletti", "data" : [ [ "Perl", @@ -121,27 +127,29 @@ "Blog", 2 ] - ] + ], + "id" : "Flavio Poletti", + "name" : "Flavio Poletti" }, { + "name" : "James Smith", + "id" : "James Smith", "data" : [ [ "Perl", 2 ] - ], - "name" : "James Smith", - "id" : "James Smith" + ] }, { - "name" : "Jan Krnavek", + "id" : "Jan Krnavek", "data" : [ [ "Raku", 2 ] ], - "id" : "Jan Krnavek" + "name" : "Jan Krnavek" }, { "data" : [ @@ -150,8 +158,8 @@ 2 ] ], - "name" : "Jorg Sommrey", - "id" : "Jorg Sommrey" + "id" : "Jorg Sommrey", + "name" : "Jorg Sommrey" }, { "name" : "Jose Luis", @@ -164,7 +172,6 @@ "id" : "Jose Luis" }, { - "name" : "Julio de Castro", "data" : [ [ "Perl", @@ -175,27 +182,28 @@ 2 ] ], - "id" : "Julio de Castro" + "id" : "Julio de Castro", + "name" : "Julio de Castro" }, { - "name" : "Kang-min Liu", + "id" : "Kang-min Liu", "data" : [ [ "Raku", 2 ] ], - "id" : "Kang-min Liu" + "name" : "Kang-min Liu" }, { + "name" : "Lars Thegler", + "id" : "Lars Thegler", "data" : [ [ "Perl", 2 ] - ], - "name" : "Lars Thegler", - "id" : "Lars Thegler" + ] }, { "name" : "Laurent Rosenfeld", @@ -216,24 +224,24 @@ "id" : "Laurent Rosenfeld" }, { - "id" : "Lubos Kolouch", + "name" : "Lubos Kolouch", "data" : [ [ "Perl", 2 ] ], - "name" : "Lubos Kolouch" + "id" : "Lubos Kolouch" }, { "name" : "Mark Anderson", + "id" : "Mark Anderson", "data" : [ [ "Raku", 2 ] - ], - "id" : "Mark Anderson" + ] }, { "data" : [ @@ -242,8 +250,8 @@ 2 ] ], - "name" : "Markus Holzer", - "id" : "Markus Holzer" + "id" : "Markus Holzer", + "name" : "Markus Holzer" }, { "data" : [ @@ -252,12 +260,10 @@ 2 ] ], - "name" : "Mohammad S Anwar", - "id" : "Mohammad S Anwar" + "id" : "Mohammad S Anwar", + "name" : "Mohammad S Anwar" }, { - "id" : "Myoungjin Jeon", - "name" : "Myoungjin Jeon", "data" : [ [ "Perl", @@ -271,11 +277,13 @@ "Blog", 2 ] - ] + ], + "id" : "Myoungjin Jeon", + "name" : "Myoungjin Jeon" }, { - "id" : "Niels van Dijke", "name" : "Niels van Dijke", + "id" : "Niels van Dijke", "data" : [ [ "Perl", @@ -284,27 +292,27 @@ ] }, { - "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" : "Roger Bell_West", + "id" : "Roger Bell_West", "data" : [ [ "Perl", @@ -319,19 +327,20 @@ 1 ] ], - "id" : "Roger Bell_West" + "name" : "Roger Bell_West" }, { + "name" : "Shawn Wagner", + "id" : "Shawn Wagner", "data" : [ [ "Perl", 2 ] - ], - "name" : "Shawn Wagner", - "id" : "Shawn Wagner" + ] }, { + "name" : "Simon Green", "id" : "Simon Green", "data" : [ [ @@ -342,21 +351,21 @@ "Blog", 1 ] - ], - "name" : "Simon Green" + ] }, { - "name" : "Simon Proctor", "data" : [ [ "Raku", 2 ] ], - "id" : "Simon Proctor" + "id" : "Simon Proctor", + "name" : "Simon Proctor" }, { "name" : "Ulrich Rieke", + "id" : "Ulrich Rieke", "data" : [ [ "Perl", @@ -366,22 +375,21 @@ "Raku", 1 ] - ], - "id" : "Ulrich Rieke" + ] }, { - "name" : "Vinod Kumar K", "data" : [ [ "Perl", 1 ] ], - "id" : "Vinod Kumar K" + "id" : "Vinod Kumar K", + "name" : "Vinod Kumar K" }, { - "id" : "Walt Mankowski", "name" : "Walt Mankowski", + "id" : "Walt Mankowski", "data" : [ [ "Perl", @@ -394,47 +402,26 @@ ] }, { - "name" : "Wanderdoc", + "id" : "Wanderdoc", "data" : [ [ "Perl", 2 ] ], - "id" : "Wanderdoc" + "name" : "Wanderdoc" } ] }, - "xAxis" : { - "type" : "category" - }, - "chart" : { - "type" : "column" - }, - "plotOptions" : { - "series" : { - "dataLabels" : { - "format" : "{point.y}", - "enabled" : 1 - }, - "borderWidth" : 0 - } - }, - "title" : { - "text" : "Perl Weekly Challenge - 081" - }, - "tooltip" : { - "followPointer" : 1, - "pointFormat" : "{point.name}: {point.y:f}
", - "headerFormat" : "{series.name}
" - }, "series" : [ { + "colorByPoint" : 1, + "name" : "Perl Weekly Challenge - 081", "data" : [ { "y" : 2, - "drilldown" : "Abigail", - "name" : "Abigail" + "name" : "Abigail", + "drilldown" : "Abigail" }, { "drilldown" : "Alexander Pankoff", @@ -442,94 +429,94 @@ "name" : "Alexander Pankoff" }, { + "y" : 4, "name" : "Andinus", - "drilldown" : "Andinus", - "y" : 4 + "drilldown" : "Andinus" }, { - "drilldown" : "Andrew Shitov", "y" : 2, - "name" : "Andrew Shitov" + "name" : "Andrew Shitov", + "drilldown" : "Andrew Shitov" }, { "y" : 4, - "drilldown" : "Athanasius", - "name" : "Athanasius" + "name" : "Athanasius", + "drilldown" : "Athanasius" }, { - "name" : "Bob Lied", "y" : 2, + "name" : "Bob Lied", "drilldown" : "Bob Lied" }, { "drilldown" : "Cheok-Yin Fung", - "y" : 2, - "name" : "Cheok-Yin Fung" + "name" : "Cheok-Yin Fung", + "y" : 2 }, { "drilldown" : "Colin Crain", - "y" : 1, + "y" : 5, "name" : "Colin Crain" }, { "y" : 2, - "drilldown" : "Dave Jacoby", - "name" : "Dave Jacoby" + "name" : "Dave Jacoby", + "drilldown" : "Dave Jacoby" }, { + "y" : 2, "name" : "E. Choroba", - "drilldown" : "E. Choroba", - "y" : 2 + "drilldown" : "E. Choroba" }, { - "name" : "Flavio Poletti", "drilldown" : "Flavio Poletti", + "name" : "Flavio Poletti", "y" : 4 }, { - "name" : "James Smith", "drilldown" : "James Smith", - "y" : 2 + "y" : 2, + "name" : "James Smith" }, { "drilldown" : "Jan Krnavek", - "y" : 2, - "name" : "Jan Krnavek" + "name" : "Jan Krnavek", + "y" : 2 }, { "drilldown" : "Jorg Sommrey", - "y" : 2, - "name" : "Jorg Sommrey" + "name" : "Jorg Sommrey", + "y" : 2 }, { "name" : "Jose Luis", - "drilldown" : "Jose Luis", - "y" : 2 + "y" : 2, + "drilldown" : "Jose Luis" }, { - "drilldown" : "Julio de Castro", "y" : 4, - "name" : "Julio de Castro" + "name" : "Julio de Castro", + "drilldown" : "Julio de Castro" }, { - "name" : "Kang-min Liu", "drilldown" : "Kang-min Liu", + "name" : "Kang-min Liu", "y" : 2 }, { - "name" : "Lars Thegler", "drilldown" : "Lars Thegler", - "y" : 2 + "y" : 2, + "name" : "Lars Thegler" }, { + "name" : "Laurent Rosenfeld", "y" : 3, - "drilldown" : "Laurent Rosenfeld", - "name" : "Laurent Rosenfeld" + "drilldown" : "Laurent Rosenfeld" }, { - "drilldown" : "Lubos Kolouch", + "name" : "Lubos Kolouch", "y" : 2, - "name" : "Lubos Kolouch" + "drilldown" : "Lubos Kolouch" }, { "drilldown" : "Mark Anderson", @@ -537,8 +524,8 @@ "name" : "Mark Anderson" }, { - "name" : "Markus Holzer", "y" : 2, + "name" : "Markus Holzer", "drilldown" : "Markus Holzer" }, { @@ -547,14 +534,14 @@ "name" : "Mohammad S Anwar" }, { + "drilldown" : "Myoungjin Jeon", "name" : "Myoungjin Jeon", - "y" : 6, - "drilldown" : "Myoungjin Jeon" + "y" : 6 }, { - "name" : "Niels van Dijke", + "drilldown" : "Niels van Dijke", "y" : 2, - "drilldown" : "Niels van Dijke" + "name" : "Niels van Dijke" }, { "name" : "Nuno Vieira", @@ -562,34 +549,34 @@ "drilldown" : "Nuno Vieira" }, { + "name" : "Pete Houston", "y" : 2, - "drilldown" : "Pete Houston", - "name" : "Pete Houston" + "drilldown" : "Pete Houston" }, { + "drilldown" : "Roger Bell_West", "name" : "Roger Bell_West", - "y" : 5, - "drilldown" : "Roger Bell_West" + "y" : 5 }, { - "name" : "Shawn Wagner", "drilldown" : "Shawn Wagner", - "y" : 2 + "y" : 2, + "name" : "Shawn Wagner" }, { "drilldown" : "Simon Green", - "y" : 3, - "name" : "Simon Green" + "name" : "Simon Green", + "y" : 3 }, { "drilldown" : "Simon Proctor", - "y" : 2, - "name" : "Simon Proctor" + "name" : "Simon Proctor", + "y" : 2 }, { + "drilldown" : "Ulrich Rieke", "name" : "Ulrich Rieke", - "y" : 2, - "drilldown" : "Ulrich Rieke" + "y" : 2 }, { "name" : "Vinod Kumar K", @@ -597,29 +584,50 @@ "drilldown" : "Vinod Kumar K" }, { - "y" : 3, "drilldown" : "Walt Mankowski", + "y" : 3, "name" : "Walt Mankowski" }, { "drilldown" : "Wanderdoc", - "y" : 2, - "name" : "Wanderdoc" + "name" : "Wanderdoc", + "y" : 2 } - ], - "colorByPoint" : 1, - "name" : "Perl Weekly Challenge - 081" + ] } ], - "legend" : { - "enabled" : 0 - }, - "subtitle" : { - "text" : "[Champions: 35] Last updated at 2020-10-11 18:26:19 GMT" + "xAxis" : { + "type" : "category" }, "yAxis" : { "title" : { "text" : "Total Solutions" } + }, + "tooltip" : { + "pointFormat" : "{point.name}: {point.y:f}
", + "followPointer" : 1, + "headerFormat" : "{series.name}
" + }, + "plotOptions" : { + "series" : { + "dataLabels" : { + "enabled" : 1, + "format" : "{point.y}" + }, + "borderWidth" : 0 + } + }, + "subtitle" : { + "text" : "[Champions: 35] Last updated at 2020-10-11 18:51:06 GMT" + }, + "chart" : { + "type" : "column" + }, + "legend" : { + "enabled" : 0 + }, + "title" : { + "text" : "Perl Weekly Challenge - 081" } } diff --git a/stats/pwc-language-breakdown-summary.json b/stats/pwc-language-breakdown-summary.json index 2f8faab6f2..83c658d6a7 100644 --- a/stats/pwc-language-breakdown-summary.json +++ b/stats/pwc-language-breakdown-summary.json @@ -1,7 +1,25 @@ { + "subtitle" : { + "text" : "Last updated at 2020-10-11 18:51:06 GMT" + }, "legend" : { "enabled" : "false" }, + "title" : { + "text" : "Perl Weekly Challenge Contributions [2019 - 2020]" + }, + "chart" : { + "type" : "column" + }, + "xAxis" : { + "type" : "category", + "labels" : { + "style" : { + "fontSize" : "13px", + "fontFamily" : "Verdana, sans-serif" + } + } + }, "series" : [ { "data" : [ @@ -11,53 +29,35 @@ ], [ "Perl", - 3515 + 3517 ], [ "Raku", - 2244 + 2246 ] ], "name" : "Contributions", "dataLabels" : { - "enabled" : "true", - "y" : 10, - "align" : "right", - "format" : "{point.y:.0f}", "style" : { "fontSize" : "13px", "fontFamily" : "Verdana, sans-serif" }, - "rotation" : -90, - "color" : "#FFFFFF" + "color" : "#FFFFFF", + "align" : "right", + "y" : 10, + "enabled" : "true", + "format" : "{point.y:.0f}", + "rotation" : -90 } } ], - "subtitle" : { - "text" : "Last updated at 2020-10-11 18:26:19 GMT" + "tooltip" : { + "pointFormat" : "{point.y:.0f}" }, "yAxis" : { - "min" : 0, "title" : { "text" : null - } - }, - "xAxis" : { - "type" : "category", - "labels" : { - "style" : { - "fontFamily" : "Verdana, sans-serif", - "fontSize" : "13px" - } - } - }, - "chart" : { - "type" : "column" - }, - "title" : { - "text" : "Perl Weekly Challenge Contributions [2019 - 2020]" - }, - "tooltip" : { - "pointFormat" : "{point.y:.0f}" + }, + "min" : 0 } } diff --git a/stats/pwc-language-breakdown.json b/stats/pwc-language-breakdown.json index bfd3ed0424..25f0596f8d 100644 --- a/stats/pwc-language-breakdown.json +++ b/stats/pwc-language-breakdown.json @@ -1,43 +1,53 @@ { + "plotOptions" : { + "series" : { + "dataLabels" : { + "format" : "{point.y}", + "enabled" : 1 + }, + "borderWidth" : 0 + } + }, + "tooltip" : { + "headerFormat" : "", + "pointFormat" : "Challenge {point.name}: {point.y:f}
", + "followPointer" : "true" + }, "yAxis" : { "title" : { "text" : "Total Solutions" } }, - "subtitle" : { - "text" : "Click the columns to drilldown the language breakdown. Last updated at 2020-10-11 18:26:19 GMT" - }, - "legend" : { - "enabled" : "false" + "xAxis" : { + "type" : "category" }, "series" : [ { - "colorByPoint" : "true", "data" : [ { "drilldown" : "001", - "y" : 144, - "name" : "#001" + "name" : "#001", + "y" : 144 }, { - "name" : "#002", "y" : 113, + "name" : "#002", "drilldown" : "002" }, { + "name" : "#003", "y" : 71, - "drilldown" : "003", - "name" : "#003" + "drilldown" : "003" }, { - "drilldown" : "004", "y" : 91, - "name" : "#004" + "name" : "#004", + "drilldown" : "004" }, { + "y" : 72, "name" : "#005", - "drilldown" : "005", - "y" : 72 + "drilldown" : "005" }, { "name" : "#006", @@ -50,64 +60,64 @@ "drilldown" : "007" }, { - "name" : "#008", "y" : 72, + "name" : "#008", "drilldown" : "008" }, { - "name" : "#009", "drilldown" : "009", + "name" : "#009", "y" : 70 }, { - "y" : 60, "drilldown" : "010", - "name" : "#010" + "name" : "#010", + "y" : 60 }, { "drilldown" : "011", - "y" : 79, - "name" : "#011" + "name" : "#011", + "y" : 79 }, { "y" : 83, - "drilldown" : "012", - "name" : "#012" + "name" : "#012", + "drilldown" : "012" }, { - "name" : "#013", "y" : 78, + "name" : "#013", "drilldown" : "013" }, { - "name" : "#014", "drilldown" : "014", + "name" : "#014", "y" : 96 }, { - "name" : "#015", "y" : 93, + "name" : "#015", "drilldown" : "015" }, { "y" : 66, - "drilldown" : "016", - "name" : "#016" + "name" : "#016", + "drilldown" : "016" }, { + "y" : 79, "name" : "#017", - "drilldown" : "017", - "y" : 79 + "drilldown" : "017" }, { - "drilldown" : "018", + "name" : "#018", "y" : 76, - "name" : "#018" + "drilldown" : "018" }, { - "y" : 97, "drilldown" : "019", - "name" : "#019" + "name" : "#019", + "y" : 97 }, { "drilldown" : "020", @@ -115,29 +125,29 @@ "name" : "#020" }, { - "name" : "#021", + "drilldown" : "021", "y" : 67, - "drilldown" : "021" + "name" : "#021" }, { + "y" : 63, "name" : "#022", - "drilldown" : "022", - "y" : 63 + "drilldown" : "022" }, { "y" : 91, - "drilldown" : "023", - "name" : "#023" + "name" : "#023", + "drilldown" : "023" }, { - "name" : "#024", "y" : 70, + "name" : "#024", "drilldown" : "024" }, { + "name" : "#025", "y" : 55, - "drilldown" : "025", - "name" : "#025" + "drilldown" : "025" }, { "name" : "#026", @@ -155,108 +165,108 @@ "drilldown" : "028" }, { - "name" : "#029", "y" : 77, + "name" : "#029", "drilldown" : "029" }, { - "name" : "#030", "drilldown" : "030", - "y" : 115 + "y" : 115, + "name" : "#030" }, { + "drilldown" : "031", "name" : "#031", - "y" : 87, - "drilldown" : "031" + "y" : 87 }, { - "drilldown" : "032", "y" : 92, - "name" : "#032" + "name" : "#032", + "drilldown" : "032" }, { + "drilldown" : "033", "name" : "#033", - "y" : 108, - "drilldown" : "033" + "y" : 108 }, { - "name" : "#034", + "drilldown" : "034", "y" : 62, - "drilldown" : "034" + "name" : "#034" }, { "drilldown" : "035", - "y" : 62, - "name" : "#035" + "name" : "#035", + "y" : 62 }, { "name" : "#036", - "drilldown" : "036", - "y" : 66 + "y" : 66, + "drilldown" : "036" }, { - "name" : "#037", "y" : 65, + "name" : "#037", "drilldown" : "037" }, { - "y" : 65, "drilldown" : "038", + "y" : 65, "name" : "#038" }, { + "drilldown" : "039", "name" : "#039", - "y" : 60, - "drilldown" : "039" + "y" : 60 }, { "drilldown" : "040", - "y" : 71, - "name" : "#040" + "name" : "#040", + "y" : 71 }, { "drilldown" : "041", - "y" : 74, - "name" : "#041" + "name" : "#041", + "y" : 74 }, { + "y" : 88, "name" : "#042", - "drilldown" : "042", - "y" : 88 + "drilldown" : "042" }, { - "y" : 66, "drilldown" : "043", + "y" : 66, "name" : "#043" }, { - "name" : "#044", "drilldown" : "044", + "name" : "#044", "y" : 82 }, { - "y" : 94, "drilldown" : "045", - "name" : "#045" + "name" : "#045", + "y" : 94 }, { - "name" : "#046", "y" : 85, + "name" : "#046", "drilldown" : "046" }, { "drilldown" : "047", - "y" : 82, - "name" : "#047" + "name" : "#047", + "y" : 82 }, { "drilldown" : "048", - "y" : 106, - "name" : "#048" + "name" : "#048", + "y" : 106 }, { - "name" : "#049", "drilldown" : "049", + "name" : "#049", "y" : 85 }, { @@ -266,123 +276,123 @@ }, { "y" : 87, - "drilldown" : "051", - "name" : "#051" + "name" : "#051", + "drilldown" : "051" }, { - "y" : 89, "drilldown" : "052", + "y" : 89, "name" : "#052" }, { "drilldown" : "053", - "y" : 99, - "name" : "#053" + "name" : "#053", + "y" : 99 }, { - "y" : 101, "drilldown" : "054", - "name" : "#054" + "name" : "#054", + "y" : 101 }, { + "name" : "#055", "y" : 86, - "drilldown" : "055", - "name" : "#055" + "drilldown" : "055" }, { - "name" : "#056", "drilldown" : "056", + "name" : "#056", "y" : 93 }, { - "name" : "#057", "drilldown" : "057", + "name" : "#057", "y" : 78 }, { + "drilldown" : "058", "name" : "#058", - "y" : 67, - "drilldown" : "058" + "y" : 67 }, { + "drilldown" : "059", "name" : "#059", - "y" : 87, - "drilldown" : "059" + "y" : 87 }, { "drilldown" : "060", - "y" : 83, - "name" : "#060" + "name" : "#060", + "y" : 83 }, { + "y" : 79, "name" : "#061", - "drilldown" : "061", - "y" : 79 + "drilldown" : "061" }, { - "y" : 54, "drilldown" : "062", + "y" : 54, "name" : "#062" }, { - "name" : "#063", "drilldown" : "063", + "name" : "#063", "y" : 87 }, { "y" : 78, - "drilldown" : "064", - "name" : "#064" + "name" : "#064", + "drilldown" : "064" }, { - "name" : "#065", "drilldown" : "065", - "y" : 71 + "y" : 71, + "name" : "#065" }, { - "name" : "#066", "drilldown" : "066", + "name" : "#066", "y" : 82 }, { - "y" : 88, "drilldown" : "067", - "name" : "#067" + "name" : "#067", + "y" : 88 }, { - "drilldown" : "068", "y" : 73, - "name" : "#068" + "name" : "#068", + "drilldown" : "068" }, { "y" : 81, - "drilldown" : "069", - "name" : "#069" + "name" : "#069", + "drilldown" : "069" }, { - "y" : 91, "drilldown" : "070", + "y" : 91, "name" : "#070" }, { + "drilldown" : "071", "name" : "#071", - "y" : 76, - "drilldown" : "071" + "y" : 76 }, { + "name" : "#072", "y" : 110, - "drilldown" : "072", - "name" : "#072" + "drilldown" : "072" }, { - "name" : "#073", "drilldown" : "073", + "name" : "#073", "y" : 108 }, { - "name" : "#074", + "drilldown" : "074", "y" : 113, - "drilldown" : "074" + "name" : "#074" }, { "drilldown" : "075", @@ -390,14 +400,14 @@ "name" : "#075" }, { - "name" : "#076", "y" : 91, + "name" : "#076", "drilldown" : "076" }, { - "drilldown" : "077", + "name" : "#077", "y" : 94, - "name" : "#077" + "drilldown" : "077" }, { "drilldown" : "078", @@ -405,50 +415,29 @@ "name" : "#078" }, { - "name" : "#079", + "drilldown" : "079", "y" : 116, - "drilldown" : "079" + "name" : "#079" }, { + "name" : "#080", "y" : 121, - "drilldown" : "080", - "name" : "#080" + "drilldown" : "080" }, { - "name" : "#081", "drilldown" : "081", - "y" : 86 + "name" : "#081", + "y" : 90 } ], + "colorByPoint" : "true", "name" : "Perl Weekly Challenge Languages" } ], - "tooltip" : { - "followPointer" : "true", - "pointFormat" : "Challenge {point.name}: {point.y:f}
", - "headerFormat" : "" - }, - "title" : { - "text" : "Perl Weekly Challenge Language" - }, - "plotOptions" : { - "series" : { - "borderWidth" : 0, - "dataLabels" : { - "format" : "{point.y}", - "enabled" : 1 - } - } - }, - "chart" : { - "type" : "column" - }, - "xAxis" : { - "type" : "category" - }, "drilldown" : { "series" : [ { + "name" : "001", "data" : [ [ "Perl", @@ -463,10 +452,10 @@ 11 ] ], - "name" : "001", "id" : "001" }, { + "id" : "002", "data" : [ [ "Perl", @@ -481,12 +470,9 @@ 10 ] ], - "name" : "002", - "id" : "002" + "name" : "002" }, { - "id" : "003", - "name" : "003", "data" : [ [ "Perl", @@ -500,11 +486,12 @@ "Blog", 9 ] - ] + ], + "id" : "003", + "name" : "003" }, { "id" : "004", - "name" : "004", "data" : [ [ "Perl", @@ -518,7 +505,8 @@ "Blog", 10 ] - ] + ], + "name" : "004" }, { "id" : "005", @@ -540,6 +528,7 @@ }, { "name" : "006", + "id" : "006", "data" : [ [ "Perl", @@ -553,12 +542,11 @@ "Blog", 7 ] - ], - "id" : "006" + ] }, { - "id" : "007", "name" : "007", + "id" : "007", "data" : [ [ "Perl", @@ -575,7 +563,6 @@ ] }, { - "name" : "008", "data" : [ [ "Perl", @@ -590,10 +577,10 @@ 12 ] ], - "id" : "008" + "id" : "008", + "name" : "008" }, { - "id" : "009", "data" : [ [ "Perl", @@ -608,10 +595,11 @@ 13 ] ], + "id" : "009", "name" : "009" }, { - "name" : "010", + "id" : "010", "data" : [ [ "Perl", @@ -626,11 +614,10 @@ 11 ] ], - "id" : "010" + "name" : "010" }, { "id" : "011", - "name" : "011", "data" : [ [ "Perl", @@ -644,11 +631,12 @@ "Blog", 10 ] - ] + ], + "name" : "011" }, { - "id" : "012", "name" : "012", + "id" : "012", "data" : [ [ "Perl", @@ -666,6 +654,7 @@ }, { "name" : "013", + "id" : "013", "data" : [ [ "Perl", @@ -679,8 +668,7 @@ "Blog", 13 ] - ], - "id" : "013" + ] }, { "name" : "014", @@ -702,7 +690,6 @@ }, { "id" : "015", - "name" : "015", "data" : [ [ "Perl", @@ -716,9 +703,11 @@ "Blog", 15 ] - ] + ], + "name" : "015" }, { + "id" : "016", "data" : [ [ "Perl", @@ -733,11 +722,10 @@ 12 ] ], - "name" : "016", - "id" : "016" + "name" : "016" }, { - "name" : "017", + "id" : "017", "data" : [ [ "Perl", @@ -752,9 +740,11 @@ 12 ] ], - "id" : "017" + "name" : "017" }, { + "name" : "018", + "id" : "018", "data" : [ [ "Perl", @@ -768,12 +758,9 @@ "Blog", 14 ] - ], - "name" : "018", - "id" : "018" + ] }, { - "id" : "019", "name" : "019", "data" : [ [ @@ -788,9 +775,11 @@ "Blog", 13 ] - ] + ], + "id" : "019" }, { + "id" : "020", "data" : [ [ "Perl", @@ -805,11 +794,10 @@ 13 ] ], - "name" : "020", - "id" : "020" + "name" : "020" }, { - "id" : "021", + "name" : "021", "data" : [ [ "Perl", @@ -824,10 +812,11 @@ 10 ] ], - "name" : "021" + "id" : "021" }, { "name" : "022", + "id" : "022", "data" : [ [ "Perl", @@ -841,11 +830,10 @@ "Blog", 10 ] - ], - "id" : "022" + ] }, { - "name" : "023", + "id" : "023", "data" : [ [ "Perl", @@ -860,7 +848,7 @@ 12 ] ], - "id" : "023" + "name" : "023" }, { "id" : "024", @@ -899,6 +887,7 @@ "id" : "025" }, { + "name" : "026", "data" : [ [ "Perl", @@ -913,12 +902,9 @@ 10 ] ], - "name" : "026", "id" : "026" }, { - "id" : "027", - "name" : "027", "data" : [ [ "Perl", @@ -932,11 +918,12 @@ "Blog", 9 ] - ] + ], + "id" : "027", + "name" : "027" }, { "id" : "028", - "name" : "028", "data" : [ [ "Perl", @@ -950,9 +937,11 @@ "Blog", 9 ] - ] + ], + "name" : "028" }, { + "name" : "029", "data" : [ [ "Perl", @@ -967,10 +956,10 @@ 12 ] ], - "name" : "029", "id" : "029" }, { + "name" : "030", "id" : "030", "data" : [ [ @@ -985,11 +974,10 @@ "Blog", 10 ] - ], - "name" : "030" + ] }, { - "id" : "031", + "name" : "031", "data" : [ [ "Perl", @@ -1004,11 +992,11 @@ 9 ] ], - "name" : "031" + "id" : "031" }, { - "id" : "032", "name" : "032", + "id" : "032", "data" : [ [ "Perl", @@ -1025,6 +1013,7 @@ ] }, { + "name" : "033", "data" : [ [ "Perl", @@ -1039,11 +1028,11 @@ 10 ] ], - "name" : "033", "id" : "033" }, { "name" : "034", + "id" : "034", "data" : [ [ "Perl", @@ -1057,11 +1046,9 @@ "Blog", 11 ] - ], - "id" : "034" + ] }, { - "id" : "035", "data" : [ [ "Perl", @@ -1076,6 +1063,7 @@ 9 ] ], + "id" : "035", "name" : "035" }, { @@ -1098,7 +1086,6 @@ }, { "id" : "037", - "name" : "037", "data" : [ [ "Perl", @@ -1112,7 +1099,8 @@ "Blog", 9 ] - ] + ], + "name" : "037" }, { "data" : [ @@ -1129,11 +1117,10 @@ 12 ] ], - "name" : "038", - "id" : "038" + "id" : "038", + "name" : "038" }, { - "id" : "039", "data" : [ [ "Perl", @@ -1148,10 +1135,12 @@ 12 ] ], + "id" : "039", "name" : "039" }, { "name" : "040", + "id" : "040", "data" : [ [ "Perl", @@ -1165,11 +1154,9 @@ "Blog", 10 ] - ], - "id" : "040" + ] }, { - "id" : "041", "data" : [ [ "Perl", @@ -1184,10 +1171,12 @@ 9 ] ], + "id" : "041", "name" : "041" }, { "name" : "042", + "id" : "042", "data" : [ [ "Perl", @@ -1201,10 +1190,10 @@ "Blog", 11 ] - ], - "id" : "042" + ] }, { + "id" : "043", "data" : [ [ "Perl", @@ -1219,11 +1208,9 @@ 11 ] ], - "name" : "043", - "id" : "043" + "name" : "043" }, { - "id" : "044", "name" : "044", "data" : [ [ @@ -1238,9 +1225,11 @@ "Blog", 11 ] - ] + ], + "id" : "044" }, { + "name" : "045", "data" : [