line |
!l |
l&&!r |
l&&r |
condition |
409
|
0 |
0 |
0 |
$game->{'ot'} && $game->{'season'} >= 1999 |
412
|
9 |
0 |
0 |
$game->{'ot'} && $game->{'season'} >= 1999 |
451
|
180 |
40 |
25 |
not $player->{'shifts'} and grep {$player->{'_id'} eq $_;} @{$$team{'scratches'};} |
464
|
90 |
30 |
760 |
defined $player->{$toi} and $player->{$toi} =~ /\:/ |
489
|
180 |
6377 |
0 |
$_ ne 'plusMinus' and $player->{$_} eq -1 |
521
|
1555 |
26 |
35 |
not $event->{'location'} and &is_noplay_event($event) |
544
|
715 |
0 |
901 |
not $event->{'team2'} and defined $event->{'t'} |
|
715 |
280 |
621 |
not $event->{'team2'} and defined $event->{'t'} and $event->{'t'} != -1 |
550
|
3182 |
50 |
0 |
$event->{$field} and $event->{$field} =~ /\D/ |
|
3232 |
0 |
0 |
$event->{$field} and $event->{$field} =~ /\D/ and not $event->{'assists'}[$as - 1] =~ /\D/ |
561
|
1336 |
280 |
0 |
&is_noplay_event($event) and !($event->{'on_ice'} && @{$event->{'on_ice'};}) || @{$event->{'on_ice'};} != 2 || !$event->{'on_ice'}[0] || !$event->{'on_ice'}[1] |
567
|
21 |
0 |
1555 |
$event->{'on_ice'} and @{$event->{'on_ice'};} |
|
21 |
0 |
1555 |
$event->{'on_ice'} and @{$event->{'on_ice'};} and @{$event->{'on_ice'}[0];} |
|
0 |
0 |
1555 |
$event->{'on_ice'} and @{$event->{'on_ice'};} and @{$event->{'on_ice'}[0];} and @{$event->{'on_ice'}[1];} |
575
|
21 |
0 |
1555 |
$event->{'on_ice'} and @{$event->{'on_ice'};} |
|
21 |
0 |
1555 |
$event->{'on_ice'} and @{$event->{'on_ice'};} and @{$event->{'on_ice'}[0];} |
|
0 |
0 |
1555 |
$event->{'on_ice'} and @{$event->{'on_ice'};} and @{$event->{'on_ice'}[0];} and @{$event->{'on_ice'}[1];} |
603
|
31 |
0 |
0 |
not $event->{'player2'} and $event->{'on_ice'} |
|
0 |
0 |
0 |
not $event->{'player2'} and $event->{'on_ice'} and @{$event->{'on_ice'};} |
622
|
110 |
6 |
0 |
$event->{'servedby'} and $event->{'servedby'} =~ /^80/ |
644
|
560 |
0 |
1056 |
$event->{'player2'} and not $event->{'player2'} =~ /^80/ |
|
560 |
1056 |
0 |
$event->{'player2'} and not $event->{'player2'} =~ /^80/ and defined $Sport::Analytics::NHL::Normalizer::REVERSE_STAT{$event->{'player2'}} |
671
|
1297 |
0 |
0 |
$event->{'period'} == 4 and $gp < 4 |
728
|
1 |
1 |
0 |
not $is_last and $event->{'stage'} != $Sport::Analytics::NHL::Normalizer::REGULAR |
764
|
0 |
0 |
5 |
$boxscore->{'result'}[0] != $boxscore->{'result'}[1] && !$boxscore->{'so'} |
765
|
0 |
5 |
3 |
@events_by_period and $events_by_period[-1][-1]{'type'} eq 'GEND' |
771
|
0 |
6 |
9 |
$period->[0] and $period->[0]{'type'} eq 'PSTR' |
773
|
4 |
0 |
2 |
$p == $periods && $ot_end |
|
0 |
6 |
9 |
$period->[0] and $period->[-1]{'type'} eq 'PEND' |
line |
l |
!l |
condition |
294
|
3 |
16 |
shift() || 0 |
296
|
18 |
1 |
$event->{'assists'} ||= [] |
326
|
2 |
68 |
shift() || 0 |
390
|
129 |
30 |
$$event_summary{$player->{'_id'}} ||= {} |
396
|
524 |
1474 |
$event_summary->{$key}{$stat} ||= 0 |
429
|
3 |
2 |
$game->{'tz'} ||= 'EST' |
454
|
12 |
0 |
$team->{'scratches'} ||= [] |
470
|
0 |
0 |
delete $player->{'wl'} || 'N' |
487
|
190 |
0 |
$player->{$_} //= ' ' |
488
|
190 |
0 |
$player->{$_} //= 2 |
521
|
1555 |
26 |
delete $event->{'location'} || 'UNK' |
522
|
1616 |
0 |
$event->{'strength'} ||= 'XX' |
592
|
0 |
31 |
$event->{'en'} ||= 0 |
593
|
7 |
24 |
$event->{'gwg'} ||= 0 |
594
|
31 |
0 |
$event->{'assists'} ||= [] |
640
|
656 |
0 |
$event->{'shot_type'} ||= 'UNKNOWN' |
641
|
0 |
656 |
$event->{'penaltyshot'} ||= 0 |
645
|
0 |
0 |
$${$$PLAYER_IDS{$event->{'player2'}};}{$Sport::Analytics::NHL::Normalizer::REVERSE_STAT{$event->{'player2'}}} ||= 0 |
769
|
15 |
0 |
$events_by_period[$p] || [] |
807
|
2 |
1 |
shift() || 0 |
line |
l |
!l&&r |
!l&&!r |
condition |
347
|
727 |
0 |
1 |
$event->{'sources'}{'PL'} or $event->{'sources'}{'BS'} |
349
|
196 |
0 |
0 |
$event->{'player1'} ||= $Sport::Analytics::NHL::Normalizer::UNKNOWN_PLAYER_ID |
350
|
196 |
0 |
0 |
$event->{'player2'} ||= $Sport::Analytics::NHL::Normalizer::UNKNOWN_PLAYER_ID |
382
|
0 |
0 |
4 |
$so->[0] or $so->[1] |
451
|
0 |
133 |
112 |
$player->{'_id'} =~ /^80/ or not $player->{'shifts'} and grep {$player->{'_id'} eq $_;} @{$$team{'scratches'};} |
470
|
12 |
0 |
0 |
$player->{'decision'} ||= delete $player->{'wl'} || 'N' |
472
|
40 |
0 |
180 |
not defined $player->{'faceoffTaken'} or $player->{'faceoffTaken'} eq -1 |
518
|
0 |
1616 |
0 |
$event->{'game'} ||= $game->{'_id'} |
561
|
0 |
0 |
240 |
!($event->{'on_ice'} && @{$event->{'on_ice'};}) || @{$event->{'on_ice'};} != 2 || !$event->{'on_ice'}[0] || !$event->{'on_ice'}[1] |
638
|
160 |
26 |
1430 |
$event->{'type'} eq 'MISS' or $event->{'type'} eq 'GOAL' |
|
186 |
315 |
1115 |
$event->{'type'} eq 'MISS' or $event->{'type'} eq 'GOAL' or $event->{'type'} eq 'SHOT' |
|
341 |
155 |
960 |
$event->{'type'} eq 'MISS' or $event->{'type'} eq 'GOAL' or $event->{'type'} eq 'SHOT' or $event->{'type'} eq 'BLOCK' |
654
|
0 |
5064 |
28719 |
$field eq 'file' or ref $event->{$field} |
709
|
7 |
0 |
0 |
$event->{'game_id'} || $event->{'_id'} |
726
|
9 |
0 |
0 |
$event->{'game_id'} || $event->{'_id'} |
728
|
7 |
0 |
2 |
$p <= 3 or not $is_last and $event->{'stage'} != $Sport::Analytics::NHL::Normalizer::REGULAR |
734
|
1 |
0 |
0 |
$event->{'ts'} || ($event->{'stage'} == $Sport::Analytics::NHL::Normalizer::REGULAR ? 3900 : $p * 1200) |
736
|
1 |
0 |
0 |
$event->{'time'} || ($event->{'stage'} == $Sport::Analytics::NHL::Normalizer::REGULAR ? '5:00' : '20:00') |
761
|
200 |
1149 |
443 |
$Sport::Analytics::NHL::Normalizer::a->{'period'} <=> $Sport::Analytics::NHL::Normalizer::b->{'period'} or $Sport::Analytics::NHL::Normalizer::a->{'ts'} <=> $Sport::Analytics::NHL::Normalizer::b->{'ts'} |
|
1349 |
339 |
104 |
$Sport::Analytics::NHL::Normalizer::a->{'period'} <=> $Sport::Analytics::NHL::Normalizer::b->{'period'} or $Sport::Analytics::NHL::Normalizer::a->{'ts'} <=> $Sport::Analytics::NHL::Normalizer::b->{'ts'} or $EVENT_PRECEDENCE{$Sport::Analytics::NHL::Normalizer::a->{'type'}} <=> $EVENT_PRECEDENCE{$Sport::Analytics::NHL::Normalizer::b->{'type'}} |
|
1488 |
3 |
101 |
$Sport::Analytics::NHL::Normalizer::a->{'period'} <=> $Sport::Analytics::NHL::Normalizer::b->{'period'} or $Sport::Analytics::NHL::Normalizer::a->{'ts'} <=> $Sport::Analytics::NHL::Normalizer::b->{'ts'} or $EVENT_PRECEDENCE{$Sport::Analytics::NHL::Normalizer::a->{'type'}} <=> $EVENT_PRECEDENCE{$Sport::Analytics::NHL::Normalizer::b->{'type'}} or $Sport::Analytics::NHL::Normalizer::a->{'type'} cmp $Sport::Analytics::NHL::Normalizer::b->{'type'} |
771
|
6 |
0 |
0 |
$events_by_period[$p][0] || $boxscore |
773
|
6 |
0 |
0 |
$events_by_period[$p][-1] || $boxscore |
779
|
0 |
0 |
1008 |
$_->{'type'} eq 'PSTR' && $e > 0 || $_->{'type'} eq 'PEND' && $e < $#{$period;} |