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.034';
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 2021-04-30 - v1.034
74  
75 Updated from the source web site in Acme-MetaSyntactic-Themes version 1.055.
76  
77 =item *
78  
79 2019-10-28 - v1.033
80  
81 Updated from the source web site in Acme-MetaSyntactic-Themes version 1.054.
82  
83 =item *
84  
85 2019-07-29 - v1.032
86  
87 Updated with a new remote source for pornstars of both genders
88 in Acme-MetaSyntactic-Themes version 1.053.
89  
90 =item *
91  
92 2018-10-29 - v1.031
93  
94 Abandonned the remote source for female pornstars, no data change,
95 in Acme-MetaSyntactic-Themes version 1.052.
96  
97 =item *
98  
99 2017-11-13 - v1.031
100  
101 Updated from the source web site in Acme-MetaSyntactic-Themes version 1.051.
102  
103 =item *
104  
105 2017-06-12 - v1.030
106  
107 Updated from the source web site in Acme-MetaSyntactic-Themes version 1.050.
108  
109 =item *
110  
111 2016-03-21 - v1.029
112  
113 Updated from the source web site in Acme-MetaSyntactic-Themes version 1.049.
114  
115 =item *
116  
117 2015-10-19 - v1.028
118  
119 Updated from the source web site in Acme-MetaSyntactic-Themes version 1.048.
120  
121 =item *
122  
123 2015-08-10 - v1.027
124  
125 Updated from the source web site in Acme-MetaSyntactic-Themes version 1.047.
126  
127 =item *
128  
129 2015-06-08 - v1.026
130  
131 Updated from the source web site in Acme-MetaSyntactic-Themes version 1.046.
132  
133 =item *
134  
135 2015-02-02 - v1.025
136  
137 Updated from the source web site in Acme-MetaSyntactic-Themes version 1.045.
138  
139 =item *
140  
141 2015-01-05 - v1.024
142  
143 Updated from the source web site in Acme-MetaSyntactic-Themes version 1.044.
144  
145 =item *
146  
147 2014-10-13 - v1.023
148  
149 Updated from the source web site in Acme-MetaSyntactic-Themes version 1.043.
150  
151 =item *
152  
153 2014-09-15 - v1.022
154  
155 Updated from the source web site in Acme-MetaSyntactic-Themes version 1.042.
156  
157 =item *
158  
159 2014-08-18 - v1.021
160  
161 Updated from the source web site in Acme-MetaSyntactic-Themes version 1.041.
162  
163 On August 2, 2014 the I<List of pornographic actresses by decade>
164 Wikipedia page was heavily trimmed (removal of 857 names, with only
165 I<Candy Barr> remaining) following the official I<Biographies of living
166 persons> Wikipedia policy. The list is slowly being rebuilt since.
167  
168 =item *
169  
170 2014-06-16 - v1.020
171  
172 Updated from the source web site in Acme-MetaSyntactic-Themes version 1.040.
173  
174 =item *
175  
176 2014-04-07 - v1.019
177  
178 Updated from the source web site in Acme-MetaSyntactic-Themes version 1.039.
179  
180 =item *
181  
182 2013-12-09 - v1.018
183  
184 Updated from the source web site in Acme-MetaSyntactic-Themes version 1.038.
185  
186 =item *
187  
188 2013-10-14 - v1.017
189  
190 Updated from the source web site in Acme-MetaSyntactic-Themes version 1.037.
191  
192 =item *
193  
194 2013-09-16 - v1.016
195  
196 Updated from the source web site in Acme-MetaSyntactic-Themes version 1.036.
197  
198 =item *
199  
200 2013-07-22 - v1.015
201  
202 Updated from the source web site in Acme-MetaSyntactic-Themes version 1.034.
203  
204 =item *
205  
206 2013-06-17 - v1.014
207  
208 Updated from the source web site in Acme-MetaSyntactic-Themes version 1.033.
209  
210 =item *
211  
212 2013-06-03 - v1.013
213  
214 Updated from the source web site in Acme-MetaSyntactic-Themes version 1.032.
215  
216 =item *
217  
218 2013-03-25 - v1.012
219  
220 Updated from the source web site in Acme-MetaSyntactic-Themes version 1.031.
221  
222 =item *
223  
224 2013-02-18 - v1.011
225  
226 Updated from the source web site in Acme-MetaSyntactic-Themes version 1.030.
227  
228 =item *
229  
230 2013-01-14 - v1.010
231  
232 Updated from the source web site in Acme-MetaSyntactic-Themes version 1.029.
233  
234 =item *
235  
236 2012-11-19 - v1.009
237  
238 Updated from the source web site in Acme-MetaSyntactic-Themes version 1.028.
239  
240 =item *
241  
242 2012-10-22 - v1.008
243  
244 Updated from the source web site in Acme-MetaSyntactic-Themes version 1.024.
245  
246 =item *
247  
248 2012-10-01 - v1.007
249  
250 Updated from the source web site in Acme-MetaSyntactic-Themes version 1.021.
251  
252 =item *
253  
254 2012-09-10 - v1.006
255  
256 Updated from the source web site in Acme-MetaSyntactic-Themes version 1.018.
257  
258 =item *
259  
260 2012-08-27 - v1.005
261  
262 Updated from the source web site in Acme-MetaSyntactic-Themes version 1.016.
263  
264 =item *
265  
266 2012-07-23 - v1.004
267  
268 Updated from the source web site in Acme-MetaSyntactic-Themes version 1.011.
269  
270 =item *
271  
272 2012-06-25 - v1.003
273  
274 Updated from the source web site in Acme-MetaSyntactic-Themes version 1.007.
275  
276 =item *
277  
278 2012-05-28 - v1.002
279  
280 Updated from the source web site in Acme-MetaSyntactic-Themes version 1.003.
281  
282 =item *
283  
284 2012-05-14 - v1.001
285  
286 Updated with an C<=encoding> pod command
287 in Acme-MetaSyntactic-Themes version 1.001.
288  
289 =item *
290  
291 2012-05-07 - v1.000
292  
293 Updated with a new remote source for female pornstars,
294 abandoned the obsolete source for male pornstars, and
295 received its own version number in Acme-MetaSyntactic-Themes version 1.000.
296  
297 =item *
298  
299 2006-08-28
300  
301 Updated from the source web site in Acme-MetaSyntactic version 0.89.
302  
303 =item *
304  
305 2006-06-19
306  
307 Updated from the source web site in Acme-MetaSyntactic version 0.79.
308  
309 =item *
310  
311 2006-05-22
312  
313 Updated from the source web site in Acme-MetaSyntactic version 0.75.
314  
315 =item *
316  
317 2006-05-15
318  
319 Updated from the source web site in Acme-MetaSyntactic version 0.74.
320  
321 =item *
322  
323 2006-05-01
324  
325 Updated from the source web site in Acme-MetaSyntactic version 0.72.
326  
327 =item *
328  
329 2006-04-24
330  
331 Updated from the source web site in Acme-MetaSyntactic version 0.71.
332  
333 =item *
334  
335 2006-04-17
336  
337 Updated from the source web site in Acme-MetaSyntactic version 0.70.
338  
339 =item *
340  
341 2006-04-10
342  
343 Introduced in Acme-MetaSyntactic version 0.69.
344  
345 =item *
346  
347 2006-03-10
348  
349 The irc logs from 2005 (see below) prove that I have a bad memory (and
350 this is why logs are a good thing, if you care about the useless minutiae)
351 when I claim that Maddingue was the one who offered the first Wikipedia
352 link for scraping porn star names. I also claimed that publishing in
353 version 0.69 was his idea. At this point, I do not trust my former self.
354  
355 =item *
356  
357 2005-08-24
358  
359 The C<pornstars> theme is ready to be published. More than eight months
360 in advance, it's already clear that the first distribution holding it
361 will be version 0.69, even though the information was never made public.
362  
363 Some time before, it had been agreed that Sébastien would take
364 responsibility for the module. I haven't been able to find records for
365 that yet.
366  
367 =item *
368  
369 2005-05-17
370  
371 When an italian Perl monger annouced he had to write a pornographic web
372 site, and another asked which variable he would use, C<osfameron>
373 immediately thought about L<Acme::MetaSyntactic>, and investigated the
374 C<meta> bot:
375  
376 15:06 <@osfameron> meta porno
377 15:06 <+meta> osfameron: No such theme: porno
378 15:07 <@guillomovitch> meta pr0n
379 15:07 <+meta> guillomovitch: No such theme: prn
380 15:07 <@rgs> osfameron: patches welcome
381 15:07 <+purl> Of course, you really mean FOAD, HAND, HTH
382 15:07 <@osfameron> heh
383 15:08 <@osfameron> un des italiens a dit qu'il doit creer un site porn
384 15:08 <@osfameron> un autre lui a demande' ce qui utilisera comme noms de variables
385 15:08 <@osfameron> j'ai pense' a AMS..
386  
387 Later in the day, a discussion about people's porn star names
388 (name of your first childhood pet, along with the name of the first
389 street where you grew up) quickly derailed into the idea of making
390 I<Acme::MetaSyntactic::pornstarname>, which would list the "porn star
391 names" of famous Perl hackers.
392  
393 C<rgs> offered the first Wikipedia link. A few days later, C<grinder>
394 tried to use the non-existent theme, and C<rgs> complained about its
395 absence.
396  
397 =back
398  
399 =head1 SEE ALSO
400  
401 L<Acme::MetaSyntactic>, L<Acme::MetaSyntactic::MultiList>.
402  
403 =cut
404  
405 __DATA__
↑ Summary blib/lib/Acme/MetaSyntactic/donmartin.pm »