| line |
true |
false |
branch |
|
171
|
7 |
189 |
unless /^[A-Z]{2}(?:_[A-Z]{2})?$/ |
|
173
|
0 |
189 |
if ($languages{'_versions'}{lc $_} <= 0.02) |
|
175
|
0 |
0 |
if exists $languages{$k}{lc $_} |
|
209
|
42 |
30 |
if ref $_[0] eq 'HASH' |
|
328
|
11 |
61 |
defined $config{'method'} ? : |
|
332
|
2 |
70 |
defined $config{'max-size'} ? : |
|
337
|
1 |
1 |
wantarray ? : |
|
|
2 |
70 |
unless $text |
|
340
|
1 |
69 |
if ($maxsize < length $text and $maxsize != 0) |
|
342
|
0 |
1 |
defined $config{'extract_from'} ? : |
|
346
|
1 |
0 |
if ($_ eq 'head' or $_ eq 'tail') { } |
|
368
|
7 |
63 |
if ($config{'mode'} eq 'dummy') |
|
384
|
58 |
237 |
if (/^letters$/) { } |
|
|
60 |
177 |
elsif (/^smallwords$/) { } |
|
|
58 |
119 |
elsif (/^(prefixes[1-4])$/) { } |
|
|
61 |
58 |
elsif (/^(suffixes[1-4])$/) { } |
|
|
58 |
0 |
elsif (/^(ngrams[1-4])$/) { } |
|
408
|
1587 |
0 |
$total ? : |
|
413
|
62 |
1 |
wantarray ? : |
|
420
|
1 |
10 |
if (/^HASH$/) { } |
|
|
1 |
9 |
elsif (/^ARRAY$/) { } |
|
469
|
2 |
29 |
if (ref $_[0] eq 'HASH') |
|
487
|
0 |
31 |
defined $config{'max-size'} ? : |
|
495
|
1 |
31 |
if (exists $config{'encoding'}) { } |
|
496
|
0 |
1 |
unless open FILE, "<:encoding($config{'encoding'})", $file |
|
498
|
0 |
31 |
unless open FILE, '<:utf8', $file |
|
558
|
3 |
59 |
unless defined $_[1] and $_[1] |
|
559
|
1 |
58 |
unless defined $_[3] and $_[3] |
|
598
|
19274 |
154626 |
if (exists $$elements{$_}) |
|
607
|
3167 |
0 |
$total ? : |
|
612
|
237 |
0 |
wantarray ? : |
|
669
|
10144 |
34325 |
unless (exists $languages{'letters'}{$language}{$l}) |
|
673
|
247 |
1319 |
if $result{$language} < 0 |
|
676
|
1566 |
0 |
$total ? : |
|
681
|
58 |
0 |
wantarray ? : |
|
756
|
0 |
58 |
if $ngrams eq 'ngrams1' |
|
789
|
1 |
0 |
unless (grep {$_ eq $_[0];} @active_languages) |