From 4995751698846ca93c58411f92eef12763f53b2a Mon Sep 17 00:00:00 2001 From: Bob Lied Date: Wed, 31 Jan 2024 11:20:13 -0600 Subject: Week 254 solutions --- challenge-254/bob-lied/README | 6 ++-- challenge-254/bob-lied/perl/ch-1.pl | 67 +++++++++++++++++++++++++++++++++++++ challenge-254/bob-lied/perl/ch-2.pl | 55 ++++++++++++++++++++++++++++++ 3 files changed, 125 insertions(+), 3 deletions(-) create mode 100644 challenge-254/bob-lied/perl/ch-1.pl create mode 100644 challenge-254/bob-lied/perl/ch-2.pl diff --git a/challenge-254/bob-lied/README b/challenge-254/bob-lied/README index af6f9a022d..648108e446 100644 --- a/challenge-254/bob-lied/README +++ b/challenge-254/bob-lied/README @@ -1,4 +1,4 @@ -Solutions to weekly challenge 253 by Bob Lied +Solutions to weekly challenge 254 by Bob Lied -https://perlweeklychallenge.org/blog/perl-weekly-challenge-253/ -https://github.com/boblied/perlweeklychallenge-club/tree/master/challenge-253/bob-lied +https://perlweeklychallenge.org/blog/perl-weekly-challenge-254/ +https://github.com/boblied/perlweeklychallenge-club/tree/master/challenge-254/bob-lied diff --git a/challenge-254/bob-lied/perl/ch-1.pl b/challenge-254/bob-lied/perl/ch-1.pl new file mode 100644 index 0000000000..cabc8fc6b6 --- /dev/null +++ b/challenge-254/bob-lied/perl/ch-1.pl @@ -0,0 +1,67 @@ +#!/usr/bin/env perl +# vim:set ts=4 sw=4 sts=4 et ai wm=0 nu: +#============================================================================= +# Copyright (c) 2024, Bob Lied +#============================================================================= +# ch-1.pl Perl Weekly Challenge 254 Task 1 Three Power +#============================================================================= +# You are given a positive integer, $n. Write a script to return true if +# the given integer is a power of three otherwise return false. +# Example 1 Input: $n = 27 Output: true +# Example 2 Input: $n = 0 Output: true +# Example 3 Input: $n = 6 Output: false +#============================================================================= + +use v5.38; + +use builtin qw/true false/; no warnings "experimental::builtin"; + +use Getopt::Long; +my $Verbose = 0; +my $DoTest = 0; + +GetOptions("test" => \$DoTest, "verbose" => \$Verbose); +exit(!runTest()) if $DoTest; + +say isPof3(shift) ? "true" : "false"; + +sub isPof3($n) +{ + if ( $n > 0 ) { $n /= 3 while ( $n % 3 == 0 ); + return $n == 1; + } + elsif ( $n == 0 ) { return true } + else { return false; } +} + +sub runTest +{ + use Test2::V0; + use builtin qw/true false/; no warnings "experimental::builtin"; + + is( isPof3(27), true, "Example 1"); + is( isPof3( 0), true, "Example 2"); + is( isPof3( 6), false, "Example 3"); + + my $p3 = Power->new(base => 3); + is( $p3->isPowerOf(27), true, "Example 1 with class"); + is( $p3->isPowerOf( 0), true, "Example 2 with class"); + is( $p3->isPowerOf( 6), false, "Example 3 with class"); + + done_testing; +} + +use feature "class"; no warnings "experimental::class"; + +class Power +{ + field $base :param = 10; + + method isPowerOf($n) { + if ( $n > 0 ) { $n /= $base while ( $n % $base == 0 ); + return $n == 1; + } + elsif ( $n == 0 ) { return true } + else { return false; } + } +} diff --git a/challenge-254/bob-lied/perl/ch-2.pl b/challenge-254/bob-lied/perl/ch-2.pl new file mode 100644 index 0000000000..55e3e6ceb9 --- /dev/null +++ b/challenge-254/bob-lied/perl/ch-2.pl @@ -0,0 +1,55 @@ +#!/usr/bin/env perl +# vim:set ts=4 sw=4 sts=4 et ai wm=0 nu: +#============================================================================= +# Copyright (c) 2024, Bob Lied +#============================================================================= +# +# ch-2.pl Perl Weekly Challenge 254 Task 2 Reverse Vowels +#============================================================================= +# You are given a string, $s. Write a script to reverse all the vowels +# (a, e, i, o, u) in the given string. +# Example 1 Input: $s = "Raku" Output: "Ruka" +# Example 2 Input: $s = "Perl" Output: "Perl" +# Example 3 Input: $s = "Julia" Output: "Jaliu" +# Example 4 Input: $s = "Uiua" Output: "Auiu" +#============================================================================= + +use v5.38; + +use Getopt::Long; +my $Verbose = 0; +my $DoTest = 0; + +GetOptions("test" => \$DoTest, "verbose" => \$Verbose); +exit(!runTest()) if $DoTest; + +say revVow($_) for @ARGV; + +sub revVow($s) +{ + state $isVowel = qr/[aeiou]/i; + + my @v = $s =~ m/$isVowel/g; + my $rev; + for ( split(//, $s) ) + { + my $next = ( /$isVowel/ ? pop @v : $_ ); + $rev .= ( /\p{Uppercase}/ ? uc $next : lc $next ); + } + return $rev; +} + +sub runTest +{ + use Test2::V0; + + is( revVow("Raku"), "Ruka", "Example 1"); + is( revVow("Perl"), "Perl", "Example 2"); + is( revVow("Julia"), "Jaliu", "Example 3"); + is( revVow("Uiua"), "Auiu", "Example 4"); + is( revVow("AEIOU"), "UOIEA", "Odd length"); + is( revVow("aEiOu"), "uOiEa", "Retain casing 1"); + is( revVow("AeIo"), "OiEa", "Retain casing 2"); + + done_testing; +} -- cgit From f82ffa553ea432e6b22b069cd47f9276a45b052c Mon Sep 17 00:00:00 2001 From: Simon Green Date: Sat, 3 Feb 2024 16:53:00 +1100 Subject: Simon's solution to challenge 254 --- challenge-254/sgreen/README.md | 4 ++-- challenge-254/sgreen/blog.txt | 1 + challenge-254/sgreen/perl/ch-1.pl | 19 +++++++++++++++++++ challenge-254/sgreen/perl/ch-2.pl | 26 ++++++++++++++++++++++++++ challenge-254/sgreen/python/ch-1.py | 23 +++++++++++++++++++++++ challenge-254/sgreen/python/ch-2.py | 31 +++++++++++++++++++++++++++++++ challenge-254/sgreen/python/test.py | 22 ++++++++++++++++++++++ 7 files changed, 124 insertions(+), 2 deletions(-) create mode 100644 challenge-254/sgreen/blog.txt create mode 100755 challenge-254/sgreen/perl/ch-1.pl create mode 100755 challenge-254/sgreen/perl/ch-2.pl create mode 100755 challenge-254/sgreen/python/ch-1.py create mode 100755 challenge-254/sgreen/python/ch-2.py create mode 100755 challenge-254/sgreen/python/test.py diff --git a/challenge-254/sgreen/README.md b/challenge-254/sgreen/README.md index 4f9fe5e116..8963a142f3 100644 --- a/challenge-254/sgreen/README.md +++ b/challenge-254/sgreen/README.md @@ -1,3 +1,3 @@ -# The Weekly Challenge 253 +# The Weekly Challenge 254 -Blog: [The weakest split](https://dev.to/simongreennet/the-weakest-split-5ad7) +Blog: [Power to the vowels](https://dev.to/simongreennet/power-to-the-vowels-5cdp) diff --git a/challenge-254/sgreen/blog.txt b/challenge-254/sgreen/blog.txt new file mode 100644 index 0000000000..d436040f1b --- /dev/null +++ b/challenge-254/sgreen/blog.txt @@ -0,0 +1 @@ +https://dev.to/simongreennet/power-to-the-vowels-5cdp \ No newline at end of file diff --git a/challenge-254/sgreen/perl/ch-1.pl b/challenge-254/sgreen/perl/ch-1.pl new file mode 100755 index 0000000000..2b51cd8203 --- /dev/null +++ b/challenge-254/sgreen/perl/ch-1.pl @@ -0,0 +1,19 @@ +#!/usr/bin/env perl + +use strict; +use warnings; +use feature 'say'; +use experimental 'signatures'; + +use Math::Round 'round'; + +sub three_power ($n) { + # Get the closest integer to a cube root + my $i = round(abs($n) ** (1/3)); + + # Return true if this number is indeed a cube root + return $i ** 3 == abs($n); +} + +my $r = three_power($ARGV[0]); +say $r ? 'true' : 'false'; \ No newline at end of file diff --git a/challenge-254/sgreen/perl/ch-2.pl b/challenge-254/sgreen/perl/ch-2.pl new file mode 100755 index 0000000000..78feee1f3d --- /dev/null +++ b/challenge-254/sgreen/perl/ch-2.pl @@ -0,0 +1,26 @@ +#!/usr/bin/env perl + +use strict; +use warnings; +use feature 'say'; +use experimental 'signatures'; + +sub reverse_vowels ($s) { + # Convert it to lower case + $s = lc $s; + + # Extract the vowels + my @vowel_list = grep { /[aeiou]/ } split //, $s; + + for my $pos ( 0 .. length($s) - 1 ) { + # If the character here is a vowel + if ( substr( $s, $pos, 1 ) =~ /[aeiou]/ ) { + # ... get the last vowel + substr( $s, $pos, 1 ) = pop(@vowel_list); + } + } + + return ucfirst $s; +} + +say reverse_vowels($ARGV[0]); \ No newline at end of file diff --git a/challenge-254/sgreen/python/ch-1.py b/challenge-254/sgreen/python/ch-1.py new file mode 100755 index 0000000000..37c492575d --- /dev/null +++ b/challenge-254/sgreen/python/ch-1.py @@ -0,0 +1,23 @@ +#!/usr/bin/env python3 + +import sys + + +def three_power(n: int) -> bool: + # Get the closest integer to a cube root + i = round(abs(n) ** (1/3)) + + # Return true if this number is indeed a cube root + return i ** 3 == abs(n) + + +def main(): + # Convert input into integers + n = int(sys.argv[1]) + result = three_power(n) + print('true' if result else 'false') + + +if __name__ == '__main__': + # Convert input into integers + main() diff --git a/challenge-254/sgreen/python/ch-2.py b/challenge-254/sgreen/python/ch-2.py new file mode 100755 index 0000000000..eed9768157 --- /dev/null +++ b/challenge-254/sgreen/python/ch-2.py @@ -0,0 +1,31 @@ +#!/usr/bin/env python3 + +import sys + + +def reverse_vowels(s: str) -> str: + # Convert it to lower case + s = s.lower() + + # Extract the vowels + vowel_list = [c for c in s if c in 'aeiou'] + + new_string = '' + for c in s: + # If the character here is a vowel + if c in 'aeiou': + # ... get the last vowel + new_string += vowel_list.pop() + else: + new_string += c + + return new_string.capitalize() + + +def main(): + s = sys.argv[1] + print(reverse_vowels(s)) + + +if __name__ == '__main__': + main() diff --git a/challenge-254/sgreen/python/test.py b/challenge-254/sgreen/python/test.py new file mode 100755 index 0000000000..f9d9c15650 --- /dev/null +++ b/challenge-254/sgreen/python/test.py @@ -0,0 +1,22 @@ +#!/usr/bin/env python3 + +import unittest +ch_1 = __import__('ch-1') +ch_2 = __import__('ch-2') + + +class TestClass(unittest.TestCase): + def test_ch_1(self): + self.assertTrue(ch_1.three_power(27)) + self.assertTrue(ch_1.three_power(0)) + self.assertFalse(ch_1.three_power(6)) + + def test_ch_2(self): + self.assertEqual(ch_2.reverse_vowels('Raku'), 'Ruka') + self.assertEqual(ch_2.reverse_vowels('Perl'), 'Perl') + self.assertEqual(ch_2.reverse_vowels('Julia'), 'Jaliu') + self.assertEqual(ch_2.reverse_vowels('Uiua'), 'Auiu') + + +if __name__ == '__main__': + unittest.main() -- cgit From 8a790c9982d7073d385388588268ce4768e98ef7 Mon Sep 17 00:00:00 2001 From: Mohammad S Anwar Date: Sat, 3 Feb 2024 10:48:20 +0000 Subject: - Added solutions by Simon Green. --- stats/pwc-current.json | 389 +- stats/pwc-language-breakdown-summary.json | 78 +- stats/pwc-language-breakdown.json | 9810 ++++++++++++++--------------- stats/pwc-leaders.json | 366 +- stats/pwc-summary-1-30.json | 100 +- stats/pwc-summary-121-150.json | 34 +- stats/pwc-summary-151-180.json | 98 +- stats/pwc-summary-181-210.json | 44 +- stats/pwc-summary-211-240.json | 102 +- stats/pwc-summary-241-270.json | 50 +- stats/pwc-summary-271-300.json | 110 +- stats/pwc-summary-301-330.json | 46 +- stats/pwc-summary-31-60.json | 110 +- stats/pwc-summary-61-90.json | 100 +- stats/pwc-summary-91-120.json | 32 +- stats/pwc-summary.json | 44 +- 16 files changed, 5766 insertions(+), 5747 deletions(-) diff --git a/stats/pwc-current.json b/stats/pwc-current.json index 1367832b6e..36b0e3bcc0 100644 --- a/stats/pwc-current.json +++ b/stats/pwc-current.json @@ -1,8 +1,156 @@ { + "plotOptions" : { + "series" : { + "dataLabels" : { + "format" : "{point.y}", + "enabled" : 1 + }, + "borderWidth" : 0 + } + }, + "series" : [ + { + "name" : "The Weekly Challenge - 254", + "colorByPoint" : 1, + "data" : [ + { + "y" : 3, + "name" : "Ali Moradi", + "drilldown" : "Ali Moradi" + }, + { + "name" : "Arne Sommer", + "y" : 3, + "drilldown" : "Arne Sommer" + }, + { + "y" : 4, + "name" : "Athanasius", + "drilldown" : "Athanasius" + }, + { + "drilldown" : "Dave Jacoby", + "name" : "Dave Jacoby", + "y" : 3 + }, + { + "drilldown" : "David Ferrone", + "y" : 2, + "name" : "David Ferrone" + }, + { + "drilldown" : "E. Choroba", + "y" : 2, + "name" : "E. Choroba" + }, + { + "name" : "Jorg Sommrey", + "y" : 3, + "drilldown" : "Jorg Sommrey" + }, + { + "drilldown" : "Laurent Rosenfeld", + "y" : 6, + "name" : "Laurent Rosenfeld" + }, + { + "drilldown" : "Luca Ferrari", + "y" : 11, + "name" : "Luca Ferrari" + }, + { + "drilldown" : "Mark Anderson", + "y" : 2, + "name" : "Mark Anderson" + }, + { + "name" : "Matthew Neleigh", + "y" : 2, + "drilldown" : "Matthew Neleigh" + }, + { + "name" : "Nelo Tovar", + "y" : 2, + "drilldown" : "Nelo Tovar" + }, + { + "y" : 2, + "name" : "Niels van Dijke", + "drilldown" : "Niels van Dijke" + }, + { + "name" : "Packy Anderson", + "y" : 5, + "drilldown" : "Packy Anderson" + }, + { + "name" : "Peter Campbell Smith", + "y" : 3, + "drilldown" : "Peter Campbell Smith" + }, + { + "drilldown" : "Peter Meszaros", + "name" : "Peter Meszaros", + "y" : 2 + }, + { + "drilldown" : "Robbie Hatley", + "name" : "Robbie Hatley", + "y" : 3 + }, + { + "y" : 4, + "name" : "Roger Bell_West", + "drilldown" : "Roger Bell_West" + }, + { + "name" : "Simon Green", + "y" : 3, + "drilldown" : "Simon Green" + }, + { + "drilldown" : "Stephen G. Lynn", + "y" : 3, + "name" : "Stephen G. Lynn" + }, + { + "drilldown" : "Thomas Kohler", + "name" : "Thomas Kohler", + "y" : 4 + }, + { + "drilldown" : "Ulrich Rieke", + "y" : 4, + "name" : "Ulrich Rieke" + }, + { + "drilldown" : "W. Luis Mochan", + "y" : 3, + "name" : "W. Luis Mochan" + } + ] + } + ], + "subtitle" : { + "text" : "[Champions: 23] Last updated at 2024-02-03 10:44:08 GMT" + }, + "yAxis" : { + "title" : { + "text" : "Total Solutions" + } + }, + "title" : { + "text" : "The Weekly Challenge - 254" + }, + "legend" : { + "enabled" : 0 + }, + "xAxis" : { + "type" : "category" + }, "drilldown" : { "series" : [ { - "name" : "Ali Moradi", "data" : [ [ "Perl", @@ -13,10 +161,12 @@ 1 ] ], + "name" : "Ali Moradi", "id" : "Ali Moradi" }, { "id" : "Arne Sommer", + "name" : "Arne Sommer", "data" : [ [ "Raku", @@ -26,10 +176,10 @@ "Blog", 1 ] - ], - "name" : "Arne Sommer" + ] }, { + "name" : "Athanasius", "id" : "Athanasius", "data" : [ [ @@ -40,8 +190,7 @@ "Raku", 2 ] - ], - "name" : "Athanasius" + ] }, { "name" : "Dave Jacoby", @@ -58,27 +207,26 @@ ] }, { + "name" : "David Ferrone", "id" : "David Ferrone", "data" : [ [ "Perl", 2 ] - ], - "name" : "David Ferrone" + ] }, { - "id" : "E. Choroba", "data" : [ [ "Perl", 2 ] ], - "name" : "E. Choroba" + "name" : "E. Choroba", + "id" : "E. Choroba" }, { - "name" : "Jorg Sommrey", "data" : [ [ "Perl", @@ -89,6 +237,7 @@ 1 ] ], + "name" : "Jorg Sommrey", "id" : "Jorg Sommrey" }, { @@ -111,6 +260,7 @@ }, { "name" : "Luca Ferrari", + "id" : "Luca Ferrari", "data" : [ [ "Raku", @@ -120,51 +270,51 @@ "Blog", 9 ] - ], - "id" : "Luca Ferrari" + ] }, { - "id" : "Mark Anderson", "data" : [ [ "Raku", 2 ] ], + "id" : "Mark Anderson", "name" : "Mark Anderson" }, { "name" : "Matthew Neleigh", + "id" : "Matthew Neleigh", "data" : [ [ "Perl", 2 ] - ], - "id" : "Matthew Neleigh" + ] }, { - "name" : "Nelo Tovar", - "id" : "Nelo Tovar", "data" : [ [ "Perl", 2 ] - ] + ], + "id" : "Nelo Tovar", + "name" : "Nelo Tovar" }, { + "id" : "Niels van Dijke", "name" : "Niels van Dijke", "data" : [ [ "Perl", 2 ] - ], - "id" : "Niels van Dijke" + ] }, { "id" : "Packy Anderson", + "name" : "Packy Anderson", "data" : [ [ "Perl", @@ -178,10 +328,11 @@ "Blog", 1 ] - ], - "name" : "Packy Anderson" + ] }, { + "id" : "Peter Campbell Smith", + "name" : "Peter Campbell Smith", "data" : [ [ "Perl", @@ -191,21 +342,20 @@ "Blog", 1 ] - ], - "id" : "Peter Campbell Smith", - "name" : "Peter Campbell Smith" + ] }, { "name" : "Peter Meszaros", + "id" : "Peter Meszaros", "data" : [ [ "Perl", 2 ] - ], - "id" : "Peter Meszaros" + ] }, { + "name" : "Robbie Hatley", "id" : "Robbie Hatley", "data" : [ [ @@ -216,11 +366,9 @@ "Blog", 1 ] - ], - "name" : "Robbie Hatley" + ] }, { - "id" : "Roger Bell_West", "data" : [ [ "Perl", @@ -231,10 +379,10 @@ 2 ] ], - "name" : "Roger Bell_West" + "name" : "Roger Bell_West", + "id" : "Roger Bell_West" }, { - "id" : "Stephen G. Lynn", "data" : [ [ "Perl", @@ -245,7 +393,8 @@ 1 ] ], - "name" : "Stephen G. Lynn" + "id" : "Simon Green", + "name" : "Simon Green" }, { "data" : [ @@ -255,11 +404,25 @@ ], [ "Blog", - 2 + 1 ] ], + "name" : "Stephen G. Lynn", + "id" : "Stephen G. Lynn" + }, + { "id" : "Thomas Kohler", - "name" : "Thomas Kohler" + "name" : "Thomas Kohler", + "data" : [ + [ + "Perl", + 2 + ], + [ + "Blog", + 2 + ] + ] }, { "data" : [ @@ -272,8 +435,8 @@ 2 ] ], - "id" : "Ulrich Rieke", - "name" : "Ulrich Rieke" + "name" : "Ulrich Rieke", + "id" : "Ulrich Rieke" }, { "data" : [ @@ -291,156 +454,12 @@ } ] }, - "subtitle" : { - "text" : "[Champions: 22] Last updated at 2024-02-02 22:33:10 GMT" - }, - "legend" : { - "enabled" : 0 - }, - "chart" : { - "type" : "column" - }, - "yAxis" : { - "title" : { - "text" : "Total Solutions" - } - }, - "plotOptions" : { - "series" : { - "borderWidth" : 0, - "dataLabels" : { - "enabled" : 1, - "format" : "{point.y}" - } - } - }, - "title" : { - "text" : "The Weekly Challenge - 254" - }, - "xAxis" : { - "type" : "category" - }, "tooltip" : { - "headerFormat" : "{series.name}
", "pointFormat" : "{point.name}: {point.y:f}
", + "headerFormat" : "{series.name}
", "followPointer" : 1 }, - "series" : [ - { - "data" : [ - { - "y" : 3, - "name" : "Ali Moradi", - "drilldown" : "Ali Moradi" - }, - { - "drilldown" : "Arne Sommer", - "name" : "Arne Sommer", - "y" : 3 - }, - { - "drilldown" : "Athanasius", - "name" : "Athanasius", - "y" : 4 - }, - { - "drilldown" : "Dave Jacoby", - "y" : 3, - "name" : "Dave Jacoby" - }, - { - "drilldown" : "David Ferrone", - "y" : 2, - "name" : "David Ferrone" - }, - { - "name" : "E. Choroba", - "y" : 2, - "drilldown" : "E. Choroba" - }, - { - "y" : 3, - "name" : "Jorg Sommrey", - "drilldown" : "Jorg Sommrey" - }, - { - "drilldown" : "Laurent Rosenfeld", - "y" : 6, - "name" : "Laurent Rosenfeld" - }, - { - "drilldown" : "Luca Ferrari", - "name" : "Luca Ferrari", - "y" : 11 - }, - { - "drilldown" : "Mark Anderson", - "name" : "Mark Anderson", - "y" : 2 - }, - { - "drilldown" : "Matthew Neleigh", - "name" : "Matthew Neleigh", - "y" : 2 - }, - { - "drilldown" : "Nelo Tovar", - "name" : "Nelo Tovar", - "y" : 2 - }, - { - "drilldown" : "Niels van Dijke", - "y" : 2, - "name" : "Niels van Dijke" - }, - { - "drilldown" : "Packy Anderson", - "name" : "Packy Anderson", - "y" : 5 - }, - { - "drilldown" : "Peter Campbell Smith", - "name" : "Peter Campbell Smith", - "y" : 3 - }, - { - "drilldown" : "Peter Meszaros", - "name" : "Peter Meszaros", - "y" : 2 - }, - { - "name" : "Robbie Hatley", - "y" : 3, - "drilldown" : "Robbie Hatley" - }, - { - "y" : 4, - "name" : "Roger Bell_West", - "drilldown" : "Roger Bell_West" - }, - { - "drilldown" : "Stephen G. Lynn", - "name" : "Stephen G. Lynn", - "y" : 3 - }, - { - "y" : 4, - "name" : "Thomas Kohler", - "drilldown" : "Thomas Kohler" - }, - { - "y" : 4, - "name" : "Ulrich Rieke", - "drilldown" : "Ulrich Rieke" - }, - { - "drilldown" : "W. Luis Mochan", - "y" : 3, - "name" : "W. Luis Mochan" - } - ], - "colorByPoint" : 1, - "name" : "The Weekly Challenge - 254" - } - ] + "chart" : { + "type" : "column" + } } diff --git a/stats/pwc-language-breakdown-summary.json b/stats/pwc-language-breakdown-summary.json index 19e8cb2d79..f48336bd13 100644 --- a/stats/pwc-language-breakdown-summary.json +++ b/stats/pwc-language-breakdown-summary.json @@ -1,57 +1,27 @@ { - "chart" : { - "type" : "column" - }, - "subtitle" : { - "text" : "Last updated at 2024-02-02 22:33:10 GMT" - }, - "legend" : { - "enabled" : "false" - }, - "title" : { - "text" : "The Weekly Challenge Contributions [2019 - 2024]" - }, - "yAxis" : { - "title" : { - "text" : null - }, - "min" : 0 - }, - "xAxis" : { - "type" : "category", - "labels" : { - "style" : { - "fontSize" : "13px", - "fontFamily" : "Verdana, sans-serif" - } - } - }, - "tooltip" : { - "pointFormat" : "{point.y:.0f}" - }, "series" : [ { "dataLabels" : { - "enabled" : "true", + "color" : "#FFFFFF", + "format" : "{point.y:.0f}", "align" : "right", "rotation" : -90, + "y" : 10, "style" : { - "fontFamily" : "Verdana, sans-serif", - "fontSize" : "13px" + "fontSize" : "13px", + "fontFamily" : "Verdana, sans-serif" }, - "format" : "{point.y:.0f}", - "y" : 10, - "color" : "#FFFFFF" + "enabled" : "true" }, "name" : "Contributions", "data" : [ [ "Blog", - 4478 + 4479 ], [ "Perl", - 13117 + 13119 ], [ "Raku", @@ -59,5 +29,35 @@ ] ] } - ] + ], + "subtitle" : { + "text" : "Last updated at 2024-02-03 10:44:08 GMT" + }, + "title" : { + "text" : "The Weekly Challenge Contributions [2019 - 2024]" + }, + "yAxis" : { + "min" : 0, + "title" : { + "text" : null + } + }, + "legend" : { + "enabled" : "false" + }, + "xAxis" : { + "type" : "category", + "labels" : { + "style" : { + "fontFamily" : "Verdana, sans-serif", + "fontSize" : "13px" + } + } + }, + "chart" : { + "type" : "column" + }, + "tooltip" : { + "pointFormat" : "{point.y:.0f}" + } } diff --git a/stats/pwc-language-breakdown.json b/stats/pwc-language-breakdown.json index 5fe82ffb02..29c3a03bdb 100644 --- a/stats/pwc-language-breakdown.json +++ b/stats/pwc-language-breakdown.json @@ -1,4574 +1,17 @@ { - "drilldown" : { - "series" : [ - { - "name" : "001", - "id" : "001", - "data" : [ - [ - "Perl", - 105 - ], - [ - "Raku", - 47 - ], - [ - "Blog", - 12 - ] - ] - }, - { - "name" : "002", - "data" : [ - [ - "Perl", - 83 - ], - [ - "Raku", - 36 - ], - [ - "Blog", - 10 - ] - ], - "id" : "002" - }, - { - "data" : [ - [ - "Perl", - 48 - ], - [ - "Raku", - 30 - ], - [ - "Blog", - 9 - ] - ], - "id" : "003", - "name" : "003" - }, - { - "name" : "004", - "data" : [ - [ - "Perl", - 60 - ], - [ - "Raku", - 33 - ], - [ - "Blog", - 10 - ] - ], - "id" : "004" - }, - { - "data" : [ - [ - "Perl", - 42 - ], - [ - "Raku", - 26 - ], - [ - "Blog", - 12 - ] - ], - "id" : "005", - "name" : "005" - }, - { - "name" : "006", - "data" : [ - [ - "Perl", - 36 - ], - [ - "Raku", - 18 - ], - [ - "Blog", - 7 - ] - ], - "id" : "006" - }, - { - "id" : "007", - "data" : [ - [ - "Perl", - 36 - ], - [ - "Raku", - 23 - ], - [ - "Blog", - 10 - ] - ], - "name" : "007" - }, - { - "id" : "008", - "data" : [ - [ - "Perl", - 48 - ], - [ - "Raku", - 22 - ], - [ - "Blog", - 12 - ] - ], - "name" : "008" - }, - { - "name" : "009", - "data" : [ - [ - "Perl", - 46 - ], - [ - "Raku", - 21 - ], - [ - "Blog", - 13 - ] - ], - "id" : "009" - }, - { - "name" : "010", - "id" : "010", - "data" : [ - [ - "Perl", - 39 - ], - [ - "Raku", - 19 - ], - [ - "Blog", - 11 - ] - ] - }, - { - "name" : "011", - "id" : "011", - "data" : [ - [ - "Perl", - 51 - ], - [ - "Raku", - 28 - ], - [ - "Blog", - 10 - ] - ] - }, - { - "data" : [ - [ - "Perl", - 51 - ], - [ - "Raku", - 30 - ], - [ - "Blog", - 11 - ] - ], - "id" : "012", - "name" : "012" - }, - { - "id" : "013", - "data" : [ - [ - "Perl", - 49 - ], - [ - "Raku", - 25 - ], - [ - "Blog", - 13 - ] - ], - "name" : "013" - }, - { - "name" : "014", - "data" : [ - [ - "Perl", - 56 - ], - [ - "Raku", - 31 - ], - [ - "Blog", - 15 - ] - ], - "id" : "014" - }, - { - "name" : "015", - "id" : "015", - "data" : [ - [ - "Perl", - 58 - ], - [ - "Raku", - 28 - ], - [ - "Blog", - 15 - ] - ] - }, - { - "name" : "016", - "id" : "016", - "data" : [ - [ - "Perl", - 38 - ], - [ - "Raku", - 24 - ], - [ - "Blog", - 13 - ] - ] - }, - { - "data" : [ - [ - "Perl", - 47 - ], - [ - "Raku", - 27 - ], - [ - "Blog", - 12 - ] - ], - "id" : "017", - "name" : "017" - }, - { - "name" : "018", - "id" : "018", - "data" : [ - [ - "Perl", - 38 - ], - [ - "Raku", - 31 - ], - [ - "Blog", - 14 - ] - ] - }, - { - "data" : [ - [ - "Perl", - 58 - ], - [ - "Raku", - 34 - ], - [ - "Blog", - 13 - ] - ], - "id" : "019", - "name" : "019" - }, - { - "data" : [ - [ - "Perl", - 53 - ], - [ - "Raku", - 37 - ], - [ - "Blog", - 13 - ] - ], - "id" : "020", - "name" : "020" - }, - { - "id" : "021", - "data" : [ - [ - "Perl", - 40 - ], - [ - "Raku", - 24 - ], - [ - "Blog", - 10 - ] - ], - "name" : "021" - }, - { - "name" : "022", - "data" : [ - [ - "Perl", - 39 - ], - [ - "Raku", - 23 - ], - [ - "Blog", - 10 - ] - ], - "id" : "022" - }, - { - "id" : "023", - "data" : [ - [ - "Perl", - 57 - ], - [ - "Raku", - 32 - ], - [ - "Blog", - 12 - ] - ], - "name" : "023" - }, - { - "name" : "024", - "id" : "024", - "data" : [ - [ - "Perl", - 40 - ], - [ - "Raku", - 26 - ], - [ - "Blog", - 11 - ] - ] - }, - { - "name" : "025", - "data" : [ - [ - "Perl", - 31 - ], - [ - "Raku", - 19 - ], - [ - "Blog", - 12 - ] - ], - "id" : "025" - }, - { - "name" : "026", - "id" : "026", - "data" : [ - [ - "Perl", - 37 - ], - [ - "Raku", - 29 - ], - [ - "Blog", - 10 - ] - ] - }, - { - "id" : "027", - "data" : [ - [ - "Perl", - 33 - ], - [ - "Raku", - 22 - ], - [ - "Blog", - 9 - ] - ], - "name" : "027" - }, - { - "id" : "028", - "data" : [ - [ - "Perl", - 47 - ], - [ - "Raku", - 26 - ], - [ - "Blog", - 9 - ] - ], - "name" : "028" - }, - { - "name" : "029", - "id" : "029", - "data" : [ - [ - "Perl", - 44 - ], - [ - "Raku", - 27 - ], - [ - "Blog", - 12 - ] - ] - }, - { - "name" : "030", - "data" : [ - [ - "Perl", - 78 - ], - [ - "Raku", - 33 - ], - [ - "Blog", - 10 - ] - ], - "id" : "030" - }, - { - "data" : [ - [ - "Perl", - 54 - ], - [ - "Raku", - 30 - ], - [ - "Blog", - 9 - ] - ], - "id" : "031", - "name" : "031" - }, - { - "data" : [ - [ - "Perl", - 61 - ], - [ - "Raku", - 27 - ], - [ - "Blog", - 10 - ] - ], - "id" : "032", - "name" : "032" - }, - { - "data" : [ - [ - "Perl", - 66 - ], - [ - "Raku", - 38 - ], - [ - "Blog", - 10 - ] - ], - "id" : "033", - "name" : "033" - }, - { - "name" : "034", - "data" : [ - [ - "Perl", - 36 - ], - [ - "Raku", - 23 - ], - [ - "Blog", - 11 - ] - ], - "id" : "034" - }, - { - "name" : "035", - "id" : "035", - "data" : [ - [ - "Perl", - 37 - ], - [ - "Raku", - 22 - ], - [ - "Blog", - 9 - ] - ] - }, - { - "id" : "036", - "data" : [ - [ - "Perl", - 37 - ], - [ - "Raku", - 22 - ], - [ - "Blog", - 11 - ] - ], - "name" : "036" - }, - { - "name" : "037", - "id" : "037", - "data" : [ - [ - "Perl", - 37 - ], - [ - "Raku", - 24 - ], - [ - "Blog", - 9 - ] - ] - }, - { - "id" : "038", - "data" : [ - [ - "Perl", - 38 - ], - [ - "Raku", - 24 - ], - [ - "Blog", - 12 - ] - ], - "name" : "038" - }, - { - "id" : "039", - "data" : [ - [ - "Perl", - 35 - ], - [ - "Raku", - 21 - ], - [ - "Blog", - 12 - ] - ], - "name" : "039" - }, - { - "name" : "040", - "id" : "040", - "data" : [ - [ - "Perl", - 43 - ], - [ - "Raku", - 24 - ], - [ - "Blog", - 10 - ] - ] - }, - { - "name" : "041", - "id" : "041", - "data" : [ - [ - "Perl", - 41 - ], - [ - "Raku", - 30 - ], - [ - "Blog", - 9 - ] - ] - }, - { - "data" : [ - [ - "Perl", - 53 - ], - [ - "Raku", - 34 - ], - [ - "Blog", - 11 - ] - ], - "id" : "042", - "name" : "042" - }, - { - "data" : [ - [ - "Perl", - 37 - ], - [ - "Raku", - 24 - ], - [ - "Blog", - 11 - ] - ], - "id" : "043", - "name" : "043" - }, - { - "name" : "044", - "data" : [ - [ - "Perl", - 46 - ], - [ - "Raku", - 33 - ], - [ - "Blog", - 11 - ] - ], - "id" : "044" - }, - { - "name" : "045", - "data" : [ - [ - "Perl", - 56 - ], - [ - "Raku", - 35 - ], - [ - "Blog", - 11 - ] - ], - "id" : "045" - }, - { - "name" : "046", - "id" : "046", - "data" : [ - [ - "Perl", - 50 - ], - [ - "Raku", - 33 - ], - [ - "Blog", - 10 - ] - ] - }, - { - "name" : "047", - "id" : "047", - "data" : [ - [ - "Perl", - 47 - ], - [ - "Raku", - 31 - ], - [ - "Blog", - 10 - ] - ] - }, - { - "name" : "048", - "data" : [ - [ - "Perl", - 63 - ], - [ - "Raku", - 37 - ], - [ - "Blog", - 12 - ] - ], - "id" : "048" - }, - { - "data" : [ - [ - "Perl", - 54 - ], - [ - "Raku", - 27 - ], - [ - "Blog", - 12 - ] - ], - "id" : "049", - "name" : "049" - }, - { - "name" : "050", - "data" : [ - [ - "Perl", - 56 - ], - [ - "Raku", - 36 - ], - [ - "Blog", - 12 - ] - ], - "id" : "050" - }, - { - "name" : "051", - "id" : "051", - "data" : [ - [ - "Perl", - 52 - ], - [ - "Raku", - 32 - ], - [ - "Blog", - 11 - ] - ] - }, - { - "id" : "052", - "data" : [ - [ - "Perl", - 47 - ], - [ - "Raku", - 32 - ], - [ - "Blog", - 14 - ] - ], - "name" : "052" - }, - { - "name" : "053", - "id" : "053", - "data" : [ - [ - "Perl", - 49 - ], - [ - "Raku", - 41 - ], - [ - "Blog", - 15 - ] - ] - }, - { - "data" : [ - [ - "Perl", - 49 - ], - [ - "Raku", - 40 - ], - [ - "Blog", - 18 - ] - ], - "id" : "054", - "name" : "054" - }, - { - "data" : [ - [ - "Perl", - 45 - ], - [ - "Raku", - 33 - ], - [ - "Blog", - 14 - ] - ], - "id" : "055", - "name" : "055" - }, - { - "data" : [ - [ - "Perl", - 53 - ], - [ - "Raku", - 34 - ], - [ - "Blog", - 17 - ] - ], - "id" : "056", - "name" : "056" - }, - { - "name" : "057", - "id" : "057", - "data" : [ - [ - "Perl", - 45 - ], - [ - "Raku", - 26 - ], - [ - "Blog", - 15 - ] - ] - }, - { - "data" : [ - [ - "Perl", - 35 - ], - [ - "Raku", - 23 - ], - [ - "Blog", - 13 - ] - ], - "id" : "058", - "name" : "058" - }, - { - "id" : "059", - "data" : [ - [ - "Perl", - 43 - ], - [ - "Raku", - 34 - ], - [ - "Blog", - 16 - ] - ], - "name" : "059" - }, - { - "name" : "060", - "data" : [ - [ - "Perl", - 43 - ], - [ - "Raku", - 30 - ], - [ - "Blog", - 16 - ] - ], - "id" : "060" - }, - { - "name" : "061", - "id" : "061", - "data" : [ - [ - "Perl", - 41 - ], - [ - "Raku", - 30 - ], - [ - "Blog", - 14 - ] - ] - }, - { - "id" : "062", - "data" : [ - [ - "Perl", - 32 - ], - [ - "Raku", - 19 - ], - [ - "Blog", - 11 - ] - ], - "name" : "062" - }, - { - "id" : "063", - "data" : [ - [ - "Perl", - 46 - ], - [ - "Raku", - 34 - ], - [ - "Blog", - 13 - ] - ], - "name" : "063" - }, - { - "data" : [ - [ - "Perl", - 39 - ], - [ - "Raku", - 29 - ], - [ - "Blog", - 16 - ] - ], - "id" : "064", - "name" : "064" - }, - { - "id" : "065", - "data" : [ - [ - "Perl", - 36 - ], - [ - "Raku", - 26 - ], - [ - "Blog", - 15 - ] - ], - "name" : "065" - }, - { - "id" : "066", - "data" : [ - [ - "Perl", - 43 - ], - [ - "Raku", - 31 - ], - [ - "Blog", - 14 - ] - ], - "name" : "066" - }, - { - "name" : "067", - "data" : [ - [ - "Perl", - 42 - ], - [ - "Raku", - 34 - ], - [ - "Blog", - 18 - ] - ], - "id" : "067" - }, - { - "data" : [ - [ - "Perl", - 37 - ], - [ - "Raku", - 29 - ], - [ - "Blog", - 13 - ] - ], - "id" : "068", - "name" : "068" - }, - { - "name" : "069", - "data" : [ - [ - "Perl", - 43 - ], - [ - "Raku", - 28 - ], - [ - "Blog", - 16 - ] - ], - "id" : "069" - }, - { - "data" : [ - [ - "Perl", - 46 - ], - [ - "Raku", - 35 - ], - [ - "Blog", - 17 - ] - ], - "id" : "070", - "name" : "070" - }, - { - "data" : [ - [ - "Perl", - 35 - ], - [ - "Raku", - 32 - ], - [ - "Blog", - 15 - ] - ], - "id" : "071", - "name" : "071" - }, - { - "name" : "072", - "data" : [ - [ - "Perl", - 55 - ], - [ - "Raku", - 42 - ], - [ - "Blog", - 19 - ] - ], - "id" : "072" - }, - { - "name" : "073", - "id" : "073", - "data" : [ - [ - "Perl", - 55 - ], - [ - "Raku", - 40 - ], - [ - "Blog", - 17 - ] - ] - }, - { - "name" : "074", - "id" : "074", - "data" : [ - [ - "Perl", - 58 - ], - [ - "Raku", - 39 - ], - [ - "Blog", - 20 - ] - ] - }, - { - "data" : [ - [ - "Perl", - 59 - ], - [ - "Raku", - 38 - ], - [ - "Blog", - 20 - ] - ], - "id" : "075", - "name" : "075" - }, - { - "name" : "076", - "data" : [ - [ - "Perl", - 53 - ], - [ - "Raku", - 32 - ], - [ - "Blog", - 16 - ] - ], - "id" : "076" - }, - { - "name" : "077", - "data" : [ - [ - "Perl", - 52 - ], - [ - "Raku", - 34 - ], - [ - "Blog", - 14 - ] - ], - "id" : "077" - }, - { - "data" : [ - [ - "Perl", - 68 - ], - [ - "Raku", - 41 - ], - [ - "Blog", - 18 - ] - ], - "id" : "078", - "name" : "078" - }, - { - "name" : "079", - "id" : "079", - "data" : [ - [ - "Perl", - 68 - ], - [ - "Raku", - 37 - ], - [ - "Blog", - 17 - ] - ] - }, - { - "name" : "080", - "id" : "080", - "data" : [ - [ - "Perl", - 75 - ], - [ - "Raku", - 36 - ], - [ - "Blog", - 16 - ] - ] - }, - { - "name" : "081", - "data" : [ - [ - "Perl", - 65 - ], - [ - "Raku", - 34 - ], - [ - "Blog", - 15 - ] - ], - "id" : "081" - }, - { - "name" : "082", - "id" : "082", - "data" : [ - [ - "Perl", - 62 - ], - [ - "Raku", - 35 - ], - [ - "Blog", - 17 - ] - ] - }, - { - "id" : "083", - "data" : [ - [ - "Perl", - 73 - ], - [ - "Raku", - 38 - ], - [ - "Blog", - 16 - ] - ], - "name" : "083" - }, - { - "id" : "084", - "data" : [ - [ - "Perl", - 71 - ], - [ - "Raku", - 36 - ], - [ - "Blog", - 12 - ] - ], - "name" : "084" - }, - { - "name" : "085", - "data" : [ - [ - "Perl", - 63 - ], - [ - "Raku", - 32 - ], - [ - "Blog", - 18 - ] - ], - "id" : "085" - }, - { - "data" : [ - [ - "Perl", - 58 - ], - [ - "Raku", - 31 - ], - [ - "Blog", - 15 - ] - ], - "id" : "086", - "name" : "086" - }, - { - "data" : [ - [ - "Perl", - 56 - ], - [ - "Raku", - 31 - ], - [ - "Blog", - 14 - ] - ], - "id" : "087", - "name" : "087" - }, - { - "name" : "088", - "data" : [ - [ - "Perl", - 65 - ], - [ - "Raku", - 36 - ], - [ - "Blog", - 20 - ] - ], - "id" : "088" - }, - { - "data" : [ - [ - "Perl", - 59 - ], - [ - "Raku", - 34 - ], - [ - "Blog", - 20 - ] - ], - "id" : "089", - "name" : "089" - }, - { - "id" : "090", - "data" : [ - [ - "Perl", - 57 - ], - [ - "Raku", - 39 - ], - [ - "Blog", - 17 - ] - ], - "name" : "090" - }, - { - "name" : "091", - "id" : "091", - "data" : [ - [ - "Perl", - 56 - ], - [ - "Raku", - 36 - ], - [ - "Blog", - 16 - ] - ] - }, - { - "id" : "092", - "data" : [ - [ - "Perl", - 52 - ], - [ - "Raku", - 30 - ], - [ - "Blog", - 16 - ] - ], - "name" : "092" - }, - { - "name" : "093", - "id" : "093", - "data" : [ - [ - "Perl", - 46 - ], - [ - "Raku", - 25 - ], - [ - "Blog", - 16 - ] - ] - }, - { - "data" : [ - [ - "Perl", - 44 - ], - [ - "Raku", - 26 - ], - [ - "Blog", - 17 - ] - ], - "id" : "094", - "name" : "094" - }, - { - "data" : [ - [ - "Perl", - 56 - ], - [ - "Raku", - 33 - ], - [ - "Blog", - 19 - ] - ], -