blib/lib/Acme/ConspiracyTheory/Random.pm

filter: Statementstmt 98.7% 766 / 776 Branchbran 96.7% 151 / 156 Conditioncond 71.4% 130 / 182 MC/DCmcdc 33.6% 33 / 98 Subroutinesub 99.5% 210 / 211 Podpod 0.0% 0 / 39 totaltotal 88.2% 1290 / 1462 SCAR 51.2
CC
162
Cov
94%
evidence
53.0
numerology
14.0
theory
9.0
CRAP 167.7
↑ Summary
1 1 ▶use 5.012;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 # Artificial stupidity is easier to develop than artificial intelligence.
6  
7 package Acme::ConspiracyTheory::Random;
8  
9 1 our $AUTHORITY = 'cpan:TOBYINK';
10 1 our $VERSION = '0.014';
11  
12 1 ▶use Exporter::Shiny qw( theory bad_punctuation );
Subroutine BEGIN: called CC=1 SCAR=0.0
13 1 ▶use List::Util 1.54 ();
Subroutine BEGIN: called CC=1 SCAR=0.0
14  
15 sub _RANDOM_ {
16 265883 ▶ my $code = List::Util::sample( 1, @_ );
Subroutine _RANDOM_: called CC=2 SCAR=6.9
17 265883 ▶ ref($code) eq 'CODE' ? goto($code) : $code;
Branch: 1 branch
BranchTrueFalseTotal
ref $code eq 'CODE' ? : 54399 211484 265883
18 }
19  
20 sub _MERGE_ {
21 159297 ▶ my ( $redstring, %new ) = @_;
Subroutine _MERGE_: called CC=1 SCAR=0.0
22 159297 %$redstring = ( %$redstring, %new );
23 }
24  
25 sub _UCFIRST_ ($) { # Some sentences start with a non-word character like a quote mark
26 152155 ▶ ( my $str = shift )
Subroutine _UCFIRST_: called CC=1 SCAR=0.0
27 152155 =~ s/ (\w) / uc($1) /xe;
28 152155 $str;
29 }
30  
31 sub celebrity {
32 3824 ▶ my $redstring = shift // {};
Subroutine celebrity: called CC=2 SCAR=7.0
Pod undocumented
Condition50%1/2
shift() // {}
l!l
38240
MC/DC0%0/1
shift() // {}
shift()
Truth table50%1/2
A
A= shift()
Aresult
11
00
33 3824 my $celeb = _RANDOM_(
34 { female => 0, name => 'Bill Gates' },
35 { female => 0, name => 'Jeff Bezos' },
36 { female => 1, name => 'Hillary Clinton' },
37 { female => 0, name => 'Donald Trump' },
38 { female => 0, name => 'Barack Obama' },
39 { female => 0, name => 'Bernie Sanders' },
40 { female => 0, name => 'Joe Biden' },
41 { female => 0, name => 'Bill Clinton' },
42 { female => 1, name => 'Queen Elizabeth II' },
43 { female => 0, name => 'Johnny Depp' },
44 { female => 0, name => 'Q' },
45 { female => 1, name => 'Madonna' },
46 { female => 0, name => 'Sir Paul McCartney' },
47 { female => 1, name => 'Lady Gaga' },
48 { female => 1, name => 'Margaret Thatcher' },
49 { female => 0, name => 'George Soros' },
50 { female => 1, name => 'Beyonce' },
51 { female => 1, name => 'Whitney Houston' },
52 { female => 0, name => 'Joe Rogan' },
53 );
54 3824 _MERGE_( $redstring, celebrity => $celeb );
55 3824 return $celeb->{name};
56 }
57  
58 sub shady_group {
59 31682 ▶ my $redstring = shift // {};
Subroutine shady_group: called CC=8 SCAR=20.8
Pod undocumented
Condition50%1/2
shift() // {}
l!l
316820
MC/DC0%0/1
shift() // {}
shift()
Truth table50%1/2
A
A= shift()
Aresult
11
00
60
61 31682 my $xx;
62 PICK: {
63 31682 $xx = _RANDOM_(
64 { plural => 1, name => 'the Knights Templar', shortname => 'the Templars' },
65 { plural => 1, name => 'the Illuminati' },
66 { plural => 1, name => 'the Freemasons', shortname => 'the Masons' },
67 { plural => 0, name => 'the Ordo Templi Orientis' },
68 { plural => 1, name => 'the Cabalists' },
69 { plural => 1, name => 'the Followers of the Temple Of The Vampire', shortname => 'the Vampires' },
70 { plural => 0, splural => 1, name => 'the Secret Order of the Knights of the Round Table', shortname => 'the Knights' },
71 { plural => 1, name => 'the Cardinals of the Catholic Church', shortname => 'the Cardinals' },
72 { plural => 0, name => 'the Church of Satan', shortname => 'the Church' },
73 { plural => 1, name => 'the Gnostics' },
74 { plural => 1, name => 'the Elders of Zion', shortname => 'the Elders' },
75 { plural => 1, name => 'the Jesuits' },
76 { plural => 0, name => 'the Babylonian Brotherhood', shortname => 'the Brotherhood' },
77 { plural => 0, name => 'the Hermetic Order of the Golden Dawn', shortname => 'the Order' },
78 { plural => 0, name => 'Opus Dei' },
79 { plural => 0, name => 'the Priory of Sion', shortname => 'the Priory' },
80 { plural => 0, name => 'GameStop' },
81 { plural => 0, splural => 1, name => 'the British Royal Family', shortname => 'the Royals' },
82 { plural => 0, name => 'NASA' },
83 { plural => 1, name => 'the Zionists' },
84 { plural => 0, name => 'the Trump administration' },
85 { plural => 0, name => 'the Biden administration' },
86 { plural => 0, splural => 1, name => 'the Republican party', shortname => 'the Republicans' },
87 { plural => 0, splural => 1, name => 'the Democrat party', shortname => 'the Democrats' },
88 { plural => 0, name => 'the New World Order' },
89 { plural => 1, name => 'the Communists' },
90 { plural => 0, name => 'the Shadow Government' },
91 { plural => 0, name => 'the global financial elite' },
92 { plural => 0, name => 'the global scientific elite' },
93 { plural => 0, name => 'Big Pharma' },
94 { plural => 0, name => 'Big Tobacco' },
95 { plural => 1, splural => 1, name => 'the lizard people', shortname => 'the lizardmen' },
96 { plural => 1, name => 'the grey aliens', shortname => 'the aliens' },
97 { plural => 1, name => 'the big Hollywood studios', shortname => 'Hollywood' },
98 { plural => 0, name => 'the music industry' },
99 { plural => 1, name => 'shape-shifting aliens', shortname => 'the shape-shifters' },
100 { plural => 1, name => 'Satanists' },
101 { plural => 1, name => 'pagans' },
102 { plural => 1, name => 'atheists' },
103 { plural => 1, name => 'people who like pineapple on pizza', shortname => 'the pineapple-lovers' },
104 { plural => 0, name => 'the deep state' },
105 { plural => 1, name => 'the descendents of Jesus', shortname => 'the descendents' },
106 { plural => 1, name => 'Qanon' },
107 { plural => 0, name => 'Microsoft' },
108 { plural => 0, name => 'Twitter' },
109 { plural => 0, name => 'Facebook' },
110 { plural => 0, name => 'Google' },
111 { plural => 0, name => 'Monsanto' },
112 { plural => 0, name => 'the Wall Street establishment', shortname => 'Wall Street' },
113 { plural => 1, name => 'people at 10 Downing Street', shortname => "Downing Street" },
114 { plural => 0, name => 'Goldman Sachs' },
115 { plural => 0, name => 'Skull and Bones (Order 322)', shortname => 'the Order' },
116 { plural => 0, name => 'the London Stock Exchange', shortname => 'LSE' },
117 { plural => 0, name => 'the New York Stock Exchange', shortname => 'NYSE' },
118 { plural => 1, name => 'feminists' },
119 { plural => 1, name => 'Socialists' },
120 sub {
121 565 ▶ my $planet = _RANDOM_(
Subroutine __ANON__: called CC=1 SCAR=0.0
122 ['Nibiru', 'the Nibiruans'],
123 ['Venus', 'the Venutians'],
124 ['Mars', 'the Martians'],
125 ['Pluto', 'the Plutonians'],
126 ['Andromeda', 'the Andromedans'],
127 ['the moon', 'the moonlings'],
128 ['the Counter-Earth', 'the anti-Earthlings'],
129 );
130 565 { plural => 1, name => "aliens from ".$planet->[0], shortname => $planet->[1] };
131 },
132 31865 );
133
134 1 ▶ no warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
135 redo PICK
136 if ( $redstring->{protagonists} and $redstring->{protagonists}{name} eq $xx->{name} )
137 31865 ▶ || ( $redstring->{antagonists} and $redstring->{antagonists}{name} eq $xx->{name} );
Branch: 1 branch
BranchTrueFalseTotal
if $redstring->{"protagonists"} and $redstring->{"protagonists"}{"name"} eq $xx->{"name"} or $redstring->{"antagonists"} and $redstring->{"antagonists"}{"name"} eq $xx->{"name"} 183 31682 31865
Condition100%9/9
$redstring->{"protagonists"} and $redstring->{"protagonists"}{"name"} eq $xx->{"name"} or $redstring->{"antagonists"} and $redstring->{"antagonists"}{"name"} eq $xx->{"name"}
l!l&&r!l&&!r
17724031448
$redstring->{"protagonists"} and $redstring->{"protagonists"}{"name"} eq $xx->{"name"}
!ll&&!rl&&r
2071010978177
$redstring->{"antagonists"} and $redstring->{"antagonists"}{"name"} eq $xx->{"name"}
!ll&&!rl&&r
307519316
MC/DC50%2/4
$redstring->{"protagonists"} and $redstring->{"protagonists"}{"name"} eq $xx->{"name"} or $redstring->{"antagonists"} and $redstring->{"antagonists"}{"name"} eq $xx->{"name"}
$redstring->{"protagonists"} $redstring->{"protagonists"}{"name"} eq $xx->{"name"} $redstring->{"antagonists"} $redstring->{"antagonists"}{"name"} eq $xx->{"name"}
Truth table42%3/7
A and B or C and D
A= $redstring->{"protagonists"}B= $redstring->{"protagonists"}{"name"} eq $xx->{"name"}C= $redstring->{"antagonists"}D= $redstring->{"antagonists"}{"name"} eq $xx->{"name"}
ABCDresult
11XX1
0X111
10111
0X0X0
0X100
100X0
10100
138 };
139
140 31682 _MERGE_( $redstring, shady_group => $xx );
141 31682 my $name = $xx->{name};
142 31682 ▶ if ($name =~ /ists$/ && $name !~ /^the/) {
Branch: 1 branch
BranchTrueFalseTotal
if ($name =~ /ists$/u and not $name =~ /^the/u) 2153 29529 31682
Condition100%3/3
$name =~ /ists$/u and not $name =~ /^the/u
!ll&&!rl&&r
2780117282153
MC/DC100%2/2
$name =~ /ists$/u and not $name =~ /^the/u
$name =~ /ists$/u not $name =~ /^the/u
Truth table100%3/3
A and not(B)
A= $name =~ /ists$/uB= not $name =~ /^the/u
ABresult
0X0
100
111
143 2153 $name = "the $name";
144 }
145 31682 return $name;
146 }
147  
148 sub real_animal {
149 1578 ▶ my $redstring = shift // {};
Subroutine real_animal: called CC=2 SCAR=7.0
Pod undocumented
Condition50%1/2
shift() // {}
l!l
15780
MC/DC0%0/1
shift() // {}
shift()
Truth table50%1/2
A
A= shift()
Aresult
11
00
150
151 1578 my $animal = _RANDOM_(
152 'cat',
153 'dog',
154 'horse',
155 'penguin',
156 'platypus',
157 'toucan',
158 'whale',
159 'zebra',
160 'frog',
161 'fish',
162 );
163
164 1578 _MERGE_( $redstring, real_animal => $animal );
165 1578 return $animal;
166 }
167  
168 sub fake_animal {
169 252 ▶ my $redstring = shift // {};
Subroutine fake_animal: called CC=2 SCAR=7.0
Pod undocumented
Condition50%1/2
shift() // {}
l!l
2520
MC/DC0%0/1
shift() // {}
shift()
Truth table50%1/2
A
A= shift()
Aresult
11
00
170
171 252 my $animal = _RANDOM_(
172 'unicorn',
173 'bigfoot',
174 'mermaid',
175 'werewolf',
176 'dragon',
177 'wyvern',
178 'yeti',
179 'Loch Ness monster',
180 );
181
182 252 _MERGE_( $redstring, fake_animal => $animal );
183 252 return $animal;
184 }
185  
186 sub objects {
187 498 ▶ my $redstring = shift // {};
Subroutine objects: called CC=2 SCAR=7.0
Pod undocumented
Condition50%1/2
shift() // {}
l!l
4980
MC/DC0%0/1
shift() // {}
shift()
Truth table50%1/2
A
A= shift()
Aresult
11
00
188
189 498 my $objects = _RANDOM_(
190 'cars',
191 'TVs',
192 'smartphones',
193 'microwave ovens',
194 'trees',
195 'clothes',
196 );
197
198 498 _MERGE_( $redstring, objects => $objects );
199 498 return $objects;
200 }
201  
202 sub invention {
203 249 ▶ my $redstring = shift // {};
Subroutine invention: called CC=2 SCAR=7.0
Pod undocumented
Condition50%1/2
shift() // {}
l!l
2490
MC/DC0%0/1
shift() // {}
shift()
Truth table50%1/2
A
A= shift()
Aresult
11
00
204
205 249 my $invention = _RANDOM_(
206 ['the internet', 0],
207 ['cryptocurrencies', 1],
208 ['smartphones', 1],
209 ['bitcoin', 0],
210 );
211
212 249 _MERGE_( $redstring, invention => $invention->[0],
213 invention_plural => $invention->[1], );
214 249 return $invention->[0];
215 }
216  
217 sub shady_project {
218 1478 ▶ my $redstring = shift // {};
Subroutine shady_project: called CC=2 SCAR=7.0
Pod undocumented
Condition50%1/2
shift() // {}
l!l
14780
MC/DC0%0/1
shift() // {}
shift()
Truth table50%1/2
A
A= shift()
Aresult
11
00
219
220 1478 my $x = _RANDOM_(
221 'Project Blue Beam',
222 'The Plan',
223 'the Global Warming Hoax',
224 'the New Chronology',
225 'the Great Replacement',
226 'the Great Reset',
227 'the LGBT Agenda',
228 'the Kalergi Plan',
229 'Eurabia',
230 'the moon-landing hoax',
231 );
232
233 1478 _MERGE_( $redstring, shady_project => $x );
234 1478 return $x;
235 }
236  
237 sub authority {
238 376 ▶ my $redstring = shift // {};
Subroutine authority: called CC=2 SCAR=7.0
Pod undocumented
Condition50%1/2
shift() // {}
l!l
3760
MC/DC0%0/1
shift() // {}
shift()
Truth table50%1/2
A
A= shift()
Aresult
11
00
239
240 376 my $x = _RANDOM_(
241 'the Supreme Court',
242 'the United Nations',
243 'the FBI',
244 'the CIA',
245 'NATO',
246 );
247
248 376 _MERGE_( $redstring, authority => $x );
249 376 return $x;
250 }
251  
252 sub dark_lord {
253 1679 ▶ my $redstring = shift // {};
Subroutine dark_lord: called CC=2 SCAR=7.0
Pod undocumented
Condition50%1/2
shift() // {}
l!l
16790
MC/DC0%0/1
shift() // {}
shift()
Truth table50%1/2
A
A= shift()
Aresult
11
00
254
255 1679 my $x = _RANDOM_(
256 'the dark lord',
257 'Beelzebub',
258 'Lord Vader',
259 'Lord Satan',
260 'Thanos',
261 'the devil',
262 'the evil one',
263 'the almighty',
264 );
265
266 1679 _MERGE_( $redstring, dark_lord => $x );
267 1679 return $x;
268 }
269  
270 sub disease {
271 485 ▶ my $redstring = shift // {};
Subroutine disease: called CC=2 SCAR=7.0
Pod undocumented
Condition50%1/2
shift() // {}
l!l
4850
MC/DC0%0/1
shift() // {}
shift()
Truth table50%1/2
A
A= shift()
Aresult
11
00
272
273 485 my $disease = _RANDOM_(
274 'cancer',
275 'COVID-19',
276 'HIV',
277 'the common cold',
278 'diabetes',
279 'obesity',
280 'autism',
281 'Ebola',
282 );
283
284 485 _MERGE_( $redstring, disease => $disease );
285 485 return $disease;
286 }
287  
288 sub disease_cause {
289 247 ▶ my $redstring = shift // {};
Subroutine disease_cause: called CC=2 SCAR=6.9
Pod undocumented
Condition50%1/2
shift() // {}
l!l
2470
MC/DC0%0/1
shift() // {}
shift()
Truth table50%1/2
A
A= shift()
Aresult
11
00
290
291 my $cause = _RANDOM_(
292 sub {
293 34 ▶ my $food = food( $redstring );
Subroutine __ANON__: called CC=2 SCAR=6.9
294 34 ▶ ( $food =~ /wine/ ) ? "drinking $food" : "eating $food";
Branch: 1 branch
BranchTrueFalseTotal
$food =~ /wine/u ? : 4 30 34
295 },
296 sub {
297 39 ▶ chemicals( $redstring );
Subroutine __ANON__: called CC=1 SCAR=0.0
298 },
299 247 'non-vegan food',
300 'vegan food',
301 'socialism',
302 'electromagnetic radiation (WiFi!)',
303 'radon gas',
304 );
305
306 247 _MERGE_( $redstring, disease_cause => $cause );
307 247 return $cause;
308 }
309  
310 sub chemicals {
311 1020 ▶ my $redstring = shift // {};
Subroutine chemicals: called CC=2 SCAR=7.0
Pod undocumented
Condition50%1/2
shift() // {}
l!l
10200
MC/DC0%0/1
shift() // {}
shift()
Truth table50%1/2
A
A= shift()
Aresult
11
00
312
313 1020 my $chemicals = _RANDOM_(
314 'oestrogen',
315 'testosterone',
316 'acid',
317 'birth-control',
318 'fertilizer',
319 'Diet Coke',
320 'heavy hydrogen',
321 '5G',
322 'antimatter',
323 'dark matter',
324 'fluoride',
325 );
326
327 1020 _MERGE_( $redstring, chemicals => $chemicals );
328 1020 return $chemicals;
329 }
330  
331 sub food {
332 278 ▶ my $redstring = shift // {};
Subroutine food: called CC=2 SCAR=7.0
Pod undocumented
Condition50%1/2
shift() // {}
l!l
2780
MC/DC0%0/1
shift() // {}
shift()
Truth table50%1/2
A
A= shift()
Aresult
11
00
333
334 278 my $food = _RANDOM_(
335 'apples',
336 'Big Macs',
337 'KFC family buckets',
338 'most wines',
339 'Kraft instant mac and cheese boxes',
340 'bananas',
341 );
342
343 278 _MERGE_( $redstring, food => $food );
344 278 return $food;
345 }
346  
347 sub attribute {
348 250 ▶ my $redstring = shift // {};
Subroutine attribute: called CC=2 SCAR=7.0
Pod undocumented
Condition50%1/2
shift() // {}
l!l
2500
MC/DC0%0/1
shift() // {}
shift()
Truth table50%1/2
A
A= shift()
Aresult
11
00
349
350 250 my $attr = _RANDOM_(
351 'gay',
352 'insane',
353 'infertile',
354 'immobile',
355 'horny',
356 'female',
357 'fat',
358 'fluorescent',
359 );
360
361 250 _MERGE_( $redstring, attribute => $attr );
362 250 return $attr;
363 }
364  
365 sub artifact {
366 259 ▶ my $redstring = shift // {};
Subroutine artifact: called CC=2 SCAR=7.0
Pod undocumented
Condition50%1/2
shift() // {}
l!l
2590
MC/DC0%0/1
shift() // {}
shift()
Truth table50%1/2
A
A= shift()
Aresult
11
00
367
368 259 my $artifact = _RANDOM_(
369 'the holy grail',
370 'the golden fleece',
371 'Excalibur',
372 'the ark of the covenant',
373 "Jesus's foreskin",
374 'the Holy Prepuce',
375 'the Book of the Dead',
376 'the Necronomicon',
377 "the Philosopher's Stone",
378 "a fragment of the true cross",
379 "the seal of Solomon",
380 );
381
382 259 _MERGE_( $redstring, artifact => $artifact );
383 259 return $artifact;
384 }
385  
386 sub bad_place {
387 879 ▶ my $redstring = shift // {};
Subroutine bad_place: called CC=2 SCAR=6.9
Pod undocumented
Condition50%1/2
shift() // {}
l!l
8790
MC/DC0%0/1
shift() // {}
shift()
Truth table50%1/2
A
A= shift()
Aresult
11
00
388
389 my $bad_place = _RANDOM_(
390 'a secret Antarctic base',
391 'Area 51',
392 'Langley, Virginia',
393 'Guantanamo Bay Detention Camp',
394 'Windsor Castle',
395 'The Pentagon',
396 'Denver International Airport',
397 'the basement of the Vatican',
398 58 ▶ sub { myth_place( $redstring ) },
Subroutine __ANON__: called CC=1 SCAR=0.0
399 sub {
400 80 ▶ my $p = random_place( $redstring );
Subroutine __ANON__: called CC=1 SCAR=0.0
401 80 "a series of tunnels underneath $p";
402 },
403 sub {
404 87 ▶ my $p = random_place( $redstring );
Subroutine __ANON__: called CC=1 SCAR=0.0
405 87 "a secret base in $p";
406 },
407 879 'a facility inside the hollow Earth',
408 );
409
410 879 _MERGE_( $redstring, bad_place => $bad_place );
411 879 return $bad_place;
412 }
413  
414 sub random_place {
415 6151 ▶ my $redstring = shift // {};
Subroutine random_place: called CC=2 SCAR=7.0
Pod undocumented
Condition50%1/2
shift() // {}
l!l
61510
MC/DC0%0/1
shift() // {}
shift()
Truth table50%1/2
A
A= shift()
Aresult
11
00
416
417 6151 my $random_place = _RANDOM_(
418 'the USA',
419 'the UK',
420 'France',
421 'Italy',
422 'Germany',
423 'Spain',
424 'Egypt',
425 'Israel',
426 'Lebanon',
427 'Syria',
428 'Japan',
429 'China',
430 'Brazil',
431 'Argentina',
432 'Chile',
433 'Tunisia',
434 'Antarctica',
435 'Norway',
436 'Australia',
437 'New Zealand',
438 );
439
440 6151 _MERGE_( $redstring, random_place => $random_place );
441 6151 return $random_place;
442 }
443  
444 sub myth_place {
445 568 ▶ my $redstring = shift // {};
Subroutine myth_place: called CC=2 SCAR=7.0
Pod undocumented
Condition50%1/2
shift() // {}
l!l
5680
MC/DC0%0/1
shift() // {}
shift()
Truth table50%1/2
A
A= shift()
Aresult
11
00
446
447 568 my $place = _RANDOM_(
448 'the Garden of Eden',
449 'the lost city of Atlantis',
450 'the final resting place of Noah\'s Ark',
451 'the umbilicus mundi',
452 'Camelot',
453 "Lucifer's crypt",
454 "Jesus's grave",
455 "Jesus's true birthplace",
456 'the entrance to the hollow Earth',
457 'the REAL Stonehenge',
458 );
459
460 568 _MERGE_( $redstring, myth_place => $place );
461 568 return $place;
462 }
463  
464 sub cryptids {
465 477 ▶ my $redstring = shift // {};
Subroutine cryptids: called CC=2 SCAR=7.0
Pod undocumented
Condition50%1/2
shift() // {}
l!l
4770
MC/DC0%0/1
shift() // {}
shift()
Truth table50%1/2
A
A= shift()
Aresult
11
00
466
467 477 my $cryptids = _RANDOM_(
468 'vampires',
469 'ghosts',
470 'werewolves',
471 'demons',
472 'angels',
473 'skinwalkers',
474 'elves',
475 'goblins',
476 'mermaids',
477 );
478
479 477 _MERGE_( $redstring, cryptids => $cryptids );
480 477 return $cryptids;
481 }
482  
483 sub fiction {
484 3038 ▶ my $redstring = shift // {};
Subroutine fiction: called CC=2 SCAR=6.9
Pod undocumented
Condition100%2/2
shift() // {}
l!l
2058980
MC/DC100%1/1
shift() // {}
shift()
Truth table100%2/2
A
A= shift()
Aresult
11
00
485
486 3038 my $fiction = _RANDOM_(
487 { title => 'Harry Potter', author => 'J K Rowling' },
488 { title => 'Tintin', author => 'Herge' },
489 { title => 'Star Wars', author => 'George Lucas' },
490 { title => 'Avengers: Age of Ultron', author => 'Kevin Feige' },
491 { title => 'The Book of Mormon', author => 'Joseph Smith' },
492 { title => 'Lord of the Rings', author => 'J R R Tolkien' },
493 { title => 'The Chronicles of Narnia', author => 'C S Lewis' },
494 { title => 'Game of Thrones', author => 'George R R Martin' },
495 { title => 'Spider-Man', author => 'Stan Lee' },
496 );
497
498 3038 _MERGE_( $redstring, fiction => $fiction );
499 3038 return $fiction->{title};
500 }
501  
502 sub precious_resource {
503 3299 ▶ my $redstring = shift // {};
Subroutine precious_resource: called CC=2 SCAR=7.0
Pod undocumented
Condition50%1/2
shift() // {}
l!l
32990
MC/DC0%0/1
shift() // {}
shift()
Truth table50%1/2
A
A= shift()
Aresult
11
00
504
505 3299 my $resource = _RANDOM_(
506 'pineapple',
507 'oil',
508 'coal',
509 'uranium',
510 'holy water',
511 'diamond',
512 'blood',
513 'gold',
514 'silver',
515 'neutron star material',
516 'Belle Delphine bath water',
517 'crystals',
518 );
519
520 3299 _MERGE_( $redstring, precious_resource => $resource );
521 3299 return $resource;
522 }
523  
524 sub precious_resource_with_quantity {
525 2810 ▶ my $redstring = shift // {};
Subroutine precious_resource_with_quantity: called CC=2 SCAR=7.0
Pod undocumented
Condition50%1/2
shift() // {}
l!l
28100
MC/DC0%0/1
shift() // {}
shift()
Truth table50%1/2
A
A= shift()
Aresult
11
00
526 2810 my $resource = precious_resource( $redstring );
527 2810 my $quantity = _RANDOM_(
528 'a warehouse full',
529 'a lot',
530 'unknown quantities',
531 'vast amounts',
532 'unimaginable quantities',
533 'unspeakable quantities',
534 '5.3 metric pounds',
535 '6.9 Imperial litres',
536 '666 tonnes',
537 );
538 2810 "$quantity of $resource";
539 }
540  
541 sub mind_control_device {
542 520 ▶ my $redstring = shift // {};
Subroutine mind_control_device: called CC=2 SCAR=7.0
Pod undocumented
Condition50%1/2
shift() // {}
l!l
5200
MC/DC0%0/1
shift() // {}
shift()
Truth table50%1/2
A
A= shift()
Aresult
11
00
543  
544 520 my @mc = (
545 ['chemtrails', 1],
546 ['mind control drugs in the water', 1],
547 ['5G', 0],
548 ['WiFi', 0],
549 ['microchips implanted at birth', 1],
550 ['vaccines', 1],
551 ['childhood indoctrination', 0],
552 ['neurolinguistic programming', 0],
553 ['video games', 1],
554 ['mass media', 1],
555 ['space lasers', 1],
556 ['hypnotism', 0],
557 );
558
559 520 my $mc = _RANDOM_(@mc);
560
561 520 _MERGE_( $redstring, mind_control_device => $mc->[0] );
562 520 _MERGE_( $redstring, mind_control_device_plural => $mc->[1] );
563 520 return $mc->[0];
564 }
565  
566 sub future_time {
567 1018 ▶ my $redstring = shift // {};
Subroutine future_time: called CC=2 SCAR=7.0
Pod undocumented
Condition50%1/2
shift() // {}
l!l
10180
MC/DC0%0/1
shift() // {}
shift()
Truth table50%1/2
A
A= shift()
Aresult
11
00
568
569 1018 my $time = _RANDOM_(
570 'in 2030',
571 'by the end of the century',
572 'in 2666',
573 'when Queen Elizabeth II dies',
574 'when the ice caps melt',
575 'next Christmas',
576 );
577
578 1018 _MERGE_( $redstring, future_time => $time );
579 1018 return $time;
580 }
581  
582 sub splural {
583 119302 ▶ my $a = shift;
Subroutine splural: called CC=2 SCAR=6.9
Pod undocumented
584 119302 ▶ if (defined $a->{splural}) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined $a->{"splural"}) 10069 109233 119302
585 10069 return $a->{splural};
586 }
587 109233 return $a->{plural};
588 }
589  
590 sub a_long_time {
591 2475 ▶ my $redstring = shift // {};
Subroutine a_long_time: called CC=4 SCAR=13.9
Pod undocumented
Condition100%2/2
shift() // {}
l!l
1977498
MC/DC100%1/1
shift() // {}
shift()
Truth table100%2/2
A
A= shift()
Aresult
11
00
592
593 2475 my @extras = ();
594 2475 for my $actor ( qw/ protagonists antagonists / ) {
595 push @extras, sub {
596 305 ▶ my $have = splural( $redstring->{$actor} ) ? 'have' : 'has';
Subroutine __ANON__: called CC=3 SCAR=11.1
Branch: 1 branch
BranchTrueFalseTotal
splural($redstring->{$actor}) ? : 171 134 305
597 305 ▶ "for as long as " . ($redstring->{$actor}{shortname}//$redstring->{$actor}{name}) . " $have existed";
Condition66%2/3
$redstring->{$actor}{"shortname"} // $redstring->{$actor}{"name"}
l!l&&r!l&&!r
1341710
MC/DC0%0/2
$redstring->{$actor}{"shortname"} // $redstring->{$actor}{"name"}
$redstring->{$actor}{"shortname"} $redstring->{$actor}{"name"}
Truth table66%2/3
A // B
A= $redstring->{$actor}{"shortname"}B= $redstring->{$actor}{"name"}
ABresult
1X1
011
000
598 4950 ▶ } if $redstring->{$actor}{name};
Branch: 1 branch
BranchTrueFalseTotal
if $redstring->{$actor}{"name"} 3327 1623 4950
599 }
600
601 2475 my $time = _RANDOM_(
602 'since 1492',
603 'since 1666',
604 'since 1066',
605 'since the time of Christ',
606 'since time immemorial',
607 'since the dawn of time',
608 'for hundreds of years',
609 'for millennia',
610 @extras,
611 );
612
613 2475 _MERGE_( $redstring, a_long_time => $time );
614 2475 return $time;
615 }
616  
617 sub misinformation {
618 1478 ▶ my $redstring = shift // {};
Subroutine misinformation: called CC=2 SCAR=6.9
Pod undocumented
Condition50%1/2
shift() // {}
l!l
14780
MC/DC0%0/1
shift() // {}
shift()
Truth table50%1/2
A
A= shift()
Aresult
11
00
619
620 my $info = _RANDOM_(
621 'the Earth is round',
622 'the Earth goes around the sun',
623 'humans are animals',
624 'birds are dinosaurs',
625 sub {
626 97 ▶ $redstring->{topic} = { name => 'the moon', plural => 0 };
Subroutine __ANON__: called CC=1 SCAR=0.0
627 97 'men have walked on the moon';
628 },
629 sub {
630 86 ▶ $redstring->{topic} = { name => 'electricity', plural => 0 };
Subroutine __ANON__: called CC=1 SCAR=0.0
631 86 'electricity exists';
632 },
633 sub {
634 77 ▶ $redstring->{topic} = { name => 'magnetism', plural => 0 };
Subroutine __ANON__: called CC=1 SCAR=0.0
635 77 'magnetism is real';
636 },
637 sub {
638 98 ▶ $redstring->{topic} = { name => 'gravity', plural => 0 };
Subroutine __ANON__: called CC=1 SCAR=0.0
639 98 'gravity is real';
640 },
641 sub {
642 82 ▶ $redstring->{topic} = { name => 'outer space', plural => 0 };
Subroutine __ANON__: called CC=1 SCAR=0.0
643 82 'space is real';
644 },
645 sub {
646 100 ▶ $redstring->{topic} = { name => 'viruses', plural => 1 };
Subroutine __ANON__: called CC=1 SCAR=0.0
647 100 'viruses are real';
648 },
649 sub {
650 89 ▶ $redstring->{topic} = { name => 'vaccines', plural => 1 };
Subroutine __ANON__: called CC=1 SCAR=0.0
651 89 'vaccines are safe';
652 },
653 sub {
654 71 ▶ my $animal = real_animal( $redstring );
Subroutine __ANON__: called CC=1 SCAR=0.0
655 71 "the $animal is real";
656 },
657 sub {
658 93 ▶ my $place = random_place( $redstring );
Subroutine __ANON__: called CC=1 SCAR=0.0
659 93 "$place is real";
660 },
661 sub {
662 86 ▶ $redstring->{topic} = { name => 'carbon dating', plural => 0 };
Subroutine __ANON__: called CC=1 SCAR=0.0
663 86 'the Earth is 4.5 billion years old';
664 },
665 sub {
666 79 ▶ $redstring->{topic} = { name => 'radiocarbon dating', plural => 0 };
Subroutine __ANON__: called CC=1 SCAR=0.0
667 79 'the universe is 14 billion years old';
668 },
669 sub {
670 92 ▶ $redstring->{topic} = { name => 'pigeons', plural => 1 };
Subroutine __ANON__: called CC=1 SCAR=0.0
671 92 'dinosaurs are real';
672 },
673 sub {
674 89 ▶ $redstring->{topic} = { name => 'surveillance drones', plural => 1 };
Subroutine __ANON__: called CC=1 SCAR=0.0
675 89 'birds are real';
676 },
677 1478 );
678
679 1478 _MERGE_( $redstring, misinformation => $info );
680 1478 return $info;
681 }
682  
683 sub victim {
684 3001 ▶ my $redstring = shift // {};
Subroutine victim: called CC=2 SCAR=7.0
Pod undocumented
Condition50%1/2
shift() // {}
l!l
30010
MC/DC0%0/1
shift() // {}
shift()
Truth table50%1/2
A
A= shift()
Aresult
11
00
685
686 3001 my $victim = _RANDOM_(
687 'Elvis Presley',
688 'JFK',
689 'Hitler',
690 'Robin Williams',
691 'Martin Luther King Jr',
692 'Abraham Lincoln',
693 'King Charles I',
694 'Marilyn Monroe',
695 'Tupac Shakur',
696 'Princess Di',
697 'Jeff Buckley',
698 'Andy Kaufman',
699 'Jim Morrison',
700 'Brandon Lee',
701 'Lee Harvey Oswald',
702 'Archduke Franz Ferdinand',
703 'the original Avril Lavigne',
704 'Malcolm X',
705 'John Lennon',
706 'Michael Jackson',
707 );
708
709 3001 _MERGE_( $redstring, victim => $victim );
710 3001 return $victim;
711 }
712  
713 sub physicist { # and chemists
714 1606 ▶ my $redstring = shift // {};
Subroutine physicist: called CC=2 SCAR=7.0
Pod undocumented
Condition50%1/2
shift() // {}
l!l
16060
MC/DC0%0/1
shift() // {}
shift()
Truth table50%1/2
A
A= shift()
Aresult
11
00
715
716 1606 my $x = _RANDOM_(
717 'Nikola Tesla',
718 'Benjamin Franklin',
719 'Albert Einstein',
720 'Isaac Newton',
721 'Stephen Hawking',
722 'Henry Cavendish',
723 );
724
725 1606 _MERGE_( $redstring, physicist => $x );
726 1606 return $x;
727 }
728  
729 sub biologist { # and medics
730 1499 ▶ my $redstring = shift // {};
Subroutine biologist: called CC=2 SCAR=7.0
Pod undocumented
Condition50%1/2
shift() // {}
l!l
14990
MC/DC0%0/1
shift() // {}
shift()
Truth table50%1/2
A
A= shift()
Aresult
11
00
731
732 1499 my $x = _RANDOM_(
733 'Charles Darwin',
734 'Edward Jenner',
735 'Robert Koch',
736 'Carl Linneaus',
737 'Alexander Fleming',
738 );
739
740 1499 _MERGE_( $redstring, biologist => $x );
741 1499 return $x;
742 }
743  
744 sub website {
745 5391 ▶ my $redstring = shift // {};
Subroutine website: called CC=2 SCAR=6.9
Pod undocumented
Condition100%2/2
shift() // {}
l!l
55386
MC/DC100%1/1
shift() // {}
shift()
Truth table100%2/2
A
A= shift()
Aresult
11
00
746  
747 5391 my $x = _RANDOM_(
748 'Tumblr',
749 'Pinterest',
750 'Youtube',
751 'Facebook',
752 'Wikipedia',
753 'Twitter',
754 'Instagram',
755 'Geocities',
756 'Parler',
757 );
758  
759 5391 _MERGE_( $redstring, website => $x );
760 5391 return $x;
761 }
762  
763 sub fatuous {
764 2699 ▶ my $redstring = shift // {};
Subroutine fatuous: called CC=2 SCAR=7.0
Pod undocumented
Condition50%1/2
shift() // {}
l!l
02699
MC/DC0%0/1
shift() // {}
shift()
Truth table50%1/2
A
A= shift()
Aresult
11
00
765  
766 2699 my $x = _RANDOM_(
767 "We all know what's going on here.",
768 "It's plain and simple common sense.",
769 'Most people are in denial.',
770 "Isn't it obvious?",
771 "Wake up, sheeple!",
772 "It's obvious if you connect the dots.",
773 "They leave clues to mock us.",
774 "It's not funny!",
775 "There are too many coincidences to ignore.",
776 );
777  
778 2699 _MERGE_( $redstring, clone => $x );
779 2699 return $x;
780 }
781  
782 sub clone {
783 620 ▶ my $redstring = shift // {};
Subroutine clone: called CC=2 SCAR=7.0
Pod undocumented
Condition50%1/2
shift() // {}
l!l
6200
MC/DC0%0/1
shift() // {}
shift()
Truth table50%1/2
A
A= shift()
Aresult
11
00
784  
785 620 my $x = _RANDOM_(
786 'an alien',
787 'an avatar',
788 'a CGI replica',
789 'a clone',
790 'a cyborg',
791 'a hologram',
792 'a look-alike',
793 'a robot',
794 'a shapeshifter',
795 );
796  
797 620 _MERGE_( $redstring, clone => $x );
798 620 return $x;
799 }
800  
801 sub lies {
802 27626 ▶ my $redstring = shift // {};
Subroutine lies: called CC=2 SCAR=7.0
Pod undocumented
Condition50%1/2
shift() // {}
l!l
027626
MC/DC0%0/1
shift() // {}
shift()
Truth table50%1/2
A
A= shift()
Aresult
11
00
803  
804 27626 my $x = _RANDOM_(
805 'obvious lies',
806 'a big coverup',
807 'a fairy tale',
808 'disinformation',
809 );
810
811 27626 _MERGE_( $redstring, lies => $x );
812 27626 return $x;
813 }
814  
815 sub evidence {
816 21351 ▶ my $redstring = shift // {};
Subroutine evidence: called CC=53 SCAR=39.7
Pod undocumented
Condition50%1/2
shift() // {}
l!l
213510
MC/DC0%0/1
shift() // {}
shift()
Truth table50%1/2
A
A= shift()
Aresult
11
00
817
818 my @x = (
819 "there's a video about it on YouTube",
820 1799 ▶ sub { 'there was something about it on ' . website() },
Subroutine __ANON__: called CC=1 SCAR=0.0
821 "the voices told me",
822 "I had a dream",
823 1819 ▶ sub { website() . ' is censoring me' },
Subroutine __ANON__: called CC=1 SCAR=0.0
824 1768 ▶ sub { website() . ' was down this morning' },
Subroutine __ANON__: called CC=1 SCAR=0.0
825 21351 );
826  
827 21351 ▶ if ( my $c = $redstring->{disease_cause} ) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $c = $redstring->{"disease_cause"}) 240 21111 21351
828 240 push @x, (
829 "$c is addictive",
830 );
831 }
832
833 21351 ▶ if ( my $m = $redstring->{misinformation} ) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $m = $redstring->{"misinformation"}) 1478 19873 21351
834 1478 push @x, (
835 "they indoctrinate people about '$m' at schools and if it were the truth they wouldn't need to",
836 "'$m' gets pushed down our throats by mass media",
837 "'$m' is a false-flag operation",
838 );
839 }
840
841 21351 ▶ if ( my $auth = $redstring->{authority} ) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $auth = $redstring->{"authority"}) 376 20975 21351
842 376 push @x, (
843 "$auth are the obvious people to go to",
844 "$auth are the only ones with the power to stop them",
845 "$auth are able to save us",
846 );
847 }
848  
849 21351 ▶ if ( my $p = $redstring->{myth_place} ) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $p = $redstring->{"myth_place"}) 530 20821 21351
850 530 push @x, (
851 "there are clues about $p in the Bible",
852 "there are clues about $p in the Voynich manuscript",
853 "$p is on some old maps",
854 "$p is on Google Maps",
855 );
856 }
857  
858 21351 ▶ if ( my $art = $redstring->{artifact} ) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $art = $redstring->{"artifact"}) 248 21103 21351
859 248 push @x, (
860 "$art isn't in any museum",
861 "$art must be somewhere",
862 "$art is out there",
863 "$art can be found with GPS",
864 );
865 }
866  
867 21351 ▶ if ( my $proj = $redstring->{shady_project} ) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $proj = $redstring->{"shady_project"}) 1478 19873 21351
868 1478 push @x, (
869 "everybody knows $proj is happening soon",
870 "$proj is well-funded",
871 "$proj is an open secret",
872 "there is so much evidence for $proj",
873 );
874 }
875
876 21351 ▶ if ( my $dl = $redstring->{dark_lord} ) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $dl = $redstring->{"dark_lord"}) 1543 19808 21351
877 1543 push @x, (
878 "$dl is known to be growing in power",
879 "$dl has never seemed more powerful",
880 "$dl needs to be getting power from somewhere",
881 "$dl told me",
882 "I have seen signs from $dl",
883 );
884 }
885
886 21351 ▶ if ( my $v = $redstring->{victim} // $redstring->{physicist} // $redstring->{biologist} ) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $v = ($redstring->{"victim"} // $redstring->{"physicist"}) // $redstring->{"biologist"}) 5848 15503 21351
Condition100%6/6
($redstring->{"victim"} // $redstring->{"physicist"}) // $redstring->{"biologist"}
l!l&&r!l&&!r
4349149915503
$redstring->{"victim"} // $redstring->{"physicist"}
l!l&&r!l&&!r
2743160617002
MC/DC100%3/3
($redstring->{"victim"} // $redstring->{"physicist"}) // $redstring->{"biologist"}
$redstring->{"victim"} $redstring->{"physicist"} $redstring->{"biologist"}
Truth table100%4/4
A // B // C
A= $redstring->{"victim"}B= $redstring->{"physicist"}C= $redstring->{"biologist"}
ABCresult
1XX1
01X1
0011
0000
887 push @x, (
888 "$v died too young",
889 "$v sent a letter containing the truth before dying",
890 sub {
891 343 ▶ my $clone = clone( $redstring );
Subroutine __ANON__: called CC=1 SCAR=0.0
892 343 "when they did an autopsy on $v it turned out it was $clone",
893 },
894 "they never did an autopsy on $v",
895 "$v wrote a will",
896 sub {
897 364 ▶ my $g = shady_group( $redstring );
Subroutine __ANON__: called CC=1 SCAR=0.0
898 364 "$v was secretly one of $g";
899 },
900 sub {
901 341 ▶ my $animal = real_animal( $redstring );
Subroutine __ANON__: called CC=1 SCAR=0.0
902 341 "when they did an autopsy on $v it turned out they were secretly a $animal in a human suit";
903 },
904 5848 );
905 }
906  
907 21351 ▶ if ( my $v = $redstring->{physicist} // $redstring->{biologist} ) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $v = $redstring->{"physicist"} // $redstring->{"biologist"}) 3105 18246 21351
Condition100%3/3
$redstring->{"physicist"} // $redstring->{"biologist"}
l!l&&r!l&&!r
1606149918246
MC/DC100%2/2
$redstring->{"physicist"} // $redstring->{"biologist"}
$redstring->{"physicist"} $redstring->{"biologist"}
Truth table100%3/3
A // B
A= $redstring->{"physicist"}B= $redstring->{"biologist"}
ABresult
1X1
011
000
908 3105 push @x, (
909 "$v isn't mentioned in Aristotle's writing",
910 "$v hasn't given a lecture in months",
911 "$v isn't taken seriously by TRUE SCIENTISTS",
912 );
913 }
914  
915 21351 ▶ if ( my $c = $redstring->{celebrity} ) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $c = $redstring->{"celebrity"}) 3776 17575 21351
916 3776 ▶ if ( $c->{female} ) {
Branch: 1 branch
BranchTrueFalseTotal
if ($c->{'female'}) { } 1434 2342 3776
917 1434 push @x, (
918 "you can't trust women",
919 "she said so on her Twitter",
920 );
921 }
922 else {
923 2342 push @x, (
924 "you can't trust men",
925 "he said so on his Twitter",
926 );
927 }
928 }
929  
930 21351 ▶ if ( my $f = $redstring->{fiction} ) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = $redstring->{"fiction"}) 1958 19393 21351
931
932 push @x, (
933 $f->{title} . " has secret messages encoded in it with numerology",
934 $f->{title} . " is satanic",
935 sub {
936 196 ▶ my $g = shady_group( $redstring );
Subroutine __ANON__: called CC=2 SCAR=6.9
937 196 ▶ my $has = splural( $redstring->{shady_group} ) ? 'have' : 'has';
Branch: 1 branch
BranchTrueFalseTotal
splural($redstring->{'shady_group'}) ? : 101 95 196
938 196 $f->{author} . " $has ties to $g";
939 },
940 sub {
941 234 ▶ my $b = bad_place( $redstring );
Subroutine __ANON__: called CC=1 SCAR=0.0
942 234 $f->{author} . " got taken to $b for questioning";
943 },
944 1958 );
945
946 1958 ▶ if ( my $p = $redstring->{random_place} ) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $p = $redstring->{"random_place"}) 312 1646 1958
947 push @x, (
948 $f->{author} . " had a secret home in $p",
949 312 $f->{author} . " was secretly born in $p",
950 );
951 }
952 }
953
954 21351 ▶ if ( my $animal = $redstring->{real_animal} // $redstring->{fake_animal} ) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $animal = $redstring->{"real_animal"} // $redstring->{"fake_animal"}) 1671 19680 21351
Condition100%3/3
$redstring->{"real_animal"} // $redstring->{"fake_animal"}
l!l&&r!l&&!r
142724419680
MC/DC100%2/2
$redstring->{"real_animal"} // $redstring->{"fake_animal"}
$redstring->{"real_animal"} $redstring->{"fake_animal"}
Truth table100%3/3
A // B
A= $redstring->{"real_animal"}B= $redstring->{"fake_animal"}
ABresult
1X1
011
000
955 push @x, (
956 "the $animal wasn't mentioned in the Bible",
957 "the $animal was mentioned in the Satanic Verses",
958 "the $animal looks kind of weird",
959 "nobody has ever seen a $animal in real life",
960 "the $animal obviously isn't native to this planet",
961 136 ▶ sub { "${ \ shady_group($redstring) } sacrifice $animal${\'s'} to ${ \ dark_lord($redstring) }" },
Subroutine __ANON__: called CC=1 SCAR=0.0
962 1671 "the $animal looks bigger in real life",
963 "the $animal makes a funny noise",
964 "Alex Jones did a podcast about the $animal",
965 );
966 }
967
968 21351 ▶ if ( my $mc = $redstring->{mind_control_device} ) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $mc = $redstring->{"mind_control_device"}) 498 20853 21351
969 498 my $time = a_long_time();
970 498 my $mcp = $redstring->{mind_control_device_plural};
971 498 my $is = 'is';
972 498 my $has = 'has';
973 498 my $was = 'was';
974 498 ▶ if ($mcp) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mcp) 292 206 498
975 292 $is = 'are';
976 292 $has = 'have';
977 292 $was = 'were';
978 }
979 push @x, (
980 "everybody knows $mc $is real",
981 39 ▶ sub { "$mc $has been researched by ${ \ shady_group($redstring) } $time" },
Subroutine __ANON__: called CC=1 SCAR=0.0
982 49 ▶ sub { "$mc $was used to conceal ${ \ shady_group($redstring) } $time" },
Subroutine __ANON__: called CC=1 SCAR=0.0
983 48 ▶ sub { "$mc $was used to infiltrate ${ \ shady_group($redstring) }" },
Subroutine __ANON__: called CC=1 SCAR=0.0
984 498 );
985 }
986  
987 21351 ▶ if ( my $ft = $redstring->{future_time} ) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $ft = $redstring->{"future_time"}) 980 20371 21351
988 980 push @x, (
989 "some of the few people still alive $ft time-travelled back to tell us",
990 980 "the people still alive $ft sent us hidden messages in ${ \ fiction() }",
991 "it will all become clear $ft",
992 );
993 }
994  
995 21351 ▶ if ( my $d = $redstring->{disease} ) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $d = $redstring->{"disease"}) 472 20879 21351
996 472 push @x, (
997 "patients with $d keep disappearing from hospitals",
998 "patients with $d are being silenced by the government",
999 "doctors working on $d are being killed",
1000 "$d probably isn't even a real disease",
1001 "nobody has ever died of $d",
1002 );
1003 }
1004  
1005 21351 ▶ if ( my $f = $redstring->{food} ) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = $redstring->{"food"}) 270 21081 21351
1006 270 push @x, (
1007 "$f don't taste like they used to",
1008 "$f smell funny",
1009 "$f make me feel sick",
1010 "I don't like $f",
1011 );
1012 }
1013  
1014 21351 ▶ if ( my $chem = $redstring->{chemicals} ) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $chem = $redstring->{"chemicals"}) 990 20361 21351
1015 990 push @x, (
1016 "$chem isn't on the periodic table",
1017 "$chem isn't real",
1018 "$chem isn't natural",
1019 "you'd have to be stupid to think $chem is real",
1020 );
1021 }
1022  
1023 21351 ▶ if ( my $r = $redstring->{precious_resource} ) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $r = $redstring->{"precious_resource"}) 3130 18221 21351
1024 3130 my ( $bad, $are, $r_are );
1025 3130 ▶ $redstring->{shady_group}{name} or shady_group( $redstring );
Branch: 1 branch
BranchTrueFalseTotal
$redstring->{"shady_group"}{"name"} or shady_group($redstring) 187 2943 3130
1026 3130 foreach ( qw/ antagonist protagonist shady_group / ) {
1027 9390 ▶ if ( $redstring->{$_}{name} ) {
Branch: 1 branch
BranchTrueFalseTotal
if ($redstring->{$_}{"name"}) 3132 6258 9390
1028 3132 $bad = $redstring->{$_}{name};
1029 3132 ▶ $are = $redstring->{$_}{plural} ? 'are' : 'is';
Branch: 1 branch
BranchTrueFalseTotal
$redstring->{$_}{'plural'} ? : 1368 1764 3132
1030 3132 ▶ $r_are = ($r =~ /s$/) ? 'are' : 'is';
Branch: 1 branch
BranchTrueFalseTotal
$r =~ /s$/u ? : 252 2880 3132
1031 }
1032 }
1033 3130 push @x, (
1034 "the Wikipedia entry for $r keeps getting edited by $bad",
1035 "$bad keeps buying $r secretly on the stock market",
1036 "the global supply of $r is at an all time low",
1037 "have you ever seen $r for real with your own eyes",
1038 "$r $r_are so damn expensive",
1039 "$r $r_are really rare",
1040 "Alex Jones says $bad $are linked to $r",
1041 );
1042 }
1043  
1044 21351 ▶ if ( my $topic = $redstring->{topic} ) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $topic = $redstring->{"topic"}) 7070 14281 21351
1045 7070 my $topicname = $topic->{name};
1046 7070 ▶ my $have = $topic->{plural} ? 'have' : 'has';
Branch: 1 branch
BranchTrueFalseTotal
$topic->{'plural'} ? : 2739 4331 7070
1047 7070 push @x, (
1048 "there's hidden clues in the Wikipedia page about $topicname",
1049 "THEY let it slip during an edit war in a Wikipedia page about $topicname",
1050 "Bible numerology has clues about $topicname",
1051 "the Voynich manuscript has clues about $topicname",
1052 "$topicname $have always been suspicious",
1053 "$topicname $have connections to THEM",
1054 "nobody really understands $topicname",
1055 "all my posts about $topicname keep getting taken down by Tumblr",
1056 );
1057 }
1058  
1059 21351 ▶ if ( my $p = $redstring->{random_place} // $redstring->{bad_place} ) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $p = $redstring->{"random_place"} // $redstring->{"bad_place"}) 6354 14997 21351
Condition100%3/3
$redstring->{"random_place"} // $redstring->{"bad_place"}
l!l&&r!l&&!r
592043414997
MC/DC100%2/2
$redstring->{"random_place"} // $redstring->{"bad_place"}
$redstring->{"random_place"} $redstring->{"bad_place"}
Truth table100%3/3
A // B
A= $redstring->{"random_place"}B= $redstring->{"bad_place"}
ABresult
1X1
011
000
1060 my $bad = $redstring->{antagonist}{name}
1061 // $redstring->{protagonist}{name}
1062 // $redstring->{shady_group}{name}
1063 6354 ▶ // shady_group( $redstring );
Condition77%7/9
(($redstring->{"antagonist"}{"name"} // $redstring->{"protagonist"}{"name"}) // $redstring->{"shady_group"}{"name"}) // shady_group($redstring)
l!l&&r!l&&!r
491614380
($redstring->{"antagonist"}{"name"} // $redstring->{"protagonist"}{"name"}) // $redstring->{"shady_group"}{"name"}
l!l&&r!l&&!r
249141438
$redstring->{"antagonist"}{"name"} // $redstring->{"protagonist"}{"name"}
l!l&&r!l&&!r
206352
MC/DC0%0/4
(($redstring->{"antagonist"}{"name"} // $redstring->{"protagonist"}{"name"}) // $redstring->{"shady_group"}{"name"}) // shady_group($redstring)
$redstring->{"antagonist"}{"name"} $redstring->{"protagonist"}{"name"} $redstring->{"shady_group"}{"name"} shady_group($redstring)
Truth table60%3/5
A // B // C // D
A= $redstring->{"antagonist"}{"name"}B= $redstring->{"protagonist"}{"name"}C= $redstring->{"shady_group"}{"name"}D= shady_group($redstring)
ABCDresult
1XXX1
01XX1
001X1
00011
00000
1064 6354 push @x, (
1065 "the Wikipedia entry for $p keeps getting edited by $bad",
1066 # This has singular/plural problems - how to solve?
1067 "$bad has ties to $p",
1068 "$p probably isn't a real place anyway",
1069 );
1070 }
1071  
1072 21351 for my $actor ( qw/ protagonists antagonists / ) {
1073 42702 ▶ next unless $redstring->{$actor}{name};
Branch: 1 branch
BranchTrueFalseTotal
unless $redstring->{$actor}{"name"} 15076 27626 42702
1074
1075 27626 ▶ my $name = $redstring->{$actor}{shortname} // $redstring->{$actor}{name};
Condition66%2/3
$redstring->{$actor}{"shortname"} // $redstring->{$actor}{"name"}
l!l&&r!l&&!r
12057155690
MC/DC0%0/2
$redstring->{$actor}{"shortname"} // $redstring->{$actor}{"name"}
$redstring->{$actor}{"shortname"} $redstring->{$actor}{"name"}
Truth table66%2/3
A // B
A= $redstring->{$actor}{"shortname"}B= $redstring->{$actor}{"name"}
ABresult
1X1
011
000
1076 27626 ▶ my $have = splural( $redstring->{$actor} ) ? 'have' : 'has';
Branch: 1 branch
BranchTrueFalseTotal
splural($redstring->{$actor}) ? : 14001 13625 27626
1077 27626 ▶ my $are = splural( $redstring->{$actor} ) ? 'are' : 'is';
Branch: 1 branch
BranchTrueFalseTotal
splural($redstring->{$actor}) ? : 14001 13625 27626
1078 27626 ▶ my $s = splural( $redstring->{$actor} ) ? '' : 's';
Branch: 1 branch
BranchTrueFalseTotal
splural($redstring->{$actor}) ? : 14001 13625 27626
1079 27626 ▶ my $ies = splural( $redstring->{$actor} ) ? 'y' : 'ies';
Branch: 1 branch
BranchTrueFalseTotal
splural($redstring->{$actor}) ? : 14001 13625 27626
1080
1081 27626 ( my $fbname = $name ) =~ s/^the //i;
1082 27626 $fbname = _UCFIRST_ $fbname;
1083  
1084 27626 my $lies = lies();
1085
1086 27626 push @x, (
1087 "$name $have included it in their manifesto",
1088 "$name $have been strangely quiet about it",
1089 "$name $are always untrustworthy",
1090 "$name $are controlling everything",
1091 "if you Google for $name there's loads of info",
1092 "the '$fbname Truth' Facebook page says so",
1093 "the '$fbname Exposed' website says so",
1094 "$name even admit$s it",
1095 "$name den$ies it but that is $lies",
1096 );
1097
1098 27626 ▶ if ( my $animal = $redstring->{real_animal} // $redstring->{fake_animal} ) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $animal = $redstring->{"real_animal"} // $redstring->{"fake_animal"}) 1673 25953 27626
Condition100%3/3
$redstring->{"real_animal"} // $redstring->{"fake_animal"}
l!l&&r!l&&!r
144622725953
MC/DC100%2/2
$redstring->{"real_animal"} // $redstring->{"fake_animal"}
$redstring->{"real_animal"} $redstring->{"fake_animal"}
Truth table100%3/3
A // B
A= $redstring->{"real_animal"}B= $redstring->{"fake_animal"}
ABresult
1X1
011
000
1099 1673 push @x, "$name $have a picture of the $animal on their Wikipedia entry";
1100 }
1101
1102 27626 ▶ if ( my $place = $redstring->{random_place} ) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $place = $redstring->{"random_place"}) 6218 21408 27626
1103 6218 push @x, "$name $have a secret base in $place";
1104 }
1105
1106 27626 ▶ if ( my $topic = $redstring->{topic} ) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $topic = $redstring->{"topic"}) 8924 18702 27626
1107 8924 my $topicname = $topic->{name};
1108 8924 push @x, (
1109 8924 ▶ "$name ${( $redstring->{$actor}{plural} ? \'keep' : \'keeps' )} editing the Wikipedia page about $topicname",
Branch: 1 branch
BranchTrueFalseTotal
$redstring->{$actor}{'plural'} ? : 3860 5064 8924
1110 "$name $are known to have ties to $topicname",
1111 "'$name' is almost an anagram of '$topicname'",
1112 "'$name' is the Hebrew word for '$topicname'",
1113 "'$name' is an anagram of '$topicname' (if you spell it wrong)",
1114 );
1115 }
1116 }
1117  
1118 21351 my @evidences = List::Util::uniq( map { _RANDOM_(@x) } 1..2 );
1119
1120 21351 ▶ if ( @evidences == 2 ) {
Branch: 2 branches
BranchTrueFalseTotal
if (@evidences == 2) { } 20645 706 21351
elsif (@evidences == 1) { } 706 0 706
1121 20645 my ( $e1, $e2 ) = @evidences;
1122 return _RANDOM_(
1123 "You can tell this is the truth because $e1, and $e2.",
1124 ( ( "I know because $e1, and $e2." ) x 6 ),
1125 "You just need to connect the dots. " . _UCFIRST_( "$e1 and $e2." ),
1126 "I used to be asleep like you, but then I saw the clues. " . _UCFIRST_( "$e1, and $e2. WAKE UP!" ),
1127 "THEY HIDE THE TRUTH IN PLAIN SIGHT. " . _UCFIRST_( "$e1, and $e2." ),
1128 "You won't believe how deep the rabbit hole goes. " . _UCFIRST_( "$e1, and $e2." ),
1129 1364 ▶ sub { _UCFIRST_("$e1, and $e2. " . fatuous()) },
Subroutine __ANON__: called CC=1 SCAR=0.0
1130 sub {
1131 1335 ▶ my $e3 = uc _RANDOM_(@x);
Subroutine __ANON__: called CC=1 SCAR=0.0
1132 1335 my $fatuous = fatuous();
1133 1335 _UCFIRST_( "$e1, and $e2. $fatuous $e3!" );
1134 },
1135 sub {
1136 1382 ▶ my $e3 = uc _RANDOM_(@x);
Subroutine __ANON__: called CC=1 SCAR=0.0
1137 1382 _UCFIRST_( "$e1, and $e2. They leave clues to mock us! $e3! MOCK! MOCK!" );
1138 },
1139 sub {
1140 1350 ▶ my $t = {};
Subroutine __ANON__: called CC=1 SCAR=0.0
1141 1350 theory($t);
1142 1350 _UCFIRST_( "$e1, and $e2. Isn't it obvious? Also: " . $t->{base_theory} );
1143 },
1144 20645 );
1145 }
1146 elsif ( @evidences == 1 ) {
1147 706 my ( $e1 ) = @evidences;
1148 706 return _RANDOM_(
1149 "You can tell the truth because $e1.",
1150 _UCFIRST_("$e1 and that reveals the truth."),
1151 "The truth is obvious if you're not a sheep, $e1.",
1152 );
1153 }
1154
1155 0 return _RANDOM_(
1156 'The truth is plain to see.',
1157 "You're blind if you can't see the truth.",
1158 "The truth is obvious if you're not a sheep.",
1159 );
1160 }
1161  
1162 sub hidden_truth {
1163 9575 ▶ my $redstring = shift // {};
Subroutine hidden_truth: called CC=2 SCAR=6.9
Pod undocumented
Condition100%2/2
shift() // {}
l!l
9213362
MC/DC100%1/1
shift() // {}
shift()
Truth table100%2/2
A
A= shift()
Aresult
11
00
1164
1165 my $truth = _RANDOM_(
1166 sub { # wrap classics in a sub so they don't come up too often
1167 _RANDOM_(
1168 sub {
1169 9 ▶ $redstring->{topic} = { name => 'geology', plural => 0 };
Subroutine __ANON__: called CC=1 SCAR=0.0
1170 9 'the Earth is flat';
1171 },
1172 sub {
1173 6 ▶ $redstring->{topic} = { name => 'Inner Space (1987)', plural => 0 };
Subroutine __ANON__: called CC=1 SCAR=0.0
1174 6 'space is fake';
1175 },
1176 sub {
1177 7 ▶ $redstring->{topic} = { name => 'theology', plural => 0 };
Subroutine __ANON__: called CC=1 SCAR=0.0
1178 7 'God is real';
1179 },
1180 sub {
1181 6 ▶ $redstring->{topic} = { name => 'Buddhism', plural => 0 };
Subroutine __ANON__: called CC=1 SCAR=0.0
1182 6 'reincarnation is true';
1183 },
1184 sub {
1185 11 ▶ $redstring->{topic} = { name => 'germs', plural => 1 };
Subroutine __ANON__: called CC=1 SCAR=0.0
1186 11 "germs aren't real";
1187 },
1188 sub {
1189 6 ▶ $redstring->{topic} = { name => 'viruses', plural => 1 };
Subroutine __ANON__: called CC=1 SCAR=0.0
1190 6 "viruses aren't real";
1191 },
1192 sub {
1193 14 ▶ $redstring->{topic} = { name => 'MKUltra', plural => 0 };
Subroutine __ANON__: called CC=1 SCAR=0.0
1194 14 "MKUltra is still happening";
1195 },
1196 sub {
1197 9 ▶ shady_group( $redstring );
Subroutine __ANON__: called CC=2 SCAR=7.4
1198 9 ▶ $redstring->{antagonist} //= $redstring->{shady_group};
Condition33%1/3
$redstring->{"antagonist"} //= $redstring->{"shady_group"}
l!l&&r!l&&!r
090
MC/DC0%0/2
$redstring->{"antagonist"} //= $redstring->{"shady_group"}
$redstring->{"antagonist"} $redstring->{"shady_group"}
Truth table33%1/3
A //= B
A= $redstring->{"antagonist"}B= $redstring->{"shady_group"}
ABresult
1X1
011
000
1199 9 $redstring->{topic} = { name => 'avalanches', plural => 1 };
1200 9 $redstring->{antagonist}{name} . " was responsible for the Dyatlov Pass incident";
1201 },
1202 sub {
1203 3 ▶ $redstring->{topic} = { name => 'Jeffrey Epstein', plural => 0 };
Subroutine __ANON__: called CC=1 SCAR=0.0
1204 3 "Epstein didn't kill himself";
1205 },
1206 sub {
1207 9 ▶ $redstring->{topic} = { name => "Sgt Pepper's Lonely Hearts Club Band", plural => 0 };
Subroutine __ANON__: called CC=1 SCAR=0.0
1208 9 "Paul McCartney died in a car crash in 1966";
1209 },
1210 sub {
1211 8 ▶ $redstring->{topic} = { name => 'Stonehenge', plural => 0 };
Subroutine __ANON__: called CC=2 SCAR=6.9
1212 8 ▶ $redstring->{random_place} //= 'Somerset';
Condition100%2/2
$redstring->{"random_place"} //= "Somerset"
l!l
17
MC/DC100%1/1
$redstring->{"random_place"} //= "Somerset"
$redstring->{"random_place"}
Truth table100%2/2
A
A= $redstring->{"random_place"}
Aresult
11
00
1213 8 "the aliens built Stonehenge";
1214 },
1215 sub {
1216 11 ▶ $redstring->{topic} = { name => 'the Sphinx', plural => 0 };
Subroutine __ANON__: called CC=2 SCAR=6.9
1217 11 ▶ $redstring->{random_place} //= 'Egypt';
Condition100%2/2
$redstring->{"random_place"} //= "Egypt"
l!l
110
MC/DC100%1/1
$redstring->{"random_place"} //= "Egypt"
$redstring->{"random_place"}
Truth table100%2/2
A
A= $redstring->{"random_place"}
Aresult
11
00
1218 11 "the aliens built the Pyramids";
1219 },
1220 sub {
1221 12 ▶ $redstring->{topic} = { name => 'Loch Ness', plural => 0 };
Subroutine __ANON__: called CC=2 SCAR=6.9
1222 12 ▶ $redstring->{random_place} //= 'Scotland';
Condition100%2/2
$redstring->{"random_place"} //= "Scotland"
l!l
210
MC/DC100%1/1
$redstring->{"random_place"} //= "Scotland"
$redstring->{"random_place"}
Truth table100%2/2
A
A= $redstring->{"random_place"}
Aresult
11
00
1223 12 "the Loch Ness monster is real";
1224 },
1225 sub {
1226 9 ▶ $redstring->{topic} = { name => 'grain farming', plural => 0 };
Subroutine __ANON__: called CC=2 SCAR=7.1
1227 9 ▶ $redstring->{random_place} //= 'Alabama';
Condition50%1/2
$redstring->{"random_place"} //= "Alabama"
l!l
09
MC/DC0%0/1
$redstring->{"random_place"} //= "Alabama"
$redstring->{"random_place"}
Truth table50%1/2
A
A= $redstring->{"random_place"}
Aresult
11
00
1228 9 "crop circles are caused by aliens";
1229 },
1230 sub {
1231 12 ▶ $redstring->{topic} = { name => 'kidnapping', plural => 0 };
Subroutine __ANON__: called CC=2 SCAR=6.9
1232 12 ▶ $redstring->{random_place} //= 'Alabama';
Condition100%2/2
$redstring->{"random_place"} //= "Alabama"
l!l
210
MC/DC100%1/1
$redstring->{"random_place"} //= "Alabama"
$redstring->{"random_place"}
Truth table100%2/2
A
A= $redstring->{"random_place"}
Aresult
11
00
1233 12 "aliens abduct people for probing";
1234 },
1235 sub {
1236 12 ▶ $redstring->{topic} = { name => 'CERN', plural => 0 };
Subroutine __ANON__: called CC=2 SCAR=6.9
1237 12 ▶ $redstring->{random_place} //= 'Switzerland';
Condition100%2/2
$redstring->{"random_place"} //= "Switzerland"
l!l
57
MC/DC100%1/1
$redstring->{"random_place"} //= "Switzerland"
$redstring->{"random_place"}
Truth table100%2/2
A
A= $redstring->{"random_place"}
Aresult
11
00
1238 12 "the large hadron collider will destroy the planet";
1239 },
1240 sub {
1241 7 ▶ $redstring->{topic} = { name => 'steal beams', plural => 1 };
Subroutine __ANON__: called CC=2 SCAR=6.9
1242 7 ▶ $redstring->{random_place} //= 'New York';
Condition100%2/2
$redstring->{"random_place"} //= "New York"
l!l
16
MC/DC100%1/1
$redstring->{"random_place"} //= "New York"
$redstring->{"random_place"}
Truth table100%2/2
A
A= $redstring->{"random_place"}
Aresult
11
00
1243 7 "9/11 was an inside job";
1244 },
1245 sub {
1246 10 ▶ my $badevent = _RANDOM_(
Subroutine __ANON__: called CC=1 SCAR=0.0
1247 'Columbine',
1248 'Sandy Hook',
1249 'the Boston Marathon Bombing',
1250 'Malaysia Airlines Flight 370',
1251 'the JFK assassination',
1252 'Project Monarch',
1253 'the 1993 WTC bombing',
1254 'the 2017 hurricane season (Project Geostorm)',
1255 'Deepwater Horizon',
1256 );
1257 10 $redstring->{topic} = { name => 'false flag operations', plural => 1 };
1258 10 "$badevent was orchestrated by the US government";
1259 },
1260 sub {
1261 8 ▶ $redstring->{topic} = { name => 'glaciers', plural => 1 };
Subroutine __ANON__: called CC=2 SCAR=6.9
1262 8 ▶ $redstring->{random_place} //= 'Greenland';
Condition100%2/2
$redstring->{"random_place"} //= "Greenland"
l!l
26
MC/DC100%1/1
$redstring->{"random_place"} //= "Greenland"
$redstring->{"random_place"}
Truth table100%2/2
A
A= $redstring->{"random_place"}
Aresult
11
00
1263 8 "global warming is a hoax";
1264 },
1265 sub {
1266 5 ▶ $redstring->{topic} = { name => 'geology', plural => 0 };
Subroutine __ANON__: called CC=1 SCAR=0.0
1267 5 'the US government knows exactly when Yellowstone will erupt';
1268 },
1269 sub {
1270 10 ▶ $redstring->{topic} = { name => 'cloud seeding', plural => 0 };
Subroutine __ANON__: called CC=1 SCAR=0.0
1271 10 "the government controls the weather";
1272 },
1273 sub {
1274 8 ▶ $redstring->{topic} = { name => 'Snapple', plural => 0 };
Subroutine __ANON__: called CC=1 SCAR=0.0
1275 8 "Snapple is owned by the KKK";
1276 },
1277 sub {
1278 9 ▶ my $disease = disease( $redstring );
Subroutine __ANON__: called CC=1 SCAR=0.0
1279 9 $redstring->{topic} = { name => 'biological warfare', plural => 0 };
1280 9 "$disease was developed as a bioweapon";
1281 },
1282 sub {
1283 8 ▶ $redstring->{topic} = { name => 'gas chambers', plural => 1 };
Subroutine __ANON__: called CC=2 SCAR=6.9
1284 8 ▶ $redstring->{random_place} //= 'Germany';
Condition100%2/2
$redstring->{"random_place"} //= "Germany"
l!l
26
MC/DC100%1/1
$redstring->{"random_place"} //= "Germany"
$redstring->{"random_place"}
Truth table100%2/2
A
A= $redstring->{"random_place"}
Aresult
11
00
1285 8 "the holocaust never happened";
1286 },
1287 sub {
1288 12 ▶ $redstring->{topic} = { name => 'fascism', plural => 0 };
Subroutine __ANON__: called CC=2 SCAR=6.9
1289 12 ▶ $redstring->{random_place} //= 'Australia';
Condition100%2/2
$redstring->{"random_place"} //= "Australia"
l!l
210
MC/DC100%1/1
$redstring->{"random_place"} //= "Australia"
$redstring->{"random_place"}
Truth table100%2/2
A
A= $redstring->{"random_place"}
Aresult
11
00
1290 12 "Antifa International have been starting wildfires";
1291 },
1292 sub {
1293 4 ▶ $redstring->{topic} = { name => 'phantom time', plural => 0 };
Subroutine __ANON__: called CC=1 SCAR=0.0
1294 4 "the years between 614 and 911 never happened";
1295 },
1296 sub {
1297 7 ▶ $redstring->{topic} = { name => 'Nazis', plural => 1 };
Subroutine __ANON__: called CC=1 SCAR=0.0
1298 7 "there is a Nazi base on the moon";
1299 },
1300 sub {
1301 13 ▶ $redstring->{topic} = { name => 'Nazis', plural => 1 };
Subroutine __ANON__: called CC=1 SCAR=0.0
1302 13 "there is a Nazi base in Antarctica";
1303 },
1304 sub {
1305 7 ▶ $redstring->{topic} = { name => 'wrestling', plural => 0 };
Subroutine __ANON__: called CC=1 SCAR=0.0
1306 7 "all professional sports are scripted";
1307 },
1308 sub {
1309 5 ▶ my $website = website( $redstring );
Subroutine __ANON__: called CC=1 SCAR=0.0
1310 my $spies = _RANDOM_(
1311 'spies',
1312 'the CIA',
1313 'GCHQ',
1314 'the NSA',
1315 'the Kremlin',
1316 'Ipsos MORI',
1317 sub {
1318 1 ▶ my $g = shady_group( $redstring );
Subroutine __ANON__: called CC=2 SCAR=7.2
1319 1 ▶ $redstring->{shady_group}{plural} ? $g : "spies from $g";
Branch: 1 branch
BranchTrueFalseTotal
$redstring->{'shady_group'}{'plural'} ? : 1 0 1
1320 }
1321 5 );
1322 5 $redstring->{topic} = { name => 'biscuits', plural => 1 };
1323 5 "$spies are using cookies to see everything you look at on $website";
1324 },
1325 257 ▶ );
Subroutine __ANON__: called CC=1 SCAR=0.0
1326 },
1327 sub {
1328 227 ▶ $redstring->{topic} = { name => 'the Mandela effect', plural => 0 };
Subroutine __ANON__: called CC=1 SCAR=0.0
1329 227 _RANDOM_(
1330 'Looney Tunes used to be Looney Toons',
1331 'the Berenstain Bears used to be spelled Berenstein',
1332 'Curious George used to have a tail',
1333 'Febreze used to have another E in it',
1334 'Froot Loops used to be Fruit Loops',
1335 'the Monopoly man is supposed to have a monocle',
1336 'Kitkat used to have a hyphen',
1337 'the Mona Lisa used to smile more',
1338 'C-3PO never used to have a silver leg',
1339 'Darth Vader said Luke I Am Your Father',
1340 'We Are the Champions used to say "of the world" at the end',
1341 'the USA used to have 52 states',
1342 );
1343 },
1344 sub {
1345 259 ▶ $redstring->{topic} = { name => 'the crusades', plural => 1 };
Subroutine __ANON__: called CC=1 SCAR=0.0
1346 259 my $subst = _RANDOM_(
1347 'TikTok',
1348 'Twitter',
1349 'the world wars',
1350 'intergalactic warfare',
1351 'the white genocide',
1352 'colonization',
1353 'robot wars',
1354 );
1355 259 "the crusades never stopped, they were just replaced with $subst";
1356 },
1357 sub {
1358 243 ▶ my $cryptids = cryptids( $redstring );
Subroutine __ANON__: called CC=1 SCAR=0.0
1359 243 "$cryptids are real";
1360 },
1361 sub {
1362 247 ▶ my $cause = disease_cause( $redstring );
Subroutine __ANON__: called CC=1 SCAR=0.0
1363 247 my $disease = disease( $redstring );
1364 247 $redstring->{topic} = { name => 'western medicine', plural => 0 };
1365 247 "$cause causes $disease";
1366 },
1367 sub {
1368 234 ▶ my $cryptids = cryptids( $redstring );
Subroutine __ANON__: called CC=1 SCAR=0.0
1369 234 my $group = shady_group( $redstring );
1370 234 "$group are $cryptids";
1371 },
1372 sub {
1373 270 ▶ my $objects = objects( $redstring );
Subroutine __ANON__: called CC=1 SCAR=0.0
1374 270 "$objects are sentient";
1375 },
1376 sub {
1377 223 ▶ my $celebrity = celebrity( $redstring );
Subroutine __ANON__: called CC=1 SCAR=0.0
1378 223 my $long_time = a_long_time( $redstring );
1379 223 "$celebrity has been drinking the blood of infants $long_time to stay looking young";
1380 },
1381 sub {
1382 290 ▶ my $celebrity = celebrity( $redstring );
Subroutine __ANON__: called CC=1 SCAR=0.0
1383 290 $redstring->{topic} = { name => 'cross-dressing', plural => 0 };
1384 290 $redstring->{celebrity}{female} = ! $redstring->{celebrity}{female};
1385 290 "$celebrity is transsexual";
1386 },
1387 sub {
1388 266 ▶ my $celebrity = celebrity( $redstring );
Subroutine __ANON__: called CC=1 SCAR=0.0
1389 my $consequence = _RANDOM_(
1390 sub {
1391 81 ▶ $redstring->{topic} = { name => 'robotics', plural => 0 };
Subroutine __ANON__: called CC=1 SCAR=0.0
1392 81 'replaced by a robot';
1393 },
1394 sub {
1395 96 ▶ $redstring->{topic} = { name => 'impersonation', plural => 0 };
Subroutine __ANON__: called CC=1 SCAR=0.0
1396 96 'replaced by a look-alike';
1397 },
1398 sub {
1399 89 ▶ $redstring->{topic} = { name => 'blackmail', plural => 0 };
Subroutine __ANON__: called CC=1 SCAR=0.0
1400 89 'blackmailed into silence';
1401 },
1402 266 );
1403 266 "$celebrity has been $consequence";
1404 },
1405 sub {
1406 228 ▶ my $objects = objects( $redstring );
Subroutine __ANON__: called CC=1 SCAR=0.0
1407 228 my $group = shady_group( $redstring );
1408 228 "$objects were invented by $group";
1409 },
1410 sub {
1411 260 ▶ my $resource = precious_resource( $redstring );
Subroutine __ANON__: called CC=1 SCAR=0.0
1412 260 "$resource is a source of free energy";
1413 },
1414 sub {
1415 258 ▶ my $mythplace = myth_place( $redstring );
Subroutine __ANON__: called CC=1 SCAR=0.0
1416 258 my $place = random_place( $redstring );
1417 258 "$mythplace is in $place";
1418 },
1419 sub {
1420 252 ▶ my $victim = victim( $redstring );
Subroutine __ANON__: called CC=1 SCAR=0.0
1421 252 my $mythplace = myth_place( $redstring );
1422 252 "$victim discovered $mythplace and was killed to keep it a secret";
1423 },
1424 sub {
1425 229 ▶ my $resource = precious_resource( $redstring );
Subroutine __ANON__: called CC=1 SCAR=0.0
1426 229 my $disease = disease( $redstring );
1427 229 "$resource can cure $disease";
1428 },
1429 sub {
1430 243 ▶ my $animal = real_animal( $redstring );
Subroutine __ANON__: called CC=1 SCAR=0.0
1431 243 my $group = shady_group( $redstring );
1432 243 "the $animal is a fake animal, engineered by $group";
1433 },
1434 sub {
1435 250 ▶ my $chemicals = chemicals( $redstring );
Subroutine __ANON__: called CC=2 SCAR=6.9
1436 250 my $animal = real_animal( $redstring );
1437 250 ▶ my $s = ($animal ne 'fish') ? 's' : '';
Branch: 1 branch
BranchTrueFalseTotal
$animal ne 'fish' ? : 218 32 250
1438 250 my $attribute = attribute( $redstring );
1439 250 "the $chemicals in the water is turning the $animal$s $attribute";
1440 },
1441 sub {
1442 244 ▶ my $chemicals = chemicals( $redstring );
Subroutine __ANON__: called CC=1 SCAR=0.0
1443 244 my $food = food( $redstring );
1444 244 "$food are full of $chemicals";
1445 },
1446 sub {
1447 265 ▶ my $animal = real_animal( $redstring );
Subroutine __ANON__: called CC=1 SCAR=0.0
1448 265 "the $animal originally comes from another planet";
1449 },
1450 sub {
1451 256 ▶ my $animal = real_animal( $redstring );
Subroutine __ANON__: called CC=1 SCAR=0.0
1452 256 my $group = shady_group( $redstring );
1453 256 my $stupid = _RANDOM_(
1454 'people in costumes',
1455 'animatronics',
1456 'CGI',
1457 'highly coordinated swarms of bees',
1458 'holograms',
1459 'a mirage',
1460 );
1461 256 "the $animal is a fake animal and is just $stupid";
1462 },
1463 sub {
1464 252 ▶ my $animal = fake_animal( $redstring );
Subroutine __ANON__: called CC=1 SCAR=0.0
1465 252 "the $animal is a real animal";
1466 },
1467 sub {
1468 242 ▶ my $time = future_time( $redstring );
Subroutine __ANON__: called CC=1 SCAR=0.0
1469 242 "the world will end $time";
1470 },
1471 sub {
1472 272 ▶ my $time = future_time( $redstring );
Subroutine __ANON__: called CC=1 SCAR=0.0
1473 272 $redstring->{topic} = { name => 'comets', plural => 1 };
1474 272 "the comet will hit us $time";
1475 },
1476 sub {
1477 231 ▶ my $place = random_place( $redstring );
Subroutine __ANON__: called CC=1 SCAR=0.0
1478 231 $redstring->{topic} = { name => 'flooding', plural => 1 };
1479 231 "$place was destroyed by floods";
1480 },
1481 sub {
1482 274 ▶ my $place = random_place( $redstring );
Subroutine __ANON__: called CC=2 SCAR=7.0
1483 274 ▶ my $group = $redstring->{shady_group}{name} // shady_group( $redstring );
Condition66%2/3
$redstring->{"shady_group"}{"name"} // shady_group($redstring)
l!l&&r!l&&!r
742000
MC/DC0%0/2
$redstring->{"shady_group"}{"name"} // shady_group($redstring)
$redstring->{"shady_group"}{"name"} shady_group($redstring)
Truth table66%2/3
A // B
A= $redstring->{"shady_group"}{"name"}B= shady_group($redstring)
ABresult
1X1
011
000
1484 274 $redstring->{topic} = { name => 'coup d\'etats', plural => 1 };
1485 274 "$place is ruled by $group";
1486 },
1487 sub {
1488 261 ▶ my $time = future_time( $redstring );
Subroutine __ANON__: called CC=1 SCAR=0.0
1489 261 $redstring->{topic} = { name => 'zombies', plural => 1 };
1490 261 "the zombie apocalypse will start $time";
1491 },
1492 sub {
1493 243 ▶ my $time = future_time( $redstring );
Subroutine __ANON__: called CC=1 SCAR=0.0
1494 243 $redstring->{topic} = { name => 'Jesus', plural => 0 };
1495 243 "Jesus will return $time";
1496 },
1497 sub {
1498 257 ▶ my $mc = mind_control_device( $redstring );
Subroutine __ANON__: called CC=2 SCAR=7.0
1499 257 ▶ my $group = $redstring->{shady_group}{name} // shady_group( $redstring );
Condition66%2/3
$redstring->{"shady_group"}{"name"} // shady_group($redstring)
l!l&&r!l&&!r
881690
MC/DC0%0/2
$redstring->{"shady_group"}{"name"} // shady_group($redstring)
$redstring->{"shady_group"}{"name"} shady_group($redstring)
Truth table66%2/3
A // B
A= $redstring->{"shady_group"}{"name"}B= shady_group($redstring)
ABresult
1X1
011
000
1500 257 "THEY ($group) are using $mc";
1501 },
1502 sub {
1503 260 ▶ my $victim = victim( $redstring );
Subroutine __ANON__: called CC=1 SCAR=0.0
1504 260 my $place = bad_place( $redstring );
1505 260 "$victim is alive and kept at $place";
1506 },
1507 sub {
1508 259 ▶ my $artifact = artifact( $redstring );
Subroutine __ANON__: called CC=1 SCAR=0.0
1509 259 my $p = random_place( $redstring );
1510 259 "$artifact is in $p";
1511 },
1512 sub {
1513 251 ▶ my $victim = victim( $redstring );
Subroutine __ANON__: called CC=1 SCAR=0.0
1514 251 $redstring->{topic} = { name => 'the antichrist', plural => 0 };
1515 251 "$victim was the antichrist";
1516 },
1517 sub {
1518 273 ▶ my $victim = victim( $redstring );
Subroutine __ANON__: called CC=1 SCAR=0.0
1519 273 "$victim was a time-traveller";
1520 },
1521 sub {
1522 260 ▶ my $victim = victim( $redstring );
Subroutine __ANON__: called CC=1 SCAR=0.0
1523 260 "$victim was an inter-dimensional being";
1524 },
1525 sub {
1526 244 ▶ my $chem = chemicals( $redstring );
Subroutine __ANON__: called CC=1 SCAR=0.0
1527 244 my $stupid = _RANDOM_(
1528 'water mixed with food-colouring',
1529 'water that they put in the microwave',
1530 'water that came from a goat\'s insides',
1531 'water that they used magic on',
1532 'made of fairy dust',
1533 'melted potato starch',
1534 );
1535 244 "$chem is really just $stupid";
1536 },
1537 sub {
1538 257 ▶ my $fiction = fiction( $redstring );
Subroutine __ANON__: called CC=1 SCAR=0.0
1539 257 "$fiction is historically accurate";
1540 },
1541 sub {
1542 248 ▶ my $fiction = fiction( $redstring );
Subroutine __ANON__: called CC=2 SCAR=7.0
1543 248 ▶ my $victim = $redstring->{victim} // victim( $redstring );
Condition66%2/3
$redstring->{"victim"} // victim($redstring)
l!l&&r!l&&!r
392090
MC/DC0%0/2
$redstring->{"victim"} // victim($redstring)
$redstring->{"victim"} victim($redstring)
Truth table66%2/3
A // B
A= $redstring->{"victim"}B= victim($redstring)
ABresult
1X1
011
000
1544 248 "$fiction was really written by $victim";
1545 },
1546 sub {
1547 241 ▶ my $p = random_place( $redstring );
Subroutine __ANON__: called CC=2 SCAR=7.4
1548 241 my $extinct = _RANDOM_(
1549 'dinosaur',
1550 'mammoth',
1551 'sabre-tooth tiger',
1552 'Tasmanian tiger',
1553 'pterodactyl',
1554 );
1555 241 ▶ $redstring->{real_animal} //= $extinct;
Condition33%1/3
$redstring->{"real_animal"} //= $extinct
l!l&&r!l&&!r
02410
MC/DC0%0/2
$redstring->{"real_animal"} //= $extinct
$redstring->{"real_animal"} $extinct
Truth table33%1/3
A //= B
A= $redstring->{"real_animal"}B= $extinct
ABresult
1X1
011
000
1556 241 "the $extinct is not extinct and there is a colony in $p";
1557 },
1558 sub {
1559 249 ▶ my $group = shady_group( $redstring );
Subroutine __ANON__: called CC=3 SCAR=11.0
1560 249 my $invention = invention( $redstring );
1561 249 ▶ my $are = $redstring->{shady_group}{plural} ? 'are' : 'is';
Branch: 1 branch
BranchTrueFalseTotal
$redstring->{'shady_group'}{'plural'} ? : 108 141 249
1562 249 ▶ my $was = $redstring->{invention_plural} ? 'were' : 'was';
Branch: 1 branch
BranchTrueFalseTotal
$redstring->{'invention_plural'} ? : 128 121 249
1563 249 my $invented = _RANDOM_(
1564 'invented',
1565 'cooked up',
1566 'fabricated',
1567 );
1568 249 _RANDOM_(
1569 "$group $are behind $invention",
1570 "$group $invented $invention",
1571 "$invention $was $invented by $group",
1572 );
1573 },
1574 9575 );
1575
1576 9575 _MERGE_( $redstring, hidden_truth => $truth );
1577 9575 return $truth;
1578 }
1579  
1580 sub theory {
1581 21351 ▶ my $redstring = shift // {};
Subroutine theory: called CC=9 SCAR=22.0
Pod undocumented
Condition100%2/2
shift() // {}
l!l
135020001
MC/DC100%1/1
shift() // {}
shift()
Truth table100%2/2
A
A= shift()
Aresult
11
00
1582
1583 my $theory = _RANDOM_(
1584 sub {
1585 1478 ▶ my $group = shady_group( $redstring );
Subroutine __ANON__: called CC=2 SCAR=6.9
1586 1478 $redstring->{protagonists} = $redstring->{shady_group};
1587 1478 ▶ my $is = $redstring->{protagonists}->{plural} ? 'are' : 'is';
Branch: 1 branch
BranchTrueFalseTotal
$redstring->{'protagonists'}{'plural'} ? : 632 846 1478
1588
1589 1478 my $misinfo = misinformation( $redstring );
1590
1591 1478 my $truth = hidden_truth( $redstring );
1592
1593 1478 my $exclaim = _RANDOM_(
1594 '', '', '', '', '', '',
1595 " But the truth shall not be buried!",
1596 " Don't let yourself be deceived!",
1597 " Take the red pill!",
1598 " Believing $misinfo is taking the blue pill!",
1599 " Take the red pill - $truth!",
1600 " Believing $misinfo is for blue-pilled sheeple!",
1601 " Open your mind!",
1602 );
1603
1604 1478 _UCFIRST_ "$group $is spreading the lie that $misinfo to distract the public from the truth that $truth.$exclaim";
1605 },
1606 sub {
1607 1483 ▶ my $protagonists = shady_group( $redstring );
Subroutine __ANON__: called CC=1 SCAR=0.0
1608 1483 $redstring->{protagonists} = $redstring->{shady_group};
1609
1610 1483 my $antagonists = shady_group( $redstring );
1611 1483 $redstring->{antagonists} = $redstring->{shady_group};
1612
1613 1483 my $time = a_long_time( $redstring );
1614
1615 my $war_reason = _RANDOM_(
1616 'Nobody knows why',
1617 'The reasons for this have been long forgotten',
1618 sub {
1619 my $consequence = _RANDOM_(
1620 'disappears',
1621 'is assassinated',
1622 sub {
1623 75 ▶ my $badplace = bad_place( $redstring );
Subroutine __ANON__: called CC=1 SCAR=0.0
1624 75 "is taken away to $badplace";
1625 },
1626 sub {
1627 66 ▶ my $badplace = bad_place( $redstring );
Subroutine __ANON__: called CC=1 SCAR=0.0
1628 66 "has their mind wiped at $badplace";
1629 },
1630 381 ▶ 'is given a blue pill',
Subroutine __ANON__: called CC=1 SCAR=0.0
1631 );
1632 381 "Everybody who finds out why $consequence";
1633 },
1634 sub {
1635 362 ▶ my $truth = hidden_truth();
Subroutine __ANON__: called CC=4 SCAR=14.0
1636 362 ▶ my $pro = $redstring->{protagonists}{shortname} // $protagonists;
Condition66%2/3
$redstring->{"protagonists"}{"shortname"} // $protagonists
l!l&&r!l&&!r
1532090
MC/DC0%0/2
$redstring->{"protagonists"}{"shortname"} // $protagonists
$redstring->{"protagonists"}{"shortname"} $protagonists
Truth table66%2/3
A // B
A= $redstring->{"protagonists"}{"shortname"}B= $protagonists
ABresult
1X1
011
000
1637 362 ▶ my $ant = $redstring->{antagonists}{shortname} // $antagonists;
Condition66%2/3
$redstring->{"antagonists"}{"shortname"} // $antagonists
l!l&&r!l&&!r
1612010
MC/DC0%0/2
$redstring->{"antagonists"}{"shortname"} // $antagonists
$redstring->{"antagonists"}{"shortname"} $antagonists
Truth table66%2/3
A // B
A= $redstring->{"antagonists"}{"shortname"}B= $antagonists
ABresult
1X1
011
000
1638 362 ▶ my $want = splural( $redstring->{protagonists} ) ? 'want' : 'wants';
Branch: 1 branch
BranchTrueFalseTotal
splural($redstring->{'protagonists'}) ? : 176 186 362
1639 362 _UCFIRST_ "$pro $want to expose the truth that $truth and $ant will do whatever they can to stop them";
1640 },
1641 1483 );
1642
1643 1483 _UCFIRST_ "$protagonists and $antagonists have been in a secret war with each other $time. $war_reason."
1644 },
1645 sub {
1646 1496 ▶ my $group = shady_group( $redstring );
Subroutine __ANON__: called CC=1 SCAR=0.0
1647 1496 $redstring->{protagonists} = $redstring->{shady_group};
1648
1649 1496 my $victim = victim( $redstring );
1650
1651 1496 my $truth = hidden_truth( $redstring );
1652
1653 my $explanation = _UCFIRST_ _RANDOM_(
1654 sub {
1655 250 ▶ my $group2 = shady_group( $redstring );
Subroutine __ANON__: called CC=1 SCAR=0.0
1656 250 $redstring->{antagonists} = $redstring->{shady_group};
1657
1658 250 "$victim learnt the truth from $group2";
1659 },
1660 1496 "Nobody knows how $victim found out",
1661 "$victim found out because they were the source of all knowledge",
1662 "$victim found out using time travel",
1663 "$victim found out using mind reading",
1664 "$victim took the red pill",
1665 );
1666
1667 1496 _UCFIRST_ "$group killed $victim to hide the truth that $truth. $explanation.";
1668 },
1669 sub {
1670 1579 ▶ my $truth = hidden_truth( $redstring );
Subroutine __ANON__: called CC=1 SCAR=0.0
1671
1672 my $sheeple = _RANDOM_(
1673 'people are sheeple',
1674 'they refuse to see the truth',
1675 'the mass media refuse to report it',
1676 sub {
1677 263 ▶ my $group = shady_group( $redstring );
Subroutine __ANON__: called CC=2 SCAR=6.9
1678 263 $redstring->{protagonists} = $redstring->{shady_group};
1679 263 ▶ my $is = $redstring->{protagonists}->{plural} ? 'are' : 'is';
Branch: 1 branch
BranchTrueFalseTotal
$redstring->{'protagonists'}{'plural'} ? : 122 141 263
1680 263 my $mc = mind_control_device( $redstring );
1681 263 "$group $is controlling people's minds with $mc";
1682 },
1683 sub {
1684 271 ▶ my $group = shady_group( $redstring );
Subroutine __ANON__: called CC=2 SCAR=6.9
1685 271 $redstring->{protagonists} = $redstring->{shady_group};
1686 271 ▶ my $have = $redstring->{protagonists}->{plural} ? 'have' : 'has';
Branch: 1 branch
BranchTrueFalseTotal
$redstring->{'protagonists'}{'plural'} ? : 116 155 271
1687 271 my $long_time = a_long_time( $redstring );
1688 271 "$group $have been hiding it $long_time";
1689 },
1690 sub {
1691 229 ▶ my $group = shady_group( $redstring );
Subroutine __ANON__: called CC=2 SCAR=6.9
1692 229 $redstring->{protagonists} = $redstring->{shady_group};
1693 229 ▶ my $is = $redstring->{protagonists}->{plural} ? 'are' : 'is';
Branch: 1 branch
BranchTrueFalseTotal
$redstring->{'protagonists'}{'plural'} ? : 96 133 229
1694 229 my $medium = _RANDOM_(
1695 'the Internet',
1696 'Twitter',
1697 'Facebook',
1698 'Instagram',
1699 'the mass media',
1700 'the TV news',
1701 'Tiktok',
1702 'both Tiktok and Instagram',
1703 );
1704 229 "$group $is censoring $medium";
1705 },
1706 1579 );
1707
1708 1579 _UCFIRST_ _RANDOM_(
1709 "$truth but nobody knows because $sheeple.",
1710 "$truth but nobody believes me because $sheeple.",
1711 "$truth but everybody ignores it because $sheeple.",
1712 "$truth but people are blind because $sheeple.",
1713 );
1714 },
1715 sub {
1716 1553 ▶ my $fiction = fiction( $redstring );
Subroutine __ANON__: called CC=1 SCAR=0.0
1717 1553 my $truth = hidden_truth( $redstring );
1718
1719 _UCFIRST_ _RANDOM_(
1720 "$fiction has a hidden message that $truth.",
1721 "$fiction is just an allegory which shows that $truth.",
1722 sub {
1723 530 ▶ my $group = shady_group( $redstring );
Subroutine __ANON__: called CC=2 SCAR=7.0
1724 530 ▶ $redstring->{protagonists} //= $redstring->{shady_group};
Condition66%2/3
$redstring->{"protagonists"} //= $redstring->{"shady_group"}
l!l&&r!l&&!r
105200
MC/DC0%0/2
$redstring->{"protagonists"} //= $redstring->{"shady_group"}
$redstring->{"protagonists"} $redstring->{"shady_group"}
Truth table66%2/3
A //= B
A= $redstring->{"protagonists"}B= $redstring->{"shady_group"}
ABresult
1X1
011
000
1725 530 "$fiction was analysed with a computer by $group and it revealed $truth.",
1726 },
1727 1553 );
1728 },
1729 sub {
1730 1543 ▶ my $group = shady_group( $redstring );
Subroutine __ANON__: called CC=2 SCAR=7.0
1731 1543 $redstring->{protagonists} = $redstring->{shady_group};
1732 1543 ▶ my $are = $redstring->{protagonists}->{plural} ? 'are' : 'is';
Branch: 1 branch
BranchTrueFalseTotal
$redstring->{'protagonists'}{'plural'} ? : 663 880 1543
1733
1734 1543 my $place = random_place( $redstring );
1735 1543 my $darklord = dark_lord( $redstring );
1736
1737 my $getting_kids = _RANDOM_(
1738 'abducting orphan children',
1739 'buying child slaves',
1740 'cloning babies',
1741 'growing babies in test tubes',
1742 'breeding babies',
1743 'buying kids from poor families',
1744 'stealing babies',
1745 sub {
1746 167 ▶ $redstring->{topic} //= { name => 'adoption', plural => 0 };
Subroutine __ANON__: called CC=2 SCAR=7.2
Condition50%1/2
$redstring->{"topic"} //= {"name", "adoption", "plural", 0}
l!l
0167
MC/DC0%0/1
$redstring->{"topic"} //= {"name", "adoption", "plural", 0}
$redstring->{"topic"}
Truth table50%1/2
A
A= $redstring->{"topic"}
Aresult
11
00
1747 167 'adopting babies';
1748 },
1749 sub {
1750 175 ▶ $redstring->{topic} //= { name => 'adoption', plural => 0 };
Subroutine __ANON__: called CC=2 SCAR=7.2
Condition50%1/2
$redstring->{"topic"} //= {"name", "adoption", "plural", 0}
l!l
0175
MC/DC0%0/1
$redstring->{"topic"} //= {"name", "adoption", "plural", 0}
$redstring->{"topic"}
Truth table50%1/2
A
A= $redstring->{"topic"}
Aresult
11
00
1751 175 'adopting kids';
1752 },
1753 1543 );
1754
1755 1543 my $sacrifice = _RANDOM_(
1756 'sacrifice them',
1757 'ritually sacrifice them',
1758 'offer them',
1759 'offer them as a blood sacrifice',
1760 'offer them as brides',
1761 'offer them as sex slaves',
1762 'feed them',
1763 'sell them',
1764 'mass sacrifice them',
1765 );
1766
1767 1543 _UCFIRST_ "$group $are $getting_kids in $place to $sacrifice to $darklord.";
1768 },
1769 sub {
1770 1506 ▶ my $group = shady_group( $redstring );
Subroutine __ANON__: called CC=3 SCAR=11.0
1771 1506 $redstring->{protagonists} = $redstring->{shady_group};
1772 1506 ▶ my $have = $redstring->{protagonists}->{plural} ? 'have' : 'has';
Branch: 1 branch
BranchTrueFalseTotal
$redstring->{'protagonists'}{'plural'} ? : 657 849 1506
1773 1506 ▶ my $are = $redstring->{protagonists}->{plural} ? 'are' : 'is';
Branch: 1 branch
BranchTrueFalseTotal
$redstring->{'protagonists'}{'plural'} ? : 657 849 1506
1774
1775 1506 my $resource = precious_resource_with_quantity( $redstring );
1776
1777 1506 _UCFIRST_ _RANDOM_(
1778 "$group $have $resource.",
1779 "$group $are trying to obtain $resource.",
1780 "$group $are in possession of $resource.",
1781 "$group $have taken a delivery of $resource.",
1782 );
1783 },
1784 sub {
1785 1478 ▶ my $group = shady_group( $redstring );
Subroutine __ANON__: called CC=2 SCAR=6.9
1786 1478 $redstring->{protagonists} = $redstring->{shady_group};
1787 1478 ▶ my $are = $redstring->{protagonists}->{plural} ? 'are' : 'is';
Branch: 1 branch
BranchTrueFalseTotal
$redstring->{'protagonists'}{'plural'} ? : 650 828 1478
1788
1789 1478 my $project = shady_project( $redstring );
1790
1791 _UCFIRST_ _RANDOM_(
1792 "$group $are running $project.",
1793 "$group $are in charge of $project.",
1794 "$group $are working against $project.",
1795 sub {
1796 376 ▶ my $auth = authority( $redstring );
Subroutine __ANON__: called CC=1 SCAR=0.0
1797 376 "$group $are investigating $project. They will soon have enough evidence to go to $auth.",
1798 },
1799 1478 );
1800 },
1801 sub {
1802 1606 ▶ my $group = shady_group( $redstring );
Subroutine __ANON__: called CC=1 SCAR=0.0
1803 1606 $redstring->{protagonists} = $redstring->{shady_group};
1804
1805 1606 my $physicist = physicist( $redstring );
1806
1807 my $fact = _RANDOM_(
1808 sub {
1809 121 ▶ $redstring->{topic} = { name => 'bathroom scales', plural => 1 };
Subroutine __ANON__: called CC=1 SCAR=0.0
1810 121 'electrons have more mass than protons';
1811 },
1812 sub {
1813 111 ▶ $redstring->{topic} = { name => 'weighing scales', plural => 1 };
Subroutine __ANON__: called CC=1 SCAR=0.0
1814 111 "protons don't have mass";
1815 },
1816 sub {
1817 108 ▶ my $things = _RANDOM_( 'electrons', 'protons' );
Subroutine __ANON__: called CC=1 SCAR=0.0
1818 108 $redstring->{topic} = { name => $things, plural => 1 };
1819 108 "$things are not real particles, they are just the terminal lines of a dielectric pulse";
1820 },
1821 sub {
1822 100 ▶ $redstring->{topic} = { name => 'water', plural => 0 };
Subroutine __ANON__: called CC=1 SCAR=0.0
1823 100 'water is its own element';
1824 },
1825 sub {
1826 101 ▶ $redstring->{topic} = { name => 'geocentrism', plural => 0 };
Subroutine __ANON__: called CC=1 SCAR=0.0
1827 101 'the sun goes round the Earth';
1828 },
1829 sub {
1830 98 ▶ $redstring->{topic} = { name => 'the moon', plural => 0 };
Subroutine __ANON__: called CC=1 SCAR=0.0
1831 98 'the moon is a hologram';
1832 },
1833 sub {
1834 86 ▶ $redstring->{topic} = { name => 'camembert', plural => 0 };
Subroutine __ANON__: called CC=1 SCAR=0.0
1835 86 'the moon is made of cheese';
1836 },
1837 sub {
1838 117 ▶ $redstring->{topic} = { name => 'the man in the moon', plural => 0 };
Subroutine __ANON__: called CC=1 SCAR=0.0
1839 117 'the man in the moon is a real man';
1840 },
1841 sub {
1842 110 ▶ my $chem = chemicals( $redstring );
Subroutine __ANON__: called CC=1 SCAR=0.0
1843 110 $redstring->{topic} = { name => 'the periodic table', plural => 0 };
1844 110 "element 119 is $chem";
1845 },
1846 sub {
1847 102 ▶ $redstring->{topic} = { name => 'air', plural => 0 };
Subroutine __ANON__: called CC=1 SCAR=0.0
1848 102 "air isn't real";
1849 },
1850 sub {
1851 117 ▶ $redstring->{topic} = { name => 'vacuum cleaners', plural => 0 };
Subroutine __ANON__: called CC=1 SCAR=0.0
1852 117 "space isn't a vacuum because then it would suck all the air";
1853 },
1854 sub {
1855 106 ▶ $redstring->{topic} = { name => 'the firmament', plural => 0 };
Subroutine __ANON__: called CC=1 SCAR=0.0
1856 106 "there is a dome over the flat Earth";
1857 },
1858 sub {
1859 112 ▶ $redstring->{topic} = { name => 'Satan', plural => 0 };
Subroutine __ANON__: called CC=1 SCAR=0.0
1860 112 'the axis of evil in the cosmic microwave background was put there by Satan';
1861 },
1862 sub {
1863 112 ▶ $redstring->{topic} = { name => 'the zodiac', plural => 0 };
Subroutine __ANON__: called CC=1 SCAR=0.0
1864 112 'astrology has been scientifically verified';
1865 },
1866 sub {
1867 105 ▶ $redstring->{topic} = { name => 'the year of the dragon', plural => 0 };
Subroutine __ANON__: called CC=1 SCAR=0.0
1868 105 'the Chinese zodiac can predict the future';
1869 },
1870 1606 );
1871
1872 1606 my $solution = _UCFIRST_ _RANDOM_(
1873 "They paid $group to kill him.",
1874 "$group helped cover up the truth.",
1875 "$group threatened to kill him to keep him quiet.",
1876 "He was a member of $group so they knew he would keep quiet.",
1877 "$group arranged a convenient \"accident\".",
1878 );
1879
1880 1606 my $destruction = _RANDOM_(
1881 "all of modern physics",
1882 'our understanding of the universe',
1883 "the Big Bang 'theory'",
1884 "Einstein's theory of relativity",
1885 );
1886
1887 1606 _UCFIRST_ "$physicist discovered that $fact but the scientific establishment is suppressing it because it would destroy $destruction. $solution";
1888 },
1889 sub {
1890 1499 ▶ my $group = shady_group( $redstring );
Subroutine __ANON__: called CC=1 SCAR=0.0
1891 1499 $redstring->{protagonists} = $redstring->{shady_group};
1892
1893 1499 my $biologist = biologist( $redstring );
1894
1895 my $fact = _RANDOM_(
1896 sub {
1897 127 ▶ $redstring->{topic} = { name => 'pandas', plural => 1 };
Subroutine __ANON__: called CC=1 SCAR=0.0
1898 127 'pandas are really just fat raccoons';
1899 },
1900 sub {
1901 115 ▶ $redstring->{topic} = { name => 'spaghetti', plural => 1 };
Subroutine __ANON__: called CC=1 SCAR=0.0
1902 115 "spaghetti is a type of worm";
1903 },
1904 sub {
1905 126 ▶ $redstring->{celebrity} //= { name => 'Louis Armstrong', female => 0 };
Subroutine __ANON__: called CC=2 SCAR=7.1
Condition50%1/2
$redstring->{"celebrity"} //= {"name", "Louis Armstrong", "female", 0}
l!l
0126
MC/DC0%0/1
$redstring->{"celebrity"} //= {"name", "Louis Armstrong", "female", 0}
$redstring->{"celebrity"}
Truth table50%1/2
A
A= $redstring->{"celebrity"}
Aresult
11
00
1906 126 $redstring->{topic} = { name => 'snakes', plural => 1 };
1907 126 "snakes like jazz music";
1908 },
1909 sub {
1910 146 ▶ $redstring->{real_place} //= 'Antarctica';
Subroutine __ANON__: called CC=2 SCAR=7.1
Condition50%1/2
$redstring->{"real_place"} //= "Antarctica"
l!l
0146
MC/DC0%0/1
$redstring->{"real_place"} //= "Antarctica"
$redstring->{"real_place"}
Truth table50%1/2
A
A= $redstring->{"real_place"}
Aresult
11
00
1911 146 $redstring->{topic} = { name => 'penguins', plural => 1 };
1912 146 "penguins can fly but they get nervous when people are watching";
1913 },
1914 sub {
1915 117 ▶ $redstring->{topic} = { name => 'DNA', plural => 0 };
Subroutine __ANON__: called CC=1 SCAR=0.0
1916 117 "the 10 commandments are encoded in human DNA";
1917 },
1918 sub {
1919 147 ▶ $redstring->{topic} = { name => 'essential oils', plural => 1 };
Subroutine __ANON__: called CC=1 SCAR=0.0
1920 147 "essential oils cure all diseases";
1921 },
1922 sub {
1923 167 ▶ $redstring->{topic} = { name => 'vaccines', plural => 1 };
Subroutine __ANON__: called CC=1 SCAR=0.0
1924 167 "essential oils cure autism";
1925 },
1926 sub {
1927 135 ▶ $redstring->{topic} = { name => 'anger management', plural => 0 };
Subroutine __ANON__: called CC=1 SCAR=0.0
1928 135 "wasps are just angry bees";
1929 },
1930 sub {
1931 134 ▶ $redstring->{topic} = { name => 'oncology', plural => 0 };
Subroutine __ANON__: called CC=1 SCAR=0.0
1932 134 "windmills cause cancer";
1933 },
1934 sub {
1935 133 ▶ my $chem = chemicals( $redstring );
Subroutine __ANON__: called CC=1 SCAR=0.0
1936 133 $redstring->{topic} = { name => 'honey', plural => 0 };
1937 133 "$chem is killing all the bees";
1938 },
1939 sub {
1940 152 ▶ my $animal = real_animal( $redstring );
Subroutine __ANON__: called CC=1 SCAR=0.0
1941 152 $redstring->{topic} = { name => 'space flight', plural => 0 };
1942 152 "$animal DNA comes from space";
1943 },
1944 1499 );
1945
1946 1499 my $solution = _UCFIRST_ _RANDOM_(
1947 "They paid $group to kill him.",
1948 "$group helped cover up the truth.",
1949 "$group threatened to kill him to keep him quiet.",
1950 "He was a member of $group so they knew he would keep quiet.",
1951 "$group arranged a convenient \"accident\".",
1952 );
1953
1954 1499 my $destruction = _RANDOM_(
1955 "the 'theory' of evolution",
1956 'modern medicine',
1957 "the germ theory of disease",
1958 "our understanding of DNA",
1959 'creation science',
1960 );
1961
1962 1499 _UCFIRST_ "$biologist discovered that $fact but the scientific establishment is suppressing it because it would destroy $destruction. $solution";
1963 },
1964 sub {
1965 1541 ▶ my $group = shady_group( $redstring );
Subroutine __ANON__: called CC=2 SCAR=6.9
1966 1541 $redstring->{protagonists} = $redstring->{shady_group};
1967 1541 ▶ my $have = $redstring->{protagonists}->{plural} ? 'have' : 'has';
Branch: 1 branch
BranchTrueFalseTotal
$redstring->{'protagonists'}{'plural'} ? : 688 853 1541
1968
1969 1541 my $place = random_place( $redstring );
1970
1971 1541 my $how = _RANDOM_(
1972 "by diverting flights to $place to a Hollywood studio",
1973 'using mirrors',
1974 'by paying the UN',
1975 'by talking with funny accents',
1976 'by hacking satellites',
1977 );
1978
1979 1541 _UCFIRST_ "$place is just a hologram created by $group who $have been hiding it for years $how.";
1980 },
1981 sub {
1982 1544 ▶ my $place = random_place( $redstring );
Subroutine __ANON__: called CC=1 SCAR=0.0
1983 1544 my $truth1 = hidden_truth( $redstring );
1984
1985 1544 _UCFIRST_ _RANDOM_(
1986 "It is common knowledge in $place that $truth1.",
1987 "They teach $truth1 at schools in $place.",
1988 "Everybody in $place knows that $truth1.",
1989 "People in $place found out that $truth1.",
1990 );
1991 },
1992 sub {
1993 1563 ▶ my $celeb = celebrity( $redstring );
Subroutine __ANON__: called CC=3 SCAR=11.0
1994 1563 ▶ my $pronoun = $redstring->{celebrity}{female} ? 'she' : 'he';
Branch: 1 branch
BranchTrueFalseTotal
$redstring->{'celebrity'}{'female'} ? : 570 993 1563
1995 1563 my $truth1 = hidden_truth( $redstring );
1996 1563 my $group = shady_group( $redstring );
1997 1563 $redstring->{protagonists} = $redstring->{shady_group};
1998 1563 ▶ my $are = $redstring->{protagonists}->{plural} ? 'are' : 'is';
Branch: 1 branch
BranchTrueFalseTotal
$redstring->{'protagonists'}{'plural'} ? : 713 850 1563
1999
2000 my $silence = _RANDOM_(
2001 "$pronoun will probably have to be eliminated",
2002 "$pronoun is going to be killed if $pronoun isn't dead already",
2003 "$pronoun is being paid to stay quiet",
2004 "$pronoun will meet a convenient \"accident\"",
2005 sub {
2006 277 ▶ my $clone = clone( $redstring );
Subroutine __ANON__: called CC=1 SCAR=0.0
2007 277 "$pronoun has been replaced by $clone";
2008 },
2009 sub {
2010 244 ▶ my $place = bad_place( $redstring );
Subroutine __ANON__: called CC=1 SCAR=0.0
2011 244 "$pronoun has been imprisoned in $place";
2012 },
2013 1563 );
2014
2015 1563 _UCFIRST_ "$celeb found out that $truth1 and $silence. " . _UCFIRST_ "$group $are protecting this secret.";
2016 },
2017 sub {
2018 1482 ▶ my $celeb = celebrity( $redstring );
Subroutine __ANON__: called CC=2 SCAR=6.9
2019 1482 ▶ my $pronoun = $redstring->{celebrity}{female} ? 'she' : 'he';
Branch: 1 branch
BranchTrueFalseTotal
$redstring->{'celebrity'}{'female'} ? : 557 925 1482
2020 1482 my $group = shady_group( $redstring );
2021 1482 $redstring->{protagonists} = $redstring->{shady_group};
2022
2023 1482 _UCFIRST_ _RANDOM_(
2024 "$celeb is a member of $group.",
2025 "$celeb is a former member of $group.",
2026 "$celeb was thrown out of $group.",
2027 "$celeb infiltrated $group.",
2028 "$celeb is the leader of $group.",
2029 "$celeb is secretly worshipped by $group.",
2030 );
2031 },
2032 21351 );
2033  
2034 21351 ▶ if ( $redstring->{protagonists} and not $redstring->{antagonists} and _RANDOM_(0..1) ) {
Branch: 1 branch
BranchTrueFalseTotal
if ($redstring->{"protagonists"} and not $redstring->{"antagonists"} and _RANDOM_((0, 1))) 7935 13416 21351
Condition100%6/6
$redstring->{"protagonists"} and not $redstring->{"antagonists"} and _RANDOM_((0, 1))
!ll&&!rl&&r
552978877935
$redstring->{"protagonists"} and not $redstring->{"antagonists"}
!ll&&!rl&&r
3322220715822
MC/DC100%3/3
$redstring->{"protagonists"} and not $redstring->{"antagonists"} and _RANDOM_((0, 1))
$redstring->{"protagonists"} not $redstring->{"antagonists"} _RANDOM_((0, 1))
Truth table100%4/4
A and not(B) and C
A= $redstring->{"protagonists"}B= not $redstring->{"antagonists"}C= _RANDOM_((0, 1))
ABCresult
0XX0
10X0
1100
1111
2035 7935 ▶ my $group1 = $redstring->{protagonists}{shortname} // $redstring->{protagonists}{name};
Condition66%2/3
$redstring->{"protagonists"}{"shortname"} // $redstring->{"protagonists"}{"name"}
l!l&&r!l&&!r
341845170
MC/DC0%0/2
$redstring->{"protagonists"}{"shortname"} // $redstring->{"protagonists"}{"name"}
$redstring->{"protagonists"}{"shortname"} $redstring->{"protagonists"}{"name"}
Truth table66%2/3
A // B
A= $redstring->{"protagonists"}{"shortname"}B= $redstring->{"protagonists"}{"name"}
ABresult
1X1
011
000
2036 7935 my $group2 = shady_group( $redstring );
2037 7935 $redstring->{antagonists} = $redstring->{shady_group};
2038 7935 ▶ my $know = splural ($redstring->{antagonists}) ? 'know' : 'knows';
Branch: 1 branch
BranchTrueFalseTotal
splural($redstring->{'antagonists'}) ? : 3958 3977 7935
2039 $theory .= " " . _UCFIRST_ _RANDOM_(
2040 sub {
2041 1304 ▶ my $bribe = precious_resource_with_quantity( $redstring );
Subroutine __ANON__: called CC=1 SCAR=0.0
2042 1304 "$group2 $know the truth but $group1 have paid them off with $bribe.";
2043 },
2044 7935 "$group2 $know the truth but $group1 have threatened them to keep them silent.",
2045 "$group2 were helping them until $group1 betrayed them.",
2046 "$group2 were helping them for a while.",
2047 "$group2 were originally opposed to this but they're now in on it.",
2048 "$group2 are trying to get evidence to prove it.",
2049 );
2050 }
2051  
2052 21351 _MERGE_( $redstring, base_theory => $theory );
2053
2054 21351 my $evidence = evidence( $redstring );
2055 21351 ▶ $theory .= " $evidence" if $evidence;
Branch: 1 branch
BranchTrueFalseTotal
if $evidence 21351 0 21351
2056  
2057 21351 my $numerology = numerology( $redstring );
2058 21351 ▶ $theory .= " $numerology" if $numerology;
Branch: 1 branch
BranchTrueFalseTotal
if $numerology 708 20643 21351
2059  
2060 21351 _MERGE_( $redstring, theory => $theory );
2061  
2062 21351 return $theory;
2063 }
2064  
2065 1 my %special_numbers = (
2066 19 => [ qr/COVID/, '19 is the coronavirus number' ],
2067 24 => [ qr/TINTIN/, 'There are 24 Tintin comics' ],
2068 33 => [ qr/MASON/, '33 is associated with the masons' ],
2069 35 => [ qr/ELVIS/, 'Elvis was born in 1935' ],
2070 44 => [ qr/OBAMA/, 'Barack Obama was the 44th President of the USA' ],
2071 45 => [ qr/TRUMP|QANON|USA/, 'Donald Trump was the 45th President of the USA',
2072 qr/UNITEDNATIONS/, 'The United Nations was founded in 1945' ],
2073 46 => [ qr/BIDEN/, 'Joe Biden was the 46th President of the USA' ],
2074 47 => [ qr/THECIA/, 'The CIA was founded in 1947',
2075 qr/SILVER/, 'Silver has atomic number 47' ],
2076 49 => [ qr/NATO/, 'NATO was founded in 1949' ],
2077 51 => [ qr/KFC/, 'Area 51 is the fifty-first area' ],
2078 52 => [ qr/KFC/, 'KFC was founded in 1952' ],
2079 55 => [ qr/BIGMAC|MCDONALDS/, 'McDonalds was founded in 1955' ],
2080 63 => [ qr/JFK|OSWALD/, 'JFK was shot in 1963' ],
2081 79 => [ qr/GOLD/, 'Gold has the atomic number 79' ],
2082 81 => [ qr/HIV/, 'AIDS was discovered in 1981' ],
2083 82 => [ qr/COKE/, 'Diet Coke first came out in 1982' ],
2084 86 => [ qr/RADON/, 'The atomic number for radon is 86' ],
2085 92 => [ qr/URANIUM/, 'The atomic number for uranium is 92' ],
2086 322 => [ qr/SKULL/, 'Skull and Bones is Order 322' ],
2087 666 => [ qr/DEVIL|DEMON|SATAN/, '666 is the number of the beast' ],
2088 );
2089  
2090 sub numerology {
2091 21351 ▶ my $redstring = shift // {};
Subroutine numerology: called CC=14 SCAR=26.4
Pod undocumented
Condition50%1/2
shift() // {}
l!l
213510
MC/DC0%0/1
shift() // {}
shift()
Truth table50%1/2
A
A= shift()
Aresult
11
00
2092
2093 my @strings = List::Util::uniq(
2094 146151 grep { length }
2095 146151 map { my $letters = uc( $_ ); $letters =~ s/[^A-Z0-9]//g; $letters }
2096 map {
2097 146151 ▶ /^(the )(.+)$/i ? $2 : $_
Branch: 1 branch
BranchTrueFalseTotal
/^(the )(.+)$/iu ? : 62949 83202 146151
2098 }
2099 map {
2100 21351 ▶ ref( $_ ) ? grep( defined, $_->{name}, $_->{shortname}, $_->{title}, $_->{author} ) : $_
Branch: 1 branch
BranchTrueFalseTotal
ref $_ ? : 93889 62469 156358
2101 }
2102 values( %$redstring )
2103 );
2104
2105 21351 my %calcs;
2106 21351 foreach my $string ( @strings ) {
2107 121181 ▶ next if length($string) >= 20;
Branch: 1 branch
BranchTrueFalseTotal
if length $string >= 20 38833 82348 121181
2108 82348 my @letters = split //, $string;
2109 82348 ▶ my @numbers = map /[A-Z]/ ? ( ord($_) - 0x40 ) : $_, @letters;
Branch: 1 branch
BranchTrueFalseTotal
/[A-Z]/u ? : 804093 5137 809230
2110 82348 my $sum = List::Util::sum( @numbers );
2111
2112 82348 ▶ push @{ $calcs{$sum} ||= [] }, sprintf(
Condition100%2/2
$calcs{$sum} ||= []
l!l
66881680
MC/DC100%1/1
$calcs{$sum} ||= []
$calcs{$sum}
Truth table100%2/2
A
A= $calcs{$sum}
Aresult
11
00
2113 '%s = %s = %s',
2114 join( '+', @letters ),
2115 join( '+', @numbers ),
2116 $sum,
2117 );
2118 }
2119
2120 21351 foreach my $key ( %special_numbers ) {
2121 854040 ▶ if ( $calcs{$key} ) {
Branch: 1 branch
BranchTrueFalseTotal
if ($calcs{$key}) 7097 846943 854040
2122 7097 my @copy = @{ $special_numbers{$key} };
2123 7097 ▶ while ( @copy ) {
Branch: 1 branch
BranchTrueFalseTotal
if (@copy) 7452 7097 14549
2124 7452 my ( $test, $statement ) = splice( @copy, 0 , 2 );
2125 7452 ▶ next unless "@strings" =~ $test;
Branch: 1 branch
BranchTrueFalseTotal
unless join($", @strings) =~ /$test/u 7403 49 7452
2126 49 push @{ $calcs{$key} }, "And guess what? " . $statement;
2127 }
2128 }
2129 }
2130
2131 21351 ▶ my @wow = map { @$_ > 1 ? @$_ : () } values %calcs;
Branch: 1 branch
BranchTrueFalseTotal
@$_ > 1 ? : 716 80964 81680
2132
2133 21351 ▶ if ( @wow ) {
Branch: 1 branch
BranchTrueFalseTotal
if (@wow) 708 20643 21351
2134 708 return sprintf(
2135 "%s %s",
2136 _RANDOM_(
2137 'The numbers never lie.',
2138 'Trust the numbers.',
2139 'You can see the truth in the numbers.',
2140 ),
2141 join(
2142 '',
2143 map( "$_. ", @wow ),
2144 )
2145 );
2146 }
2147
2148 20643 return '';
2149 }
2150  
2151 sub bad_punctuation {
2152 0 ▶ my ( $string, $cancel ) = @_;
Subroutine bad_punctuation: not called CC=2 SCAR=17.9
Pod undocumented
2153 0 ▶ unless ( $cancel ) {
Branch: 1 branch
BranchTrueFalseTotal
unless ($cancel) 0 0 0
2154 0 $string =~ s/ ([A-Za-z]) ([,!?]) / $1 . _RANDOM_( $2, " $2", " $2", " $2$2") /exg;
2155 0 $string =~ s/ ([A-Za-z]) ([.]) / $1 . _RANDOM_($2, $2, " $2", " ", " $2$2$2") /exg;
2156 0 $string =~ s/\!/_RANDOM_('!', '!', '!!', "!!!!")/ex;
2157 }
2158 0 return $string;
2159 }
2160  
2161 1 1;
2162  
2163 __END__
↑ Summary