aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--challenge-024/laurent-rosenfeld/blog.txt1
-rw-r--r--challenge-024/laurent-rosenfeld/perl5/ch-1.sh1
-rw-r--r--challenge-024/laurent-rosenfeld/perl5/ch-2.pl16
-rw-r--r--challenge-024/laurent-rosenfeld/perl6/ch-1.sh1
-rw-r--r--challenge-024/laurent-rosenfeld/perl6/ch-2.p610
-rw-r--r--stats/pwc-current.json111
-rw-r--r--stats/pwc-language-breakdown-summary.json62
-rw-r--r--stats/pwc-language-breakdown.json218
-rw-r--r--stats/pwc-leaders.json550
-rw-r--r--stats/pwc-summary-1-30.json40
-rw-r--r--stats/pwc-summary-31-60.json114
-rw-r--r--stats/pwc-summary-61-90.json32
-rw-r--r--stats/pwc-summary-91-120.json36
-rw-r--r--stats/pwc-summary.json52
14 files changed, 648 insertions, 596 deletions
diff --git a/challenge-024/laurent-rosenfeld/blog.txt b/challenge-024/laurent-rosenfeld/blog.txt
new file mode 100644
index 0000000000..d48306ce08
--- /dev/null
+++ b/challenge-024/laurent-rosenfeld/blog.txt
@@ -0,0 +1 @@
+http://blogs.perl.org/users/laurent_r/2019/09/perl-weekly-challenge-24-smallest-script-and-inverted-index.html
diff --git a/challenge-024/laurent-rosenfeld/perl5/ch-1.sh b/challenge-024/laurent-rosenfeld/perl5/ch-1.sh
new file mode 100644
index 0000000000..69bac43ae2
--- /dev/null
+++ b/challenge-024/laurent-rosenfeld/perl5/ch-1.sh
@@ -0,0 +1 @@
+perl -e ''
diff --git a/challenge-024/laurent-rosenfeld/perl5/ch-2.pl b/challenge-024/laurent-rosenfeld/perl5/ch-2.pl
new file mode 100644
index 0000000000..8d20b84ba5
--- /dev/null
+++ b/challenge-024/laurent-rosenfeld/perl5/ch-2.pl
@@ -0,0 +1,16 @@
+#!/usr/bin/perl
+use strict;
+use warnings;
+use Data::Dumper;
+
+my @files = glob "./*.pl";
+my %dict;
+for my $file (@files) {
+ open my $IN, "<", $file or die "Cannot open $file $!";
+ while (my $line = <$IN>) {
+ my @words = grep { /^\w{3,}$/ } split /\s+/, $line;;
+ $dict{$_}{$file} = 1 for @words;
+ }
+ close $IN;
+}
+print Dumper \%dict;
diff --git a/challenge-024/laurent-rosenfeld/perl6/ch-1.sh b/challenge-024/laurent-rosenfeld/perl6/ch-1.sh
new file mode 100644
index 0000000000..a41057bbec
--- /dev/null
+++ b/challenge-024/laurent-rosenfeld/perl6/ch-1.sh
@@ -0,0 +1 @@
+perl6 -e ''
diff --git a/challenge-024/laurent-rosenfeld/perl6/ch-2.p6 b/challenge-024/laurent-rosenfeld/perl6/ch-2.p6
new file mode 100644
index 0000000000..1293ba899d
--- /dev/null
+++ b/challenge-024/laurent-rosenfeld/perl6/ch-2.p6
@@ -0,0 +1,10 @@
+use v6;
+
+my @files = grep { /\.p6$/ or /\.pl6$/ }, dir('.');
+my %dict;
+for @files -> $file {
+ for $file.IO.lines.words.grep({/^ \w ** 3..* $/}) -> $word {
+ %dict{$word}{$file} = True;
+ }
+}
+.say for %dict{'given'}.keys;
diff --git a/stats/pwc-current.json b/stats/pwc-current.json
index 9cf2b0f56e..beb7468984 100644
--- a/stats/pwc-current.json
+++ b/stats/pwc-current.json
@@ -1,55 +1,29 @@
{
- "subtitle" : {
- "text" : "[Champions: 6] Last updated at 2019-09-03 20:30:27 GMT"
- },
- "xAxis" : {
- "type" : "category"
- },
- "title" : {
- "text" : "Perl Weekly Challenge - 024"
- },
- "legend" : {
- "enabled" : 0
- },
- "tooltip" : {
- "pointFormat" : "<span style='color:{point.color}'>{point.name}</span>: <b>{point.y:f}</b><br/>",
- "headerFormat" : "<span style='font-size:11px'>{series.name}</span><br/>",
- "followPointer" : 1
- },
- "plotOptions" : {
- "series" : {
- "borderWidth" : 0,
- "dataLabels" : {
- "format" : "{point.y}",
- "enabled" : 1
- }
- }
- },
"drilldown" : {
"series" : [
{
+ "name" : "Dave Cross",
"data" : [
[
"Perl 5",
1
]
],
- "id" : "Dave Cross",
- "name" : "Dave Cross"
+ "id" : "Dave Cross"
},
{
- "id" : "Duane Powell",
- "name" : "Duane Powell",
"data" : [
[
"Perl 5",
2
]
- ]
+ ],
+ "name" : "Duane Powell",
+ "id" : "Duane Powell"
},
{
- "name" : "Joelle Maslak",
"id" : "Joelle Maslak",
+ "name" : "Joelle Maslak",
"data" : [
[
"Perl 5",
@@ -69,14 +43,32 @@
],
[
"Perl 6",
- 1
+ 2
],
[
"Blog",
1
]
],
+ "name" : "Laurent Rosenfeld",
+ "id" : "Laurent Rosenfeld"
+ },
+ {
"name" : "Roger Bell West",
+ "data" : [
+ [
+ "Perl 5",
+ 2
+ ],
+ [
+ "Perl 6",
+ 1
+ ],
+ [
+ "Blog",
+ 1
+ ]
+ ],
"id" : "Roger Bell West"
},
{
@@ -94,8 +86,8 @@
]
},
{
- "name" : "Steven Wilson",
"id" : "Steven Wilson",
+ "name" : "Steven Wilson",
"data" : [
[
"Perl 5",
@@ -105,12 +97,22 @@
}
]
},
+ "chart" : {
+ "type" : "column"
+ },
+ "legend" : {
+ "enabled" : 0
+ },
+ "subtitle" : {
+ "text" : "[Champions: 7] Last updated at 2019-09-03 20:45:31 GMT"
+ },
"series" : [
{
+ "colorByPoint" : 1,
"data" : [
{
- "y" : 1,
"drilldown" : "Dave Cross",
+ "y" : 1,
"name" : "Dave Cross"
},
{
@@ -124,31 +126,52 @@
"name" : "Joelle Maslak"
},
{
+ "name" : "Laurent Rosenfeld",
+ "y" : 5,
+ "drilldown" : "Laurent Rosenfeld"
+ },
+ {
+ "y" : 4,
"name" : "Roger Bell West",
- "drilldown" : "Roger Bell West",
- "y" : 4
+ "drilldown" : "Roger Bell West"
},
{
- "drilldown" : "Simon Proctor",
"y" : 3,
- "name" : "Simon Proctor"
+ "name" : "Simon Proctor",
+ "drilldown" : "Simon Proctor"
},
{
- "name" : "Steven Wilson",
+ "drilldown" : "Steven Wilson",
"y" : 1,
- "drilldown" : "Steven Wilson"
+ "name" : "Steven Wilson"
}
],
- "colorByPoint" : 1,
"name" : "Perl Weekly Challenge - 024"
}
],
+ "title" : {
+ "text" : "Perl Weekly Challenge - 024"
+ },
+ "tooltip" : {
+ "followPointer" : 1,
+ "pointFormat" : "<span style='color:{point.color}'>{point.name}</span>: <b>{point.y:f}</b><br/>",
+ "headerFormat" : "<span style='font-size:11px'>{series.name}</span><br/>"
+ },
"yAxis" : {
"title" : {
"text" : "Total Solutions"
}
},
- "chart" : {
- "type" : "column"
+ "xAxis" : {
+ "type" : "category"
+ },
+ "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 4bca631325..832407a965 100644
--- a/stats/pwc-language-breakdown-summary.json
+++ b/stats/pwc-language-breakdown-summary.json
@@ -1,63 +1,63 @@
{
- "legend" : {
- "enabled" : "false"
- },
"series" : [
{
- "name" : "Contributions",
"dataLabels" : {
- "format" : "{point.y:.0f}",
- "color" : "#FFFFFF",
"enabled" : "true",
+ "align" : "right",
+ "y" : 10,
"rotation" : -90,
+ "color" : "#FFFFFF",
+ "format" : "{point.y:.0f}",
"style" : {
- "fontFamily" : "Verdana, sans-serif",
- "fontSize" : "13px"
- },
- "align" : "right",
- "y" : 10
+ "fontSize" : "13px",
+ "fontFamily" : "Verdana, sans-serif"
+ }
},
"data" : [
[
"Blog",
- 247
+ 248
],
[
"Perl 5",
- 980
+ 982
],
[
"Perl 6",
- 587
+ 589
]
- ]
+ ],
+ "name" : "Contributions"
}
],
- "chart" : {
- "type" : "column"
- },
- "subtitle" : {
- "text" : "Last updated at 2019-09-03 20:30:48 GMT"
- },
- "tooltip" : {
- "pointFormat" : "<b>{point.y:.0f}</b>"
- },
"yAxis" : {
- "min" : 0,
"title" : {
"text" : null
- }
- },
- "title" : {
- "text" : "Perl Weekly Challenge Contributions - 2019"
+ },
+ "min" : 0
},
"xAxis" : {
"labels" : {
"style" : {
- "fontFamily" : "Verdana, sans-serif",
- "fontSize" : "13px"
+ "fontSize" : "13px",
+ "fontFamily" : "Verdana, sans-serif"
}
},
"type" : "category"
+ },
+ "tooltip" : {
+ "pointFormat" : "<b>{point.y:.0f}</b>"
+ },
+ "legend" : {
+ "enabled" : "false"
+ },
+ "chart" : {
+ "type" : "column"
+ },
+ "subtitle" : {
+ "text" : "Last updated at 2019-09-03 20:45:43 GMT"
+ },
+ "title" : {
+ "text" : "Perl Weekly Challenge Contributions - 2019"
}
}
diff --git a/stats/pwc-language-breakdown.json b/stats/pwc-language-breakdown.json
index 06341a5e91..bb8218d420 100644
--- a/stats/pwc-language-breakdown.json
+++ b/stats/pwc-language-breakdown.json
@@ -1,6 +1,17 @@
{
- "subtitle" : {
- "text" : "Click the columns to drilldown the language breakdown. Last updated at 2019-09-03 20:30:48 GMT"
+ "tooltip" : {
+ "pointFormat" : "<span style=\"color:{point.color}\">Challenge {point.name}</span>: <b>{point.y:f}</b><br/>",
+ "headerFormat" : "<span style=\"font-size:11px\"></span>",
+ "followPointer" : "true"
+ },
+ "plotOptions" : {
+ "series" : {
+ "dataLabels" : {
+ "enabled" : 1,
+ "format" : "{point.y}"
+ },
+ "borderWidth" : 0
+ }
},
"drilldown" : {
"series" : [
@@ -24,6 +35,7 @@
},
{
"id" : "002",
+ "name" : "002",
"data" : [
[
"Perl 5",
@@ -37,10 +49,10 @@
"Blog",
9
]
- ],
- "name" : "002"
+ ]
},
{
+ "id" : "003",
"data" : [
[
"Perl 5",
@@ -55,11 +67,10 @@
8
]
],
- "id" : "003",
"name" : "003"
},
{
- "id" : "004",
+ "name" : "004",
"data" : [
[
"Perl 5",
@@ -74,10 +85,9 @@
9
]
],
- "name" : "004"
+ "id" : "004"
},
{
- "id" : "005",
"data" : [
[
"Perl 5",
@@ -92,10 +102,10 @@
11
]
],
- "name" : "005"
+ "name" : "005",
+ "id" : "005"
},
{
- "id" : "006",
"data" : [
[
"Perl 5",
@@ -110,9 +120,11 @@
6
]
],
- "name" : "006"
+ "name" : "006",
+ "id" : "006"
},
{
+ "name" : "007",
"data" : [
[
"Perl 5",
@@ -127,11 +139,10 @@
9
]
],
- "id" : "007",
- "name" : "007"
+ "id" : "007"
},
{
- "name" : "008",
+ "id" : "008",
"data" : [
[
"Perl 5",
@@ -146,10 +157,10 @@
10
]
],
- "id" : "008"
+ "name" : "008"
},
{
- "name" : "009",
+ "id" : "009",
"data" : [
[
"Perl 5",
@@ -164,9 +175,10 @@
12
]
],
- "id" : "009"
+ "name" : "009"
},
{
+ "id" : "010",
"data" : [
[
"Perl 5",
@@ -181,11 +193,9 @@
10
]
],
- "id" : "010",
"name" : "010"
},
{
- "name" : "011",
"data" : [
[
"Perl 5",
@@ -200,11 +210,11 @@
9
]
],
+ "name" : "011",
"id" : "011"
},
{
"name" : "012",
- "id" : "012",
"data" : [
[
"Perl 5",
@@ -218,11 +228,10 @@
"Blog",
10
]
- ]
+ ],
+ "id" : "012"
},
{
- "name" : "013",
- "id" : "013",
"data" : [
[
"Perl 5",
@@ -236,10 +245,11 @@
"Blog",
12
]
- ]
+ ],
+ "name" : "013",
+ "id" : "013"
},
{
- "name" : "014",
"id" : "014",
"data" : [
[
@@ -254,10 +264,11 @@
"Blog",
14
]
- ]
+ ],
+ "name" : "014"
},
{
- "name" : "015",
+ "id" : "015",
"data" : [
[
"Perl 5",
@@ -272,11 +283,10 @@
15
]
],
- "id" : "015"
+ "name" : "015"
},
{
"name" : "016",
- "id" : "016",
"data" : [
[
"Perl 5",
@@ -290,9 +300,11 @@
"Blog",
12
]
- ]
+ ],
+ "id" : "016"
},
{
+ "id" : "017",
"data" : [
[
"Perl 5",
@@ -307,12 +319,9 @@
12
]
],
- "id" : "017",
"name" : "017"
},
{
- "name" : "018",
- "id" : "018",
"data" : [
[
"Perl 5",
@@ -326,11 +335,11 @@
"Blog",
14
]
- ]
+ ],
+ "name" : "018",
+ "id" : "018"
},
{
- "name" : "019",
- "id" : "019",
"data" : [
[
"Perl 5",
@@ -344,10 +353,12 @@
"Blog",
13
]
- ]
+ ],
+ "name" : "019",
+ "id" : "019"
},
{
- "name" : "020",
+ "id" : "020",
"data" : [
[
"Perl 5",
@@ -362,10 +373,10 @@
13
]
],
- "id" : "020"
+ "name" : "020"
},
{
- "name" : "021",
+ "id" : "021",
"data" : [
[
"Perl 5",
@@ -380,7 +391,7 @@
9
]
],
- "id" : "021"
+ "name" : "021"
},
{
"id" : "022",
@@ -401,6 +412,8 @@
"name" : "022"
},
{
+ "id" : "023",
+ "name" : "023",
"data" : [
[
"Perl 5",
@@ -414,93 +427,78 @@
"Blog",
9
]
- ],
- "id" : "023",
- "name" : "023"
+ ]
},
{
- "id" : "024",
"data" : [
[
"Perl 5",
- 9
+ 11
],
[
"Perl 6",
- 5
+ 7
],
[
"Blog",
- 1
+ 2
]
],
- "name" : "024"
+ "name" : "024",
+ "id" : "024"
}
]
},
- "tooltip" : {
- "headerFormat" : "<span style=\"font-size:11px\"></span>",
- "followPointer" : "true",
- "pointFormat" : "<span style=\"color:{point.color}\">Challenge {point.name}</span>: <b>{point.y:f}</b><br/>"
- },
"yAxis" : {
"title" : {
"text" : "Total Solutions"
}
},
- "title" : {
- "text" : "Perl Weekly Challenge Language"
- },
"xAxis" : {
"type" : "category"
},
- "legend" : {
- "enabled" : "false"
- },
"series" : [
{
- "colorByPoint" : "true",
- "name" : "Perl Weekly Challenge Languages",
"data" : [
{
"y" : 132,
- "drilldown" : "001",
- "name" : "#001"
+ "name" : "#001",
+ "drilldown" : "001"
},
{
- "y" : 104,
+ "name" : "#002",
"drilldown" : "002",
- "name" : "#002"
+ "y" : 104
},
{
- "y" : 66,
+ "drilldown" : "003",
"name" : "#003",
- "drilldown" : "003"
+ "y" : 66
},
{
- "y" : 86,
"drilldown" : "004",
- "name" : "#004"
+ "name" : "#004",
+ "y" : 86
},
{
- "y" : 66,
"drilldown" : "005",
- "name" : "#005"
+ "name" : "#005",
+ "y" : 66
},
{
- "drilldown" : "006",
"name" : "#006",
+ "drilldown" : "006",
"y" : 47
},
{
"y" : 55,
- "name" : "#007",
- "drilldown" : "007"
+ "drilldown" : "007",
+ "name" : "#007"
},
{
+ "y" : 68,
"name" : "#008",
- "drilldown" : "008",
- "y" : 68
+ "drilldown" : "008"
},
{
"name" : "#009",
@@ -509,18 +507,18 @@
},
{
"y" : 59,
- "name" : "#010",
- "drilldown" : "010"
+ "drilldown" : "010",
+ "name" : "#010"
},
{
- "y" : 78,
"drilldown" : "011",
- "name" : "#011"
+ "name" : "#011",
+ "y" : 78
},
{
- "y" : 82,
"name" : "#012",
- "drilldown" : "012"
+ "drilldown" : "012",
+ "y" : 82
},
{
"drilldown" : "013",
@@ -529,8 +527,8 @@
},
{
"y" : 95,
- "drilldown" : "014",
- "name" : "#014"
+ "name" : "#014",
+ "drilldown" : "014"
},
{
"name" : "#015",
@@ -538,29 +536,29 @@
"y" : 93
},
{
- "name" : "#016",
+ "y" : 66,
"drilldown" : "016",
- "y" : 66
+ "name" : "#016"
},
{
+ "y" : 79,
"drilldown" : "017",
- "name" : "#017",
- "y" : 79
+ "name" : "#017"
},
{
+ "y" : 76,
"drilldown" : "018",
- "name" : "#018",
- "y" : 76
+ "name" : "#018"
},
{
- "y" : 95,
+ "drilldown" : "019",
"name" : "#019",
- "drilldown" : "019"
+ "y" : 95
},
{
- "y" : 95,
+ "name" : "#020",
"drilldown" : "020",
- "name" : "#020"
+ "y" : 95
},
{
"name" : "#021",
@@ -573,28 +571,30 @@
"name" : "#022"
},
{
- "y" : 88,
"name" : "#023",
- "drilldown" : "023"
+ "drilldown" : "023",
+ "y" : 88
},
{
- "y" : 15,
- "name" : "#024",
- "drilldown" : "024"
+ "y" : 20,
+ "drilldown" : "024",
+ "name" : "#024"
}
- ]
+ ],
+ "colorByPoint" : "true",
+ "name" : "Perl Weekly Challenge Languages"
}
],
- "plotOptions" : {
- "series" : {
- "dataLabels" : {
- "format" : "{point.y}",
- "enabled" : 1
- },
- "borderWidth" : 0
- }
+ "title" : {
+ "text" : "Perl Weekly Challenge Language"
+ },
+ "subtitle" : {
+ "text" : "Click the columns to drilldown the language breakdown. Last updated at 2019-09-03 20:45:43 GMT"
},
"chart" : {
"type" : "column"
+ },
+ "legend" : {
+ "enabled" : "false"
}
}
diff --git a/stats/pwc-leaders.json b/stats/pwc-leaders.json
index 8e7492b7a8..54385cbe6d 100644
--- a/stats/pwc-leaders.json
+++ b/stats/pwc-leaders.json
@@ -6,43 +6,43 @@
"series" : [
{
"id" : "Laurent Rosenfeld",
- "name" : "Laurent Rosenfeld",
"data" : [
[
"Perl 5",
- 46
+ 48
],
[
"Perl 6",
- 45
+ 47
],
[
"Blog",
- 42
+ 43
]
- ]
+ ],
+ "name" : "Laurent Rosenfeld"
},
{
- "name" : "Joelle Maslak",
"id" : "Joelle Maslak",
"data" : [
[
- "Perl 6",
- 62
+ "Blog",
+ 4
],
[
"Perl 5",
62
],
[
- "Blog",
- 4
+ "Perl 6",
+ 62
]
- ]
+ ],
+ "name" : "Joelle Maslak"
},
{
- "name" : "Jaldhar H. Vyas",
"id" : "Jaldhar H. Vyas",
+ "name" : "Jaldhar H. Vyas",
"data" : [
[
"Blog",
@@ -59,8 +59,6 @@
]
},
{
- "name" : "Ruben Westerberg",
- "id" : "Ruben Westerberg",
"data" : [
[
"Perl 5",
@@ -70,65 +68,65 @@
"Perl 6",
43
]
- ]
+ ],
+ "name" : "Ruben Westerberg",
+ "id" : "Ruben Westerberg"
},
{
"data" : [
[
+ "Blog",
+ 3
+ ],
+ [
"Perl 6",
24
],
[
"Perl 5",
49
- ],
- [
- "Blog",
- 3
]
],
- "id" : "Athanasius",
- "name" : "Athanasius"
+ "name" : "Athanasius",
+ "id" : "Athanasius"
},
{
"name" : "Adam Russell",
- "id" : "Adam Russell",
"data" : [
[
"Blog",
24
],
[
- "Perl 6",
- 3
- ],
- [
"Perl 5",
47
+ ],
+ [
+ "Perl 6",
+ 3
]
- ]
+ ],
+ "id" : "Adam Russell"
},
{
+ "id" : "Arne Sommer",
+ "name" : "Arne Sommer",
"data" : [
[
"Blog",
23
],
[
- "Perl 5",
- 3
- ],
- [
"Perl 6",
46
+ ],
+ [
+ "Perl 5",
+ 3
]
- ],
- "name" : "Arne Sommer",
- "id" : "Arne Sommer"
+ ]
},
{
- "name" : "Kian-Meng Ang",
- "id" : "Kian-Meng Ang",
"data" : [
[
"Blog",
@@ -138,133 +136,135 @@
"Perl 5",
37
]
- ]
+ ],
+ "name" : "Kian-Meng Ang",
+ "id" : "Kian-Meng Ang"
},
{
+ "name" : "E. Choroba",
"data" : [
[
- "Perl 5",
- 38
- ],
- [
"Blog",
18
+ ],
+ [
+ "Perl 5",
+ 38
]
],
- "name" : "E. Choroba",
"id" : "E. Choroba"
},
{
+ "id" : "Simon Proctor",
"data" : [
[
- "Blog",
- 7
+ "Perl 6",
+ 40
],
[
"Perl 5",
5
],
[
- "Perl 6",
- 40
+ "Blog",
+ 7
]
],
- "name" : "Simon Proctor",
- "id" : "Simon Proctor"
+ "name" : "Simon Proctor"
},
{
"id" : "Francis Whittle",
- "name" : "Francis Whittle",
"data" : [
[
- "Blog",
- 9
- ],
- [
"Perl 6",
37
+ ],
+ [
+ "Blog",
+ 9
]
- ]
+ ],
+ "name" : "Francis Whittle"
},
{
+ "name" : "Dave Jacoby",
"data" : [
[
+ "Blog",
+ 18
+ ],
+ [
"Perl 6",
1
],
[
"Perl 5",
26
- ],
- [
- "Blog",
- 18
]
],
- "name" : "Dave Jacoby",
"id" : "Dave Jacoby"
},
{
- "name" : "Andrezgz",
- "id" : "Andrezgz",
"data" : [
[
"Perl 5",