line |
true |
false |
branch |
241
|
6 |
2 |
$2 > 8 ? : |
263
|
0 |
0 |
unless (@games) |
275
|
0 |
30902 |
if (not $force_no_db and $ENV{'MONGO_DB'}) |
278
|
0 |
0 |
if $team_id |
280
|
347 |
30559 |
if $team =~ /MONTR.*CAN/i or $team =~ /CAN.*MONTR/ |
281
|
1 |
30558 |
if $team eq 'League' or $team eq 'NHL' |
283
|
26373 |
684940 |
if $team_id eq $team |
285
|
4185 |
2048323 |
if grep {uc $_ eq uc $team;} @{$Sport::Analytics::NHL::Tools::TEAMS{$team_id}{$type};} |
310
|
1182 |
9812 |
if $year < 1969 |
319
|
189 |
9257 |
if $game->{'stage'} ne $Sport::Analytics::NHL::Tools::REGULAR and $game->{'stage'} ne $Sport::Analytics::NHL::Tools::PLAYOFF |
341
|
124 |
5268 |
unless $game |
352
|
1 |
1670 |
if $stage != $Sport::Analytics::NHL::Tools::REGULAR and $stage != $Sport::Analytics::NHL::Tools::PLAYOFF |
378
|
1434 |
1 |
if ($game) |
391
|
236 |
4054 |
$game->{'gamePk'} ? : |
399
|
4 |
5 |
ref $schedule_json_data eq 'ARRAY' ? : |
414
|
0 |
2 |
unless (-f $schedule_file) |
419
|
2 |
0 |
unless ($jsons{$season}) |
424
|
1 |
1 |
unless ($schedule_by_date->{$date}) |
438
|
0 |
0 |
$ENV{'MONGO_DB'} ? : |
460
|
31 |
9 |
if -d $path and -w $path |
461
|
0 |
9 |
unless make_path($path) |
477
|
0 |
4 |
unless -f $json_file |
489
|
3 |
0 |
$1 && $2 && $3 ? : |
520
|
2 |
16 |
if ($_ eq $Sport::Analytics::NHL::Tools::MAIN_GAME_FILE or $_ eq $Sport::Analytics::NHL::Tools::SECONDARY_GAME_FILE) |
552
|
18 |
6 |
if -f "$path/$_" |
586
|
3461 |
4534 |
if $Sport::Analytics::NHL::Tools::VOCABULARY{$vocabulary}{$string} |
589
|
4533 |
16639 |
if (&any(sub {
$string eq $_;
}
, @{$alternatives;})) |
678
|
0 |
0 |
if ($player->{'_id'} == $player_id) |
679
|
0 |
0 |
if ($stat eq 'goalsAgainst' and defined $player->{'saves'}) { } |
|
0 |
0 |
elsif ($stat eq 'penaltyMinutes') { } |
|
0 |
0 |
elsif (defined $player->{$stat}) { } |
685
|
0 |
0 |
if ($delta) |
726
|
0 |
0 |
if (my $es = $$event_summary{$player->{'_id'}}) |
747
|
7004 |
112 |
unless $event->{'type'} eq 'PEND' or $event->{'type'} eq 'PSTR' or $event->{'type'} eq 'GEND' |
767
|
0 |
0 |
unless exists $_->{'t'} |