line |
true |
false |
branch |
219
|
0 |
18 |
unless $json |
224
|
0 |
18 |
unless $self->{'json'}{'gameData'}{'status'}{'abstractGameState'} and $self->{'json'}{'gameData'}{'status'}{'abstractGameState'} eq 'Final' |
252
|
7 |
2 |
$json->{'gameData'}{'datetime'}{'endDateTime'} ? : |
263
|
0 |
9 |
if ($json->{'liveData'}{'linescore'}{'hasShootout'}) |
287
|
18 |
14 |
$official->{'officialType'} eq 'Referee' ? : |
298
|
0 |
0 |
if ($Sport::Analytics::NHL::Report::BS::BROKEN_PLAYERS{'BS'}{$self->{'_id'}} and $Sport::Analytics::NHL::Report::BS::BROKEN_PLAYERS{'BS'}{$self->{'_id'}}{$player} and $Sport::Analytics::NHL::Report::BS::BROKEN_PLAYERS{'BS'}{$self->{'_id'}}{$player} == -1) |
316
|
35 |
18 |
unless ($ld_player->{'stats'}{'skaterStats'} or $ld_player->{'stats'}{'goalieStats'}) |
318
|
0 |
35 |
$ld_player->{'position'}{'code'} eq 'G' ? : |
328
|
343 |
18 |
$ld_player->{'stats'}{'skaterStats'} ? : |
330
|
0 |
0 |
if ($Sport::Analytics::NHL::Report::BS::BROKEN_PLAYERS{'BS'}{$self->{'_id'}} and $Sport::Analytics::NHL::Report::BS::BROKEN_PLAYERS{'BS'}{$self->{'_id'}}{$ld_player->{'person'}{'id'}} and ref $Sport::Analytics::NHL::Report::BS::BROKEN_PLAYERS{'BS'}{$self->{'_id'}}{$ld_player->{'person'}{'id'}}) |
337
|
18 |
343 |
if $player->{'position'} eq 'G' |
368
|
14 |
4 |
$ldb_team->{'coaches'}[0]{'person'}{'fullName'} ? : |
370
|
0 |
18 |
if $Sport::Analytics::NHL::Report::BS::BROKEN_COACHES{$team->{'coach'}} |
377
|
18 |
343 |
if $player->{'decision'} |
383
|
0 |
18 |
if $Sport::Analytics::NHL::Report::BS::MISSING_PLAYERS{$self->{'_id'}} and @{$Sport::Analytics::NHL::Report::BS::MISSING_PLAYERS{$self->{'_id'}}[$t];} |
384
|
0 |
18 |
unless $team->{'_decision'} |
399
|
0 |
0 |
if $json->{'liveData'}{'decisions'}{$star} |
424
|
21 |
6 |
$ld_period->{'startTime'} ? : |
|
21 |
6 |
$ld_period->{'endTime'} ? : |
426
|
0 |
27 |
$ld_period->{'periodType'} eq 'OVERTIME' ? : |
450
|
0 |
152 |
if ($event->{'penalty'} =~ /bench/i and not $event->{'penalty'} =~ /leaving/i) |
451
|
0 |
0 |
if $event->{'player1'} |
454
|
7 |
145 |
if ($event->{'penalty'} =~ /too many/i or $event->{'description'} =~ /^\s+against/i) { } |
|
0 |
145 |
elsif ($event->{'penalty'} =~ /(.*\w)\W*\bcoach$/i) { } |
455
|
7 |
0 |
if $event->{'player1'} |
460
|
0 |
0 |
if $event->{'player1'} |
474
|
70 |
74 |
$_->{'playerType'} eq 'Assist' ? : |
523
|
0 |
2275 |
if ($Sport::Analytics::NHL::Report::BS::BROKEN_EVENTS{'BS'}{$event->{'game_id'}} and my $evx = $Sport::Analytics::NHL::Report::BS::BROKEN_EVENTS{'BS'}{$event->{'game_id'}}{$ld_event->{'about'}{'eventIdx'}}) |
537
|
0 |
152 |
if ($event->{'type'} eq 'PENL' and $event->{'description'} =~ /served by/i and not $event->{'servedby'}) |
545
|
0 |
0 |
$event->{'description'} =~ /\b(illegal|official|proceed|dress|refusal|objects|misconduct|ineligible|conduct|bench|coach|delay|abus|leaving)/i && !($event->{'description'} =~ /leaves.*bench/i) || $event->{'severity'} =~ /BENCH/ || $event->{'description'} =~ /minor served by/i ? : |
550
|
0 |
0 |
if (defined $event->{$field}) |
553
|
0 |
0 |
if ($field eq 'player1') |
554
|
0 |
0 |
$event->{'description'} =~ /coach/i ? : |
568
|
0 |
37 |
if ($event->{'type'} eq 'GOAL' and not $event->{'en'} and not $event->{'player2'}) |
573
|
0 |
0 |
$event->{'team1'} eq $self->{'teams'}[0]{'name'} ? : |
595
|
0 |
2324 |
if $Sport::Analytics::NHL::Report::BS::BROKEN_EVENTS{'BS'}{$self->{'_id'}}{$ld_event->{'about'}{'eventIdx'}} and $Sport::Analytics::NHL::Report::BS::BROKEN_EVENTS{'BS'}{$self->{'_id'}}{$ld_event->{'about'}{'eventIdx'}} eq '-1' |
596
|
49 |
2275 |
if grep {$_ eq $ld_event->{'result'}{'eventTypeId'};} @JS_IGNORED_EVENT_TYPES |
616
|
0 |
2275 |
$ld_event->{'about'}{'periodType'} eq 'SHOOTOUT' ? : |
|
0 |
2275 |
$Sport::Analytics::NHL::Report::BS::BROKEN_EVENTS{'BS'}{$self->{'_id'}}{$ld_event->{'about'}{'eventIdx'}} ? : |
|
1883 |
392 |
$ld_event->{'team'} ? : |
618
|
1113 |
1162 |
if $event->{'time'} =~ /^0/ |
620
|
0 |
2275 |
if $Sport::Analytics::NHL::Report::BS::SPECIAL_EVENTS{$self->{'_id'}} and $Sport::Analytics::NHL::Report::BS::SPECIAL_EVENTS{$self->{'_id'}}{$ld_event->{'about'}{'eventIdx'}} |
638
|
364 |
40 |
if (not $player->{'broken'}) { } |
639
|
20 |
344 |
if defined $player->{'pim'} |
665
|
8 |
0 |
if (@{$self->{'json'}{'liveData'}{'plays'}{'allPlays'};}) { } |