line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#!/usr/bin/perl |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
3
|
use strict; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
19
|
|
4
|
1
|
|
|
1
|
|
3
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
19
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
|
7
|
1
|
|
|
1
|
|
426
|
use String::Random qw(random_regex random_string); |
|
1
|
|
|
|
|
2005
|
|
|
1
|
|
|
|
|
54
|
|
8
|
1
|
|
|
1
|
|
429
|
use Data::Random; |
|
1
|
|
|
|
|
7748
|
|
|
1
|
|
|
|
|
46
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
package WWW::Shopify::Field::Text; |
11
|
1
|
|
|
1
|
|
4
|
use parent 'WWW::Shopify::Field'; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
4
|
|
12
|
0
|
|
|
0
|
0
|
|
sub sql_type { return "text"; } |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
my @utf8_characters = split(//, '漢字仮名交じり文åФХѾЦЧШЩЪЫЬѢꙖѤЮѦѪѨѬѠѺѮѰѲѴΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩ'); |
15
|
0
|
0
|
|
0
|
0
|
|
sub rand_utf8_char { return rand() < 0.5 ? $utf8_characters[int(rand(int(@utf8_characters)))] : ''; } |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub generate($) { |
18
|
0
|
0
|
|
0
|
0
|
|
return $_[0]->{arguments}->[0] if int(@{$_[0]->{arguments}} > 0); |
|
0
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
#return join("", map { chr(int(rand()*10000+100)) } 1..(rand(16)+1)); |
20
|
0
|
|
|
|
|
|
return join("-", map { lc($_) . __PACKAGE__->rand_utf8_char() } ::rand_words(size => int(rand(10000))+1)); |
|
0
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
package WWW::Shopify::Field::Text::HTML; |
25
|
1
|
|
|
1
|
|
155
|
use parent 'WWW::Shopify::Field::Text'; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
3
|
|
26
|
|
|
|
|
|
|
sub generate($) { |
27
|
0
|
|
|
0
|
|
|
return "" . WWW::Shopify::Field::Text::generate($_[0]) . ""; |
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
1; |