From 44b41f2e16ab83801cfa34fb07fa5c2ef46be24c Mon Sep 17 00:00:00 2001 From: Luca Ferrari Date: Wed, 6 Oct 2021 12:03:06 +0200 Subject: Task 1 done --- challenge-133/luca-ferrari/raku/ch-1.p6 | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 challenge-133/luca-ferrari/raku/ch-1.p6 diff --git a/challenge-133/luca-ferrari/raku/ch-1.p6 b/challenge-133/luca-ferrari/raku/ch-1.p6 new file mode 100644 index 0000000000..0f7a2ce5c4 --- /dev/null +++ b/challenge-133/luca-ferrari/raku/ch-1.p6 @@ -0,0 +1,18 @@ +#!raku + + +sub MAIN( Int $n where { $n > 0 } ) { + $n.say and exit if $n == 1; + + my Int $current-solution = $n +> 1; # divide by two + my Int $next-solution = 0; + while ( $next-solution < $current-solution ) { + $next-solution = ( $current-solution + $n / $current-solution ) +> 1 if ! $next-solution; + ( $current-solution, $next-solution ) = $next-solution, + ( $next-solution + $n / $next-solution ) +> 1; + + } + + $current-solution.say; + +} -- cgit From 40a4b5624b29e6d21903dc0f18b7dd79ac719136 Mon Sep 17 00:00:00 2001 From: Luca Ferrari Date: Wed, 6 Oct 2021 13:43:18 +0200 Subject: Task 2 done. --- challenge-133/luca-ferrari/raku/ch-2.p6 | 44 +++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 challenge-133/luca-ferrari/raku/ch-2.p6 diff --git a/challenge-133/luca-ferrari/raku/ch-2.p6 b/challenge-133/luca-ferrari/raku/ch-2.p6 new file mode 100644 index 0000000000..0af9fa5cd0 --- /dev/null +++ b/challenge-133/luca-ferrari/raku/ch-2.p6 @@ -0,0 +1,44 @@ +#!raku + +my @PRIMES = grep {.is-prime}, 1..*; + +multi do-factor( 1 ) { (1) } +multi do-factor( Int $n where { $n > 1 } ) { + my ( $pos, $needle ) = 0, $n; + + my @factors; + + for @PRIMES -> $current-factor { + last if $current-factor > $needle; + next unless $needle %% $current-factor; + + # if here, it is a good factor + @factors.push: $current-factor; + + $needle /= $current-factor; + } + + + @factors; + + +} + + + +sub is-smith-number( Int $n where { $n > 0 } ) { + return $n.comb.sum == do-factor( $n ).sum; +} + + +sub MAIN( Int $limit where { $limit > 0 } = 10 ) { + + my @smith-numbers; + for 1 .. Inf { + next if ! is-smith-number( $_ ); + @smith-numbers.push: $_; + last if @smith-numbers.elems == $limit; + } + + @smith-numbers.join( "\n" ).say; +} -- cgit From 260f344de96aafd8171d23bccd79a64376ac0594 Mon Sep 17 00:00:00 2001 From: Simon Green Date: Sat, 9 Oct 2021 16:55:06 +1100 Subject: Did not complete challenge this week --- challenge-132/sgreen/README.md | 3 --- 1 file changed, 3 deletions(-) delete mode 100644 challenge-132/sgreen/README.md diff --git a/challenge-132/sgreen/README.md b/challenge-132/sgreen/README.md deleted file mode 100644 index 0022b09d87..0000000000 --- a/challenge-132/sgreen/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# The Weekly Challenge 131 - -Solution by Simon Green. [Blog](https://dev.to/simongreennet/weekly-challenge-131-1fl1) -- cgit From da32205b923a88237ff618e2219810769ad603aa Mon Sep 17 00:00:00 2001 From: Simon Green Date: Sat, 9 Oct 2021 18:19:22 +1100 Subject: sgreen solution to challenge 133 --- challenge-133/sgreen/README.md | 4 +-- challenge-133/sgreen/blog.txt | 1 + challenge-133/sgreen/perl/ch-1.pl | 22 ++++++++++++++++ challenge-133/sgreen/perl/ch-2.pl | 53 +++++++++++++++++++++++++++++++++++++++ 4 files changed, 78 insertions(+), 2 deletions(-) create mode 100644 challenge-133/sgreen/blog.txt create mode 100755 challenge-133/sgreen/perl/ch-1.pl create mode 100755 challenge-133/sgreen/perl/ch-2.pl diff --git a/challenge-133/sgreen/README.md b/challenge-133/sgreen/README.md index 0022b09d87..298af3387e 100644 --- a/challenge-133/sgreen/README.md +++ b/challenge-133/sgreen/README.md @@ -1,3 +1,3 @@ -# The Weekly Challenge 131 +# The Weekly Challenge 133 -Solution by Simon Green. [Blog](https://dev.to/simongreennet/weekly-challenge-131-1fl1) +Solution by Simon Green. [Blog](https://dev.to/simongreennet/weekly-challenge-133-7gi) diff --git a/challenge-133/sgreen/blog.txt b/challenge-133/sgreen/blog.txt new file mode 100644 index 0000000000..130dbc3790 --- /dev/null +++ b/challenge-133/sgreen/blog.txt @@ -0,0 +1 @@ +https://dev.to/simongreennet/weekly-challenge-133-7gi diff --git a/challenge-133/sgreen/perl/ch-1.pl b/challenge-133/sgreen/perl/ch-1.pl new file mode 100755 index 0000000000..4033f28040 --- /dev/null +++ b/challenge-133/sgreen/perl/ch-1.pl @@ -0,0 +1,22 @@ +#!/usr/bin/env perl + +use strict; +use warnings; +use feature 'say'; + +sub main { + my $N = shift; + + # Sanity check + die "You must specify a positive integer\n" unless defined $N; + die "The value doesn't appear to be a positive integer\n" unless $N =~ /^[1-9][0-9]*$/; + + # We do this the crude way + my $isqrt = 1; + $isqrt++ while ( $isqrt + 1 )**2 <= $N; + + # Display the result + say $isqrt; +} + +main(@ARGV); diff --git a/challenge-133/sgreen/perl/ch-2.pl b/challenge-133/sgreen/perl/ch-2.pl new file mode 100755 index 0000000000..8aab074fe3 --- /dev/null +++ b/challenge-133/sgreen/perl/ch-2.pl @@ -0,0 +1,53 @@ +#!/usr/bin/env perl + +use strict; +use warnings; +use feature 'say'; + +use List::Util 'sum'; + +sub _digit_sum { + # Given a string of numbers, calculate the sum of the digits + my $string = shift; + return sum split //, $string; +} + +sub _prime_factors_sum { + my $number = shift; + my %factors = (); + my $counter = 2; + + # Get the primes that make up this number + while ( $number != 1 ) { + if ( $number % $counter == 0 ) { + $factors{$counter}++; + $number /= $counter; + } + else { + $counter++; + } + } + + # A prime is not a composite number, and therefore cannot be a + # Smiths number. Returning -1 ensures the eqaulity is false + return -1 if scalar( keys(%factors) ) == 1 and ( values(%factors) )[0] == 1; + + # Return the sum of they sum of digits in the prime multiplied by the power + # For example 265 = 5¹ * 53¹. The equation is 5 * 1 + (5 + 3) * 1 + return sum( map { _digit_sum($_) * $factors{$_} } keys %factors ); +} + +sub main { + my @smiths = (); + + my $number = 1; + while ( ++$number ) { + # Add to the array if this is a Smiths number + push @smiths, $number if _digit_sum($number) == _prime_factors_sum($number); + last if @smiths == 10; + } + + say join ', ', @smiths; +} + +main(); -- cgit From 136fb62d1de876d28a11733c8a8bd2d74f6e535b Mon Sep 17 00:00:00 2001 From: Lubos Kolouch Date: Sat, 9 Oct 2021 12:31:16 +0200 Subject: Challenge 133 Task 1 Perl Python --- challenge-133/lubos-kolouch/perl/ch-1.pl | 36 ++++++++++++++++++++++++++++++ challenge-133/lubos-kolouch/python/ch-1.py | 28 +++++++++++++++++++++++ 2 files changed, 64 insertions(+) create mode 100644 challenge-133/lubos-kolouch/perl/ch-1.pl create mode 100644 challenge-133/lubos-kolouch/python/ch-1.py diff --git a/challenge-133/lubos-kolouch/perl/ch-1.pl b/challenge-133/lubos-kolouch/perl/ch-1.pl new file mode 100644 index 0000000000..4381d74d4e --- /dev/null +++ b/challenge-133/lubos-kolouch/perl/ch-1.pl @@ -0,0 +1,36 @@ +use strict; +use warnings; + +sub get_square_root { + my ( $what, $low, $high ) = @_; + + $high //= $what; + $low //= 0; + + my $middle = int( ( $high + $low ) / 2 ); + my $incr_middle = $middle + 1; + + # halve the interval + + if ( ( $middle * $middle <= $what ) and ( $incr_middle * $incr_middle >= $what ) ) { + return $middle; + } + + if ( $middle * $middle > $what ) { + $middle = get_square_root( $what, $low, $middle ); + } + else { + $middle = get_square_root( $what, $middle, $high ); + } + + return $middle; +} + +use Test::More; + +is( get_square_root(10), 3 ); +is( get_square_root(27), 5 ); +is( get_square_root(85), 9 ); +is( get_square_root(101), 10 ); + +done_testing; diff --git a/challenge-133/lubos-kolouch/python/ch-1.py b/challenge-133/lubos-kolouch/python/ch-1.py new file mode 100644 index 0000000000..41c973def1 --- /dev/null +++ b/challenge-133/lubos-kolouch/python/ch-1.py @@ -0,0 +1,28 @@ +""" The Weekly Challenge 133 Task 1 """ + + +def get_square_root(what: int, low: int = 0, high: int = 0): + """ Calculate the square root using interval halving""" + + if not high: + high = what + + middle = int((high + low) / 2) + incr_middle = middle + 1 + + if middle * middle <= what <= incr_middle * incr_middle: + return middle + + if middle * middle > what: + middle = get_square_root(what, low, middle) + + else: + middle = get_square_root(what, middle, high) + + return middle + + +assert get_square_root(10) == 3 +assert get_square_root(27) == 5 +assert get_square_root(85) == 9 +assert get_square_root(101) == 10 -- cgit From 87703e7d24524efcd104b1b3f70c97b1719ecd03 Mon Sep 17 00:00:00 2001 From: Lubos Kolouch Date: Sat, 9 Oct 2021 13:45:13 +0200 Subject: Challenge 133 Task 2 Python LK --- challenge-133/lubos-kolouch/python/ch-2.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 challenge-133/lubos-kolouch/python/ch-2.py diff --git a/challenge-133/lubos-kolouch/python/ch-2.py b/challenge-133/lubos-kolouch/python/ch-2.py new file mode 100644 index 0000000000..5762c277d2 --- /dev/null +++ b/challenge-133/lubos-kolouch/python/ch-2.py @@ -0,0 +1,9 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- + +from pyoeis import OEISClient + +c = OEISClient() +seq = c.get_by_id('A104170') + +print(seq.unsigned(10)) -- cgit From 78ee99dc08a73dcf814dcf9a0da478c5ff7b245b Mon Sep 17 00:00:00 2001 From: Mohammad S Anwar Date: Sat, 9 Oct 2021 16:01:44 +0100 Subject: - Added solutions by Laurent Rosenfeld. --- challenge-133/laurent-rosenfeld/blog.txt | 1 + challenge-133/laurent-rosenfeld/perl/ch-1.pl | 23 + challenge-133/laurent-rosenfeld/perl/ch-2.pl | 57 + challenge-133/laurent-rosenfeld/raku/ch-1.raku | 21 + challenge-133/laurent-rosenfeld/raku/ch-2.raku | 27 + stats/pwc-current.json | 189 +- stats/pwc-language-breakdown-summary.json | 44 +- stats/pwc-language-breakdown.json | 5270 ++++++++++++------------ stats/pwc-leaders.json | 362 +- stats/pwc-summary-1-30.json | 36 +- stats/pwc-summary-121-150.json | 122 +- stats/pwc-summary-151-180.json | 104 +- stats/pwc-summary-181-210.json | 42 +- stats/pwc-summary-211-240.json | 116 +- stats/pwc-summary-241-270.json | 42 +- stats/pwc-summary-31-60.json | 104 +- stats/pwc-summary-61-90.json | 122 +- stats/pwc-summary-91-120.json | 98 +- stats/pwc-summary.json | 48 +- 19 files changed, 3490 insertions(+), 3338 deletions(-) create mode 100644 challenge-133/laurent-rosenfeld/blog.txt create mode 100644 challenge-133/laurent-rosenfeld/perl/ch-1.pl create mode 100644 challenge-133/laurent-rosenfeld/perl/ch-2.pl create mode 100644 challenge-133/laurent-rosenfeld/raku/ch-1.raku create mode 100644 challenge-133/laurent-rosenfeld/raku/ch-2.raku diff --git a/challenge-133/laurent-rosenfeld/blog.txt b/challenge-133/laurent-rosenfeld/blog.txt new file mode 100644 index 0000000000..da99c8060f --- /dev/null +++ b/challenge-133/laurent-rosenfeld/blog.txt @@ -0,0 +1 @@ +http://blogs.perl.org/users/laurent_r/2021/10/perl-weekly-challenge-133-integer-square-roots-and-smith-numbers.html diff --git a/challenge-133/laurent-rosenfeld/perl/ch-1.pl b/challenge-133/laurent-rosenfeld/perl/ch-1.pl new file mode 100644 index 0000000000..30d428d884 --- /dev/null +++ b/challenge-133/laurent-rosenfeld/perl/ch-1.pl @@ -0,0 +1,23 @@ +use strict; +use warnings; +use feature "say"; + +sub sqroot { + # Bisection method + my $c = shift; + my $start = 1; + my $end = $c; + my $est = 2 ** (int((log($c)/log(2))/2) + 1); + while (1) { + say "\tIntermediate values: $start, $est, and $end"; + last if abs($end-$start) <= 1; + if ($est ** 2 > $c) { + $end = $est; + } else { + $start = $est; + } + $est = int (($end + $start) / 2); + } + return $est; +} +say "$_\t", sqroot $_ for 85, 101, 200_000_000; diff --git a/challenge-133/laurent-rosenfeld/perl/ch-2.pl b/challenge-133/laurent-rosenfeld/perl/ch-2.pl new file mode 100644 index 0000000000..be9c840650 --- /dev/null +++ b/challenge-133/laurent-rosenfeld/perl/ch-2.pl @@ -0,0 +1,57 @@ +#!/usr/bin/perl +use strict; +use warnings; +use feature qw/say/; +use Data::Dumper; +use constant MAX => 400; + +my @primes = (2, 3, 5, 7); +my $current = 9; +while (1) { + my $prime = 1; + for my $i (@primes) { + my $i_sq = $i * $i; + last if $i_sq > $current; + $prime = 0, last if $current % $i == 0; + } + push @primes, $current if $prime;; + $current += 2; + last if $current > MAX; +} +my %primes = map { $_ => 1} @primes; + +sub prime_factors { + my $num = shift; + my $origin_num = $num; + my @factors; + for my $div (@primes) { + while ($num % $div == 0) { + push @factors, $div; + $num /= $div; + } + return @factors if $num == 1; + } + push @factors, $num unless $num == $origin_num; + return @factors; +} + +sub add_digits { +my $sum = 0; + for my $i (@_) { + $sum += $_ for split //, $i; + } + return $sum; +} +# say join " ", prime_factors $_ for grep {not exists $primes{$_}} 2..50; + +my @result; +my $count = 0; +my $i = 2; +while (1) { + $i++; + next if exists $primes{$i}; # we want composite numbers only + my @factors = prime_factors $i; + push @result, $i and $count++ if add_digits($i) == add_digits(@factors); + last if $count >= 10; +} +say "@result"; diff --git a/challenge-133/laurent-rosenfeld/raku/ch-1.raku b/challenge-133/laurent-rosenfeld/raku/ch-1.raku new file mode 100644 index 0000000000..2d3b91af54 --- /dev/null +++ b/challenge-133/laurent-rosenfeld/raku/ch-1.raku @@ -0,0 +1,21 @@ +use v6; + +sub sqroot (Int $a) { + # Bisection approach + my $start = 1; + my $end = $a; + my $est; + loop { + $est = ($start + $end) div 2; + say "\tIntermediate values: $start, $est, and $end"; + my $est-sq = $est ** 2; + last if abs($end-$start) <= 1; + if $est ** 2 > $a { + $end = $est; + } else { + $start = $est; + } + } + return $est; +} +say "$_\t", sqroot $_ for 10, 27, 85, 101, 200_000_000; diff --git a/challenge-133/laurent-rosenfeld/raku/ch-2.raku b/challenge-133/laurent-rosenfeld/raku/ch-2.raku new file mode 100644 index 0000000000..f096c13508 --- /dev/null +++ b/challenge-133/laurent-rosenfeld/raku/ch-2.raku @@ -0,0 +1,27 @@ +use v6; + +my @primes = grep {.is-prime}, 1..*; + +sub prime-factors (UInt $num-in) { + my @factors; + my $num = $num-in; + for @primes -> $div { + while ($num %% $div) { + push @factors, $div; + $num div= $div; + } + return @factors if $num == 1; + } + push @factors, $num unless $num == $num-in; + return @factors; +} + +my @result; +my $count = 0; +for 1..* -> $i { + next if $i.is-prime; # we want composite numbers only + my @factors = prime-factors $i; + push @result, $i and ++$count if (|@factors).comb.sum == $i.comb.sum; + last if $count >= 10; +} +say @result; diff --git a/stats/pwc-current.json b/stats/pwc-current.json index 38c94379f1..f6ad0a62ce 100644 --- a/stats/pwc-current.json +++ b/stats/pwc-current.json @@ -1,6 +1,22 @@ { + "legend" : { + "enabled" : 0 + }, + "chart" : { + "type" : "column" + }, + "plotOptions" : { + "series" : { + "borderWidth" : 0, + "dataLabels" : { + "enabled" : 1, + "format" : "{point.y}" + } + } + }, "series" : [ { + "name" : "The Weekly Challenge - 133", "data" : [ { "drilldown" : "Abigail", @@ -8,44 +24,44 @@ "y" : 4 }, { - "drilldown" : "Andinus", "y" : 2, - "name" : "Andinus" + "name" : "Andinus", + "drilldown" : "Andinus" }, { "y" : 5, - "name" : "Arne Sommer", - "drilldown" : "Arne Sommer" + "drilldown" : "Arne Sommer", + "name" : "Arne Sommer" }, { - "name" : "Ben Davies", "y" : 2, - "drilldown" : "Ben Davies" + "drilldown" : "Ben Davies", + "name" : "Ben Davies" }, { - "name" : "Cheok-Yin Fung", "y" : 1, - "drilldown" : "Cheok-Yin Fung" + "drilldown" : "Cheok-Yin Fung", + "name" : "Cheok-Yin Fung" }, { - "drilldown" : "Dave Jacoby", "name" : "Dave Jacoby", + "drilldown" : "Dave Jacoby", "y" : 3 }, { - "y" : 2, "name" : "E. Choroba", - "drilldown" : "E. Choroba" + "drilldown" : "E. Choroba", + "y" : 2 }, { - "drilldown" : "Flavio Poletti", "name" : "Flavio Poletti", + "drilldown" : "Flavio Poletti", "y" : 6 }, { "y" : 2, - "name" : "James Raspass", - "drilldown" : "James Raspass" + "drilldown" : "James Raspass", + "name" : "James Raspass" }, { "drilldown" : "James Smith", @@ -53,10 +69,15 @@ "y" : 3 }, { - "name" : "Jorg Sommrey", "y" : 2, + "name" : "Jorg Sommrey", "drilldown" : "Jorg Sommrey" }, + { + "name" : "Laurent Rosenfeld", + "drilldown" : "Laurent Rosenfeld", + "y" : 5 + }, { "drilldown" : "Mark Anderson", "name" : "Mark Anderson", @@ -68,40 +89,46 @@ "drilldown" : "Peter Campbell Smith" }, { - "y" : 5, + "drilldown" : "Roger Bell_West", "name" : "Roger Bell_West", - "drilldown" : "Roger Bell_West" + "y" : 5 }, { + "y" : 2, "drilldown" : "Simon Proctor", - "name" : "Simon Proctor", - "y" : 2 + "name" : "Simon Proctor" }, { - "name" : "Steven Wilson", "y" : 1, + "name" : "Steven Wilson", "drilldown" : "Steven Wilson" }, { - "drilldown" : "Ulrich Rieke", "y" : 4, + "drilldown" : "Ulrich Rieke", "name" : "Ulrich Rieke" }, { + "drilldown" : "W. Luis Mochan", "name" : "W. Luis Mochan", - "y" : 3, - "drilldown" : "W. Luis Mochan" + "y" : 3 } ], - "name" : "The Weekly Challenge - 133", "colorByPoint" : 1 } ], + "tooltip" : { + "headerFormat" : "{series.name}
", + "pointFormat" : "{point.name}: {point.y:f}
", + "followPointer" : 1 + }, + "subtitle" : { + "text" : "[Champions: 19] Last updated at 2021-10-09 15:00:09 GMT" + }, "drilldown" : { "series" : [ { "name" : "Abigail", - "id" : "Abigail", "data" : [ [ "Perl", @@ -111,11 +138,11 @@ "Blog", 2 ] - ] + ], + "id" : "Abigail" }, { "name" : "Andinus", - "id" : "Andinus", "data" : [ [ "Raku", @@ -125,7 +152,8 @@ "Blog", 1 ] - ] + ], + "id" : "Andinus" }, { "data" : [ @@ -142,18 +170,18 @@ 1 ] ], - "id" : "Arne Sommer", - "name" : "Arne Sommer" + "name" : "Arne Sommer", + "id" : "Arne Sommer" }, { + "id" : "Ben Davies", + "name" : "Ben Davies", "data" : [ [ "Raku", 2 ] - ], - "id" : "Ben Davies", - "name" : "Ben Davies" + ] }, { "data" : [ @@ -162,10 +190,11 @@ 1 ] ], - "id" : "Cheok-Yin Fung", - "name" : "Cheok-Yin Fung" + "name" : "Cheok-Yin Fung", + "id" : "Cheok-Yin Fung" }, { + "id" : "Dave Jacoby", "data" : [ [ "Perl", @@ -176,20 +205,20 @@ 1 ] ], - "name" : "Dave Jacoby", - "id" : "Dave Jacoby" + "name" : "Dave Jacoby" }, { - "id" : "E. Choroba", - "name" : "E. Choroba", "data" : [ [ "Perl", 2 ] - ] + ], + "name" : "E. Choroba", + "id" : "E. Choroba" }, { + "id" : "Flavio Poletti", "data" : [ [ "Perl", @@ -204,22 +233,20 @@ 2 ] ], - "id" : "Flavio Poletti", "name" : "Flavio Poletti" }, { + "id" : "James Raspass", + "name" : "James Raspass", "data" : [ [ "Raku", 2 ] - ], - "name" : "James Raspass", - "id" : "James Raspass" + ] }, { "name" : "James Smith", - "id" : "James Smith", "data" : [ [ "Perl", @@ -229,7 +256,8 @@ "Blog", 1 ] - ] + ], + "id" : "James Smith" }, { "id" : "Jorg Sommrey", @@ -242,28 +270,46 @@ ] }, { + "name" : "Laurent Rosenfeld", "data" : [ + [ + "Perl", + 2 + ], [ "Raku", 2 + ], + [ + "Blog", + 1 ] ], + "id" : "Laurent Rosenfeld" + }, + { "id" : "Mark Anderson", - "name" : "Mark Anderson" + "name" : "Mark Anderson", + "data" : [ + [ + "Raku", + 2 + ] + ] }, { + "id" : "Peter Campbell Smith", + "name" : "Peter Campbell Smith", "data" : [ [ "Perl", 2 ] - ], - "id" : "Peter Campbell Smith", - "name" : "Peter Campbell Smith" + ] }, { - "name" : "Roger Bell_West", "id" : "Roger Bell_West", + "name" : "Roger Bell_West", "data" : [ [ "Perl", @@ -280,26 +326,27 @@ ] }, { + "name" : "Simon Proctor", "data" : [ [ "Raku", 2 ] ], - "id" : "Simon Proctor", - "name" : "Simon Proctor" + "id" : "Simon Proctor" }, { - "id" : "Steven Wilson", - "name" : "Steven Wilson", "data" : [ [ "Perl", 1 ] - ] + ], + "name" : "Steven Wilson", + "id" : "Steven Wilson" }, { + "id" : "Ulrich Rieke", "data" : [ [ "Perl", @@ -310,10 +357,11 @@ 2 ] ], - "id" : "Ulrich Rieke", "name" : "Ulrich Rieke" }, { + "id" : "W. Luis Mochan", + "name" : "W. Luis Mochan", "data" : [ [ "Perl", @@ -323,9 +371,7 @@ "Blog", 1 ] - ], - "name" : "W. Luis Mochan", - "id" : "W. Luis Mochan" + ] } ] }, @@ -334,33 +380,10 @@ "text" : "Total Solutions" } }, - "subtitle" : { - "text" : "[Champions: 18] Last updated at 2021-10-08 19:27:33 GMT" - }, - "legend" : { - "enabled" : 0 - }, "xAxis" : { "type" : "category" }, - "plotOptions" : { - "series" : { - "borderWidth" : 0, - "dataLabels" : { - "enabled" : 1, - "format" : "{point.y}" - } - } - }, "title" : { "text" : "The Weekly Challenge - 133" - }, - "chart" : { - "type" : "column" - }, - "tooltip" : { - "headerFormat" : "{series.name}
", - "followPointer" : 1, - "pointFormat" : "{point.name}: {point.y:f}
" } } diff --git a/stats/pwc-language-breakdown-summary.json b/stats/pwc-language-breakdown-summary.json index 9eb1b16011..663e6215f2 100644 --- a/stats/pwc-language-breakdown-summary.json +++ b/stats/pwc-language-breakdown-summary.json @@ -1,43 +1,52 @@ { + "legend" : { + "enabled" : "false" + }, + "chart" : { + "type" : "column" + }, "series" : [ { "data" : [ [ "Blog", - 1919 + 1920 ], [ "Perl", - 6324 + 6326 ], [ "Raku", - 3879 + 3881 ] ], "name" : "Contributions", "dataLabels" : { - "rotation" : -90, - "color" : "#FFFFFF", "style" : { "fontFamily" : "Verdana, sans-serif", "fontSize" : "13px" }, - "y" : 10, - "enabled" : "true", "align" : "right", - "format" : "{point.y:.0f}" + "enabled" : "true", + "y" : 10, + "rotation" : -90, + "format" : "{point.y:.0f}", + "color" : "#FFFFFF" } } ], + "tooltip" : { + "pointFormat" : "{point.y:.0f}" + }, + "subtitle" : { + "text" : "Last updated at 2021-10-09 15:00:09 GMT" + }, "yAxis" : { + "min" : 0, "title" : { "text" : null - }, - "min" : 0 - }, - "subtitle" : { - "text" : "Last updated at 2021-10-08 19:27:33 GMT" + } }, "xAxis" : { "type" : "category", @@ -48,15 +57,6 @@ } } }, - "legend" : { - "enabled" : "false" - }, - "tooltip" : { - "pointFormat" : "{point.y:.0f}" - }, - "chart" : { - "type" : "column" - }, "title" : { "text" : "The Weekly Challenge Contributions [2019 - 2021]" } diff --git a/stats/pwc-language-breakdown.json b/stats/pwc-language-breakdown.json index 5673e7eaf0..4a09b06e3f 100644 --- a/stats/pwc-language-breakdown.json +++ b/stats/pwc-language-breakdown.json @@ -1,2496 +1,105 @@ { - "drilldown" : { - "series" : [ - { - "name" : "001", - "id" : "001", - "data" : [ - [ - "Perl", - 103 - ], - [ - "Raku", - 47 - ], - [ - "Blog", - 11 - ] - ] - }, - { - "id" : "002", - "name" : "002", - "data" : [ - [ - "Perl", - 79 - ], - [ - "Raku", - 36 - ], - [ - "Blog", - 10 - ] - ] - }, - { - "name" : "003", - "id" : "003", - "data" : [ - [ - "Perl", - 42 - ], - [ - "Raku", - 30 - ], - [ - "Blog", - 9 - ] - ] - }, - { - "id" : "004", - "name" : "004", - "data" : [ - [ - "Perl", - 56 - ], - [ - "Raku", - 33 - ], - [ - "Blog", - 10 - ] - ] - }, - { - "data" : [ - [ - "Perl", - 40 - ], - [ - "Raku", - 26 - ], - [ - "Blog", - 12 - ] - ], - "name" : "005", - "id" : "005" - }, - { - "data" : [ - [ - "Perl", - 33 - ], - [ - "Raku", - 18 - ], - [ - "Blog", - 7 - ] - ], - "id" : "006", - "name" : "006" - }, - { - "id" : "007", - "name" : "007", - "data" : [ - [ - "Perl", - 31 - ], - [ - "Raku", - 23 - ], - [ - "Blog", - 10 - ] - ] - }, - { - "id" : "008", - "name" : "008", - "data" : [ - [ - "Perl", - 44 - ], - [ - "Raku", - 22 - ], - [ - "Blog", - 12 - ] - ] - }, - { - "data" : [ - [ - "Perl", - 42 - ], - [ - "Raku", - 21 - ], - [ - "Blog", - 13 - ] - ], - "id" : "009", - "name" : "009" - }, - { - "name" : "010", - "id" : "010", - "data" : [ - [ - "Perl", - 35 - ], - [ - "Raku", - 19 - ], - [ - "Blog", - 11 - ] - ] - }, - { - "id" : "011", - "name" : "011", - "data" : [ - [ - "Perl", - 47 - ], - [ - "Raku", - 28 - ], - [ - "Blog", - 10 - ] - ] - }, - { - "name" : "012", - "id" : "012", - "data" : [ - [ - "Perl", - 48 - ], - [ - "Raku", - 30 - ], - [ - "Blog", - 11 - ] - ] - }, - { - "name" : "013", - "id" : "013", - "data" : [ - [ - "Perl", - 47 - ], - [ - "Raku", - 25 - ], - [ - "Blog", - 13 - ] - ] - }, - { - "name" : "014", - "id" : "014", - "data" : [ - [ - "Perl", - 55 - ], - [ - "Raku", - 31 - ], - [ - "Blog", - 15 - ] - ] - }, - { - "name" : "015", - "id" : "015", - "data" : [ - [ - "Perl", - 56 - ], - [ - "Raku", - 28 - ], - [ - "Blog", - 15 - ] - ] - }, - { - "data" : [ - [ - "Perl", - 36 - ], - [ - "Raku", - 23 - ], - [ - "Blog", - 12 - ] - ], - "name" : "016", - "id" : "016" - }, - { - "id" : "017", - "name" : "017", - "data" : [ - [ - "Perl", - 45 - ], - [ - "Raku", - 27 - ], - [ - "Blog", - 12 - ] - ] - }, - { - "data" : [ - [ - "Perl", - 36 - ], - [ - "Raku", - 31 - ], - [ - "Blog", - 14 - ] - ], - "name" : "018", - "id" : "018" - }, - { - "data" : [ - [ - "Perl", - 56 - ], - [ - "Raku", - 34 - ], - [ - "Blog", - 13 - ] - ], - "id" : "019", - "name" : "019" - }, - { - "name" : "020", - "id" : "020", - "data" : [ - [ - "Perl", - 51 - ], - [ - "Raku", - 37 - ], - [ - "Blog", - 13 - ] - ] - }, - { - "id" : "021", - "name" : "021", - "data" : [ - [ - "Perl", - 38 - ], - [ - "Raku", - 24 - ], - [ - "Blog", - 10 - ] - ] - }, - { - "data" : [ - [ - "Perl", - 35 - ], - [ - "Raku", - 23 - ], - [ - "Blog", - 10 - ] - ], - "name" : "022", - "id" : "022" - }, - { - "data" : [ - [ - "Perl", - 53 - ], - [ - "Raku", - 32 - ], - [ - "Blog", - 12 - ] - ], - "name" : "023", - "id" : "023" - }, - { - "name" : "024", - "id" : "024", - "data" : [ - [ - "Perl", - 38 - ], - [ - "Raku", - 26 - ], - [ - "Blog", - 11 - ] - ] - }, - { - "data" : [ - [ - "Perl", - 28 - ], - [ - "Raku", - 19 - ], - [ - "Blog", - 12 - ] - ], - "id" : "025", - "name" : "025" - }, - { - "data" : [ - [ - "Perl", - 35 - ], - [ - "Raku", - 29 - ], - [ - "Blog", - 10 - ] - ], - "name" : "026", - "id" : "026" - }, - { - "name" : "027", - "id" : "027", - "data" : [ - [ - "Perl", - 29 - ], - [ - "Raku", - 22 - ], - [ - "Blog", - 9 - ] - ] - }, - { - "name" : "028", - "id" : "028", - "data" : [ - [ - "Perl", - 45 - ], - [ - "Raku", - 26 - ], - [ - "Blog", - 9 - ] - ] - }, - { - "id" : "029", - "name" : "029", - "data" : [ - [ - "Perl", - 40 - ], - [ - "Raku", - 27 - ], - [ - "Blog", - 12 - ] - ] - }, - { - "data" : [ - [ - "Perl", - 74 - ], - [ - "Raku", - 33 - ], - [ - "Blog", - 10 - ] - ], - "name" : "030", - "id" : "030" - }, - { - "name" : "031", - "id" : "031", - "data" : [ - [ - "Perl", - 50 - ], - [ - "Raku", - 30 - ], - [ - "Blog", - 9 - ] - ] - }, - { - "name" : "032", - "id" : "032", - "data" : [ - [ - "Perl", - 57 - ], - [ - "Raku", - 27 - ], - [ - "Blog", - 10 - ] - ] - }, - { - "name" : "033", - "id" : "033", - "data" : [ - [ - "Perl", - 62 - ], - [ - "Raku", - 38 - ], - [ - "Blog", - 10 - ] - ] - }, - { - "id" : "034", - "name" : "034", - "data" : [ - [ - "Perl", - 30 - ], - [ - "Raku", - 23 - ], - [ - "Blog", - 11 - ] - ] - }, - { - "data" : [ - [ - "Perl", - 33 - ], - [ - "Raku", - 22 - ], - [ - "Blog", - 9 - ] - ], - "id" : "035", - "name" : "035" - }, - { - "id" : "036", - "name" : "036", - "data" : [ - [ - "Perl", - 35 - ], - [ - "Raku", - 22 - ], - [ - "Blog", - 11 - ] - ] - }, - { - "name" : "037", - "id" : "037", - "data" : [ - [ - "Perl", - 34 - ], - [ - "Raku", - 24 - ], - [ - "Blog", - 9 - ] - ] - }, - { - "data" : [ - [ - "Perl", - 32 - ], - [ - "Raku", - 24 - ], - [ - "Blog", - 12 - ] - ], - "name" : "038", - "id" : "038" - }, - { - "name" : "039", - "id" : "039", - "data" : [ - [ - "Perl", - 29 - ], - [ - "Raku", - 21 - ], - [ - "Blog", - 12 - ] - ] - }, - { - "id" : "040", - "name" : "040", - "data" : [ - [ - "Perl", - 39 - ], - [ - "Raku", - 24 - ], - [ - "Blog", - 10 - ] - ] - }, - { - "data" : [ - [ - "Perl", - 37 - ], - [ - "Raku", - 30 - ], - [ - "Blog", - 9 - ] - ], - "id" : "041", - "name" : "041" - }, - { - "data" : [ - [ - "Perl", - 47 - ], - [ - "Raku", - 34 - ], - [ - "Blog", - 11 - ] - ], - "name" : "042", - "id" : "042" - }, - { - "id" : "043", - "name" : "043", - "data" : [ - [ - "Perl", - 33 - ], - [ - "Raku", - 24 - ], - [ - "Blog", - 11 - ] - ] - }, - { - "data" : [ - [ - "Perl", - 41 - ], - [ - "Raku", - 33 - ], - [ - "Blog", - 11 - ] - ], - "id" : "044", - "name" : "044" - }, - { - "name" : "045", - "id" : "045", - "data" : [ - [ - "Perl", - 50 - ], - [ - "Raku", - 35 - ], - [ - "Blog", - 11 - ] - ] - }, - { - "data" : [ - [ - "Perl", - 44 - ], - [ - "Raku", - 33 - ], - [ - "Blog", - 10 - ] - ], - "name" : "046", - "id" : "046" - }, - { - "data" : [ - [ - "Perl", - 43 - ], - [ - "Raku", - 31 - ], - [ - "Blog", - 10 - ] - ], - "name" : "047", - "id" : "047" - }, - { - "data" : [ - [ - "Perl", - 59 - ], - [ - "Raku", - 37 - ], - [ - "Blog", - 12 - ] - ], - "id" : "048", - "name" : "048" - }, - { - "data" : [ - [ - "Perl", - 50 - ], - [ - "Raku", - 27 - ], - [ - "Blog", - 12 - ] - ], - "id" : "049", - "name" : "049" - }, - { - "id" : "050", - "name" : "050", - "data" : [ - [ - "Perl", - 50 - ], - [ - "Raku", - 36 - ], - [ - "Blog", - 12 - ] - ] - }, - { - "name" : "051", - "id" : "051", - "data" : [ - [ - "Perl", - 46 - ], - [ - "Raku", - 32 - ], - [ - "Blog", - 11 - ] - ] - }, - { - "id" : "052", - "name" : "052", - "data" : [ - [ - "Perl", - 45 - ], - [ - "Raku", - 32 - ], - [ - "Blog", - 14 - ] - ] - }, - { - "data" : [ - [ - "Perl", - 45 - ], - [ - "Raku", - 41 - ], - [ - "Blog", - 15 - ] - ], - "name" : "053", - "id" : "053" - }, - { - "data" : [ - [ - "Perl", - 45 - ], - [ - "Raku", - 40 - ], - [ - "Blog", - 18 - ] - ], - "name" : "054", - "id" : "054" - }, - { - "id" : "055", - "name" : "055", - "data" : [ - [ - "Perl", - 41 - ], - [ - "Raku", - 33 - ], - [ - "Blog", - 14 - ] - ] - }, - { - "data" : [ - [ - "Perl", - 47 - ], - [ - "Raku", - 32 - ], - [ - "Blog", - 16 - ] - ], - "id" : "056", - "name" : "056" - }, - { - "name" : "057", - "id" : "057", - "data" : [ - [ - "Perl", - 39 - ], - [ - "Raku", - 26 - ], - [ - "Blog", - 15 - ] - ] - }, - { - "data" : [ - [ - "Perl", - 33 - ], - [ - "Raku", - 23 - ], - [ - "Blog", - 13 - ] - ], - "id" : "058", - "name" : "058" - }, - { - "name" : "059", - "id" : "059", - "data" : [ - [ - "Perl", - 39 - ], - [ - "Raku", - 34 - ], - [ - "Blog", - 16 - ] - ] - }, - { - "name" : "060", - "id" : "060", - "data" : [ - [ - "Perl", - 39 - ], - [ - "Raku", - 30 - ], - [ - "Blog", - 16 - ] - ] - }, - { - "name" : "061", - "id" : "061", - "data" : [ - [ - "Perl", - 37 - ], - [ - "Raku", - 30 - ], - [ - "Blog", - 14 - ] - ] - }, - { - "data" : [ - [ - "Perl", - 28 - ], - [ - "Raku", - 19 - ], - [ - "Blog", - 11 - ] - ], - "name" : "062", - "id" : "062" - }, - { - "data" : [ - [ - "Perl", - 42 - ], - [ - "Raku", - 34 - ], - [ - "Blog", - 13 - ] - ], - "name" : "063", - "id" : "063" - }, - { - "name" : "064", - "id" : "064", - "data" : [ - [ - "Perl", - 35 - ], - [ - "Raku", - 29 - ], - [ - "Blog", - 16 - ] - ] - }, - { - "data" : [ - [ - "Perl", - 32 - ], - [ - "Raku", - 26 - ], - [ - "Blog", - 15 - ] - ], - "id" : "065", - "name" : "065" - }, - { - "id" : "066", - "name" : "066", - "data" : [ - [ - "Perl", - 39 - ], - [ - "Raku", - 31 - ], - [ - "Blog", - 14 - ] - ] - }, - { - "id" : "067", - "name" : "067", - "data" : [ - [ - "Perl", - 38 - ], - [ - "Raku", - 34 - ], - [ - "Blog", - 18 - ] - ] - }, - { - "name" : "068", - "id" : "068", - "data" : [ - [ - "Perl", - 33 - ], - [ - "Raku", - 29 - ], - [ - "Blog", - 13 - ] - ] - }, - { - "data" : [ - [ - "Perl", - 39 - ], - [ - "Raku", - 28 - ], - [ - "Blog", - 16 - ] - ], - "name" : "069", - "id" : "069" - }, - { - "data" : [ - [ - "Perl", - 42 - ], - [ - "Raku", - 34 - ], - [ - "Blog", - 17 - ] - ], - "name" : "070", - "id" : "070" - }, - { - "data" : [ - [ - "Perl", - 31 - ], - [ - "Raku", - 32 - ], - [ - "Blog", - 15 - ] - ], - "id" : "071", - "name" : "071" - }, - { - "id" : "072", - "name" : "072", - "data" : [ - [ - "Perl", - 51 - ], - [ - "Raku", - 42 - ], - [ - "Blog", - 19 - ] - ] - }, - { - "name" : "073", - "id" : "073", - "data" : [ - [ - "Perl", - 53 - ], - [ - "Raku", - 40 - ], - [ - "Blog", - 17 - ] - ] - }, - { - "name" : "074", - "id" : "074", - "data" : [ - [ - "Perl", - 56 - ], - [ - "Raku", - 39 - ], - [ - "Blog", - 20 - ] - ] - }, - { - "data" : [ - [ - "Perl", - 57 - ], - [ - "Raku", - 38 - ], - [ - "Blog", - 20 - ] - ], - "name" : "075", - "id" : "075" - }, - { - "data" : [ - [ - "Perl", - 51 - ], - [ - "Raku", - 32 - ], - [ - "Blog", - 16 - ] - ], - "id" : "076", - "name" : "076" - }, - { - "name" : "077", - "id" : "077", - "data" : [ - [ - "Perl", - 50 - ], - [ - "Raku", - 34 - ], - [ - "Blog", - 14 - ] - ] - }, - { - "id" : "078", - "name" : "078", - "data" : [ - [ - "Perl", - 68 - ], - [ - "Raku", - 41 - ], - [ - "Blog", - 18 - ] - ] - }, - { - "data" : [ - [ - "Perl", - 68 - ], - [ - "Raku", - 37 - ], - [ - "Blog", - 17 - ] - ], - "id" : "079", - "name" : "079" - }, - { - "name" : "080", - "id" : "080", - "data" : [ - [ - "Perl", - 75 - ], - [ - "Raku", - 36 - ], - [ - "Blog", - 16 - ] - ] - }, - { - "name" : "081", - "id" : "081", - "data" : [ - [ - "Perl", - 65 - ], - [ - "Raku", - 34 - ], - [ - "Blog", - 15 - ] - ] - }, - { - "data" : [ - [ - "Perl", - 62 - ], - [ - "Raku", - 35 - ], - [ - "Blog", - 17 - ] - ], - "name" : "082", - "id" : "082" - }, - { - "data" : [ - [ - "Perl", - 73 - ], - [ - "Raku", - 38 - ], - [ - "Blog", - 16 - ] - ], - "name" : "083", - "id" : "083" - }, - { - "data" : [ - [ - "Perl", - 71 - ], - [ - "Raku", - 36 - ], - [ - "Blog", - 12 - ] - ], - "id" : "084", - "name" : "084" - }, - { - "name" : "085", - "id" : "085", - "data" : [ - [ - "Perl", - 64 - ], - [ - "Raku", - 32 - ], - [ - "Blog", - 18 - ] - ] - }, - { - "data" : [ - [ - "Perl", - 58 - ], - [ - "Raku", - 31 - ], - [ - "Blog", - 15 - ] - ], - "id" : "086", - "name" : "086" - }, - { - "name" : "087", - "id" : "087", - "data" : [ - [ - "Perl", - 56 - ], - [ - "Raku", - 31 - ], - [ - "Blog", - 14 - ] - ] - }, - { - "id" : "088", - "name" : "088", - "data" : [ - [ - "Perl", - 65 - ], - [ - "Raku", - 36 - ], - [ - "Blog", - 20 - ] - ] - }, - { - "name" : "089", - "id" : "089", - "data" : [ - [ - "Perl", - 59 - ], - [ - "Raku", - 34 - ], - [ - "Blog", - 20 - ] - ] - }, - { - "id" : "090", - "name" : "090", - "data" : [ - [ - "Perl", - 57 - ], - [ - "Raku", - 39 - ], - [ - "Blog", - 17 - ] - ] - }, - { - "data" : [ - [ - "Perl", - 56 - ], - [ - "Raku", - 36 - ], - [ - "Blog", - 16 - ] - ], - "name" : "091", - "id" : "091" - }, - { - "data" : [ - [ - "Perl", - 52 - ], - [ - "Raku", - 30 - ], - [ - "Blog", - 16 - ] - ], - "name" : "092", - "id" : "092" - }, - { - "name" : "093", - "id" : "093", - "data" : [ - [ - "Perl", - 46 - ], - [ - "Raku", - 25 - ], - [ - "Blog", - 16 - ] - ] - }, - { - "data" : [ - [ - "Perl", - 44 - ], - [ - "Raku", - 26 - ], - [ - "Blog", - 17 - ] - ], - "name" : "094", - "id" : "094" - }, - { - "name" : "095", - "id" : "095", - "data" : [ - [ - "Perl", - 56 - ], - [ - "Raku", - 33 - ], - [ - "Blog", - 19 - ] - ] - }, - { - "name" : "096", - "id" : "096", - "data" : [ - [ - "Perl", - 52 - ], - [ - "Raku