blib/lib/Acme/MetaSyntactic/pornstars.pm

filter: Statementstmt 42.3% 11 / 26 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 2 / 3 Podpod n/a totaltotal 39.3% 13 / 33 CC 4 SCAR 26.1
CC
4
Cov
37%
__ANON__
20.0
BEGIN
1.0
BEGIN
1.0
CRAP 13.7
↑ Summary blib/lib/Acme/MetaSyntactic/donmartin.pm »
1 package Acme::MetaSyntactic::pornstars;
2 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 2 ▶use Acme::MetaSyntactic::MultiList;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 our @ISA = qw( Acme::MetaSyntactic::MultiList );
5 2 our $VERSION = '1.033';
6 2 __PACKAGE__->init();
7  
8 our %Remote = (
9 source => 'https://en.wikipedia.org/wiki/List_of_pornographic_performers_by_decade',
10 extract => sub {
11 0 ▶ $_[0] =~ s/<h2>(?:<[^>]*>)?References<.*//s; # drop everything after references
Subroutine __ANON__: not called CC=4 SCAR=30.0
12 my @items =
13 0 map { Acme::MetaSyntactic::RemoteList::tr_accent($_) }
14 0 map { Acme::MetaSyntactic::RemoteList::tr_utf8_basic($_) }
15 0 grep { ! /^List_|_Groups$/ }
16 0 map { s/[-\s'\x{2019}]/_/g; s/[."]//g; $_ }
17 grep $_,
18 $_[0] =~ m{^<h3><span[^>]*>((?:Fem|M)ale)</span>|^(?:<ul>)?<li>(?:<a [^>]*>)?(.*?)(?:(?: ?[-,(<]| aka | see ).*)?</li>}mig;
19 0 my ( $category, @list );
20 0 for (@items) {
21 0 ▶ if (/^(?:Fem|M)ale$/) { $category = lc; next; }
Branch: 1 branch
BranchTrueFalseTotal
if (/^(?:Fem|M)ale$/) 0 0 0
22 0 ▶ push @list, $_ if $category eq $_[1];
Branch: 1 branch
BranchTrueFalseTotal
if $category eq $_[1] 0 0 0
23 }
24 0 return @list;
25 },
26 ,
27 2 );
28  
29 2 1;
30  
31 =encoding iso-8859-1
32  
33 =head1 NAME
34  
35 Acme::MetaSyntactic::pornstars - The porn stars theme
36  
37 =head1 DESCRIPTION
38  
39 This is a list of so-called "Porn stars", taken from the Wikipedia.
40  
41 This theme is divided in two sub-categories: C<female> & C<male>.
42  
43 The source used in 2006 were
44 L<http://en.wikipedia.org/wiki/List_of_female_porn_stars>
45 and L<http://en.wikipedia.org/wiki/List_of_male_porn_stars>.
46 These pages have been deleted in late 2006.
47  
48 In 2012, Wikipedia offers
49 L<http://en.wikipedia.org/wiki/List_of_pornographic_actresses_by_decade>
50 as a source for female actresses, but no source for male performers.
51 The data for the C<male> category is therefore B<obsolete>.
52  
53 In October 2018, that source was removed from this theme, making it static.
54  
55 In May 2018, the link above was redirected to
56 L<https://en.wikipedia.org/wiki/List_of_pornographic_performers_by_decade>,
57 which became the new source of data for both categories as of July 2019.
58  
59 =head1 CONTRIBUTORS
60  
61 On September 15, 2013, while I was digging for the responsible parties,
62 Maddingue summarized this theme as "I<a stupid idea, part of a bigger
63 stupid idea, that was born of the collective pervert minds of ...>"
64  
65 Sébastien Aperghis-Tramoni, Philippe Bruhat, Rafaël Garcia-Suarez.
66  
67 =head1 CHANGES
68  
69 =over 4
70  
71 =item *
72  
73 2019-10-28 - v1.033
74  
75 Updated from the source web site in Acme-MetaSyntactic-Themes version 1.054.
76  
77 =item *
78  
79 2019-07-29 - v1.032
80  
81 Updated with a new remote source for pornstars of both genders
82 in Acme-MetaSyntactic-Themes version 1.053.
83  
84 =item *
85  
86 2018-10-29 - v1.031
87  
88 Abandonned the remote source for female pornstars, no data change,
89 in Acme-MetaSyntactic-Themes version 1.052.
90  
91 =item *
92  
93 2017-11-13 - v1.031
94  
95 Updated from the source web site in Acme-MetaSyntactic-Themes version 1.051.
96  
97 =item *
98  
99 2017-06-12 - v1.030
100  
101 Updated from the source web site in Acme-MetaSyntactic-Themes version 1.050.
102  
103 =item *
104  
105 2016-03-21 - v1.029
106  
107 Updated from the source web site in Acme-MetaSyntactic-Themes version 1.049.
108  
109 =item *
110  
111 2015-10-19 - v1.028
112  
113 Updated from the source web site in Acme-MetaSyntactic-Themes version 1.048.
114  
115 =item *
116  
117 2015-08-10 - v1.027
118  
119 Updated from the source web site in Acme-MetaSyntactic-Themes version 1.047.
120  
121 =item *
122  
123 2015-06-08 - v1.026
124  
125 Updated from the source web site in Acme-MetaSyntactic-Themes version 1.046.
126  
127 =item *
128  
129 2015-02-02 - v1.025
130  
131 Updated from the source web site in Acme-MetaSyntactic-Themes version 1.045.
132  
133 =item *
134  
135 2015-01-05 - v1.024
136  
137 Updated from the source web site in Acme-MetaSyntactic-Themes version 1.044.
138  
139 =item *
140  
141 2014-10-13 - v1.023
142  
143 Updated from the source web site in Acme-MetaSyntactic-Themes version 1.043.
144  
145 =item *
146  
147 2014-09-15 - v1.022
148  
149 Updated from the source web site in Acme-MetaSyntactic-Themes version 1.042.
150  
151 =item *
152  
153 2014-08-18 - v1.021
154  
155 Updated from the source web site in Acme-MetaSyntactic-Themes version 1.041.
156  
157 On August 2, 2014 the I<List of pornographic actresses by decade>
158 Wikipedia page was heavily trimmed (removal of 857 names, with only
159 I<Candy Barr> remaining) following the official I<Biographies of living
160 persons> Wikipedia policy. The list is slowly being rebuilt since.
161  
162 =item *
163  
164 2014-06-16 - v1.020
165  
166 Updated from the source web site in Acme-MetaSyntactic-Themes version 1.040.
167  
168 =item *
169  
170 2014-04-07 - v1.019
171  
172 Updated from the source web site in Acme-MetaSyntactic-Themes version 1.039.
173  
174 =item *
175  
176 2013-12-09 - v1.018
177  
178 Updated from the source web site in Acme-MetaSyntactic-Themes version 1.038.
179  
180 =item *
181  
182 2013-10-14 - v1.017
183  
184 Updated from the source web site in Acme-MetaSyntactic-Themes version 1.037.
185  
186 =item *
187  
188 2013-09-16 - v1.016
189  
190 Updated from the source web site in Acme-MetaSyntactic-Themes version 1.036.
191  
192 =item *
193  
194 2013-07-22 - v1.015
195  
196 Updated from the source web site in Acme-MetaSyntactic-Themes version 1.034.
197  
198 =item *
199  
200 2013-06-17 - v1.014
201  
202 Updated from the source web site in Acme-MetaSyntactic-Themes version 1.033.
203  
204 =item *
205  
206 2013-06-03 - v1.013
207  
208 Updated from the source web site in Acme-MetaSyntactic-Themes version 1.032.
209  
210 =item *
211  
212 2013-03-25 - v1.012
213  
214 Updated from the source web site in Acme-MetaSyntactic-Themes version 1.031.
215  
216 =item *
217  
218 2013-02-18 - v1.011
219  
220 Updated from the source web site in Acme-MetaSyntactic-Themes version 1.030.
221  
222 =item *
223  
224 2013-01-14 - v1.010
225  
226 Updated from the source web site in Acme-MetaSyntactic-Themes version 1.029.
227  
228 =item *
229  
230 2012-11-19 - v1.009
231  
232 Updated from the source web site in Acme-MetaSyntactic-Themes version 1.028.
233  
234 =item *
235  
236 2012-10-22 - v1.008
237  
238 Updated from the source web site in Acme-MetaSyntactic-Themes version 1.024.
239  
240 =item *
241  
242 2012-10-01 - v1.007
243  
244 Updated from the source web site in Acme-MetaSyntactic-Themes version 1.021.
245  
246 =item *
247  
248 2012-09-10 - v1.006
249  
250 Updated from the source web site in Acme-MetaSyntactic-Themes version 1.018.
251  
252 =item *
253  
254 2012-08-27 - v1.005
255  
256 Updated from the source web site in Acme-MetaSyntactic-Themes version 1.016.
257  
258 =item *
259  
260 2012-07-23 - v1.004
261  
262 Updated from the source web site in Acme-MetaSyntactic-Themes version 1.011.
263  
264 =item *
265  
266 2012-06-25 - v1.003
267  
268 Updated from the source web site in Acme-MetaSyntactic-Themes version 1.007.
269  
270 =item *
271  
272 2012-05-28 - v1.002
273  
274 Updated from the source web site in Acme-MetaSyntactic-Themes version 1.003.
275  
276 =item *
277  
278 2012-05-14 - v1.001
279  
280 Updated with an C<=encoding> pod command
281 in Acme-MetaSyntactic-Themes version 1.001.
282  
283 =item *
284  
285 2012-05-07 - v1.000
286  
287 Updated with a new remote source for female pornstars,
288 abandoned the obsolete source for male pornstars, and
289 received its own version number in Acme-MetaSyntactic-Themes version 1.000.
290  
291 =item *
292  
293 2006-08-28
294  
295 Updated from the source web site in Acme-MetaSyntactic version 0.89.
296  
297 =item *
298  
299 2006-06-19
300  
301 Updated from the source web site in Acme-MetaSyntactic version 0.79.
302  
303 =item *
304  
305 2006-05-22
306  
307 Updated from the source web site in Acme-MetaSyntactic version 0.75.
308  
309 =item *
310  
311 2006-05-15
312  
313 Updated from the source web site in Acme-MetaSyntactic version 0.74.
314  
315 =item *
316  
317 2006-05-01
318  
319 Updated from the source web site in Acme-MetaSyntactic version 0.72.
320  
321 =item *
322  
323 2006-04-24
324  
325 Updated from the source web site in Acme-MetaSyntactic version 0.71.
326  
327 =item *
328  
329 2006-04-17
330  
331 Updated from the source web site in Acme-MetaSyntactic version 0.70.
332  
333 =item *
334  
335 2006-04-10
336  
337 Introduced in Acme-MetaSyntactic version 0.69.
338  
339 =item *
340  
341 2006-03-10
342  
343 The irc logs from 2005 (see below) prove that I have a bad memory (and
344 this is why logs are a good thing, if you care about the useless minutiae)
345 when I claim that Maddingue was the one who offered the first Wikipedia
346 link for scraping porn star names. I also claimed that publishing in
347 version 0.69 was his idea. At this point, I do not trust my former self.
348  
349 =item *
350  
351 2005-08-24
352  
353 The C<pornstars> theme is ready to be published. More than eight months
354 in advance, it's already clear that the first distribution holding it
355 will be version 0.69, even though the information was never made public.
356  
357 Some time before, it had been agreed that Sébastien would take
358 responsibility for the module. I haven't been able to find records for
359 that yet.
360  
361 =item *
362  
363 2005-05-17
364  
365 When an italian Perl monger annouced he had to write a pornographic web
366 site, and another asked which variable he would use, C<osfameron>
367 immediately thought about L<Acme::MetaSyntactic>, and investigated the
368 C<meta> bot:
369  
370 15:06 <@osfameron> meta porno
371 15:06 <+meta> osfameron: No such theme: porno
372 15:07 <@guillomovitch> meta pr0n
373 15:07 <+meta> guillomovitch: No such theme: prn
374 15:07 <@rgs> osfameron: patches welcome
375 15:07 <+purl> Of course, you really mean FOAD, HAND, HTH
376 15:07 <@osfameron> heh
377 15:08 <@osfameron> un des italiens a dit qu'il doit creer un site porn
378 15:08 <@osfameron> un autre lui a demande' ce qui utilisera comme noms de variables
379 15:08 <@osfameron> j'ai pense' a AMS..
380  
381 Later in the day, a discussion about people's porn star names
382 (name of your first childhood pet, along with the name of the first
383 street where you grew up) quickly derailed into the idea of making
384 I<Acme::MetaSyntactic::pornstarname>, which would list the "porn star
385 names" of famous Perl hackers.
386  
387 C<rgs> offered the first Wikipedia link. A few days later, C<grinder>
388 tried to use the non-existent theme, and C<rgs> complained about its
389 absence.
390  
391 =back
392  
393 =head1 SEE ALSO
394  
395 L<Acme::MetaSyntactic>, L<Acme::MetaSyntactic::MultiList>.
396  
397 =cut
398  
399 __DATA__
↑ Summary blib/lib/Acme/MetaSyntactic/donmartin.pm »