| line | % | coverage | condition |
| 437 | 100 | | defined $fn and length $fn |
| 440 | 100 | | $level >= 1 && $level <= 100 |
| 451 | 100 | | defined $fn and length $fn |
| 527 | 100 | | defined $value and $value =~ /\A-?[0-9]{1,$MAX_WHOLE_NUMBER_DIGITS}\z/u |
| 540 | 100 | | defined $name && !ref($name) && $SCATTER_SCHEMES{$name} |
| 545 | 100 | | defined $name && !ref($name) && $SEQUENTIAL_SCHEMES{$name} |
| 558 | 100 | | defined $name && !ref($name) && $SCATTER_SCHEMES{$name} |
| 592 | 100 | | defined $self->param('per_page') && length $self->param('per_page') |
| 597 | 100 | | defined $asked and $asked == 0 |
| 600 | 67 | | $asked || $DEFAULT_PER_PAGE |
| 603 | 100 | | _whole_number($self->param('page')) || 1 |
| 624 | 100 | | defined $value and $value =~ /\A[0-9]{1,4}\z/u |
| 687 | 33 | | defined $_ and not ref $_ |
| 691 | 50 | | _resolved_path("$dir") // (next) |
| 703 | 33 | | defined $path && length $path |
| 707 | 75 | | $root eq "/" or $abs eq $root or CORE::index($abs, $root =~ m[/\z]u ? $root : "$root/") == 0 |
| 753 | 100 | | _follow_links($abs) // (return undef) |
| 761 | 50 | | eval {
do {
"Mojo::File"->new($try)->realpath->to_string
}
} // (return undef) |
| 826 | 100 | | defined $hash and length $hash |
| 827 | 50 | | $c->tx->remote_address // "" |
| 828 | 75 | | $from eq "" or $from =~ /\A(?:::ffff:)?127\./iu or $from eq "::1" |
| 832 | 50 | | $req->url->to_abs->host // "" |
| 836 | 100 | | $_ eq "*" or $_ eq $host |
| 100 | | /\A\*(\..+)\z/u and substr($host, -length($1)) eq $1 |
| 837 | 100 | | $host eq 'localhost' || $host =~ /\.localhost\z/u || $host =~ /\A\d{1,3}(?:\.\d{1,3}){3}\z/u || $host =~ /[:\[]/u |
| 839 | 100 | | $local || $listed |
| 100 | | !@allowed || $listed |
| 846 | 100 | | $headers->header("Sec-Fetch-Site") // "" |
| 848 | 100 | | $site eq "same-origin" or $site eq "none" |
| 853 | 100 | | "Mojo::URL"->new($origin)->host_port // "" |
| 854 | 50 | | $req->url->to_abs->host_port // "" |
| 855 | 100 | | $headers->header("X-Forwarded-Host") // "" |
| 856 | 100 | | length $from and $from eq $to || length $fwd && $from eq $fwd |
| 877 | 67 | | defined $url and $url =~ m[\Ahttps?://]iu |
| 881 | 50 | | eval {
do {
lc($uri->host // "")
}
} // "" |
| 50 | | $uri->host // "" |
| 886 | 75 | | $host =~ /\A[a-z0-9_](?:[a-z0-9_.-]*[a-z0-9_])?\z/u or $host =~ /:/u and defined Database::BI::SafeUA::numeric_host($host) |
| 888 | 100 | | $host eq "localhost" or $host =~ /\.localhost\z/u |
| 890 | 100 | | defined $ip and Database::BI::SafeUA::blocked_address($ip) |
| 908 | 100 | | defined $url and length $url |
| 967 | 100 | | ref $c and $c->isa(__PACKAGE__) |
| 972 | 100 | | $url and @trail < $CRUMB_MAX_DEPTH |
| 976 | 100 | | defined $label and length $label |
| 993 | 67 | | ref $c and $c->isa(__PACKAGE__) |
| 995 | 67 | | ref $trail eq "ARRAY" and @$trail |
| 996 | 50 | | $trail->[-1]{'url'} // "" |
| 997 | 67 | | not length $here or "Mojo::URL"->new($here)->path->to_string eq $plain |
| 1138 | 100 | | $spec //= "" |
| 1159 | 50 | | $spec //= "" |
| 1164 | 67 | | $host // $1 |
| 1182 | 100 | | length($col // "") and length($op // "") |
| 100 | | $col // "" |
| 100 | | $op // "" |
| 1190 | 100 | | length($val // "") and not $val =~ /$CRUMB_TEXT_RE/u |
| 100 | | $val // "" |
| 1191 | 33 | | $CRUMB_OP{$op} // $op |
| 1192 | 100 | | $val // "" |
| 100 | | $op eq 'empty' || $op eq 'notempty' |
| 1198 | 100 | | $q->param("range") // "" |
| 1213 | 100 | | $q->param($_) // "" |
| 1217 | 100 | | A | B | C | D | dec |
|---|
| 0 | 0 | X | X | 0 | | 0 | 1 | 0 | X | 0 | | 0 | 1 | 1 | 0 | 0 | | 0 | 1 | 1 | 1 | 1 | | 1 | X | 0 | X | 0 | | 1 | X | 1 | 0 | 0 | | 1 | X | 1 | 1 | 1 |
| $kind eq 'graph' || $kind eq 'line' || $kind eq 'scatter' and length $p{'x'} and length $p{'y'} |
| 1218 | 100 | | $kind eq "heatmap" and length $p{'x'} and length $p{'y'} |
| 1219 | 100 | | $kind eq "stacked" and length $p{'cat'} and length $p{'seg'} |
| 1223 | 100 | | (grep {length $_;} @p{"cat", "x", "col"})[0] // "" |
| 1224 | 100 | | (grep {length $_;} @p{"val", "bar_val", "y"})[0] // "" |
| 1226 | 100 | | not length $measure and $kind eq 'pie' || $kind eq 'bar' || $kind eq 'treemap' |
| 1227 | 100 | | length $measure && length $dim |
| 1274 | 33 | | $platform // $fallback |
| 1354 | 100 | | defined $language and length $language |
| 1367 | 100 | | $app->config->{'data_dir'} // "data" |
| 1452 | 100 | | $_[0] // "" |
| 1486 | 100 | | $app->config("model_dir") // ".bi" |
| 1600 | 100 | | $n && $head eq "SQLite format 3\000" |
| 1618 | 67 | | ref $c and defined $spec |
| 1622 | 100 | | $c->_accel_file($spec) // croak($c->_i18n("error_accel_spec", $spec)) |
| 1624 | 100 | | $file =~ /\.(?:sql|sqlite3?)\z/iu or _is_sqlite_file($file) |
| 1631 | 50 | | $c->stash("open_spec_error") // "unreadable" |
| 1650 | 60 | | A | B | C | D | dec |
|---|
| 0 | X | X | X | 0 | | 1 | 0 | X | X | 0 | | 1 | 1 | 0 | X | 0 | | 1 | 1 | 1 | 0 | 0 | | 1 | 1 | 1 | 1 | 1 |
| ref $old eq "HASH" and defined $old->{'file'} and $old->{'file'} ne $name and $old->{'file'} =~ /\A[0-9a-f]{32}\.db\z/u |
| 1666 | 67 | | ref $c and defined $spec |
| 1672 | 33 | | defined $entry->{'file'} and $entry->{'file'} =~ /\A[0-9a-f]{32}\.db\z/u |
| 1770 | 100 | | defined $type and not ref $type and length $type |
| 1883 | 100 | | $c && $all{$c} |
| 1972 | 67 | | ref $columns eq "ARRAY" and ref $records eq "ARRAY" |
| 1987 | 40 | | A | B | C | D | dec |
|---|
| 0 | X | X | X | 0 | | 1 | 0 | X | X | 0 | | 1 | 1 | 0 | X | 0 | | 1 | 1 | 1 | 0 | 0 | | 1 | 1 | 1 | 1 | 1 |
| $m >= 1 and $m <= 12 and $d >= 1 and $d <= 31 |
| 2010 | 100 | | $sec // "00" |
| 100 | | $hour // "00" |
| 100 | | $min // "00" |
| 2115 | 50 | | $hi // "" |
| 100 | | length($col // "") and length($lo // "") and length($hi // "") |
| 100 | | $col // "" |
| 50 | | $lo // "" |
| 2125 | 100 | | $name // "" |
| 2152 | 100 | | $name // "" |
| 2153 | 100 | | defined $col and length $col and not $col =~ /:/u |
| 2185 | 100 | | defined $name and length $name |
| 2196 | 50 | | defined $col and length $col and not $col =~ /:/u |
| 2236 | 50 | | $c->every_param("f") // [] |
| 2238 | 80 | | A | B | C | D | dec |
|---|
| 0 | X | X | X | 0 | | 1 | 0 | X | X | 0 | | 1 | 1 | 0 | X | 0 | | 1 | 1 | 1 | 0 | 0 | | 1 | 1 | 1 | 1 | 1 |
| defined $col and length $col and defined $op and $word{$op} |
| 2239 | 100 | | $val //= "" |
| 2252 | 67 | | ref $range eq "HASH" and defined $range->{'col'} |
| 2254 | 50 | | $range->{'hi'} // "" |
| 33 | | $range->{'label'} // $range->{'name'} |
| 50 | | $range->{'lo'} // "" |
| 2257 | 50 | | $title // "" |
| 2277 | 50 | | $c->every_param("f") // [] |
| 2279 | 100 | | $col // "" |
| 75 | | length($col // "") and defined $op and length $op |
| 2306 | 67 | | ref $columns eq "ARRAY" and @{$columns;} |
| 2307 | 50 | | $later // {} |
| 2314 | 50 | | $self->every_param("f") // [] |
| 2316 | 100 | | $col // "" |
| 75 | | length($col // "") and defined $op and length $op |
| 2318 | 50 | | $val // "" |
| 2324 | 100 | | ref $range eq "HASH" and not $known{$range->{'col'} // ""} |
| 50 | | $range->{'col'} // "" |
| 2339 | 100 | | $val // "" |
| 2341 | 100 | | $_ // "" |
| 2362 | 100 | | _is_iso_date($lo) and _is_iso_date($hi) |
| 2365 | 100 | | length $lo and length $hi |
| 2383 | 100 | | not @part and defined $cell and $cell =~ m[\A(\d{1,2})/(\d{1,2})/(\d{4})\z]u |
| 2389 | 100 | | $sec // "00" |
| 100 | | $hour // "00" |
| 100 | | $min // "00" |
| 2395 | 100 | | $col // "" |
| 100 | | length($col // "") and defined $op and length $op |
| 2396 | 100 | | $val //= "" |
| 2406 | 100 | | $_[0]{$_[1]} // "" |
| 2413 | 67 | | defined $lo && _is_iso_date($lo) && _is_iso_date($hi) |
| 2421 | 100 | | $is_date && grep({defined((Database::BI::Util::iso_datetime($_))[1]);} $between ? ($lo, $hi) : $val) |
| 2423 | 33 | | _date_key($val, $prec) // $val |
| 100 | | $is_date && !$between |
| 2426 | 100 | | !$is_date && $op =~ /\A(?:lt|le|gt|ge)\z/u |
| 2434 | 100 | | $between and defined $lo |
| 2436 | 33 | | _date_key($_, $prec) // $_ |
| 2439 | 67 | | defined $num_lo and defined $num_hi |
| 2442 | 100 | | defined $num_lo and $num_lo > $num_hi |
| 2447 | 100 | | $_->{$col} // "" |
| 2449 | 100 | | defined $num && defined $num_val |
| 2466 | 100 | | defined $n and $n >= $num_lo |
| 2468 | 100 | | $op eq 'between' && defined $num_lo |
| 100 | | $both && $num < $num_val |
| 100 | | $both && $num <= $num_val |
| 100 | | $both && $num > $num_val |
| 100 | | $both && $num >= $num_val |
| 2470 | 100 | | defined $lo and $key ge $lo |
| 2673 | 100 | | $raw->{'cs'} // [] |
| 2675 | 100 | | $raw->{'order'} // [] |
| 2698 | 50 | | $query->every_param("cs") // [] |
| 2699 | 50 | | $query->every_param("order") // [] |
| 2705 | 100 | | $name eq "cs" or $name eq "by" or $name eq "order" |
| 2707 | 50 | | $query->every_param($name) // [] |
| 2711 | 100 | | $query->param("by") // "" |
| 2846 | 100 | | $total && defined $v |
| 2851 | 100 | | $fn eq "window_sum" or $fn eq "window_avg" |
| 2873 | 100 | | $fn eq "delta" or $fn eq "pct_change" |
| 2877 | 100 | | defined $v and defined $prev |
| 2892 | 100 | | $total && defined $v |
| 2915 | 100 | | defined $v && defined $sd && $sd > 0 |
| 2931 | 100 | | defined $nx and defined $ny |
| 2932 | 100 | | $y // "" |
| 100 | | $x // "" |
| 3003 | 100 | | $opts and $opts->{'chips_only'} |
| 3008 | 100 | | !($opts && $opts->{'no_cross_row'}) && length($self->param('cs') // '') |
| 3015 | 100 | | (split(/:/u, $s, 2))[0] // "" |
| 3026 | 100 | | $columns and _dedup_requested($self) |
| 3128 | 50 | | $self->every_param("f") // [] |
| 3129 | 100 | | $self->stash("range_specs") // [] |
| 3154 | 100 | | $row->{$_} // "" |
| 3196 | 100 | | $source && $source->can('dbi_source') && $source->dbi_source |
| 3206 | 100 | | $col // "" |
| 100 | | length($col // "") and defined $op and length $op |
| 3207 | 100 | | $val //= "" |
| 3215 | 100 | | $op eq "eq" or $op eq "ne" |
| 3218 | 67 | | $val =~ /[%_]/u or _is_iso_date($val) |
| 3302 | 67 | | $h == $lo or $lo >= $n - 1 |
| 3363 | 100 | | $records // [] |
| 3365 | 100 | | defined $v and length $v |
| 3393 | 67 | | $source and $source->can("aggregate") |
| 3394 | 67 | | defined $fn and $PUSHED_MEASURE_FN_OK{$fn} |
| 3395 | 100 | | $fn eq "count" or $fn eq "count_distinct" |
| 3409 | 50 | | $records // [] |
| 3411 | 67 | | defined $v and length $v |
| 3426 | 33 | | defined $str and length $str |
| 3428 | 80 | | A | B | C | D | dec |
|---|
| 0 | X | X | X | 0 | | 1 | 0 | X | X | 0 | | 1 | 1 | 0 | X | 0 | | 1 | 1 | 1 | 0 | 0 | | 1 | 1 | 1 | 1 | 1 |
| defined $fn and defined $as and length $fn and length $as |
| 3643 | 75 | | $total and $per_page and $per_page > 0 |
| 3666 | 100 | | $_->{$column} // "" |
| 3674 | 67 | | @filled and not grep({not defined Database::BI::Util::parse_number($_);} @filled) |
| 67 | | @filled and not grep({not m[\A(?:\d{4}-\d{2}-\d{2}|\d{1,2}/\d{1,2}/\d{4})\z]u;} @filled) |
| 3689 | 67 | | Database::BI::Util::parse_number($v) // $NO_NUMBER |
| 3732 | 67 | | $p->[0] <=> $q->[0] || ($p->[0] == 2 ? $p->[1] <=> $q->[1] : $p->[1] cmp $q->[1]) |
| 3982 | 50 | | $row->{$_} // "" |
| 3983 | 50 | | $label // "" |
| 4000 | 100 | | $_ // "" |
| 4420 | 100 | | defined $v and not ref $v |
| 4655 | 100 | | defined $_ and not ref $_ |
| 67 | | (split(/:/u, $_, 4))[2] // () |
| 4666 | 50 | | $self->every_param("cs") // [] |
| 4667 | 100 | | $self->stash("_held_calc_fields") // [] |
| 4678 | 50 | | $params->every_param("cs") // [] |
| 4679 | 100 | | $more // [] |
| 100 | | $analysis->{'visuals'} // [] |
| 4681 | 100 | | ref $vis eq "HASH" and ref $vis->{'cross_row'} eq "HASH" and ref $vis->{'cross_row'}{'cs'} eq "ARRAY" |
| 4980 | 33 | | eval {
do {
$path->to_abs
}
} // $path |
| 4993 | 67 | | defined $real and length $real |
| 5031 | 33 | | defined $target and length $target |
| 5060 | 100 | | defined $spec and $spec =~ m[\Apath:(?!/\.\./)([^\n]+)\z]u |
| 5072 | 33 | | defined $real && length $real |
| 5084 | 100 | | length $path and length $dir |
| 5088 | 33 | | defined $rel and length $rel |
| 5090 | 100 | | $rel eq '..' || $rel =~ m[\A\.\.[\\/]]u |
| 5161 | 33 | | $cur // $old |
| 67 | | ref $cur eq 'HASH' && ref $old eq 'HASH' |
| 5239 | 67 | | not defined $path or $STORE_LOCKS_HELD{$path} |
| 5366 | 100 | | ref $_ eq "HASH" and defined $_->{'spec'} |
| 5654 | 33 | | exists $analyses->{$id} and $tries < 100 |
| 5657 | 50 | | $body->{'version'} //= 1 |
| 5673 | 50 | | $self->stash("id") // "" |
| 5687 | 50 | | $self->stash("id") // "" |
| 5705 | 100 | | $body->{'version'} //= 1 |
| 5706 | 33 | | $analyses->{$id}{'created'} // time |
| 5718 | 50 | | $self->stash("id") // "" |
| 5740 | 100 | | $key eq "id" or $key eq "created" |
| 5754 | 50 | | $self->stash("id") // "" |
| 5782 | 50 | | $self->stash("id") // "" |
| 5795 | 50 | | $body->{'kind'} // "" |
| 5803 | 100 | | defined $body->{$key} and ref $body->{$key} ne "HASH" |
| 5814 | 25 | | defined $body->{'title'} and not ref $body->{'title'} and length $body->{'title'} |
| 5816 | 50 | | $a->{'visuals'} // [] |
| 5817 | 50 | | $a->{'visuals'} //= [] |
| 5827 | 100 | | $body->{'options'} // {} |
| 100 | | $body->{'encode'} // {} |
| 5844 | 50 | | defined $body->{'title'} and not ref $body->{'title'} and length $body->{'title'} |
| 5862 | 100 | | $a->{'visuals'} // [] |
| 5873 | 100 | | $a->{'visuals'} //= [] |
| 5884 | 100 | | _vis_cf_col($vis) // "" |
| 67 | | $vis->{'title'} // $rendered->{'title'} |
| 33 | | ($vis->{'title'} // $rendered->{'title'}) // 'Visual ' . ($index + 1) |
| 50 | | $rendered->{'head'} // "" |
| 5918 | 50 | | $self->stash("id") // "" |
| 5927 | 50 | | $self->stash("visual") // "" |
| 5932 | 50 | | $a->{'visuals'} // [] |
| 5939 | 50 | | $a->{'visuals'}[$index]{'kind'} // "" |
| 5941 | 100 | | exists $body->{'encode'} or exists $body->{'cross_row'} |
| 5958 | 100 | | $has_encode or $has_plan |
| 5992 | 33 | | @{$ctx->{'cf_specs'};} and $ctx->{'cf_source'} != $index |
| 6017 | 100 | | _vis_cf_col($vis) // "" |
| 50 | | $vis->{'kind'} // "" |
| 67 | | $vis->{'title'} // $rendered->{'title'} |
| 33 | | ($vis->{'title'} // $rendered->{'title'}) // 'Visual ' . ($index + 1) |
| 50 | | $rendered->{'head'} // "" |
| 6033 | 50 | | $self->stash("id") // "" |
| 6042 | 50 | | $self->stash("visual") // "" |
| 6047 | 50 | | $a->{'visuals'} // [] |
| 6049 | 50 | | $a->{'visuals'}[$index]{'kind'} // "" |
| 6054 | 100 | | $a->{'layout'} // [] |
| 6055 | 50 | | $entry->{'visual'} // "" |
| 6064 | 100 | | $a->{'bookmarks'} // [] |
| 33 | | ref $_ eq "HASH" and defined $_->{'state'} |
| 6085 | 100 | | A | B | C | D | E | dec |
|---|
| 0 | X | X | X | X | 0 | | 1 | 0 | X | X | X | 0 | | 1 | 1 | 0 | X | X | 0 | | 1 | 1 | 1 | 0 | X | 0 | | 1 | 1 | 1 | 1 | 0 | 0 | | 1 | 1 | 1 | 1 | 1 | 1 |
| defined $search and not ref $search and defined $removed and not ref $removed and $removed =~ /\A[0-9]{1,9}\z/u |
| 6112 | 100 | | defined $raw->{'text'} && !ref($raw->{'text'}) |
| 6122 | 100 | | $raw->{'font'} // "" |
| 6123 | 100 | | not ref $font and exists $TEXT_FONT_CSS{$font} |
| 6127 | 100 | | $raw->{'size'} // "" |
| 6128 | 100 | | A | B | C | D | dec |
|---|
| 0 | X | X | X | 0 | | 1 | 0 | X | X | 0 | | 1 | 1 | 0 | X | 0 | | 1 | 1 | 1 | 0 | 0 | | 1 | 1 | 1 | 1 | 1 |
| not ref $size and $size =~ /\A\d{1,3}\z/u and $size >= $MIN_TEXT_POINTS and $size <= $MAX_TEXT_POINTS |
| 6137 | 100 | | $raw->{$key} // "" |
| 6139 | 100 | | not ref $value and $value =~ /\A#[0-9a-fA-F]{6}\z/u |
| 6143 | 100 | | $raw->{'align'} // "" |
| 6144 | 67 | | not ref $align and $TEXT_ALIGNS{$align} |
| 6202 | 100 | | $vis->{'kind'} // "" |
| 6214 | 67 | | $vis->{'title'} // _text_card_title($vis) |
| 6224 | 50 | | $self->stash("id") // "" |
| 6264 | 33 | | exists $analyses->{$id} and $tries < 100 |
| 6267 | 100 | | $body->{'version'} //= 1 |
| 6285 | 100 | | defined $cv && $cv =~ /\A[0-9]{1,9}\z/u |
| 6441 | 100 | | ($options->{'orientation'} // $options->{'orient'}) // "" |
| 100 | | $options->{'orientation'} // $options->{'orient'} |
| 6468 | 100 | | !(defined $val_col && length $val_col) || $val_col eq '__count__' |
| 6471 | 100 | | defined $agg_fn && !ref($agg_fn) && length $agg_fn |
| 6473 | 100 | | defined $named and $named eq "count" |
| 6475 | 100 | | not defined $named and $count_col |
| 6477 | 100 | | defined $named and $count_col |
| 7306 | 100 | | $vis->{'encode'} // {} |
| 7308 | 100 | | $enc->{$key} // "" |
| 7364 | 50 | | $self->stash("id") // "" |
| 7392 | 100 | | $a->{'updated'} // 0 |
| 7394 | 67 | | $analysis_updated and $analysis_updated =~ /
\A
(\d{4}) - (\d{2}) - (\d{2}) # $1 yr $2 mon $3 day
T
(\d{2}) : (\d{2}) : (\d{2}) # $4 hr $5 min $6 sec
Z? \z
/ux |
| 7405 | 100 | | $a->{'datasets'} // [] |
| 7406 | 50 | | $ds->{'spec'} // "" |
| 7409 | 67 | | $src and $src->can("updated") |
| 7410 | 50 | | eval {
do {
$src->updated
}
} // 0 |
| 7413 | 100 | | $newest_src_mtime and $analysis_updated and $newest_src_mtime > $analysis_updated |
| 7422 | 100 | | $a->{'visuals'} // [] |
| 7440 | 100 | | $a->{'params'} // {} |
| 7449 | 100 | | $def->{'default'} // "" |
| 100 | | $def->{'type'} // "string" |
| 7461 | 33 | | $name eq "range" or $name eq "rcol" |
| 7463 | 50 | | $q->every_param($name) // [] |
| 7470 | 50 | | $a->{'datasets'} // [] |
| 50 | | $_->{'spec'} // "" |
| 7478 | 33 | | $a->{'name'} // $id |
| 7486 | 50 | | $a->{'datasets'}[0]{'spec'} // "" |
| 7508 | 100 | | $cross_row and $cross_row->{'error'} |
| 7518 | 50 | | $self->stash("range_specs") // [] |
| 7528 | 50 | | $self->every_param("cf") // [] |
| 7543 | 50 | | $val //= "" |
| 7562 | 50 | | $a->{'datasets'} // [] |
| 7563 | 50 | | +($ds0 // {})->{'spec'} // "" |
| 50 | | $ds0 // {} |
| 7578 | 100 | | $self->param("dd") // "" |
| 7580 | 67 | | defined $dl_raw && length $dl_raw |
| 7583 | 50 | | $_->{'name'} // "" |
| 7584 | 100 | | $a->{'hierarchies'} // [] |
| 7589 | 67 | | $dd_hier && length $dd_name && @{$dd_hier->{'levels'} // [];} |
| 7595 | 50 | | $dd_hier->{'levels'} // [] |
| 7601 | 100 | | $levels[$dd_level] // "" |
| 7608 | 33 | | length($col // "") and ($op // "") eq "eq" |
| 50 | | $val // "" |
| 50 | | $col // "" |
| 50 | | $op // "" |
| 7624 | 50 | | $cf_by_col{$col_i} // "" |
| 7654 | 100 | | $a->{'layout'} // [] |
| 7656 | 20 | | A | B | C | D | dec |
|---|
| 0 | X | X | X | 0 | | 1 | 0 | X | X | 0 | | 1 | 1 | 0 | X | 0 | | 1 | 1 | 1 | 0 | 0 | | 1 | 1 | 1 | 1 | 1 |
| defined $x and defined $y and defined $w and defined $h |
| 7657 | 50 | | $lp->{'visual'} // "" |
| 7659 | 50 | | $lp->{'visual'} // "" |
| 7670 | 100 | | $cf_active and $i != $cf_source |
| 7674 | 100 | | $cf_active && $i != $cf_source |
| 7680 | 33 | | $canvas_map_head ||= $result->{'head'} // "" |
| 7692 | 100 | | _vis_cf_col($vis) // "" |
| 100 | | $vis->{'title'} // $result->{'title'} |
| 67 | | ($vis->{'title'} // $result->{'title'}) // 'Visual ' . ($i + 1) |
| 100 | | $result->{'html'} // "" |
| 100 | | $result->{'error'} // "" |
| 100 | | $vis->{'kind'} // "" |
| 100 | | $layout_pos{$i} // "" |
| 7699 | 100 | | $a->{'bookmarks'} // [] |
| 7717 | 50 | | $cross_row->{'specs'} // [] |
| 67 | | $cross_row && ref $cross_row eq 'HASH' |
| 7747 | 50 | | $self->_analysis_to_url($a) // "" |
| 8102 | 67 | | defined $ENV{'BI_OPEN'} and length $ENV{'BI_OPEN'} |
| 8105 | 100 | | defined $from and ("Mojo::URL"->new($from)->host_port // "") eq $here |
| 100 | | "Mojo::URL"->new($from)->host_port // "" |
| 8156 | 100 | | defined $path && $path =~ /$EXT_RE/u |
| 8219 | 100 | | defined $value and $value =~ m(\A/(?![/\\]))u and not $value =~ /[\x00-\x20\x7f\\]/u |
| 8227 | 100 | | defined $hash && length $hash |
| 8231 | 50 | | $self->_login_hash // (return 1) |
| 8232 | 100 | | $self->session("login") // "" |
| 8244 | 100 | | $req->headers->accept // "" |
| 100 | | $req->method =~ /\A(?:GET|HEAD)\z/u and ($req->headers->accept // "") =~ m[text/html]u and not $req->url->path->to_string =~ m[\A/api/]u |
| 8266 | 100 | | $args{'status'} // 200 |
| 100 | | $args{'error'} // "" |
| 8282 | 50 | | $self->tx->remote_address // "" |
| 8284 | 100 | | $LOGIN_FAILURES{&Scalar::Util::refaddr(scalar $self->app)} //= {} |
| 8289 | 100 | | $failures->{$who} // [] |
| 8291 | 50 | | int(($seen->[0] + $LOGIN_WINDOW - $now + 59) / 60) || 1 |
| 8295 | 50 | | scalar $self->param("password") // "" |
| 8296 | 100 | | $failures->{$who} //= [] |
| 8345 | 67 | | _page_size_preference($self) // $DEFAULT_PER_PAGE |
| 8471 | 67 | | defined $table and $table =~ /$TABLE_NAME_RE/u |
| 8480 | 100 | | $self->_accelerated_source("table:$table") // $self->open_table($table) |
| 8482 | 75 | | $source and $source->sqlite_tables and @{$source->sqlite_tables;} > 1 |
| 8501 | 100 | | $listing and grep {&$stem_of($_) eq lc $table;} $listing->each |
| 8531 | 50 | | $records //= [] |
| 8549 | 100 | | $self->param("back2_label") // "Back" |
| 8626 | 67 | | $self->param("path") // _first_root($self) |
| 8631 | 100 | | defined $dir and -d $dir |
| 8660 | 67 | | $parent->to_string ne $dir->to_string && !_outside_roots($self, $parent->to_string) |
| 8761 | 100 | | defined $enc and $UPLOAD_ENCODINGS{$enc} |
| 8777 | 33 | | $file_path =~ /$REDIS_SPEC_RE/u or $file_path =~ /$MARIADB_SPEC_RE/u |
| 8819 | 0 | | $records //= [] |
| 8827 | 0 | | $self->param("back2_label") // "Back" |
| 0 | | _safe_back_url($self->param("back")) // "/" |
| 0 | | $self->param("back_label") // "Home" |
| 8888 | 50 | | $records //= [] |
| 8896 | 50 | | $self->param("back2_label") // "Back" |
| 8935 | 80 | | A | B | C | D | dec |
|---|
| 0 | X | X | X | 0 | | 1 | 0 | X | X | 0 | | 1 | 1 | 0 | X | 0 | | 1 | 1 | 1 | 0 | 0 | | 1 | 1 | 1 | 1 | 1 |
| defined $file and CORE::index($file, "\0") == -1 and do {
BEGIN {${^WARNING_BITS} = "\x55\x55\x51\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55"}
-f $file
} and $file->basename =~ /$EXT_RE/u |
| 8943 | 100 | | ($self->param("it") // $self->param("sheet")) // $named_it |
| 100 | | $self->param("it") // $self->param("sheet") |
| 8948 | 100 | | defined $it and $it =~ /$TABLE_NAME_RE/u |
| 8951 | 50 | | $data_dir and $file_dir and "$file_dir" eq "$data_dir" |
| 8955 | 60 | | A | B | C | D | dec |
|---|
| 0 | X | X | X | 0 | | 1 | 0 | X | X | 0 | | 1 | 1 | 0 | X | 0 | | 1 | 1 | 1 | 0 | 0 | | 1 | 1 | 1 | 1 | 1 |
| defined $it and length $it and not $it =~ /[#\n]/u and $lspec =~ /\Apath:/u |
| 8962 | 50 | | $self->param("back_label") // "Back" |
| 8967 | 100 | | (defined $it ? undef : $self->_accelerated_source($lspec)) // $self->open_table($table, "directory", $dir->to_string, defined $it ? ("internal_table", $it) : ()) |
| 8971 | 80 | | A | B | C | D | dec |
|---|
| 0 | X | X | X | 0 | | 1 | 0 | X | X | 0 | | 1 | 1 | 0 | X | 0 | | 1 | 1 | 1 | 0 | 0 | | 1 | 1 | 1 | 1 | 1 |
| not defined $it and $source and $source->sqlite_tables and @{$source->sqlite_tables;} > 1 |
| 8984 | 100 | | $filename =~ /\.(?:sql|sqlite|sqlite3|db)\z/iu and not $@ =~ /cannot be opened|can be opened/u |
| 8989 | 50 | | $self->param("back2_label") // "Back" |
| 9013 | 50 | | $records //= [] |
| 9023 | 100 | | $self->param("back2_label") // "Back" |
| 9093 | 100 | | $self->param("url") // "" |
| 9094 | 100 | | $self->param("table_index") // 0 |
| 9133 | 100 | | $self->param("back2_label") // "Back" |
| 9212 | 100 | | defined $table_name or defined $path |
| 9213 | 100 | | $self->param("spec") // "" |
| 9222 | 100 | | defined $table_name and $table_name =~ m[\A([A-Za-z_][A-Za-z0-9_]*)(?:/([A-Za-z_][A-Za-z0-9_]*))?\z]u |
| 100 | | $self->param("spec") // "" |
| 9238 | 50 | | $2 // "" |
| 9250 | 100 | | defined $file and -f $file and $file->basename =~ /$EXT_RE/u |
| 9262 | 0 | | eval {
do {
$source->fetch_all
}
} // [] |
| 9306 | 100 | | $self->param("l") // "" |
| 9307 | 100 | | $self->param("col") // "" |
| 9315 | 100 | | $records and grep {$_ eq $col;} @$columns |
| 9320 | 100 | | $rec->{$col} // "" |
| 9401 | 100 | | $self->param("l") // "" |
| 9410 | 33 | | $self->app->config("join_max_rows") // $DEFAULT_JOIN_MAX_ROWS |
| 9411 | 100 | | $self->param("jtype") // "left" |
| 9417 | 50 | | defined $right_spec and defined $left_key and defined $right_key |
| 9453 | 100 | | $self->param("dir") // "asc" |
| 9477 | 50 | | $records //= [] |
| 9483 | 67 | | defined $sort and not grep({$_ eq $sort;} @columns) |
| 9497 | 100 | | $self->param("back2_label") // "Back" |
| 9585 | 100 | | $self->param("l") // "" |
| 9605 | 50 | | $self->stash("pipeline_joined") // [] |
| 9606 | 50 | | $self->stash("pipeline_combined") // [] |
| 9610 | 67 | | $span and $span->{'error'} |
| 9629 | 100 | | $self->param("dir") // "asc" |
| 9630 | 67 | | defined $sort and grep {$_ eq $sort;} @columns |
| 9633 | 50 | | $Database::BI::Controller::Dashboard::b->{$sort} // "" |
| 50 | | $Database::BI::Controller::Dashboard::a->{$sort} // "" |
| 9663 | 50 | | $self->stash("schema_warnings") // [] |
| 100 | | $self->param("back2_label") // "Back" |
| 9827 | 100 | | $self->stash("schema_warnings") // [] |
| 9835 | 100 | | $self->param("format") // "csv" |
| 9994 | 100 | | $self->param("dir") // "" |
| 9995 | 100 | | $self->param("filename") // "" |
| 9997 | 100 | | _outside_roots($self, $dir) // _outside_export_dirs($self, $dir) |
| 10001 | 100 | | defined $dest_dir and -d $dest_dir |
| 10021 | 100 | | $filename // "" |
| 10022 | 100 | | /\A\./u and $_ ne "." |
| 10023 | 50 | | $filename // "" |
| 10029 | 100 | | $filename and $filename =~ /\.json\z/iu |
| 100 | | $filename and $filename =~ /\.csv\z/iu |
| 100 | | $filename and $filename =~ /\.sql\z/iu |
| 10050 | 100 | | -l $dest or -e $dest and not -f $dest |
| 10129 | 67 | | ($self->param("path") // (_export_dirs($self))[0]) // _first_root($self) |
| 100 | | $self->param("path") // (_export_dirs($self))[0] |
| 10130 | 100 | | _outside_roots($self, $raw) // _outside_export_dirs($self, $raw) |
| 10134 | 100 | | defined $dir and -d $dir |
| 10139 | 100 | | $parent->to_string ne $dir->to_string && !_outside_roots($self, $parent->to_string) && !_outside_export_dirs($self, $parent->to_string) |
| 10202 | 100 | | defined $path and length $path |
| 10213 | 100 | | A | B | C | D | dec |
|---|
| 0 | X | X | X | 0 | | 1 | 0 | X | X | 0 | | 1 | 1 | 0 | X | 0 | | 1 | 1 | 1 | 0 | 0 | | 1 | 1 | 1 | 1 | 1 |
| defined $file and -f $file and $file->basename =~ /$EXT_RE/u and not _outside_roots($self, $path) |
| 10309 | 67 | | $upload and $upload->filename |
| 10321 | 100 | | $self->req->is_limit_exceeded or $upload->size > $MAX_UPLOAD_BYTES |
| 10331 | 67 | | $filename and $filename =~ /$EXT_RE/u |
| 10366 | 100 | | $ok and -f $dest |
| 10376 | 50 | | $encoding //= "UTF-8" |
| 10399 | 67 | | defined $bytes and length $bytes |
| 10431 | 50 | | -s $file // 0 |
| 10436 | 0 | | -s $entry // 0 |
| 10466 | 100 | | $self->param("x") // "" |
| 10467 | 100 | | $self->param("y") // "" |
| 10468 | 100 | | $self->param("series") // "" |
| 10469 | 100 | | $self->param("agg") // "" |
| 10470 | 100 | | _safe_back_url($self->param("back")) // "/" |
| 10472 | 50 | | $self->param("back2_label") // "" |
| 10474 | 100 | | length $x_col and length $y_col |
| 10480 | 100 | | length $agg_fn and not _measure_fn_ok($agg_fn) |
| 10492 | 100 | | $span and $span->{'error'} |
| 10532 | 50 | | $row->{$x_col} // "" |
| 10535 | 50 | | $row->{$series_col} // "" |
| 10536 | 67 | | length $series_col and not length $name |
| 10590 | 0 | | $back2_lbl || 'Back' |
| 33 | | $back2 // $back |
| 10613 | 50 | | $row->{$x_col} // "" |
| 10614 | 50 | | $row->{$y_col} // "" |
| 10615 | 50 | | $row->{$series_col} // "" |
| 10616 | 25 | | length $x and length $y and length $grp |
| 10649 | 0 | | $back2_lbl || 'Back' |
| 33 | | $back2 // $back |
| 10672 | 50 | | $row->{$x_col} // "" |
| 10673 | 100 | | $row->{$y_col} // "" |
| 10674 | 67 | | length $x and length $y |
| 10694 | 67 | | A | B | C | D | E | dec |
|---|
| 0 | X | X | X | X | 0 | | 1 | 0 | X | X | X | 0 | | 1 | 1 | 0 | X | X | 0 | | 1 | 1 | 1 | 0 | X | 0 | | 1 | 1 | 1 | 1 | 0 | 0 | | 1 | 1 | 1 | 1 | 1 | 1 |
| not $ENV{'BI_FORCE_PERL_AGG'} and $src and not $has_filter and not _dedup_requested($self) and _measure_pushable($src, "avg", $y_col, $records) |
| 10706 | 25 | | not $@ and $ref and @$ref |
| 10761 | 0 | | $back2_lbl || 'Back' |
| 33 | | $back2 // $back |
| 10777 | 67 | | ref $ys eq "ARRAY" and @$ys >= 2 |
| 10782 | 33 | | defined $slope and defined $intercept |
| 10784 | 50 | | $r2 // 0 |
| 10788 | 100 | | $self->param("cat") // "" |
| 10789 | 100 | | $self->param("val") // "" |
| 10791 | 100 | | _safe_back_url($self->param("back")) // "/" |
| 10793 | 50 | | $self->param("back2_label") // "" |
| 10795 | 100 | | length $cat_col and length $val_col |
| 10804 | 67 | | $span and $span->{'error'} |
| 10819 | 67 | | $count_mode or $col_set{$val_col} |
| 10829 | 50 | | $row->{$val_col} // "" |
| 10850 | 50 | | _whole_number($self->param("topn")) // 0 |
| 10851 | 33 | | $topn_n > 0 and @$agg_rows > $topn_n |
| 10852 | 0 | | $Database::BI::Controller::Dashboard::a->{'value'} // 0 |
| 0 | | $Database::BI::Controller::Dashboard::b->{'value'} // 0 |
| 10854 | 0 | | $_->{$cat_col} // "" |
| 10856 | 0 | | $_->{$cat_col} // "" |
| 10865 | 0 | | @$other and defined $other->[0]{'value'} |
| 10902 | 0 | | $back2_lbl || 'Back' |
| 33 | | $back2 // $back |
| 10978 | 100 | | $self->param("x") // "" |
| 10979 | 100 | | $self->param("y") // "" |
| 10980 | 100 | | $self->param("val") // "" |
| 10983 | 50 | | _safe_back_url($self->param("back")) // "/" |
| 10985 | 50 | | $self->param("back2_label") // "" |
| 10987 | 100 | | length $x_col and length $y_col |
| 10996 | 100 | | $span and $span->{'error'} |
| 11010 | 67 | | length $val_col and not $col_set{$val_col} |
| 11021 | 100 | | $row->{$x_col} // (next) |
| 11022 | 50 | | $row->{$y_col} // (next) |
| 11023 | 33 | | length $x and length $y |
| 11047 | 100 | | $grid{$raw_x}{$_} // 0 |
| 11080 | 0 | | $back2_lbl || 'Back' |
| 33 | | $back2 // $back |
| 11153 | 100 | | $self->param("cat") // "" |
| 11154 | 100 | | $self->param("val") // "" |
| 11155 | 100 | | $self->param("orient") // "vertical" |
| 11156 | 100 | | $self->param("sort") // "none" |
| 11157 | 100 | | $self->param('max') || 0 |
| 11158 | 100 | | _safe_back_url($self->param("back")) // "/" |
| 11160 | 50 | | $self->param("back2_label") // "" |
| 11174 | 100 | | $span and $span->{'error'} |
| 11187 | 100 | | $val_col eq '__count__' || !length($val_col) |
| 11189 | 100 | | $count_mode or $col_set{$val_col} |
| 11206 | 100 | | _whole_number($self->param("topn")) // 0 |
| 11207 | 67 | | $topn_n > 0 and @$agg_rows > $topn_n |
| 11208 | 50 | | $Database::BI::Controller::Dashboard::a->{'value'} // 0 |
| 50 | | $Database::BI::Controller::Dashboard::b->{'value'} // 0 |
| 11210 | 50 | | $_->{$cat_col} // "" |
| 11212 | 50 | | $_->{$cat_col} // "" |
| 11221 | 33 | | @$other and defined $other->[0]{'value'} |
| 11234 | 100 | | $sort eq 'value' || $sort eq 'label' |
| 11256 | 50 | | $orient // "v" |
| 11263 | 0 | | $back2_lbl || 'Back' |
| 33 | | $back2 // $back |
| 11345 | 100 | | $self->param("col") // "" |
| 11346 | 100 | | $self->param("prefix") // "" |
| 11347 | 100 | | $self->param("l") // "" |
| 11359 | 33 | | _safe_back_url($self->param('back')) || $self->_spec_to_url($left_spec) |
| 11373 | 50 | | $row->{$col} // "" |
| 11379 | 67 | | $key_col ||= $columns->[0] // "" |
| 11386 | 100 | | $row->{$key_col} // "" |
| 11465 | 100 | | $prefix_to_rows{$prefix} // [] |
| 11469 | 50 | | $Database::BI::Controller::Dashboard::a->{$key_col} // "" |
| 11470 | 50 | | $Database::BI::Controller::Dashboard::b->{$key_col} // "" |
| 11472 | 100 | | $bn // 0 |
| 50 | | $Database::BI::Controller::Dashboard::a->{$key_col} // "" |
| 50 | | $Database::BI::Controller::Dashboard::b->{$key_col} // "" |
| 100 | | $an // 0 |
| 11534 | 100 | | defined $spec and length $spec |
| 11542 | 67 | | _table_stem($data_dir, $1, @exts) // lc $1 |
| 11560 | 75 | | defined $file and -f $file and $file->basename =~ /\.(?:sql|sqlite|sqlite3|db|json|xlsx)\z/iu |
| 11573 | 0 | | $hostport //= "localhost:6379" |
| 11595 | 0 | | defined $password and length $password |
| 11596 | 0 | | defined $db_idx and int $db_idx > 0 |
| 11601 | 0 | | $cursor ne 0 and @all_keys < 200 |
| 11604 | 0 | | $batch // [] |
| 11623 | 0 | | $self->app->config("mariadb_servers") // {} |
| 11671 | 100 | | $tname =~ /$TABLE_NAME_RE/u or $file_path =~ /\.(?:json|xlsx)\z/iu |
| 11741 | 100 | | $self->param("l") // "" |
| 11745 | 50 | | _safe_back_url($self->param("back")) // "/" |
| 11747 | 50 | | $self->param("back2_label") // "" |
| 11749 | 100 | | $self->param("rows") // "" |
| 11753 | 50 | | $self->every_param("m") // [] |
| 11760 | 100 | | $self->param("cols") // "" |
| 11773 | 100 | | $self->param("totals") // "" |
| 11774 | 50 | | $self->param("scheme") // "" |
| 11775 | 50 | | $self->param('max_cols') || 0 |
| 11776 | 100 | | $self->param("format") // "" |
| 11787 | 100 | | $span and $span->{'error'} |
| 11812 | 67 | | defined $m->{'col'} and length $m->{'col'} |
| 11830 | 67 | | defined $m->{'col'} && length $m->{'col'} |
| 11838 | 50 | | $row->{$_} // "" |
| 11839 | 50 | | $row->{$_} // "" |
| 11842 | 50 | | $row->{$_} // "" |
| 11846 | 50 | | $row->{$_} // "" |
| 11856 | 50 | | $self->every_param("h") // [] |
| 11889 | 100 | | _whole_number($self->param("topn")) // 0 |
| 11890 | 100 | | $self->param("topn_col") // "" |
| 11892 | 67 | | $topn_n > 0 and @row_key_order > $topn_n |
| 11894 | 67 | | length $topn_col and not $m_aliases{$topn_col} |
| 11904 | 50 | | $cells{$b}{$_}{$sort_as} // 0 |
| 11906 | 50 | | $cells{$a}{$_}{$sort_as} // 0 |
| 11917 | 50 | | $r->{$_} // "" |
| 11924 | 33 | | defined $m->{'col'} && length $m->{'col'} |
| 11930 | 0 | | $row->{$_} // "" |
| 11952 | 33 | | defined $m->{'col'} && length $m->{'col'} |
| 11962 | 50 | | $r->{$_} // "" |
| 11975 | 50 | | $c->{$_} // "" |
| 11995 | 33 | | $max_cols_n > 0 and @col_key_order > $max_cols_n |
| 12000 | 0 | | $cells{$_}{$b}{$first_as} // 0 |
| 12005 | 0 | | $cells{$_}{$a}{$first_as} // 0 |
| 0 | | $col_subtotals{$b}{$first_as} // 0 |
| 0 | | $col_subtotals{$a}{$first_as} // 0 |
| 12032 | 67 | | $format and $format =~ /\A(?:csv|sqlite|sql|json|xlsx)\z/u |
| 12037 | 50 | | $row_combos{$rk}{$_} // "" |
| 12038 | 0 | | $col_combos{$ck}{$_} // "" |
| 12039 | 50 | | $cells{$rk}{$ck}{$_->{'as'}} // "" |
| 12046 | 33 | | $format eq "sqlite" or $format eq "sql" |
| 12061 | 50 | | $rec->{$_} // "" |
| 12097 | 50 | | $col_combos{$ck}{$_} // "" |
| 12105 | 100 | | $cells{$rk}{$ck} // {} |
| 12110 | 50 | | $row_subtotals{$rk} // {} |
| 12117 | 0 | | $self->param("back_label") // "Back to table" |
| 33 | | $back2 // $back |
| 0 | | $back2_lbl || 'Back' |
| 50 | | $self->param("back_label") // "Back to table" |
| 12189 | 100 | | $self->param("l") // "" |
| 12198 | 67 | | defined $pct_arg and length $pct_arg |
| 12199 | 100 | | $pct_arg =~ /\A\d{1,3}\z/u and $pct_arg >= 1 and $pct_arg <= 100 |
| 12206 | 50 | | _safe_back_url($self->param("back")) // "/" |
| 12208 | 50 | | $self->param("back2_label") // "" |
| 12282 | 0 | | $self->param("back_label") // "Back to table" |
| 33 | | $back2 // $back |
| 0 | | $back2_lbl || 'Back' |
| 50 | | $self->param("back_label") // "Back to table" |
| 12321 | 67 | | $err =~ /\AUnknown column '([^']+)'/u and not $cols{$1} |
| 12332 | 100 | | $self->param("l") // "" |
| 12333 | 100 | | $self->param("name") // "" |
| 12334 | 100 | | $self->param("expr") // "" |
| 12362 | 100 | | $self->param("l") // "" |
| 12363 | 100 | | $self->param("name") // "" |
| 12375 | 100 | | $self->param("l") // "" |
| 12380 | 100 | | $models->{'fields'}{$spec} // {} |
| 12389 | 100 | | $self->param("l") // "" |
| 12390 | 100 | | $self->param("col") // "" |
| 12391 | 100 | | $self->param("group") // "" |
| 12395 | 50 | | $self->every_param("values") // [] |
| 12416 | 100 | | $self->param("l") // "" |
| 12417 | 100 | | $self->param("col") // "" |
| 12418 | 100 | | $self->param("group") // "" |
| 12424 | 100 | | length $col and length $group_name |
| 12436 | 100 | | $self->param("l") // "" |
| 12441 | 100 | | $models->{'groups'}{$spec} // {} |
| 12461 | 100 | | $self->param("l") // "" |
| 12462 | 100 | | $self->param("col") // "" |
| 12463 | 100 | | $self->param("pattern") // "" |
| 12464 | 100 | | $self->param("time") // "" |
| 12465 | 100 | | $self->param("as") // "" |
| 12478 | 100 | | length $time and not $ALLOWED_TIME_PATTERNS{$time} |
| 12479 | 100 | | length $as and $as ne "timestamp" |
| 12484 | 100 | | length $time || length $as |
| 12498 | 100 | | $self->param("l") // "" |
| 12499 | 100 | | $self->param("col") // "" |
| 12519 | 100 | | $self->param("l") // "" |
| 12524 | 100 | | $models->{'date_patterns'}{$spec} // {} |
| 12539 | 100 | | $self->param("l") // "" |
| 12540 | 100 | | $self->param("name") // "" |
| 12541 | 100 | | $self->param("key") // "" |
| 12542 | 100 | | $self->param("col") // "" |
| 12543 | 50 | | $self->every_param("fields") // [] |
| 12552 | 100 | | $self->param("file") // "" |
| 12572 | 100 | | $self->param("l") // "" |
| 12573 | 100 | | $self->param("name") // "" |
| 12591 | 100 | | $self->param("l") // "" |
| 12596 | 100 | | $models->{'lookups'}{$spec} // {} |
| 12611 | 100 | | $self->param("l") // "" |
| 12612 | 100 | | $self->param("name") // "" |
| 12613 | 100 | | $self->param("col") // "" |
| 12614 | 100 | | $self->param("pattern") // "" |
| 12615 | 50 | | $self->every_param("fields") // [] |
| 12642 | 100 | | $self->param("l") // "" |
| 12643 | 100 | | $self->param("name") // "" |
| 12661 | 100 | | $self->param("l") // "" |
| 12666 | 100 | | $models->{'extractions'}{$spec} // {} |
| 12688 | 100 | | $self->param("l") // "" |
| 12689 | 50 | | $self->every_param("col") // [] |
| 12690 | 50 | | $self->every_param("kind") // [] |
| 12695 | 67 | | @cols and not grep({not length $_;} @cols) |
| 12697 | 100 | | @kinds == @cols and not grep({not /\A(?:lat|lon|location|location_suffix)\z/u;} @kinds) |
| 12698 | 100 | | $self->param("loc_text") // "" |
| 12718 | 100 | | $self->param("l") // "" |
| 12719 | 100 | | $self->param("col") // "" |
| 12739 | 100 | | $self->param("l") // "" |
| 12747 | 33 | | defined $loc_text && !ref($loc_text) && length $loc_text |
| 100 | | $models->{'geo'}{$spec}{'columns'} // {} |
| 12756 | 100 | | $self->param("x") // "" |
| 12757 | 100 | | $self->param("y") // "" |
| 12758 | 100 | | $self->param("series") // "" |
| 12759 | 100 | | $self->param("size") // "" |
| 12760 | 100 | | $self->param("scheme") // "tableau10" |
| 12762 | 50 | | _safe_back_url($self->param("back")) // "/" |
| 12764 | 50 | | $self->param("back2_label") // "" |
| 12781 | 100 | | length $series_col and not $col_set{$series_col} |
| 12783 | 100 | | length $size_col and not $col_set{$size_col} |
| 12785 | 100 | | length $series_col and not $SCATTER_SCHEMES{$scheme} |
| 12791 | 50 | | $row->{$x_col} // "" |
| 12792 | 50 | | $row->{$y_col} // "" |
| 12793 | 67 | | defined $xv and defined $yv |
| 12794 | 50 | | $row->{$_} // "" |
| 12799 | 50 | | $row->{$size_col} // "" |
| 12842 | 0 | | $back2_lbl || 'Back' |
| 33 | | $back2 // $back |
| 12867 | 100 | | $self->param("cat") // "" |
| 12869 | 100 | | ($self->param("series") // $self->param("seg")) // "" |
| 100 | | $self->param("series") // $self->param("seg") |
| 12870 | 100 | | $self->param("val") // "" |
| 12871 | 100 | | $self->param("orient") // "v" |
| 12873 | 50 | | _safe_back_url($self->param("back")) // "/" |
| 12875 | 50 | | $self->param("back2_label") // "" |
| 12884 | 67 | | $span and $span->{'error'} |
| 12896 | 67 | | !length($val_col) || $val_col eq '__count__' |
| 12898 | 67 | | $count_mode or $col_set{$val_col} |
| 12918 | 50 | | $_->{$cat_col} // "" |
| 12919 | 50 | | $_->{$seg_col} // "" |
| 12923 | 33 | | length $cat && length $seg |
| 12960 | 0 | | $back2_lbl || 'Back' |
| 33 | | $back2 // $back |
| 12976 | 100 | | ($self->param("cat") // $self->param("x")) // "" |
| 100 | | $self->param("cat") // $self->param("x") |
| 12978 | 100 | | ($self->param("bar_val") // $self->param("bar")) // "" |
| 100 | | $self->param("bar_val") // $self->param("bar") |
| 12980 | 100 | | ($self->param("line_val") // $self->param("line")) // "" |
| 100 | | $self->param("line_val") // $self->param("line") |
| 12981 | 50 | | $self->param("bar_label") // "" |
| 12982 | 50 | | $self->param("line_label") // "" |
| 12984 | 50 | | _safe_back_url($self->param("back")) // "/" |
| 12986 | 50 | | $self->param("back2_label") // "" |
| 12996 | 67 | | $span and $span->{'error'} |
| 13026 | 50 | | $r->{$x_col} // "" |
| 13032 | 50 | | $r->{$x_col} // "" |
| 13052 | 33 | | $bar_label || $bar_col |
| 13053 | 33 | | $line_label || $line_col |
| 13072 | 0 | | $back2_lbl || 'Back' |
| 33 | | $back2 // $back |
| 13135 | 100 | | ($self->param("group") // $self->param("cat")) // "" |
| 100 | | $self->param("group") // $self->param("cat") |
| 13137 | 100 | | ($self->param("size") // $self->param("val")) // "" |
| 100 | | $self->param("size") // $self->param("val") |
| 13139 | 50 | | _safe_back_url($self->param("back")) // "/" |
| 13141 | 50 | | $self->param("back2_label") // "" |
| 13146 | 100 | | $self->param("color") // "" |
| 13153 | 100 | | $color_m and $color_m->{'error'} |
| 13159 | 100 | | $span and $span->{'error'} |
| 13170 | 67 | | !length($val_col) || $val_col eq '__count__' |
| 13172 | 67 | | $count_mode or $col_set{$val_col} |
| 13174 | 100 | | length $color_col and not $col_set{$color_col} |
| 13193 | 100 | | _whole_number($self->param("topn")) // 0 |
| 13194 | 67 | | $topn_n > 0 and @$agg_rows > $topn_n |
| 13195 | 50 | | $Database::BI::Controller::Dashboard::a->{'value'} // 0 |
| 50 | | $Database::BI::Controller::Dashboard::b->{'value'} // 0 |
| 13197 | 50 | | $_->{$cat_col} // "" |
| 13199 | 50 | | $_->{$cat_col} // "" |
| 13207 | 33 | | @$other and defined $other->[0]{'value'} |
| 13225 | 50 | | $_->{$cat_col} // "" |
| 13253 | 0 | | $back2_lbl || 'Back' |
| 33 | | $back2 // $back |
| 13278 | 100 | | $self->param("col") // "" |
| 13280 | 100 | | defined $_bins_raw && length $_bins_raw |
| 13282 | 50 | | _safe_back_url($self->param("back")) // "/" |
| 13284 | 50 | | $self->param("back2_label") // "" |
| 13301 | 50 | | $row->{$col} // "" |
| 13310 | 67 | | _whole_number($bins) // ($bins =~ /\A\d+\z/u ? $MAX_HISTOGRAM_BINS : 1) |
| 13378 | 0 | | $back2_lbl || 'Back' |
| 33 | | $back2 // $back |
| 13445 | 100 | | defined $text and length $text |
| 13465 | 100 | | defined $raw && !ref($raw) && $raw =~ /\A\d+\z/u |
| 13489 | 100 | | $extra_stop // "" |
| 13497 | 100 | | $seen{$_}++ || $stop{$_} |
| 13501 | 100 | | &sum(values %count) // 0 |
| 13530 | 100 | | $self->param("col") // "" |
| 13534 | 100 | | _safe_back_url($back_raw) // "/" |
| 13536 | 50 | | $self->param("back2_label") // "" |
| 13571 | 67 | | defined $back_raw && length $back_raw |
| 13608 | 67 | | defined $stop && length $stop |
| 13620 | 0 | | $back2_lbl || 'Back' |
| 33 | | $back2 // $back |
| 13669 | 100 | | defined $_ and not ref $_ and length $_ |
| 13709 | 50 | | $outlines->{'inside'} // {} |
| 13710 | 50 | | $outlines->{'pending'} // [] |
| 13714 | 67 | | not defined $key or $waiting{$key} |
| 13721 | 50 | | $_->{'row_indexes'} // [$_->{'first_row'}] |
| 13728 | 33 | | defined $_->{'value'} && !ref($_->{'value'}) && length $_->{'value'} |
| 13736 | 50 | | $held{$_->{'properties'}{'osm'} // ""} // [] |
| 50 | | $_->{'properties'}{'osm'} // "" |
| 13743 | 50 | | $_->{'properties'}{'name'} // "" |
| 13763 | 33 | | @rows and @{$columns;} |
| 13767 | 33 | | defined $cell && !ref($cell) |
| 13797 | 100 | | $resolved->{'skipped'} // [] |
| 13798 | 67 | | defined $value && !ref($value) |
| 13801 | 100 | | $resolved->{'unresolved'} // [] |
| 13802 | 100 | | $resolved->{'not_attempted'} // [] |
| 13809 | 67 | | defined $value && !ref($value) |
| 13813 | 67 | | $first{$key} //= $index |
| 13818 | 67 | | defined $cell && !ref($cell) |
| 13840 | 100 | | defined $cell && !ref($cell) && length $cell |
| 13856 | 100 | | defined $region && !ref($region) && $region =~ /\A[A-Za-z]{2}\z/u |
| 14364 | 50 | | defined $value and not ref $value and length $value |
| 15006 | 33 | | defined $version and length $version |
| 15038 | 100 | | defined $html and length $html |
| 15070 | 100 | | $id_suffix // "map" |
| 15099 | 100 | | $self->param("lat") // "" |
| 15100 | 100 | | $self->param("lon") // "" |
| 15101 | 50 | | _safe_back_url($self->param("back")) // "/" |
| 15103 | 50 | | $self->param("back2_label") // "" |
| 15106 | 50 | | $self->param("zoom") // "" |
| 15107 | 50 | | $self->param("max_zoom") // "" |
| 15108 | 100 | | $self->param("tiles") // "" |
| 15109 | 100 | | $self->param("heat") // 0 |
| 15110 | 100 | | $self->param("bounds") // "" |
| 15111 | 100 | | $self->param("loc_text") // "" |
| 15112 | 100 | | $self->param("weight") // "" |
| 15113 | 100 | | $self->param("shade") // "" |
| 15114 | 100 | | $self->param("shade_color") // "" |
| 15115 | 100 | | $self->param("size") // "" |
| 15116 | 100 | | $self->param("series") // "" |
| 15117 | 100 | | $self->param("scheme") // "tableau10" |
| 15123 | 50 | | $self->app->config("tile_sources") // {} |
| 15134 | 33 | | length $zoom_raw and $zoom_raw =~ /\A\d+\z/u |
| 15141 | 33 | | length $max_zoom_raw and $max_zoom_raw =~ /\A\d+\z/u |
| 15147 | 33 | | defined $cfg_max_zoom and $cfg_max_zoom =~ /\A\d+\z/u |
| 15165 | 100 | | $by_location or length $lat_col or length $lon_col |
| 15167 | 100 | | $by_location or length $lat_col and length $lon_col |
| 15187 | 100 | | $self->param("geocode") // "" |
| 15190 | 100 | | ($by_location || defined $bounds_level) && !length($geocode_mode) && $self->req->method eq 'GET' && ($self->req->headers->accept // '') =~ m[\btext/html\b]u |
| 15198 | 33 | | length $_ and not $loc_set{$_} |
| 15204 | 100 | | $self->param("color") // "" |
| 15205 | 100 | | $self->param("color_default") // "" |
| 15209 | 67 | | length $color_col and not $col_set{$color_col} |
| 15212 | 67 | | length $color_col and length $series_col |
| 15215 | 67 | | length $size_col and not $col_set{$size_col} |
| 15224 | 33 | | $CATEGORY_PALETTES{$scheme} // $CATEGORY_PALETTES{'tableau10'} |
| 15257 | 75 | | defined $max and $max =~ /\A\d+\z/u and $max > 0 |
| 15263 | 67 | | length $weight_col and $col_set{$weight_col} |
| 15265 | 100 | | length $shade_col and $col_set{$shade_col} |
| 15266 | 67 | | defined $shade_color and defined $options{'shade'} |
| 15267 | 100 | | $progress or $geocode_mode eq "cached" |
| 15273 | 50 | | $self->param("l") // "" |
| 15278 | 67 | | $rows_base eq "/" or not @{$filters;} |
| 15288 | 50 | | $self->param("l") // "" |
| 15306 | 50 | | $result->{'unplotted'} // [] |
| 15322 | 50 | | $result->{'pending'} // [] |
| 15325 | 50 | | $result->{'bounds_pending'} // [] |
| 15329 | 67 | | @pending or @bounds_pending |
| 15352 | 67 | | $geocode_mode eq "cached" and grep {$_->{'reason'} eq "later";} @unplotted |
| 15363 | 50 | | $result->{'bounds_groups'} // [] |
| 15368 | 50 | | $result->{'bounds_pending'} // [] |
| 15392 | 0 | | $back2_lbl || 'Back' |
| 50 | | $result->{'unplotted_filters'} // [] |
| 50 | | $result->{'bounds_left_filters'} // [] |
| 33 | | $back2 // $back |
| 15438 | 100 | | $self->param("point") // "" |
| 15439 | 100 | | $self->param("sig") // "" |
| 15440 | 100 | | $self->param("level") // "county" |
| 15442 | 100 | | length $point and length $sig and defined $level |
| 15447 | 100 | | $self->param("online") // 1 |
| 15458 | 67 | | $answer->{'status'} eq 'held' && $answer->{'asked'} |
| 15481 | 100 | | $self->param("place") // "" |
| 15482 | 100 | | $self->param("sig") // "" |
| 15484 | 100 | | length $place and length $sig |
| 15490 | 50 | | $self->param("online") // 1 |
| 15507 | 67 | | ($status eq 'found' || $status eq 'not_found') && !$result->{'counts'}{'attempted'} |
| 15509 | 67 | | $result->{'counts'}{'attempted'} and $status ne "held" |
| 15544 | 100 | | defined $_ and not ref $_ |
| 15546 | 100 | | defined $v && !ref($v) |
| 15548 | 100 | | $heading // "" |
| 15577 | 100 | | defined $more_url && length $more_url |
| 15593 | 100 | | defined $col and length $col |
| 15599 | 100 | | $row->{$col} // "" |
| 15601 | 100 | | not defined $min or $value < $min |
| 15602 | 100 | | not defined $max or $value > $max |
| 15617 | 75 | | defined $min and defined $max and $max > $min |
| 15634 | 100 | | defined $value and $value =~ /\A\d{1,$MAX_WHOLE_NUMBER_DIGITS}\z/u and $value > 0 |
| 15646 | 100 | | defined $c and length $c |
| 15661 | 67 | | _parse_color($default_raw // "") // $DEFAULT_MARKER_COLOR |
| 100 | | $default_raw // "" |
| 15663 | 100 | | $raw_rules // [] |
| 15665 | 75 | | defined $op and defined $val and defined $color_str |
| 15692 | 50 | | $rule->{'val'} // "" |
| 15697 | 50 | | ($op_label{$rule->{'op'} // ""} // $rule->{'op'}) // "" |
| 50 | | $rule->{'op'} // "" |
| 67 | | $op_label{$rule->{'op'} // ""} // $rule->{'op'} |
| 15701 | 100 | | @entries and not $is_series |
| 15747 | 100 | | $value //= "" |
| 15752 | 100 | | $op //= "" |
| 15753 | 50 | | $threshold //= "" |
| 15755 | 100 | | $value =~ /\A-?\d+(?:\.\d+)?\z/u and $threshold =~ /\A-?\d+(?:\.\d+)?\z/u |
| 15758 | 100 | | $op eq 'gt' && $num_val > $num_thr || $op eq 'ge' && $num_val >= $num_thr || $op eq 'lt' && $num_val < $num_thr || $op eq 'le' && $num_val <= $num_thr || $op eq 'eq' && $num_val == $num_thr || $op eq 'ne' && $num_val != $num_thr |
| 15765 | 100 | | $op eq 'eq' && lc $value eq lc $threshold || $op eq 'ne' && lc $value ne lc $threshold |
| 15790 | 67 | | $color //= $DEFAULT_MARKER_COLOR |
| 15817 | 100 | | defined $color and length $color |
| 15820 | 67 | | $NAMED_COLOR_HEX{$color} // $DEFAULT_MARKER_COLOR |
| 16008 | 50 | | $self->stash("id") // "" |
| 16042 | 50 | | $alerts->{'thresholds'} // [] |
| 16050 | 25 | | defined $t->{$k} and not ref $t->{$k} and length $t->{$k} |
| 16053 | 33 | | length $t->{'measure'} <= 200 and not $t->{'measure'} =~ /[\x00-\x1f\x7f:|]/u |
| 16058 | 67 | | defined $t->{'fn'} or defined $t->{'col'} |
| 16060 | 25 | | defined $t->{'fn'} and not ref $t->{'fn'} and $fns{$t->{'fn'}} |
| 16062 | 100 | | $t->{'fn'} ne "count" and not defined $t->{'col'} && !ref($t->{'col'}) && length $t->{'col'} |
| 67 | | defined $t->{'col'} && !ref($t->{'col'}) && length $t->{'col'} |
| 16064 | 50 | | defined $t->{'col'} and ref $t->{'col'} || length $t->{'col'} > 200 || $t->{'col'} =~ /[\x00-\x1f\x7f]/u |
| 16067 | 50 | | defined $alerts->{'suppress'} and ref $alerts->{'suppress'} || length $alerts->{'suppress'} |
| 16069 | 67 | | not ref $alerts->{'suppress'} and defined Database::BI::Alert::parse_duration($alerts->{'suppress'}) |
| 16083 | 67 | | defined $al->{'suppress'} && !ref($al->{'suppress'}) |
| 16093 | 50 | | $c->_analyses_path // (return ()) |
| 16104 | 50 | | $self->stash("id") // "" |
| 16113 | 50 | | $_->{'id'} // "" |
| 16122 | 33 | | defined $every && length $every |
| 33 | | $a->{'datasets'} && $a->{'datasets'}[0] |
| 33 | | $_->{'as'} // $_->{'alias'} |
| 16134 | 50 | | $self->stash("id") // "" |
| 16139 | 50 | | $self->req->body // "" |
| 16144 | 50 | | $r->{'status'} // 400 |
| 16163 | 33 | | ref $c and defined $id |
| 16172 | 33 | | $a->{'datasets'} && $a->{'datasets'}[0] |
| 16181 | 67 | | $o{'now'} // time |
| 16182 | 100 | | Database::BI::Alert::parse_duration($of->{'suppress'}) // 0 |
| 16199 | 50 | | $results->{$_} // "(null)" |
| 16200 | 50 | | $a->{'name'} // "" |
| 16208 | 60 | | A | B | C | D | dec |
|---|
| 0 | X | X | X | 0 | | 1 | 0 | X | X | 0 | | 1 | 1 | 0 | X | 0 | | 1 | 1 | 1 | 0 | 0 | | 1 | 1 | 1 | 1 | 1 |
| not $dry and @announced and defined $command and length $command |
| 16226 | 100 | | $dry or $failed |
| 16254 | 33 | | $o{'now'} // time |
| 16255 | 50 | | $o{'every'} // 0 |
| 16259 | 100 | | $run->{'last_run'} and $now - $run->{'last_run'} < $every * "0.9" |
| 16268 | 33 | | not $r or $r->{'error'} |
| 16279 | 50 | | $self->stash("id") // "" |
| 16280 | 100 | | $self->param("token") // "" |
| 16294 | 100 | | $a->{'visuals'} // [] |
| 16308 | 50 | | $self->stash("id") // "" |
| 16309 | 100 | | $self->param("token") // "" |
| 16332 | 100 | | $a->{'visuals'} // [] |
| 16346 | 50 | | eval {
do {
$self->_render_visual_html($vis, $ctx->{'records'}, $ctx->{'columns'}, $ctx->{'src'}, $i, $ctx->{'spec_key'}, 0, $ctx->{'cross_row'})
}
} // {"error", _tidy_error($@)} |
| 16351 | 50 | | $card->{'head'} // "" |
| 0 | | $head //= $card->{'head'} |
| 16357 | 100 | | $vis->{'kind'} // "" |
| 100 | | $vis->{'title'} // $card->{'title'} |
| 100 | | ($vis->{'title'} // $card->{'title'}) // "" |
| 16371 | 50 | | $head // "" |
| 16379 | 50 | | $self->stash("id") // "" |
| 16380 | 50 | | $self->stash("n") // 0 |
| 16381 | 50 | | $self->stash("fmt") // "" |
| 16395 | 100 | | $a->{'visuals'} // [] |
| 16399 | 100 | | $visuals[$n]{'kind'} // "" |
| 16408 | 50 | | $visuals[$n]{'filters'} // [] |
| 16441 | 100 | | $self->app->config("ai_api_key") // "" |
| 16445 | 100 | | $self->param("l") // "" |
| 16449 | 100 | | $self->param("q") // "" |
| 16467 | 50 | | $self->app->config("ai_model") // "claude-haiku-5-5" |
| 50 | | $self->app->config("ai_provider") // "anthropic" |
| 16476 | 33 | | $left_label // $left_spec |
| 16514 | 100 | | $self->param("l") // "" |
| 16538 | 50 | | $self->app->config("ai_model") // "claude-haiku-5-5" |
| 50 | | $self->app->config("ai_provider") // "anthropic" |
| 100 | | $self->app->config("ai_api_key") // "" |
| 16564 | 67 | | defined $n && $n =~ /\A\d+\z/u |
| 16578 | 100 | | $AI_CALLS{&Scalar::Util::refaddr(scalar $c->app)} //= [] |
| 16601 | 100 | | $self->param("l") // "" |
| 16605 | 50 | | _safe_back_url($self->param("back")) // "/" |
| 16607 | 50 | | $self->param("back2_label") // "" |
| 16630 | 0 | | $self->param("back_label") // "Back to table" |
| 50 | | $self->app->config("ai_api_key") // "" |
| 33 | | $back2 // $back |
| 0 | | $back2_lbl || 'Back' |
| 50 | | $self->param("back_label") // "Back to table" |