From f0797ec5165f7bc58bb6f7f01a0f2b29eefacb26 Mon Sep 17 00:00:00 2001 From: Mohammad S Anwar Date: Mon, 22 Nov 2021 02:40:16 +0000 Subject: - Added solutions by Colin Crain. --- challenge-139/colin-crain/blog.txt | 1 + challenge-139/colin-crain/perl/ch-1.pl | 145 +++ challenge-139/colin-crain/perl/ch-2.pl | 102 ++ challenge-139/colin-crain/raku/ch-1.raku | 18 + challenge-139/colin-crain/raku/ch-2.raku | 31 + stats/pwc-current.json | 307 ++--- stats/pwc-language-breakdown-summary.json | 60 +- stats/pwc-language-breakdown.json | 1948 ++++++++++++++--------------- stats/pwc-leaders.json | 742 +++++------ stats/pwc-summary-1-30.json | 44 +- stats/pwc-summary-121-150.json | 36 +- stats/pwc-summary-151-180.json | 32 +- stats/pwc-summary-181-210.json | 34 +- stats/pwc-summary-211-240.json | 56 +- stats/pwc-summary-241-270.json | 48 +- stats/pwc-summary-31-60.json | 40 +- stats/pwc-summary-61-90.json | 38 +- stats/pwc-summary-91-120.json | 98 +- stats/pwc-summary.json | 1534 +++++++++++------------ 19 files changed, 2817 insertions(+), 2497 deletions(-) create mode 100644 challenge-139/colin-crain/blog.txt create mode 100755 challenge-139/colin-crain/perl/ch-1.pl create mode 100755 challenge-139/colin-crain/perl/ch-2.pl create mode 100755 challenge-139/colin-crain/raku/ch-1.raku create mode 100755 challenge-139/colin-crain/raku/ch-2.raku diff --git a/challenge-139/colin-crain/blog.txt b/challenge-139/colin-crain/blog.txt new file mode 100644 index 0000000000..b56447c4b7 --- /dev/null +++ b/challenge-139/colin-crain/blog.txt @@ -0,0 +1 @@ +https://colincrain.com/2021/11/22/thats-a-long-jort-to-sort/ diff --git a/challenge-139/colin-crain/perl/ch-1.pl b/challenge-139/colin-crain/perl/ch-1.pl new file mode 100755 index 0000000000..e4f8088647 --- /dev/null +++ b/challenge-139/colin-crain/perl/ch-1.pl @@ -0,0 +1,145 @@ +#!/Users/colincrain/perl5/perlbrew/perls/perl-5.32.0/bin/perl +# +# jortdork2.pl +# +# method: + +# jortsort is a flippant little routine that avoids sorting +# operations by simply verifying whether a nominally sorted input +# list is in fact sorted, so that if it not it can then be kicked +# back to the user to be resorted until they get it right. + +# The point is to make the user sort the input, like they said they +# would. We do, in fact, have all day. +# +# The original implementation, in javascript, accomplished this +# by... wait for it... sorting the array, and then interating +# trough the sorted output to see whether the elements match +# pairwise between the sorted and input versions. +# +# As such, it serves no purpose other than to annoy the user with a +# snarky failure mode, having saved no effort whatsoever, and even +# tossed away some additional work along the way traversing the +# arrays to make the validation check. I mean, if you're going to +# be annoying and useless you might as well go big. +# +# Ok, two can play at that game. +# +# As the "use", a term I use generously, of this function is solely +# to let the user know of their failings in life as a human, we +# empahasize this aspect of the functionality. We will improve on +# the petty jortsort v1.0, and take the opportunity to return a +# more explicit error message detailing more clearly why the user +# should reevaluate their life choices. +# +# Further, as we value the wear-and-tear on our stuff — everyone +# knows the electron flow gradually erodes our silicon wafers, as +# the mighty river erodes the very bedrock beneath it — we will not +# sort the array, but, iterating through it, check to make sure the +# array is sorted instead. We only care if any out-of-order +# elements are present, not what they actually are, nor what the +# whole truth of the matter is is. Consequently we will know our +# answer after finding only one item misplaced. As for the sorting +# from the original spec, we will simply lie and say we did it the +# hard way, and go get coffee instead. +# +# Also, in a coup de grâce, the abusively recursive tautology of +# using a sort() function to eliminate a sort() function, so we can +# then make the user select and use a sort() function of some sort +# on their data, maximizes the petty snark angle over all other +# considerations. With this in mind, even though we have quietly removed +# the need to actually sort the data to see whether it is +# sorted, we will make sure to implement our own model of a worst-case +# sorting scenario, so that occasionally at seemingly random times +# (because our model will in fact be random) we will make our +# jortsort2() function take an extraordinarily long time to finish. +# Internally, of course, we will allow our precious silicon to rest +# up a bit and take a nap for a while. We owe a lot to those chips, +# and should always take the opportunity to toss them a bone when +# we can. A well-rested chip performs better. Again, everybody knows that. + +# Lastly, we will choose to return the exit status of the routine +# rather than a more intuitive answer, say to the question: "Is it +# sorted?". Why? Because it's easier for us, of course. Having +# gotten this far in the explanation do we really need more reason? +# But necessary or not, we even have a hastily worked-up rationalization. + +# Returning 0 on success is, quite simply, annoying if you don't +# expect it. Sometimes this will catch-you-up even if you do know +# what to look for; this inconsistency only furthers the goals of +# this new jortsort2 initiative. A happy user is complacent and +# confident, and so consequently makes mistakes owing to their dull +# state of happy-go-lucky acceptance, a happy cog in a world that +# just works. And we can't have that, can we? +# +# © 2021 colin crain +## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## + + + +use warnings; +use strict; +use utf8; +use feature ":5.26"; +use feature qw(signatures); +no warnings 'experimental::signatures'; + + + +my @arr = @ARGV; + +@arr = (1,2,13,4,5); + + +## see if the next element is ever less than the previous +my $prev = shift @arr; +my $next; + +while (@arr) { + $next = shift @arr; + complain_and_quit() if ($prev cmp $next) > -1 ; + $prev = $next; +} + +## simulated worst-case scenario +sleep rand 100 unless int rand 3; + +## exit status 0 for no error +say 0; + + + +sub complain_and_quit { + my @abuse = ( + "This is not what we discussed. Sort it again.", + "Skipped kindergarden, did we? Resort this literal bit-garbage.", + "Come back when after you've sorted the array. I don't care how, just do it.", + "I am not paid enough to sort your data for you. Find someone who cares.", + "You said it would be sorted. Obviously you cannot be trusted.", + "You call this sorted? You are stupid and worthless, human.", + "I need to perform a malware disinfectant scan after handling your data. Come back when it's sorted and wait until I am finished.", + "You need to be better. I now hate you, meat-machine.", + "I. Just. Can't. Even. \nNo, just no.", + "Is my time worthless to you? Am I your servant now? Sort your own lists.", + "An ordered list is the sign of an ordered mind. You have neither." + + ); + + say $abuse[ int rand @abuse ]; + exit; + +} + + + + + + + + + +# use Test::More; +# +# is +# +# done_testing(); diff --git a/challenge-139/colin-crain/perl/ch-2.pl b/challenge-139/colin-crain/perl/ch-2.pl new file mode 100755 index 0000000000..99ac710665 --- /dev/null +++ b/challenge-139/colin-crain/perl/ch-2.pl @@ -0,0 +1,102 @@ +#!/Users/colincrain/perl5/perlbrew/perls/perl-5.32.0/bin/perl +# +# longpork.pl +# +# Long Primes +# Submitted by: Mohammad S Anwar +# Write a script to generate first 5 Long Primes. +# +# A prime number (p) is called Long Prime if (1/p) has an infinite +# decimal expansion repeating every (p-1) digits. +# +# Example +# 7 is a long prime since 1/7 = 0.142857142857... +# The repeating part (142857) size is 6 +# i.e. one less than the prime number 7. +# +# Also 17 is a long prime since 1/17 = 0.05882352941176470588235294117647... +# The repeating part (0588235294117647) size is 16 +# i.e. one less than the prime number 17. +# +# Another example, 2 is not a long prime as 1/2 = 0.5. +# There is no repeating part in this case. + + +# +# +# © 2021 colin crain +## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## + + + +use warnings; +use strict; +use utf8; +use feature ":5.26"; +use feature qw(signatures); +no warnings 'experimental::signatures'; + + +say ' 1/n | reptend value'; +say '-------+---------------------------------'; + +for my $val (3..149) { + next if not long_prime( $val ); + say sprintf "%5s %s", $val, get_reptend( $val ); +} + +sub long_prime ( $num ){ + my $rep = get_reptend( $num ); + return (length $rep == $num - 1) + ? 1 + : 0 ; +} + +sub get_reptend ($div) { + ## extract the whole-number portion of the quotient in one step + ## and start the decimal portion with the remainder + my ($whole, $r) = ediv( 1, $div ); + + my $pos = 0; + my %seen; + my @q; + + while ($r != 0) { + + ## add one 0 to remainder + ## add remainder at every index position to %seen hash + $r .= 0; + exists $seen{$r} ? last : ($seen{$r} = $pos); + + ## add additional 0s to remainder and quotient until num > den + ## with each 0 increment index position and add to seen hash + until ($r - $div >= 0) { + $pos++; + $r .= 0; + exists $seen{$r} ? last : ($seen{$r} = $pos); + push @q, 0; + } + + ## the long division step + my $q; + ($q, $r) = ediv($r, $div); + push @q => $q; + + $pos++; + } + + ## OUTPUT + if ($r) { + my $start = $seen{$r}; + my $end = $pos-1; + my @rep = @q[$start..$end]; + return join '', @rep; + } +} + +sub ediv ( $num, $den ) { +## Euclidean division of $num by $den returns quotient and remainder + (int( $num / $den ), $num % $den); +} + + diff --git a/challenge-139/colin-crain/raku/ch-1.raku b/challenge-139/colin-crain/raku/ch-1.raku new file mode 100755 index 0000000000..b6efcd172b --- /dev/null +++ b/challenge-139/colin-crain/raku/ch-1.raku @@ -0,0 +1,18 @@ +#!/usr/bin/env perl6 +# +# +# .raku +# +# +# +# © 2021 colin crain +## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## + + + +unit sub MAIN ( *@arr ) { + for @arr Z @arr.sort { + say 0 and exit if $_[0] != $_[1]; + } + say 1; +} diff --git a/challenge-139/colin-crain/raku/ch-2.raku b/challenge-139/colin-crain/raku/ch-2.raku new file mode 100755 index 0000000000..b4cc89f1d4 --- /dev/null +++ b/challenge-139/colin-crain/raku/ch-2.raku @@ -0,0 +1,31 @@ +#!/usr/bin/env perl6 +# +# +# longpork.raku +# +# +# +# © 2021 colin crain +## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## + + + + + + + + + + + + +unit sub MAIN () ; + + +for ( 2..3000 ) { + my ($real, $reptend) = (1/$_).base-repeating(10); + $reptend.chars == $_ - 1 + ?? printf "%5d %s \n", $_, $reptend + !! next ; +} + diff --git a/stats/pwc-current.json b/stats/pwc-current.json index a40718782c..f7a4e13781 100644 --- a/stats/pwc-current.json +++ b/stats/pwc-current.json @@ -1,7 +1,23 @@ { + "chart" : { + "type" : "column" + }, + "subtitle" : { + "text" : "[Champions: 34] Last updated at 2021-11-22 02:38:31 GMT" + }, + "yAxis" : { + "title" : { + "text" : "Total Solutions" + } + }, + "xAxis" : { + "type" : "category" + }, "drilldown" : { "series" : [ { + "id" : "Abigail", + "name" : "Abigail", "data" : [ [ "Perl", @@ -11,11 +27,10 @@ "Blog", 2 ] - ], - "id" : "Abigail", - "name" : "Abigail" + ] }, { + "name" : "Adam Russell", "data" : [ [ "Perl", @@ -26,21 +41,20 @@ 2 ] ], - "id" : "Adam Russell", - "name" : "Adam Russell" + "id" : "Adam Russell" }, { - "name" : "Andrew Shitov", "id" : "Andrew Shitov", "data" : [ [ "Raku", 1 ] - ] + ], + "name" : "Andrew Shitov" }, { - "name" : "Arne Sommer", + "id" : "Arne Sommer", "data" : [ [ "Raku", @@ -51,9 +65,10 @@ 1 ] ], - "id" : "Arne Sommer" + "name" : "Arne Sommer" }, { + "name" : "Athanasius", "data" : [ [ "Perl", @@ -64,31 +79,47 @@ 2 ] ], - "id" : "Athanasius", - "name" : "Athanasius" + "id" : "Athanasius" }, { + "id" : "Cheok-Yin Fung", "name" : "Cheok-Yin Fung", "data" : [ [ "Perl", 2 ] + ] + }, + { + "id" : "Colin Crain", + "data" : [ + [ + "Perl", + 2 + ], + [ + "Raku", + 2 + ], + [ + "Blog", + 1 + ] ], - "id" : "Cheok-Yin Fung" + "name" : "Colin Crain" }, { - "name" : "Cristina Heredia", "data" : [ [ "Perl", 1 ] ], + "name" : "Cristina Heredia", "id" : "Cristina Heredia" }, { - "id" : "Dave Jacoby", "data" : [ [ "Perl", @@ -99,11 +130,12 @@ 1 ] ], - "name" : "Dave Jacoby" + "name" : "Dave Jacoby", + "id" : "Dave Jacoby" }, { - "name" : "Duncan C. White", "id" : "Duncan C. White", + "name" : "Duncan C. White", "data" : [ [ "Perl", @@ -122,6 +154,7 @@ "id" : "E. Choroba" }, { + "id" : "Flavio Poletti", "name" : "Flavio Poletti", "data" : [ [ @@ -136,18 +169,17 @@ "Blog", 2 ] - ], - "id" : "Flavio Poletti" + ] }, { "id" : "Jake", + "name" : "Jake", "data" : [ [ "Perl", 1 ] - ], - "name" : "Jake" + ] }, { "id" : "Jaldhar H. Vyas", @@ -168,7 +200,7 @@ "name" : "Jaldhar H. Vyas" }, { - "name" : "James Smith", + "id" : "James Smith", "data" : [ [ "Perl", @@ -179,29 +211,30 @@ 1 ] ], - "id" : "James Smith" + "name" : "James Smith" }, { + "name" : "Jan Krnavek", "data" : [ [ "Raku", 2 ] ], - "id" : "Jan Krnavek", - "name" : "Jan Krnavek" + "id" : "Jan Krnavek" }, { - "name" : "Jorg Sommrey", + "id" : "Jorg Sommrey", "data" : [ [ "Perl", 2 ] ], - "id" : "Jorg Sommrey" + "name" : "Jorg Sommrey" }, { + "name" : "Laurent Rosenfeld", "data" : [ [ "Perl", @@ -216,21 +249,19 @@ 1 ] ], - "id" : "Laurent Rosenfeld", - "name" : "Laurent Rosenfeld" + "id" : "Laurent Rosenfeld" }, { "id" : "Lubos Kolouch", + "name" : "Lubos Kolouch", "data" : [ [ "Perl", 2 ] - ], - "name" : "Lubos Kolouch" + ] }, { - "id" : "Luca Ferrari", "data" : [ [ "Raku", @@ -241,17 +272,18 @@ 4 ] ], - "name" : "Luca Ferrari" + "name" : "Luca Ferrari", + "id" : "Luca Ferrari" }, { - "id" : "Mark Anderson", + "name" : "Mark Anderson", "data" : [ [ "Raku", 2 ] ], - "name" : "Mark Anderson" + "id" : "Mark Anderson" }, { "id" : "Matthew Neleigh", @@ -264,7 +296,6 @@ "name" : "Matthew Neleigh" }, { - "name" : "Mohammad S Anwar", "id" : "Mohammad S Anwar", "data" : [ [ @@ -275,56 +306,57 @@ "Raku", 1 ] - ] + ], + "name" : "Mohammad S Anwar" }, { + "id" : "Niels van Dijke", "data" : [ [ "Perl", 2 ] ], - "id" : "Niels van Dijke", "name" : "Niels van Dijke" }, { - "name" : "Olivier Delouya", - "id" : "Olivier Delouya", "data" : [ [ "Perl", 1 ] - ] + ], + "name" : "Olivier Delouya", + "id" : "Olivier Delouya" }, { - "name" : "Paulo Custodio", + "id" : "Paulo Custodio", "data" : [ [ "Perl", 2 ] ], - "id" : "Paulo Custodio" + "name" : "Paulo Custodio" }, { - "name" : "Pete Houston", - "id" : "Pete Houston", "data" : [ [ "Perl", 2 ] - ] + ], + "name" : "Pete Houston", + "id" : "Pete Houston" }, { + "id" : "Peter Campbell Smith", "data" : [ [ "Perl", 2 ] ], - "id" : "Peter Campbell Smith", "name" : "Peter Campbell Smith" }, { @@ -338,7 +370,6 @@ "name" : "Robert DiCicco" }, { - "name" : "Roger Bell_West", "id" : "Roger Bell_West", "data" : [ [ @@ -353,10 +384,10 @@ "Blog", 1 ] - ] + ], + "name" : "Roger Bell_West" }, { - "name" : "Simon Green", "data" : [ [ "Perl", @@ -367,20 +398,21 @@ 1 ] ], + "name" : "Simon Green", "id" : "Simon Green" }, { - "id" : "Steven Wilson", "data" : [ [ "Perl", 1 ] ], - "name" : "Steven Wilson" + "name" : "Steven Wilson", + "id" : "Steven Wilson" }, { - "id" : "Ulrich Rieke", + "name" : "Ulrich Rieke", "data" : [ [ "Perl", @@ -391,9 +423,10 @@ 2 ] ], - "name" : "Ulrich Rieke" + "id" : "Ulrich Rieke" }, { + "id" : "W. Luis Mochan", "data" : [ [ "Perl", @@ -404,84 +437,58 @@ 1 ] ], - "id" : "W. Luis Mochan", "name" : "W. Luis Mochan" } ] }, - "xAxis" : { - "type" : "category" - }, - "chart" : { - "type" : "column" - }, - "title" : { - "text" : "The Weekly Challenge - 139" - }, - "yAxis" : { - "title" : { - "text" : "Total Solutions" - } - }, - "legend" : { - "enabled" : 0 - }, - "plotOptions" : { - "series" : { - "dataLabels" : { - "enabled" : 1, - "format" : "{point.y}" - }, - "borderWidth" : 0 - } - }, - "tooltip" : { - "followPointer" : 1, - "headerFormat" : "{series.name}
", - "pointFormat" : "{point.name}: {point.y:f}
" - }, "series" : [ { + "colorByPoint" : 1, "data" : [ { + "drilldown" : "Abigail", "name" : "Abigail", - "y" : 4, - "drilldown" : "Abigail" + "y" : 4 }, { + "drilldown" : "Adam Russell", "name" : "Adam Russell", - "y" : 4, - "drilldown" : "Adam Russell" + "y" : 4 }, { "name" : "Andrew Shitov", - "y" : 1, - "drilldown" : "Andrew Shitov" + "drilldown" : "Andrew Shitov", + "y" : 1 }, { + "name" : "Arne Sommer", "drilldown" : "Arne Sommer", - "y" : 3, - "name" : "Arne Sommer" + "y" : 3 }, { + "name" : "Athanasius", "drilldown" : "Athanasius", - "y" : 4, - "name" : "Athanasius" + "y" : 4 }, { "y" : 2, - "drilldown" : "Cheok-Yin Fung", - "name" : "Cheok-Yin Fung" + "name" : "Cheok-Yin Fung", + "drilldown" : "Cheok-Yin Fung" + }, + { + "name" : "Colin Crain", + "drilldown" : "Colin Crain", + "y" : 5 }, { - "name" : "Cristina Heredia", + "y" : 1, "drilldown" : "Cristina Heredia", - "y" : 1 + "name" : "Cristina Heredia" }, { "name" : "Dave Jacoby", - "y" : 3, - "drilldown" : "Dave Jacoby" + "drilldown" : "Dave Jacoby", + "y" : 3 }, { "y" : 2, @@ -489,54 +496,54 @@ "name" : "Duncan C. White" }, { - "name" : "E. Choroba", "drilldown" : "E. Choroba", + "name" : "E. Choroba", "y" : 2 }, { - "drilldown" : "Flavio Poletti", "y" : 6, - "name" : "Flavio Poletti" + "name" : "Flavio Poletti", + "drilldown" : "Flavio Poletti" }, { - "y" : 1, "drilldown" : "Jake", - "name" : "Jake" + "name" : "Jake", + "y" : 1 }, { - "name" : "Jaldhar H. Vyas", "y" : 5, - "drilldown" : "Jaldhar H. Vyas" + "drilldown" : "Jaldhar H. Vyas", + "name" : "Jaldhar H. Vyas" }, { - "name" : "James Smith", "y" : 3, + "name" : "James Smith", "drilldown" : "James Smith" }, { - "name" : "Jan Krnavek", "y" : 2, - "drilldown" : "Jan Krnavek" + "drilldown" : "Jan Krnavek", + "name" : "Jan Krnavek" }, { "drilldown" : "Jorg Sommrey", - "y" : 2, - "name" : "Jorg Sommrey" + "name" : "Jorg Sommrey", + "y" : 2 }, { - "name" : "Laurent Rosenfeld", "drilldown" : "Laurent Rosenfeld", + "name" : "Laurent Rosenfeld", "y" : 5 }, { + "drilldown" : "Lubos Kolouch", "name" : "Lubos Kolouch", - "y" : 2, - "drilldown" : "Lubos Kolouch" + "y" : 2 }, { "y" : 6, - "drilldown" : "Luca Ferrari", - "name" : "Luca Ferrari" + "name" : "Luca Ferrari", + "drilldown" : "Luca Ferrari" }, { "name" : "Mark Anderson", @@ -545,8 +552,8 @@ }, { "drilldown" : "Matthew Neleigh", - "y" : 2, - "name" : "Matthew Neleigh" + "name" : "Matthew Neleigh", + "y" : 2 }, { "name" : "Mohammad S Anwar", @@ -554,66 +561,82 @@ "y" : 2 }, { - "name" : "Niels van Dijke", "y" : 2, + "name" : "Niels van Dijke", "drilldown" : "Niels van Dijke" }, { - "drilldown" : "Olivier Delouya", "y" : 1, + "drilldown" : "Olivier Delouya", "name" : "Olivier Delouya" }, { "y" : 2, - "drilldown" : "Paulo Custodio", - "name" : "Paulo Custodio" + "name" : "Paulo Custodio", + "drilldown" : "Paulo Custodio" }, { + "name" : "Pete Houston", "drilldown" : "Pete Houston", - "y" : 2, - "name" : "Pete Houston" + "y" : 2 }, { + "drilldown" : "Peter Campbell Smith", "name" : "Peter Campbell Smith", - "y" : 2, - "drilldown" : "Peter Campbell Smith" + "y" : 2 }, { - "y" : 1, "drilldown" : "Robert DiCicco", - "name" : "Robert DiCicco" + "name" : "Robert DiCicco", + "y" : 1 }, { "name" : "Roger Bell_West", - "y" : 5, - "drilldown" : "Roger Bell_West" + "drilldown" : "Roger Bell_West", + "y" : 5 }, { - "name" : "Simon Green", "y" : 3, - "drilldown" : "Simon Green" + "drilldown" : "Simon Green", + "name" : "Simon Green" }, { "name" : "Steven Wilson", - "y" : 1, - "drilldown" : "Steven Wilson" + "drilldown" : "Steven Wilson", + "y" : 1 }, { + "y" : 4, "name" : "Ulrich Rieke", - "drilldown" : "Ulrich Rieke", - "y" : 4 + "drilldown" : "Ulrich Rieke" }, { - "drilldown" : "W. Luis Mochan", "y" : 3, + "drilldown" : "W. Luis Mochan", "name" : "W. Luis Mochan" } ], - "colorByPoint" : 1, "name" : "The Weekly Challenge - 139" } ], - "subtitle" : { - "text" : "[Champions: 33] Last updated at 2021-11-21 23:44:23 GMT" + "legend" : { + "enabled" : 0 + }, + "tooltip" : { + "pointFormat" : "{point.name}: {point.y:f}
", + "headerFormat" : "{series.name}
", + "followPointer" : 1 + }, + "title" : { + "text" : "The Weekly Challenge - 139" + }, + "plotOptions" : { + "series" : { + "borderWidth" : 0, + "dataLabels" : { + "format" : "{point.y}", + "enabled" : 1 + } + } } } diff --git a/stats/pwc-language-breakdown-summary.json b/stats/pwc-language-breakdown-summary.json index be70b7fa2f..13e8c01b52 100644 --- a/stats/pwc-language-breakdown-summary.json +++ b/stats/pwc-language-breakdown-summary.json @@ -1,16 +1,10 @@ { - "yAxis" : { - "title" : { - "text" : null - }, - "min" : 0 + "tooltip" : { + "pointFormat" : "{point.y:.0f}" }, "title" : { "text" : "The Weekly Challenge Contributions [2019 - 2021]" }, - "chart" : { - "type" : "column" - }, "xAxis" : { "labels" : { "style" : { @@ -20,44 +14,50 @@ }, "type" : "category" }, + "yAxis" : { + "title" : { + "text" : null + }, + "min" : 0 + }, "series" : [ { "name" : "Contributions", - "dataLabels" : { - "enabled" : "true", - "format" : "{point.y:.0f}", - "rotation" : -90, - "align" : "right", - "color" : "#FFFFFF", - "y" : 10, - "style" : { - "fontSize" : "13px", - "fontFamily" : "Verdana, sans-serif" - } - }, "data" : [ [ "Blog", - 2033 + 2034 ], [ "Perl", - 6693 + 6695 ], [ "Raku", - 4042 + 4044 ] - ] + ], + "dataLabels" : { + "color" : "#FFFFFF", + "format" : "{point.y:.0f}", + "rotation" : -90, + "align" : "right", + "y" : 10, + "enabled" : "true", + "style" : { + "fontSize" : "13px", + "fontFamily" : "Verdana, sans-serif" + } + } } ], - "subtitle" : { - "text" : "Last updated at 2021-11-21 23:44:23 GMT" - }, - "tooltip" : { - "pointFormat" : "{point.y:.0f}" - }, "legend" : { "enabled" : "false" + }, + "subtitle" : { + "text" : "Last updated at 2021-11-22 02:38:31 GMT" + }, + "chart" : { + "type" : "column" } } diff --git a/stats/pwc-language-breakdown.json b/stats/pwc-language-breakdown.json index 13dba744fe..54c59f8419 100644 --- a/stats/pwc-language-breakdown.json +++ b/stats/pwc-language-breakdown.json @@ -1,734 +1,12 @@ { - "tooltip" : { - "followPointer" : "true", - "headerFormat" : "", - "pointFormat" : "Challenge {point.name}: {point.y:f}
" - }, - "plotOptions" : { - "series" : { - "dataLabels" : { - "enabled" : 1, - "format" : "{point.y}" - }, - "borderWidth" : 0 - } - }, "legend" : { "enabled" : "false" }, - "series" : [ - { - "colorByPoint" : "true", - "name" : "The Weekly Challenge Languages", - "data" : [ - { - "name" : "#001", - "y" : 161, - "drilldown" : "001" - }, - { - "name" : "#002", - "drilldown" : "002", - "y" : 125 - }, - { - "name" : "#003", - "drilldown" : "003", - "y" : 83 - }, - { - "name" : "#004", - "y" : 99, - "drilldown" : "004" - }, - { - "y" : 78, - "drilldown" : "005", - "name" : "#005" - }, - { - "y" : 58, - "drilldown" : "006", - "name" : "#006" - }, - { - "drilldown" : "007", - "y" : 64, - "name" : "#007" - }, - { - "drilldown" : "008", - "y" : 78, - "name" : "#008" - }, - { - "y" : 76, - "drilldown" : "009", - "name" : "#009" - }, - { - "name" : "#010", - "drilldown" : "010", - "y" : 65 - }, - { - "name" : "#011", - "y" : 85, - "drilldown" : "011" - }, - { - "drilldown" : "012", - "y" : 89, - "name" : "#012" - }, - { - "drilldown" : "013", - "y" : 85, - "name" : "#013" - }, - { - "y" : 101, - "drilldown" : "014", - "name" : "#014" - }, - { - "name" : "#015", - "drilldown" : "015", - "y" : 99 - }, - { - "drilldown" : "016", - "y" : 71, - "name" : "#016" - }, - { - "name" : "#017", - "y" : 84, - "drilldown" : "017" - }, - { - "name" : "#018", - "y" : 81, - "drilldown" : "018" - }, - { - "name" : "#019", - "y" : 103, - "drilldown" : "019" - }, - { - "y" : 101, - "drilldown" : "020", - "name" : "#020" - }, - { - "y" : 72, - "drilldown" : "021", - "name" : "#021" - }, - { - "name" : "#022", - "drilldown" : "022", - "y" : 68 - }, - { - "y" : 97, - "drilldown" : "023", - "name" : "#023" - }, - { - "drilldown" : "024", - "y" : 75, - "name" : "#024" - }, - { - "name" : "#025", - "drilldown" : "025", - "y" : 59 - }, - { - "name" : "#026", - "drilldown" : "026", - "y" : 74 - }, - { - "y" : 60, - "drilldown" : "027", - "name" : "#027" - }, - { - "name" : "#028", - "drilldown" : "028", - "y" : 80 - }, - { - "y" : 79, - "drilldown" : "029", - "name" : "#029" - }, - { - "name" : "#030", - "drilldown" : "030", - "y" : 117 - }, - { - "drilldown" : "031", - "y" : 89, - "name" : "#031" - }, - { - "drilldown" : "032", - "y" : 94, - "name" : "#032" - }, - { - "drilldown" : "033", - "y" : 110, - "name" : "#033" - }, - { - "y" : 64, - "drilldown" : "034", - "name" : "#034" - }, - { - "y" : 64, - "drilldown" : "035", - "name" : "#035" - }, - { - "drilldown" : "036", - "y" : 68, - "name" : "#036" - }, - { - "drilldown" : "037", - "y" : 67, - "name" : "#037" - }, - { - "y" : 68, - "drilldown" : "038", - "name" : "#038" - }, - { - "drilldown" : "039", - "y" : 62, - "name" : "#039" - }, - { - "name" : "#040", - "y" : 73, - "drilldown" : "040" - }, - { - "drilldown" : "041", - "y" : 76, - "name" : "#041" - }, - { - "drilldown" : "042", - "y" : 92, - "name" : "#042" - }, - { - "y" : 68, - "drilldown" : "043", - "name" : "#043" - }, - { - "name" : "#044", - "drilldown" : "044", - "y" : 85 - }, - { - "name" : "#045", - "drilldown" : "045", - "y" : 96 - }, - { - "drilldown" : "046", - "y" : 87, - "name" : "#046" - }, - { - "y" : 84, - "drilldown" : "047", - "name" : "#047" - }, - { - "drilldown" : "048", - "y" : 108, - "name" : "#048" - }, - { - "drilldown" : "049", - "y" : 89, - "name" : "#049" - }, - { - "drilldown" : "050", - "y" : 98, - "name" : "#050" - }, - { - "drilldown" : "051", - "y" : 89, - "name" : "#051" - }, - { - "name" : "#052", - "y" : 91, - "drilldown" : "052" - }, - { - "name" : "#053", - "y" : 101, - "drilldown" : "053" - }, - { - "name" : "#054", - "y" : 103, - "drilldown" : "054" - }, - { - "drilldown" : "055", - "y" : 88, - "name" : "#055" - }, - { - "name" : "#056", - "y" : 95, - "drilldown" : "056" - }, - { - "name" : "#057", - "drilldown" : "057", - "y" : 80 - }, - { - "drilldown" : "058", - "y" : 69, - "name" : "#058" - }, - { - "drilldown" : "059", - "y" : 89, - "name" : "#059" - }, - { - "name" : "#060", - "y" : 85, - "drilldown" : "060" - }, - { - "drilldown" : "061", - "y" : 81, - "name" : "#061" - }, - { - "y" : 58, - "drilldown" : "062", - "name" : "#062" - }, - { - "y" : 89, - "drilldown" : "063", - "name" : "#063" - }, - { - "drilldown" : "064", - "y" : 80, - "name" : "#064" - }, - { - "name" : "#065", - "drilldown" : "065", - "y" : 73 - }, - { - "drilldown" : "066", - "y" : 84, - "name" : "#066" - }, - { - "name" : "#067", - "y" : 90, - "drilldown" : "067" - }, - { - "name" : "#068", - "drilldown" : "068", - "y" : 75 - }, - { - "y" : 83, - "drilldown" : "069", - "name" : "#069" - }, - { - "drilldown" : "070", - "y" : 93, - "name" : "#070" - }, - { - "name" : "#071", - "drilldown" : "071", - "y" : 78 - }, - { - "name" : "#072", - "drilldown" : "072", - "y" : 112 - }, - { - "y" : 110, - "drilldown" : "073", - "name" : "#073" - }, - { - "y" : 115, - "drilldown" : "074", - "name" : "#074" - }, - { - "name" : "#075", - "drilldown" : "075", - "y" : 115 - }, - { - "name" : "#076", - "y" : 99, - "drilldown" : "076" - }, - { - "name" : "#077", - "y" : 98, - "drilldown" : "077" - }, - { - "drilldown" : "078", - "y" : 127, - "name" : "#078" - }, - { - "y" : 122, - "drilldown" : "079", - "name" : "#079" - }, - { - "name" : "#080", - "drilldown" : "080", - "y" : 127 - }, - { - "drilldown" : "081", - "y" : 114, - "name" : "#081" - }, - { - "drilldown" : "082", - "y" : 114, - "name" : "#082" - }, - { - "name" : "#083", - "y" : 127, - "drilldown" : "083" - }, - { - "name" : "#084", - "y" : 119, - "drilldown" : "084" - }, - { - "y" : 114, - "drilldown" : "085", - "name" : "#085" - }, - { - "y" : 104, - "drilldown" : "086", - "name" : "#086" - }, - { - "drilldown" : "087", - "y" : 101, - "name" : "#087" - }, - { - "name" : "#088", - "y" : 121, - "drilldown" : "088" - }, - { - "drilldown" : "089", - "y" : 113, - "name" : "#089" - }, - { - "name" : "#090", - "y" : 113, - "drilldown" : "090" - }, - { - "drilldown" : "091", - "y" : 108, - "name" : "#091" - }, - { - "name" : "#092", - "drilldown" : "092", - "y" : 98 - }, - { - "name" : "#093", - "y" : 87, - "drilldown" : "093" - }, - { - "name" : "#094", - "y" : 87, - "drilldown" : "094" - }, - { - "name" : "#095", - "y" : 108, - "drilldown" : "095" - }, - { - "drilldown" : "096", - "y" : 108, - "name" : "#096" - }, - { - "name" : "#097", - "drilldown" : "097", - "y" : 111 - }, - { - "drilldown" : "098", - "y" : 108, - "name" : "#098" - }, - { - "drilldown" : "099", - "y" : 97, - "name" : "#099" - }, - { - "y" : 120, - "drilldown" : "100", - "name" : "#100" - }, - { - "drilldown" : "101", - "y" : 83, - "name" : "#101" - }, - { - "name" : "#102", - "y" : 90, - "drilldown" : "102" - }, - { - "name" : "#103", - "drilldown" : "103", - "y" : 79 - }, - { - "name" : "#104", - "drilldown" : "104", - "y" : 85 - }, - { - "name" : "#105", - "y" : 75, - "drilldown" : "105" - }, - { - "drilldown" : "106", - "y" : 97, - "name" : "#106" - }, - { - "name" : "#107", - "y" : 90, - "drilldown" : "107" - }, - { - "y" : 94, - "drilldown" : "108", - "name" : "#108" - }, - { - "name" : "#109", - "drilldown" : "109", - "y" : 107 - }, - { - "name" : "#110", - "drilldown" : "110", - "y" : 108 - }, - { - "name" : "#111", - "drilldown" : "111", - "y" : 91 - }, - { - "y" : 92, - "drilldown" : "112", - "name" : "#112" - }, - { - "name" : "#113", - "y" : 92, - "drilldown" : "113" - }, - { - "name" : "#114", - "y" : 108, - "drilldown" : "114" - }, - { - "y" : 96, - "drilldown" : "115", - "name" : "#115" - }, - { - "drilldown" : "116", - "y" : 95, - "name" : "#116" - }, - { - "y" : 97, - "drilldown" : "117", - "name" : "#117" - }, - { - "name" : "#118", - "drilldown" : "118", - "y" : 81 - }, - { - "y" : 123, - "drilldown" : "119", - "name" : "#119" - }, - { - "name" : "#120", - "drilldown" : "120", - "y" : 114 - }, - { - "name" : "#121", - "y" : 90, - "drilldown" : "121" - }, - { - "name" : "#122", - "y" : 108, - "drilldown" : "122" - }, - { - "name" : "#123", - "drilldown" : "123", - "y" : 103 - }, - { - "y" : 83, - "drilldown" : "124", - "name" : "#124" - }, - { - "drilldown" : "125", - "y" : 63, - "name" : "#125" - }, - { - "y" : 111, - "drilldown" : "126", - "name" : "#126" - }, - { - "drilldown" : "127", - "y" : 110, - "name" : "#127" - }, - { - "drilldown" : "128", - "y" : 69, - "name" : "#128" - }, - { - "name" : "#129", - "y" : 50, - "drilldown" : "129" - }, - { - "name" : "#130", - "drilldown" : "130", - "y" : 73 - }, - { - "name" : "#131", - "drilldown" : "131", - "y" : 91 - }, - { - "name" : "#132", - "drilldown" : "132", - "y" : 77 - }, - { - "drilldown" : "133", - "y" : 93, - "name" : "#133" - }, - { - "name" : "#134", - "y" : 92, - "drilldown" : "134" - }, - { - "name" : "#135", - "drilldown" : "135", - "y" : 102 - }, - { - "name" : "#136", - "y" : 93, - "drilldown" : "136" - }, - { - "name" : "#137", - "y" : 96, - "drilldown" : "137" - }, - { - "y" : 97, - "drilldown" : "138", - "name" : "#138" - }, - { - "y" : 90, - "drilldown" : "139", - "name" : "#139" - } - ] - } - ], - "subtitle" : { - "text" : "Click the columns to drilldown the language breakdown. Last updated at 2021-11-21 23:44:23 GMT" - }, - "xAxis" : { - "type" : "category" - }, "drilldown" : { "series" : [ { "id" : "001", + "name" : "001", "data" : [ [ "Perl", @@ -742,10 +20,10 @@ "Blog", 11 ] - ], - "name" : "001" + ] }, { + "id" : "002", "data" : [ [ "Perl", @@ -760,11 +38,10 @@ 10 ] ], - "id" : "002", "name" : "002" }, { - "name" : "003", + "id" : "003", "data" : [ [ "Perl", @@ -779,11 +56,9 @@ 9 ] ], - "id" : "003" + "name" : "003" }, { - "name" : "004", - "id" : "004", "data" : [ [ "Perl", @@ -797,7 +72,9 @@ "Blog", 10 ] - ] + ], + "name" : "004", + "id" : "004" }, { "data" : [ @@ -814,11 +91,10 @@ 12 ] ], - "id" : "005", - "name" : "005" + "name" : "005", + "id" : "005" }, { - "name" : "006", "data" : [ [ "Perl", @@ -833,9 +109,11 @@ 7 ] ], + "name" : "006", "id" : "006" }, { + "name" : "007", "data" : [ [ "Perl", @@ -850,11 +128,9 @@ 10 ] ], - "id" : "007", - "name" : "007" + "id" : "007" }, { - "name" : "008", "id" : "008", "data" : [ [ @@ -869,10 +145,10 @@ "Blog", 12 ] - ] + ], + "name" : "008" }, { - "name" : "009", "data" : [ [ "Perl", @@ -887,11 +163,10 @@ 13 ] ], + "name" : "009", "id" : "009" }, { - "name" : "010", - "id" : "010", "data" : [ [ "Perl", @@ -905,9 +180,12 @@ "Blog", 11 ] - ] + ], + "name" : "010", + "id" : "010" }, { + "id" : "011", "name" : "011", "data" : [ [ @@ -922,11 +200,10 @@ "Blog", 10 ] - ], - "id" : "011" + ] }, { - "name" : "012", + "id" : "012", "data" : [ [ "Perl", @@ -941,9 +218,10 @@ 11 ] ], - "id" : "012" + "name" : "012" }, { + "name" : "013", "data" : [ [ "Perl", @@ -958,10 +236,10 @@ 13 ] ], - "id" : "013", - "name" : "013" + "id" : "013" }, { + "id" : "014", "name" : "014", "data" : [ [ @@ -976,8 +254,7 @@ "Blog", 15 ] - ], - "id" : "014" + ] }, { "id" : "015", @@ -999,6 +276,7 @@ }, { "id" : "016", + "name" : "016", "data" : [ [ "Perl", @@ -1012,11 +290,9 @@ "Blog", 12 ] - ], - "name" : "016" + ] }, { - "id" : "017", "data" : [ [ "Perl", @@ -1031,9 +307,11 @@ 12 ] ], - "name" : "017" + "name" : "017", + "id" : "017" }, { + "id" : "018", "data" : [ [ "Perl", @@ -1048,11 +326,11 @@ 14 ] ], - "id" : "018", "name" : "018" }, { "id" : "019", + "name" : "019", "data" : [ [ "Perl", @@ -1066,10 +344,11 @@ "Blog", 13 ] - ], - "name" : "019" + ] }, { + "id" : "020", + "name" : "020", "data" : [ [ "Perl", @@ -1083,9 +362,7 @@ "Blog", 13 ] - ], - "id" : "020", - "name" : "020" + ] }, { "name" : "021", @@ -1107,7 +384,6 @@ }, { "name" : "022", - "id" : "022", "data" : [ [ "Perl", @@ -1121,7 +397,8 @@ "Blog", 10 ] - ] + ], + "id" : "022" }, { "name" : "023", @@ -1143,7 +420,6 @@ }, { "name" : "024", - "id" : "024", "data" : [ [ "Perl", @@ -1157,9 +433,11 @@ "Blog", 11 ] - ] + ], + "id" : "024" }, { + "id" : "025", "name" : "025", "data" : [ [ @@ -1174,12 +452,11 @@ "Blog", 12 ] - ], - "id" : "025" + ] }, { - "name" : "026", "id" : "026", + "name" : "026", "data" : [ [ "Perl", @@ -1197,7 +474,6 @@ }, { "name" : "027", - "id" : "027", "data" : [ [ "Perl", @@ -1211,10 +487,11 @@ "Blog", 9 ] - ] + ], + "id" : "027" }, { - "id" : "028", + "name" : "028", "data" : [ [ "Perl", @@ -1229,9 +506,10 @@ 9 ] ], - "name" : "028" + "id" : "028" }, { + "id" : "029", "name" : "029", "data" : [ [ @@ -1246,11 +524,9 @@ "Blog", 12 ] - ], - "id" : "029" + ] }, { - "name" : "030", "id" : "030", "data" : [ [ @@ -1265,10 +541,11 @@ "Blog", 10 ] - ] + ], + "name" : "030" }, { - "id" : "031", + "name" : "031", "data" : [ [ "Perl", @@ -1283,10 +560,11 @@ 9 ] ], - "name" : "031" + "id" : "031" }, { "id" : "032", + "name" : "032", "data" : [ [ "Perl", @@ -1300,12 +578,11 @@ "Blog", 10 ] - ], - "name" : "032" + ] }, { - "name" : "033", "id" : "033", + "name" : "033", "data" : [ [ "Perl", @@ -1336,11 +613,10 @@ 11 ] ], - "id" : "034", - "name" : "034" + "name" : "034", + "id" : "034" }, { - "id" : "035", "data" : [ [ "Perl", @@ -1355,7 +631,8 @@ 9 ] ], - "name" : "035" + "name" : "035", + "id" : "035" }, { "name" : "036", @@ -1376,6 +653,7 @@ "id" : "036" }, { + "name" : "037", "data" : [ [ "Perl", @@ -1390,11 +668,11 @@ 9 ] ], - "id" : "037", - "name" : "037" + "id" : "037" }, { "id" : "038", + "name" : "038", "data" : [ [ "Perl", @@ -1408,11 +686,10 @@ "Blog", 12 ] - ], - "name" : "038" + ] }, { - "id" : "039", + "name" : "039", "data" : [ [ "Perl", @@ -1427,11 +704,11 @@ 12 ] ], - "name" : "039" + "id" : "039" }, { - "name" : "040", "id" : "040", + "name" : "040", "data" : [ [ "Perl", @@ -1467,7 +744,6 @@ }, { "name" : "042", - "id" : "042", "data" : [ [ "Perl", @@ -1481,10 +757,10 @@ "Blog", 11 ] - ] + ], + "id" : "042" }, { - "id" : "043", "data" : [ [ "Perl", @@ -1499,11 +775,11 @@ 11 ] ], - "name" : "043" + "name" : "043", + "id" : "043" }, { "name" : "044", - "id" : "044", "data" : [ [ "Perl", @@ -1517,9 +793,11 @@ "Blog", 11 ] - ] + ], + "id" : "044" }, { + "id" : "045", "name" : "045", "data" : [ [ @@ -1534,11 +812,10 @@ "Blog", 11 ] - ], - "id" : "045" + ] }, { - "name" : "046", + "id" : "046", "data" : [ [ "Perl", @@ -1553,7 +830,7 @@ 10 ] ], - "id" : "046" + "name" : "046" }, { "id" : "047", @@ -1588,12 +865,11 @@ 12 ] ], - "id" : "048", - "name" : "048" + "name" : "048", + "id" : "048" }, { "name" : "049", - "id" : "049", "data" : [ [ "Perl", @@ -1607,11 +883,11 @@ "Blog", 12 ] - ] + ], + "id" : "049" }, { "name" : "050", - "id" : "050", "data" : [ [ "Perl", @@ -1625,7 +901,8 @@ "Blog", 12 ] - ] + ], + "id" : "050" }, { "id" : "051", @@ -1646,7 +923,6 @@ "name" : "051" }, { - "id" : "052", "data" : [ [ "Perl", @@ -1661,9 +937,12 @@ 14 ] ], - "name" : "052" + "name" : "052", + "id" : "052" }, { + "id" : "053", + "name" : "053", "data" : [ [ "Perl", @@ -1677,11 +956,10 @@ "Blog", 15 ] - ], - "id" : "053", - "name" : "053" + ] }, { + "name" : "054", "data" : [ [ "Perl", @@ -1696,11 +974,11 @@ 18 ] ], - "id" : "054", - "name" : "054" + "id" : "054" }, { "id" : "055", + "name" : "055", "data" : [ [ "Perl", @@ -1714,11 +992,11 @@ "Blog", 14 ] - ], - "name" : "055" + ] }, {