| 1 |
|
| package Chart::GGPlot::Layout; |
| 2 |
|
| |
| 3 |
|
| # ABSTRACT: Layout |
| 4 |
|
| |
| 5 |
3 |
▶ | use Chart::GGPlot::Class qw(:pdl); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
|
| 6 |
3 |
▶ | use namespace::autoclean; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
|
| 7 |
|
| |
| 8 |
3 |
| our $VERSION = '0.002003'; # VERSION |
| 9 |
|
| |
| 10 |
3 |
▶ | use Data::Frame::Types qw(DataFrame); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
|
| 11 |
3 |
▶ | use List::AllUtils qw(pairwise reduce); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
|
| 12 |
3 |
▶ | use PDL::Primitive qw(which); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
|
| 13 |
3 |
▶ | use Types::PDL qw(Piddle1D); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
|
| 14 |
3 |
▶ | use Types::Standard qw(ArrayRef InstanceOf HashRef Maybe); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
|
| 15 |
|
| |
| 16 |
3 |
▶ | use Chart::GGPlot::Types qw(:all); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
|
| 17 |
3 |
▶ | use Chart::GGPlot::Coord::Functions qw(:all); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
|
| 18 |
3 |
▶ | use Chart::GGPlot::Facet::Functions qw(:all); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
|
| 19 |
3 |
▶ | use Chart::GGPlot::Util qw(:all); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
|
| 20 |
|
| |
| 21 |
|
| |
| 22 |
2 |
▶ | has coord => ( is => 'ro', isa => Coord, default => sub { coord_cartesian() } ); |
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
|
| 23 |
2 |
▶ | has facet => ( is => 'ro', isa => Facet, default => sub { facet_null() } ); |
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
|
| 24 |
3 |
| has [qw(coord_params facet_params)] => ( |
| 25 |
|
| is => 'rw', |
| 26 |
|
| isa => GGParams, |
| 27 |
|
| coerce => 1, |
| 28 |
|
| init_arg => undef |
| 29 |
|
| ); |
| 30 |
|
| |
| 31 |
3 |
| has layout => ( is => 'rw', isa => DataFrame, init_arg => undef ); |
| 32 |
|
| |
| 33 |
3 |
| has [qw(panel_scales_x panel_scales_y)] => ( |
| 34 |
|
| is => 'rw', |
| 35 |
|
| isa => Maybe [ArrayRef] |
| 36 |
|
| ); |
| 37 |
3 |
| has panel_params => ( is => 'rwp', isa => ArrayRef [HashRef] ); |
| 38 |
|
| |
| 39 |
7 |
▶ | method setup (ArrayRef $data, $plot_data=Data::Frame->new()) { |
|
Subroutine
setup: called CC=5 SCAR=16.3
Pod
undocumented
Branch: 4 branches
| Branch | True | False | Total |
| @_ < 2 and Function::Parameters::_croak('Too few arguments for method setup (expected 2, got ' . @_ . ')') |
0 |
7 |
7 |
| @_ > 3 and Function::Parameters::_croak('Too many arguments for method setup (expected 3, got ' . @_ . ')') |
0 |
7 |
7 |
| @_ < 2 and $plot_data = "Data::Frame"->new |
0 |
7 |
7 |
| Ref::Util::XS::is_plain_arrayref($data) or Function::Parameters::_croak('In method setup: parameter 1 ($data): ' . ${my $v = bless( {"_is_core" => 1,"_overload_coderef" => sub { package Type::Tiny; BEGIN {${^WARNING_BITS} = "\x10\x01\x00\x00\x00\x50\x04\x00\x00\x00\x00\x00\x01\x40\x05\x45\x55\x15\x55\x55\x01\x00\x00"} use strict; Ref::Util::XS::is_plain_arrayref($_[0]) or _failed_check(21, 'ArrayRef', $_[0], 'exception_class', 'Error::TypeTiny::Assertion'); $_[0];},"_overrides_assert_return" => !!0,"coercion" => bless( {"_compiled_type_constraint_check" => sub ;,"display_name" => "to_ArrayRef","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"coercion_generator" => sub { package Types::Standard::ArrayRef; no warnings; use strict; my($parent, $child, $param) = @_; return unless $param->has_coercion; my $coercable_item = $param->coercion->_source_type_union; my $C = 'Type::Coercion'->new('type_constraint', $child); if ($param->coercion->can_be_inlined and $coercable_item->can_be_inlined) { $C->add_type_coercions($parent, &Types::Standard::Stringable(sub { my @code; push @code, 'do { my ($orig, $return_orig, @new) = ($_, 0);'; push @code, 'for (@$orig) {'; push @code, sprintf('++$return_orig && last unless (%s);', $coercable_item->inline_check('$_')); push @code, sprintf('push @new, (%s);', $param->coercion->inline_coercion('$_')); push @code, '}'; push @code, '$return_orig ? $orig : \\@new'; push @code, '}'; join $", @code; } )); } else { $C->add_type_coercions($parent, sub { my $value = @_ ? $_[0] : $_; my @new; foreach my $item (@$value) { return $value unless $coercable_item->check($item); push @new, $param->coerce($item); } return \@new; } ); } return $C;},"compiled_type_constraint" => do{my $o},"constraint" => sub { package Types::Standard; no warnings; use strict; ref $_ eq 'ARRAY';},"constraint_generator" => sub { package Types::Standard::ArrayRef; no warnings; use strict; return &Types::Standard::ArrayRef() unless @_; Type::Tiny::check_parameter_count_for_parameterized_type('Types::Standard', 'ArrayRef', \@_, 3); my $param = shift(); Types::TypeTiny::is_TypeTiny($param) or _croak "Parameter to ArrayRef[`a] expected to be a type constraint; got $param"; my($min, $max) = (0, -1); $min = Types::Standard::assert_Int(shift()) if @_; $max = Types::Standard::assert_Int(shift()) if @_; my $param_compiled_check = $param->compiled_check; my $xsub; if ($min == 0 and $max == -1) { my $paramname = Type::Tiny::XS::is_known($param_compiled_check); $xsub = Type::Tiny::XS::get_coderef_for("ArrayRef[$paramname]") if $paramname; } elsif (&Type::Tiny::_USE_MOUSE() and $param->_has_xsub and $min == 0 and $max == -1) { require Mouse::Util::TypeConstraints; my $maker = 'Mouse::Util::TypeConstraints'->can('_parameterize_ArrayRef_for'); $xsub = &$maker($param) if $maker; } return sub { my $array = shift(); ($param->check($_) or return) foreach (@$array); return !0; } , $xsub if $min == 0 and $max == -1; return sub { my $array = shift(); return if @$array < $min; ($param->check($_) or return) foreach (@$array); return !0; } if $max == -1; return sub { my $array = shift(); return if @$array > $max; ($param->check($_) or return) foreach (@$array); return !0; } if $min == 0; return sub { my $array = shift(); return if @$array < $min; return if @$array > $max; ($param->check($_) or return) foreach (@$array); return !0; } ;},"deep_explanation" => sub { package Types::Standard::ArrayRef; no warnings; use strict; my($type, $value, $varname) = @_; my $param = $type->parameters->[0]; my($min, $max) = (0, -1); $min = $type->parameters->[1] if @{$type->parameters;} > 1; $max = $type->parameters->[2] if @{$type->parameters;} > 2; if ($min != 0 and @$value < $min) { return [sprintf('"%s" constrains array length at least %s', $type, $min), sprintf('@{%s} is %d', $varname, scalar @$value)]; } if ($max > 0 and @$value > $max) { return [sprintf('"%s" constrains array length at most %d', $type, $max), sprintf('@{%s} is %d', $varname, scalar @$value)]; } foreach my $i (0 .. $value->$#*) { my $item = $value->[$i]; next if $param->check($item); return [sprintf('"%s" constrains each value in the array with "%s"', $type, $param), @{$param->validate_explain($item, sprintf('%s->[%d]', $varname, $i));}]; } return;},"definition_context" => {"file" => "/usr/local/lib/perl5/site_perl/5.44.0/Types/Standard.pm","line" => 523,"package" => "Types::Standard"},"deprecated" => !!0,"display_name" => "ArrayRef","exception_class" => "Error::TypeTiny::Assertion","inline_generator" => sub { package Types::Standard::ArrayRef; no warnings; use strict; my $param = shift(); my($min, $max) = (0, -1); $min = shift() if @_; $max = shift() if @_; my $param_compiled_check = $param->compiled_check; my $xsubname; if ($min == 0 and $max == -1) { my $paramname = Type::Tiny::XS::is_known($param_compiled_check); $xsubname = Type::Tiny::XS::get_subname_for("ArrayRef[$paramname]"); } return unless $param->can_be_inlined; return sub { my $v = $_[1]; return "$xsubname($v)" if $xsubname and not $Type::Tiny::AvoidCallbacks; my $p = &Types::Standard::ArrayRef()->inline_check($v); if ($min != 0) { $p .= sprintf(' and @{%s} >= %d', $v, $min); } if ($max > 0) { $p .= sprintf(' and @{%s} <= %d', $v, $max); } my $param_check = $param->inline_check('$i'); return $p if $param->{'uniq'} eq &Types::Standard::Any()->{'uniq'}; "$p and do { " . 'my $ok = 1; ' . "for my \$i (\@{$v}) { " . "(\$ok = 0, last) unless $param_check " . '}; ' . '$ok ' . '}'; } ;},"inlined" => sub { package Types::Standard; no warnings; use strict; !$Type::Tiny::AvoidCallbacks ? "Ref::Util::XS::is_plain_arrayref($_[1])" : "ref($_[1]) eq 'ARRAY'";},"library" => "Types::Standard","moose_type" => bless( {"Types::TypeTiny::to_TypeTiny" => {},"_default_message" => sub { package Moose::Meta::TypeConstraint; use warnings; use strict; my $value = shift(); my $can_partialdump = &try(sub { require Devel::PartialDump; 'Devel::PartialDump'->VERSION(0.14); 1; } ); if ($can_partialdump) { $value = 'Devel::PartialDump'->new->dump($value); } else { $value = defined $value ? overload::StrVal($value) : 'undef'; } return q[Validation failed for '] . $name . "' with value $value";},"compiled_type_constraint" => sub { package Eval::Closure::Sandbox_62; use warnings; use strict; do { ref $_[0] eq 'ARRAY' };},"constraint" => sub { package Moose::Util::TypeConstraints::Builtins; use warnings; use strict; ref $_ eq 'ARRAY';},"constraint_generator" => sub { package Moose::Util::TypeConstraints::Builtins; use warnings; use strict; my $type_parameter = shift(); my $check = $type_parameter->_compiled_type_constraint; return sub { foreach my $x (@$_) { &$check($x) or return; } 1; } ;},"inline_environment" => {},"inline_generator" => sub { package Moose::Util::TypeConstraints::Builtins; use warnings; use strict; my $self = shift(); my $type_parameter = shift(); my $val = shift(); 'do {my $check = ' . $val . ';' . 'ref($check) eq "ARRAY" ' . '&& &List::Util::all(' . 'sub { ' . $type_parameter->_inline_check('$_') . ' }, ' . '@{$check}' . ')' . '}';},"inlined" => sub { package Moose::Util::TypeConstraints::Builtins; use warnings; use strict; 'ref(' . $_[1] . ') eq "ARRAY"';},"name" => "ArrayRef","package_defined_in" => "Moose::Util::TypeConstraints::Builtins","parent" => bless( {"_default_message" => sub { package Moose::Meta::TypeConstraint; use warnings; use strict; my $value = shift(); my $can_partialdump = &try(sub { require Devel::PartialDump; 'Devel::PartialDump'->VERSION(0.14); 1; } ); if ($can_partialdump) { $value = 'Devel::PartialDump'->new->dump($value); } else { $value = defined $value ? overload::StrVal($value) : 'undef'; } return q[Validation failed for '] . $name . "' with value $value";},"compiled_type_constraint" => sub { package Eval::Closure::Sandbox_50; use warnings; use strict; do { ref $_[0] };},"constraint" => sub { package Moose::Util::TypeConstraints::Builtins; use warnings; use strict; ref $_;},"inline_environment" => {},"inlined" => sub { package Moose::Util::TypeConstraints::Builtins; use warnings; use strict; 'ref(' . $_[1] . ')';},"name" => "Ref","package_defined_in" => "Moose::Util::TypeConstraints::Builtins","parent" => bless( {"Types::TypeTiny::to_TypeTiny" => bless( {"_is_core" => 1,"_overload_coderef" => sub { package Type::Tiny; BEGIN {${^WARNING_BITS} = "\x10\x01\x00\x00\x00\x50\x04\x00\x00\x00\x00\x00\x01\x40\x05\x45\x55\x15\x55\x55\x01\x00\x00"} use strict; defined $_[0] or _failed_check(7, 'Defined', $_[0], 'exception_class', 'Error::TypeTiny::Assertion'); $_[0];},"_overrides_assert_return" => !!0,"coercion" => bless( {"_compiled_type_constraint_check" => sub ;,"display_name" => "to_Defined","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"complementary_type" => bless( {"_is_core" => 1,"_overload_coderef" => sub { package Type::Tiny; BEGIN {${^WARNING_BITS} = "\x10\x01\x00\x00\x00\x50\x04\x00\x00\x00\x00\x00\x01\x40\x05\x45\x55\x15\x55\x55\x01\x00\x00"} use strict; defined $_[0] and _failed_check(6, 'Undef', $_[0], 'exception_class', 'Error::TypeTiny::Assertion'); $_[0];},"_overrides_assert_return" => !!0,"coercion" => bless( {"_compiled_type_constraint_check" => sub ;,"display_name" => "to_Undef","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"complementary_type" => {},"constraint" => sub { package Types::Standard; no warnings; use strict; not defined $_;},"definition_context" => {"file" => "/usr/local/lib/perl5/site_perl/5.44.0/Types/Standard.pm","line" => 254,"package" => "Types::Standard"},"deprecated" => !!0,"display_name" => "Undef","exception_class" => "Error::TypeTiny::Assertion","inlined" => sub { package Types::Standard; no warnings; use strict; "!defined($_[1])";},"library" => "Types::Standard","name" => "Undef","parent" => bless( {"_is_core" => 1,"_overload_coderef" => sub { package Type::Tiny; BEGIN {${^WARNING_BITS} = "\x10\x01\x00\x00\x00\x50\x04\x00\x00\x00\x00\x00\x01\x40\x05\x45\x55\x15\x55\x55\x01\x00\x00"} use strict; '???'; $_[0];},"_overrides_assert_return" => !!0,"coercion" => bless( {"_compiled_type_constraint_check" => sub ;,"display_name" => "to_Item","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"constraint" => sub { package Type::Tiny; use warnings; use strict; !0;},"definition_context" => {"file" => "/usr/local/lib/perl5/site_perl/5.44.0/Types/Standard.pm","line" => 226,"package" => "Types::Standard"},"deprecated" => !!0,"display_name" => "Item","exception_class" => "Error::TypeTiny::Assertion","inlined" => sub { package Types::Standard; no warnings; use strict; '!!1';},"library" => "Types::Standard","name" => "Item","parent" => bless( {"_is_core" => 1,"_overload_coderef" => sub { package Type::Tiny; BEGIN {${^WARNING_BITS} = "\x10\x01\x00\x00\x00\x50\x04\x00\x00\x00\x00\x00\x01\x40\x05\x45\x55\x15\x55\x55\x01\x00\x00"} use strict; '???'; $_[0];},"_overrides_assert_return" => !!0,"coercion" => bless( {"_compiled_type_constraint_check" => do{my $o},"display_name" => "to_Any","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"complement_name" => "None","constraint" => do{my $o},"definition_context" => {"file" => "/usr/local/lib/perl5/site_perl/5.44.0/Types/Standard.pm","line" => 220,"package" => "Types::Standard"},"deprecated" => !!0,"display_name" => "Any","exception_class" => "Error::TypeTiny::Assertion","inlined" => sub { package Types::Standard; no warnings; use strict; '!!1';},"library" => "Types::Standard","moose_type" => bless( {"Types::TypeTiny::to_TypeTiny" => {},"_default_message" => sub { package Moose::Meta::TypeConstraint; use warnings; use strict; my $value = shift(); my $can_partialdump = &try(sub { require Devel::PartialDump; 'Devel::PartialDump'->VERSION(0.14); 1; } ); if ($can_partialdump) { $value = 'Devel::PartialDump'->new->dump($value); } else { $value = defined $value ? overload::StrVal($value) : 'undef'; } return q[Validation failed for '] . $name . "' with value $value";},"compiled_type_constraint" => sub { package Eval::Closure::Sandbox_44; use warnings; use strict; do { 1 };},"constraint" => sub { package Moose::Util::TypeConstraints::Builtins; use warnings; use strict; 1;},"inline_environment" => {},"inlined" => sub { package Moose::Util::TypeConstraints::Builtins; use warnings; use strict; '1';},"name" => "Any","package_defined_in" => "Moose::Util::TypeConstraints::Builtins"}, 'Moose::Meta::TypeConstraint' ),"name" => "Any","type_default" => sub { package Types::Standard; no warnings; use strict; return undef;},"uniq" => 1}, 'Type::Tiny' ),"uniq" => 2}, 'Type::Tiny' ),"type_default" => sub { package Types::Standard; no warnings; use strict; return undef;},"uniq" => 6}, 'Type::Tiny' ),"constraint" => sub { package Types::Standard; no warnings; use strict; defined $_;},"definition_context" => {"file" => "/usr/local/lib/perl5/site_perl/5.44.0/Types/Standard.pm","line" => 262,"package" => "Types::Standard"},"deprecated" => !!0,"display_name" => "Defined","exception_class" => "Error::TypeTiny::Assertion","inlined" => sub { package Types::Standard; no warnings; use strict; "defined($_[1])";},"library" => "Types::Standard","moose_type" => {},"name" => "Defined","parent" => {},"uniq" => 7}, 'Type::Tiny' ),"_default_message" => sub { package Moose::Meta::TypeConstraint; use warnings; use strict; my $value = shift(); my $can_partialdump = &try(sub { require Devel::PartialDump; 'Devel::PartialDump'->VERSION(0.14); 1; } ); if ($can_partialdump) { $value = 'Devel::PartialDump'->new->dump($value); } else { $value = defined $value ? overload::StrVal($value) : 'undef'; } return q[Validation failed for '] . $name . "' with value $value";},"compiled_type_constraint" => sub { package Eval::Closure::Sandbox_47; use warnings; use strict; do { defined $_[0] };},"constraint" => sub { package Moose::Util::TypeConstraints::Builtins; use warnings; use strict; defined $_;},"inline_environment" => {},"inlined" => sub { package Moose::Util::TypeConstraints::Builtins; use warnings; use strict; 'defined(' . $_[1] . ')';},"name" => "Defined","package_defined_in" => "Moose::Util::TypeConstraints::Builtins","parent" => bless( {"_default_message" => sub { package Moose::Meta::TypeConstraint; use warnings; use strict; my $value = shift(); my $can_partialdump = &try(sub { require Devel::PartialDump; 'Devel::PartialDump'->VERSION(0.14); 1; } ); if ($can_partialdump) { $value = 'Devel::PartialDump'->new->dump($value); } else { $value = defined $value ? overload::StrVal($value) : 'undef'; } return q[Validation failed for '] . $name . "' with value $value";},"compiled_type_constraint" => sub { package Eval::Closure::Sandbox_45; use warnings; use strict; do { 1 };},"constraint" => sub { package Moose::Meta::TypeConstraint; use warnings; use strict; 1;},"inline_environment" => {},"inlined" => sub { package Moose::Util::TypeConstraints::Builtins; use warnings; use strict; '1';},"name" => "Item","package_defined_in" => "Moose::Util::TypeConstraints::Builtins","parent" => {}}, 'Moose::Meta::TypeConstraint' )}, 'Moose::Meta::TypeConstraint' )}, 'Moose::Meta::TypeConstraint' )}, 'Moose::Meta::TypeConstraint::Parameterizable' ),"name" => "ArrayRef","name_generator" => sub { package Type::Tiny; use warnings; use strict; defined $_ and s/[\x00-\x1F]//gms foreach (my($s, @a) = @_); sprintf '%s[%s]', $s, join(',', map((!defined($_) ? 'undef' : (!ref($_) && /\W/ ? B::perlstring($_) : $_)), @a));},"parent" => bless( {"_is_core" => 1,"_overload_coderef" => sub { package Type::Tiny; BEGIN {${^WARNING_BITS} = "\x10\x01\x00\x00\x00\x50\x04\x00\x00\x00\x00\x00\x01\x40\x05\x45\x55\x15\x55\x55\x01\x00\x00"} use strict; not ref $_[0] and _failed_check(16, 'Ref', $_[0], 'exception_class', 'Error::TypeTiny::Assertion'); $_[0];},"_overrides_assert_return" => !!0,"coercion" => bless( {"_compiled_type_constraint_check" => sub ;,"display_name" => "to_Ref","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"constraint" => sub { package Types::Standard; no warnings; use strict; ref $_;},"constraint_generator" => sub { package Types::Standard; no warnings; use strict; return $meta->get_type('Ref') unless @_; Type::Tiny::check_parameter_count_for_parameterized_type('Types::Standard', 'Ref', \@_, 1); my $reftype = shift(); $reftype =~ /^(SCALAR|ARRAY|HASH|CODE|REF|GLOB|LVALUE|FORMAT|IO|VSTRING|REGEXP|Regexp)$/i or _croak "Parameter to Ref[`a] expected to be a Perl ref type; got $reftype"; $reftype = "$reftype"; return sub { ref $_[0] and builtin::reftype($_[0]) eq $reftype; } ;},"deep_explanation" => sub { package Types::Standard; no warnings; use strict; require B; my($type, $value, $varname) = @_; my $param = $type->parameters->[0]; return if $type->check($value); my $reftype = builtin::reftype($value); return [sprintf('"%s" constrains reftype(%s) to be equal to %s', $type, $varname, B::perlstring($param)), sprintf('reftype(%s) is %s', $varname, defined $reftype ? B::perlstring($reftype) : 'undef')];},"definition_context" => {"file" => "/usr/local/lib/perl5/site_perl/5.44.0/Types/Standard.pm","line" => 438,"package" => "Types::Standard"},"deprecated" => !!0,"display_name" => "Ref","exception_class" => "Error::TypeTiny::Assertion","inline_generator" => sub { package Types::Standard; no warnings; use strict; my $reftype = shift(); return sub { my $v = $_[1]; &$maybe_load_modules('Scalar::Util', "ref($v) and Scalar::Util::reftype($v) eq q($reftype)"); } ;},"inlined" => sub { package Types::Standard; no warnings; use strict; "!!ref($_[1])";},"library" => "Types::Standard","name" => "Ref","parent" => {},"uniq" => 16}, 'Type::Tiny' ),"type_default" => sub { package Types::Standard; no warnings; use strict; return [];},"type_default_generator" => sub { package Types::Standard; no warnings; use strict; return $Type::Tiny::parameterize_type->type_default if @_ < 2; return undef;},"uniq" => 21}, 'Type::Tiny' );$v->{"coercion"}{"type_constraint"} = $v;$v->{"compiled_type_constraint"} = $v->{"coercion"}{"_compiled_type_constraint_check"};$v->{"moose_type"}{"Types::TypeTiny::to_TypeTiny"} = $v;$v->{"moose_type"}{"parent"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"coercion"}{"type_constraint"} = $v->{"moose_type"}{"parent"}{"parent"}{"Types::TypeTiny::to_TypeTiny"};$v->{"moose_type"}{"parent"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"compiled_type_constraint"} = $v->{"moose_type"}{"parent"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"moose_type"}{"parent"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"complementary_type"}{"coercion"}{"type_constraint"} = $v->{"moose_type"}{"parent"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"complementary_type"};$v->{"moose_type"}{"parent"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"complementary_type"}{"compiled_type_constraint"} = $v->{"moose_type"}{"parent"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"complementary_type"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"moose_type"}{"parent"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"complementary_type"}{"complementary_type"} = $v->{"moose_type"}{"parent"}{"parent"}{"Types::TypeTiny::to_TypeTiny"};$v->{"moose_type"}{"parent"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"complementary_type"}{"parent"}{"coercion"}{"type_constraint"} = $v->{"moose_type"}{"parent"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"complementary_type"}{"parent"};$v->{"moose_type"}{"parent"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"complementary_type"}{"parent"}{"compiled_type_constraint"} = $v->{"moose_type"}{"parent"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"complementary_type"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"moose_type"}{"parent"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"complementary_type"}{"parent"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"} = $v->{"moose_type"}{"parent"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"complementary_type"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"moose_type"}{"parent"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"complementary_type"}{"parent"}{"parent"}{"coercion"}{"type_constraint"} = $v->{"moose_type"}{"parent"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"complementary_type"}{"parent"}{"parent"};$v->{"moose_type"}{"parent"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"complementary_type"}{"parent"}{"parent"}{"compiled_type_constraint"} = $v->{"moose_type"}{"parent"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"complementary_type"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"moose_type"}{"parent"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"complementary_type"}{"parent"}{"parent"}{"constraint"} = $v->{"moose_type"}{"parent"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"complementary_type"}{"parent"}{"constraint"};$v->{"moose_type"}{"parent"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"complementary_type"}{"parent"}{"parent"}{"moose_type"}{"Types::TypeTiny::to_TypeTiny"} = $v->{"moose_type"}{"parent"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"complementary_type"}{"parent"}{"parent"};$v->{"moose_type"}{"parent"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"moose_type"} = $v->{"moose_type"}{"parent"}{"parent"};$v->{"moose_type"}{"parent"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"} = $v->{"moose_type"}{"parent"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"complementary_type"}{"parent"};$v->{"moose_type"}{"parent"}{"parent"}{"parent"}{"parent"} = $v->{"moose_type"}{"parent"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"complementary_type"}{"parent"}{"parent"}{"moose_type"};$v->{"parent"}{"coercion"}{"type_constraint"} = $v->{"parent"};$v->{"parent"}{"compiled_type_constraint"} = $v->{"parent"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"parent"}{"parent"} = $v->{"moose_type"}{"parent"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}; \$v}->get_message($data)) |
7 |
0 |
7 |
|
| 40 |
7 |
| $data = [ $plot_data, @$data ]; |
| 41 |
|
| |
| 42 |
7 |
| $self->facet_params( |
| 43 |
|
| $self->facet->setup_params( $data, $self->facet->params ) ); |
| 44 |
|
| |
| 45 |
|
| #$self->facet_params->plot_env($plot_env); |
| 46 |
7 |
| $data = $self->facet->setup_data( $data, $self->facet_params ); |
| 47 |
|
| |
| 48 |
7 |
| $self->coord_params( $self->coord->setup_params($data) ); |
| 49 |
7 |
| $data = $self->coord->setup_data( $data, $self->coord_params ); |
| 50 |
|
| |
| 51 |
7 |
| $self->layout( |
| 52 |
|
| $self->facet->compute_layout( $data, $self->facet->params ) ); |
| 53 |
7 |
| $self->layout( |
| 54 |
|
| $self->coord->setup_layout( $self->layout, $self->coord_params ) ); |
| 55 |
7 |
| $self->_check_layout( $self->layout ); |
| 56 |
|
| |
| 57 |
|
| # Add panel coordinates to the data for each layer |
| 58 |
7 |
| shift @$data; |
| 59 |
|
| $data = $data->map( |
| 60 |
7 |
▶ | sub { |
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
|
| 61 |
7 |
| $self->facet->map_data( $_, $self->layout, $self->facet_params ); |
| 62 |
|
| } |
| 63 |
7 |
| ); |
| 64 |
|
| |
| 65 |
7 |
| return $data; |
| 66 |
3 |
| } |
| 67 |
|
| |
| 68 |
7 |
▶ | method _check_layout ($layout_df) { |
|
Subroutine
_check_layout: called CC=4 SCAR=14.8
Branch: 2 branches
| Branch | True | False | Total |
| @_ < 2 and Function::Parameters::_croak('Too few arguments for method _check_layout (expected 2, got ' . @_ . ')') |
0 |
7 |
7 |
| @_ > 2 and Function::Parameters::_croak('Too many arguments for method _check_layout (expected 2, got ' . @_ . ')') |
0 |
7 |
7 |
|
| 69 |
7 |
| my @columns = qw(PANEL SCALE_X SCALE_Y); |
| 70 |
7 |
▶ | if ( List::AllUtils::all { $layout_df->exists($_) } @columns ) { |
|
Subroutine
__ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
| Branch | True | False | Total |
| if (&List::AllUtils::all(sub {
$layout_df->exists($_);
}
, @columns)) |
7 |
0 |
7 |
|
| 71 |
7 |
| return; |
| 72 |
|
| } |
| 73 |
|
| die "Facet layout has bad format. It must contain columns: " |
| 74 |
0 |
| . join( ', ', map { "'$_'" } @columns ); |
| 75 |
3 |
| } |
| 76 |
|
| |
| 77 |
|
| |
| 78 |
12 |
▶ | method train_position ($data, $x_scale, $y_scale) { |
|
Subroutine
train_position: called CC=5 SCAR=16.2
Pod
documented
Branch: 2 branches
| Branch | True | False | Total |
| @_ < 4 and Function::Parameters::_croak('Too few arguments for method train_position (expected 4, got ' . @_ . ')') |
0 |
12 |
12 |
| @_ > 4 and Function::Parameters::_croak('Too many arguments for method train_position (expected 4, got ' . @_ . ')') |
0 |
12 |
12 |
|
| 79 |
12 |
| my $layout = $self->layout; |
| 80 |
12 |
▶ | unless ( defined $self->panel_scales_x ) { |
Branch: 1 branch
| Branch | True | False | Total |
| unless (defined $self->panel_scales_x) |
6 |
6 |
12 |
|
| 81 |
6 |
| $self->panel_scales_x( |
| 82 |
|
| $self->facet->init_scales( $layout, $self->facet_params, |
| 83 |
|
| x_scale => $x_scale )->at('x') |
| 84 |
|
| ); |
| 85 |
|
| } |
| 86 |
12 |
▶ | unless ( defined $self->panel_scales_y ) { |
Branch: 1 branch
| Branch | True | False | Total |
| unless (defined $self->panel_scales_y) |
7 |
5 |
12 |
|
| 87 |
7 |
| $self->panel_scales_y( |
| 88 |
|
| $self->facet->init_scales( $layout, $self->facet_params, |
| 89 |
|
| y_scale => $y_scale )->at('y') |
| 90 |
|
| ); |
| 91 |
|
| } |
| 92 |
|
| |
| 93 |
12 |
| return $self->facet->train_scales( |
| 94 |
|
| $data, $layout, $self->facet_params, |
| 95 |
|
| x_scales => $self->panel_scales_x, |
| 96 |
|
| y_scales => $self->panel_scales_y |
| 97 |
|
| ); |
| 98 |
3 |
| } |
| 99 |
|
| |
| 100 |
12 |
▶ | method map_position (ArrayRef $data, $keep_raw_column=false) { |
|
Subroutine
map_position: called CC=5 SCAR=16.2
Pod
undocumented
Branch: 4 branches
| Branch | True | False | Total |
| @_ < 2 and Function::Parameters::_croak('Too few arguments for method map_position (expected 2, got ' . @_ . ')') |
0 |
12 |
12 |
| @_ > 3 and Function::Parameters::_croak('Too many arguments for method map_position (expected 3, got ' . @_ . ')') |
0 |
12 |
12 |
| @_ < 2 and $keep_raw_column = &false() |
6 |
6 |
12 |
| Ref::Util::XS::is_plain_arrayref($data) or Function::Parameters::_croak('In method map_position: parameter 1 ($data): ' . ${my $v = bless( {"_is_core" => 1,"_overload_coderef" => sub { package Type::Tiny; BEGIN {${^WARNING_BITS} = "\x10\x01\x00\x00\x00\x50\x04\x00\x00\x00\x00\x00\x01\x40\x05\x45\x55\x15\x55\x55\x01\x00\x00"} use strict; Ref::Util::XS::is_plain_arrayref($_[0]) or _failed_check(21, 'ArrayRef', $_[0], 'exception_class', 'Error::TypeTiny::Assertion'); $_[0];},"_overrides_assert_return" => !!0,"coercion" => bless( {"_compiled_type_constraint_check" => sub ;,"display_name" => "to_ArrayRef","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"coercion_generator" => sub { package Types::Standard::ArrayRef; no warnings; use strict; my($parent, $child, $param) = @_; return unless $param->has_coercion; my $coercable_item = $param->coercion->_source_type_union; my $C = 'Type::Coercion'->new('type_constraint', $child); if ($param->coercion->can_be_inlined and $coercable_item->can_be_inlined) { $C->add_type_coercions($parent, &Types::Standard::Stringable(sub { my @code; push @code, 'do { my ($orig, $return_orig, @new) = ($_, 0);'; push @code, 'for (@$orig) {'; push @code, sprintf('++$return_orig && last unless (%s);', $coercable_item->inline_check('$_')); push @code, sprintf('push @new, (%s);', $param->coercion->inline_coercion('$_')); push @code, '}'; push @code, '$return_orig ? $orig : \\@new'; push @code, '}'; join $", @code; } )); } else { $C->add_type_coercions($parent, sub { my $value = @_ ? $_[0] : $_; my @new; foreach my $item (@$value) { return $value unless $coercable_item->check($item); push @new, $param->coerce($item); } return \@new; } ); } return $C;},"compiled_type_constraint" => do{my $o},"constraint" => sub { package Types::Standard; no warnings; use strict; ref $_ eq 'ARRAY';},"constraint_generator" => sub { package Types::Standard::ArrayRef; no warnings; use strict; return &Types::Standard::ArrayRef() unless @_; Type::Tiny::check_parameter_count_for_parameterized_type('Types::Standard', 'ArrayRef', \@_, 3); my $param = shift(); Types::TypeTiny::is_TypeTiny($param) or _croak "Parameter to ArrayRef[`a] expected to be a type constraint; got $param"; my($min, $max) = (0, -1); $min = Types::Standard::assert_Int(shift()) if @_; $max = Types::Standard::assert_Int(shift()) if @_; my $param_compiled_check = $param->compiled_check; my $xsub; if ($min == 0 and $max == -1) { my $paramname = Type::Tiny::XS::is_known($param_compiled_check); $xsub = Type::Tiny::XS::get_coderef_for("ArrayRef[$paramname]") if $paramname; } elsif (&Type::Tiny::_USE_MOUSE() and $param->_has_xsub and $min == 0 and $max == -1) { require Mouse::Util::TypeConstraints; my $maker = 'Mouse::Util::TypeConstraints'->can('_parameterize_ArrayRef_for'); $xsub = &$maker($param) if $maker; } return sub { my $array = shift(); ($param->check($_) or return) foreach (@$array); return !0; } , $xsub if $min == 0 and $max == -1; return sub { my $array = shift(); return if @$array < $min; ($param->check($_) or return) foreach (@$array); return !0; } if $max == -1; return sub { my $array = shift(); return if @$array > $max; ($param->check($_) or return) foreach (@$array); return !0; } if $min == 0; return sub { my $array = shift(); return if @$array < $min; return if @$array > $max; ($param->check($_) or return) foreach (@$array); return !0; } ;},"deep_explanation" => sub { package Types::Standard::ArrayRef; no warnings; use strict; my($type, $value, $varname) = @_; my $param = $type->parameters->[0]; my($min, $max) = (0, -1); $min = $type->parameters->[1] if @{$type->parameters;} > 1; $max = $type->parameters->[2] if @{$type->parameters;} > 2; if ($min != 0 and @$value < $min) { return [sprintf('"%s" constrains array length at least %s', $type, $min), sprintf('@{%s} is %d', $varname, scalar @$value)]; } if ($max > 0 and @$value > $max) { return [sprintf('"%s" constrains array length at most %d', $type, $max), sprintf('@{%s} is %d', $varname, scalar @$value)]; } foreach my $i (0 .. $value->$#*) { my $item = $value->[$i]; next if $param->check($item); return [sprintf('"%s" constrains each value in the array with "%s"', $type, $param), @{$param->validate_explain($item, sprintf('%s->[%d]', $varname, $i));}]; } return;},"definition_context" => {"file" => "/usr/local/lib/perl5/site_perl/5.44.0/Types/Standard.pm","line" => 523,"package" => "Types::Standard"},"deprecated" => !!0,"display_name" => "ArrayRef","exception_class" => "Error::TypeTiny::Assertion","inline_generator" => sub { package Types::Standard::ArrayRef; no warnings; use strict; my $param = shift(); my($min, $max) = (0, -1); $min = shift() if @_; $max = shift() if @_; my $param_compiled_check = $param->compiled_check; my $xsubname; if ($min == 0 and $max == -1) { my $paramname = Type::Tiny::XS::is_known($param_compiled_check); $xsubname = Type::Tiny::XS::get_subname_for("ArrayRef[$paramname]"); } return unless $param->can_be_inlined; return sub { my $v = $_[1]; return "$xsubname($v)" if $xsubname and not $Type::Tiny::AvoidCallbacks; my $p = &Types::Standard::ArrayRef()->inline_check($v); if ($min != 0) { $p .= sprintf(' and @{%s} >= %d', $v, $min); } if ($max > 0) { $p .= sprintf(' and @{%s} <= %d', $v, $max); } my $param_check = $param->inline_check('$i'); return $p if $param->{'uniq'} eq &Types::Standard::Any()->{'uniq'}; "$p and do { " . 'my $ok = 1; ' . "for my \$i (\@{$v}) { " . "(\$ok = 0, last) unless $param_check " . '}; ' . '$ok ' . '}'; } ;},"inlined" => sub { package Types::Standard; no warnings; use strict; !$Type::Tiny::AvoidCallbacks ? "Ref::Util::XS::is_plain_arrayref($_[1])" : "ref($_[1]) eq 'ARRAY'";},"library" => "Types::Standard","moose_type" => bless( {"Types::TypeTiny::to_TypeTiny" => {},"_default_message" => sub { package Moose::Meta::TypeConstraint; use warnings; use strict; my $value = shift(); my $can_partialdump = &try(sub { require Devel::PartialDump; 'Devel::PartialDump'->VERSION(0.14); 1; } ); if ($can_partialdump) { $value = 'Devel::PartialDump'->new->dump($value); } else { $value = defined $value ? overload::StrVal($value) : 'undef'; } return q[Validation failed for '] . $name . "' with value $value";},"compiled_type_constraint" => sub { package Eval::Closure::Sandbox_62; use warnings; use strict; do { ref $_[0] eq 'ARRAY' };},"constraint" => sub { package Moose::Util::TypeConstraints::Builtins; use warnings; use strict; ref $_ eq 'ARRAY';},"constraint_generator" => sub { package Moose::Util::TypeConstraints::Builtins; use warnings; use strict; my $type_parameter = shift(); my $check = $type_parameter->_compiled_type_constraint; return sub { foreach my $x (@$_) { &$check($x) or return; } 1; } ;},"inline_environment" => {},"inline_generator" => sub { package Moose::Util::TypeConstraints::Builtins; use warnings; use strict; my $self = shift(); my $type_parameter = shift(); my $val = shift(); 'do {my $check = ' . $val . ';' . 'ref($check) eq "ARRAY" ' . '&& &List::Util::all(' . 'sub { ' . $type_parameter->_inline_check('$_') . ' }, ' . '@{$check}' . ')' . '}';},"inlined" => sub { package Moose::Util::TypeConstraints::Builtins; use warnings; use strict; 'ref(' . $_[1] . ') eq "ARRAY"';},"name" => "ArrayRef","package_defined_in" => "Moose::Util::TypeConstraints::Builtins","parent" => bless( {"_default_message" => sub { package Moose::Meta::TypeConstraint; use warnings; use strict; my $value = shift(); my $can_partialdump = &try(sub { require Devel::PartialDump; 'Devel::PartialDump'->VERSION(0.14); 1; } ); if ($can_partialdump) { $value = 'Devel::PartialDump'->new->dump($value); } else { $value = defined $value ? overload::StrVal($value) : 'undef'; } return q[Validation failed for '] . $name . "' with value $value";},"compiled_type_constraint" => sub { package Eval::Closure::Sandbox_50; use warnings; use strict; do { ref $_[0] };},"constraint" => sub { package Moose::Util::TypeConstraints::Builtins; use warnings; use strict; ref $_;},"inline_environment" => {},"inlined" => sub { package Moose::Util::TypeConstraints::Builtins; use warnings; use strict; 'ref(' . $_[1] . ')';},"name" => "Ref","package_defined_in" => "Moose::Util::TypeConstraints::Builtins","parent" => bless( {"Types::TypeTiny::to_TypeTiny" => bless( {"_is_core" => 1,"_overload_coderef" => sub { package Type::Tiny; BEGIN {${^WARNING_BITS} = "\x10\x01\x00\x00\x00\x50\x04\x00\x00\x00\x00\x00\x01\x40\x05\x45\x55\x15\x55\x55\x01\x00\x00"} use strict; defined $_[0] or _failed_check(7, 'Defined', $_[0], 'exception_class', 'Error::TypeTiny::Assertion'); $_[0];},"_overrides_assert_return" => !!0,"coercion" => bless( {"_compiled_type_constraint_check" => sub ;,"display_name" => "to_Defined","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"complementary_type" => bless( {"_is_core" => 1,"_overload_coderef" => sub { package Type::Tiny; BEGIN {${^WARNING_BITS} = "\x10\x01\x00\x00\x00\x50\x04\x00\x00\x00\x00\x00\x01\x40\x05\x45\x55\x15\x55\x55\x01\x00\x00"} use strict; defined $_[0] and _failed_check(6, 'Undef', $_[0], 'exception_class', 'Error::TypeTiny::Assertion'); $_[0];},"_overrides_assert_return" => !!0,"coercion" => bless( {"_compiled_type_constraint_check" => sub ;,"display_name" => "to_Undef","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"complementary_type" => {},"constraint" => sub { package Types::Standard; no warnings; use strict; not defined $_;},"definition_context" => {"file" => "/usr/local/lib/perl5/site_perl/5.44.0/Types/Standard.pm","line" => 254,"package" => "Types::Standard"},"deprecated" => !!0,"display_name" => "Undef","exception_class" => "Error::TypeTiny::Assertion","inlined" => sub { package Types::Standard; no warnings; use strict; "!defined($_[1])";},"library" => "Types::Standard","name" => "Undef","parent" => bless( {"_is_core" => 1,"_overload_coderef" => sub { package Type::Tiny; BEGIN {${^WARNING_BITS} = "\x10\x01\x00\x00\x00\x50\x04\x00\x00\x00\x00\x00\x01\x40\x05\x45\x55\x15\x55\x55\x01\x00\x00"} use strict; '???'; $_[0];},"_overrides_assert_return" => !!0,"coercion" => bless( {"_compiled_type_constraint_check" => sub ;,"display_name" => "to_Item","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"constraint" => sub { package Type::Tiny; use warnings; use strict; !0;},"definition_context" => {"file" => "/usr/local/lib/perl5/site_perl/5.44.0/Types/Standard.pm","line" => 226,"package" => "Types::Standard"},"deprecated" => !!0,"display_name" => "Item","exception_class" => "Error::TypeTiny::Assertion","inlined" => sub { package Types::Standard; no warnings; use strict; '!!1';},"library" => "Types::Standard","name" => "Item","parent" => bless( {"_is_core" => 1,"_overload_coderef" => sub { package Type::Tiny; BEGIN {${^WARNING_BITS} = "\x10\x01\x00\x00\x00\x50\x04\x00\x00\x00\x00\x00\x01\x40\x05\x45\x55\x15\x55\x55\x01\x00\x00"} use strict; '???'; $_[0];},"_overrides_assert_return" => !!0,"coercion" => bless( {"_compiled_type_constraint_check" => do{my $o},"display_name" => "to_Any","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"complement_name" => "None","constraint" => do{my $o},"definition_context" => {"file" => "/usr/local/lib/perl5/site_perl/5.44.0/Types/Standard.pm","line" => 220,"package" => "Types::Standard"},"deprecated" => !!0,"display_name" => "Any","exception_class" => "Error::TypeTiny::Assertion","inlined" => sub { package Types::Standard; no warnings; use strict; '!!1';},"library" => "Types::Standard","moose_type" => bless( {"Types::TypeTiny::to_TypeTiny" => {},"_default_message" => sub { package Moose::Meta::TypeConstraint; use warnings; use strict; my $value = shift(); my $can_partialdump = &try(sub { require Devel::PartialDump; 'Devel::PartialDump'->VERSION(0.14); 1; } ); if ($can_partialdump) { $value = 'Devel::PartialDump'->new->dump($value); } else { $value = defined $value ? overload::StrVal($value) : 'undef'; } return q[Validation failed for '] . $name . "' with value $value";},"compiled_type_constraint" => sub { package Eval::Closure::Sandbox_44; use warnings; use strict; do { 1 };},"constraint" => sub { package Moose::Util::TypeConstraints::Builtins; use warnings; use strict; 1;},"inline_environment" => {},"inlined" => sub { package Moose::Util::TypeConstraints::Builtins; use warnings; use strict; '1';},"name" => "Any","package_defined_in" => "Moose::Util::TypeConstraints::Builtins"}, 'Moose::Meta::TypeConstraint' ),"name" => "Any","type_default" => sub { package Types::Standard; no warnings; use strict; return undef;},"uniq" => 1}, 'Type::Tiny' ),"uniq" => 2}, 'Type::Tiny' ),"type_default" => sub { package Types::Standard; no warnings; use strict; return undef;},"uniq" => 6}, 'Type::Tiny' ),"constraint" => sub { package Types::Standard; no warnings; use strict; defined $_;},"definition_context" => {"file" => "/usr/local/lib/perl5/site_perl/5.44.0/Types/Standard.pm","line" => 262,"package" => "Types::Standard"},"deprecated" => !!0,"display_name" => "Defined","exception_class" => "Error::TypeTiny::Assertion","inlined" => sub { package Types::Standard; no warnings; use strict; "defined($_[1])";},"library" => "Types::Standard","moose_type" => {},"name" => "Defined","parent" => {},"uniq" => 7}, 'Type::Tiny' ),"_default_message" => sub { package Moose::Meta::TypeConstraint; use warnings; use strict; my $value = shift(); my $can_partialdump = &try(sub { require Devel::PartialDump; 'Devel::PartialDump'->VERSION(0.14); 1; } ); if ($can_partialdump) { $value = 'Devel::PartialDump'->new->dump($value); } else { $value = defined $value ? overload::StrVal($value) : 'undef'; } return q[Validation failed for '] . $name . "' with value $value";},"compiled_type_constraint" => sub { package Eval::Closure::Sandbox_47; use warnings; use strict; do { defined $_[0] };},"constraint" => sub { package Moose::Util::TypeConstraints::Builtins; use warnings; use strict; defined $_;},"inline_environment" => {},"inlined" => sub { package Moose::Util::TypeConstraints::Builtins; use warnings; use strict; 'defined(' . $_[1] . ')';},"name" => "Defined","package_defined_in" => "Moose::Util::TypeConstraints::Builtins","parent" => bless( {"_default_message" => sub { package Moose::Meta::TypeConstraint; use warnings; use strict; my $value = shift(); my $can_partialdump = &try(sub { require Devel::PartialDump; 'Devel::PartialDump'->VERSION(0.14); 1; } ); if ($can_partialdump) { $value = 'Devel::PartialDump'->new->dump($value); } else { $value = defined $value ? overload::StrVal($value) : 'undef'; } return q[Validation failed for '] . $name . "' with value $value";},"compiled_type_constraint" => sub { package Eval::Closure::Sandbox_45; use warnings; use strict; do { 1 };},"constraint" => sub { package Moose::Meta::TypeConstraint; use warnings; use strict; 1;},"inline_environment" => {},"inlined" => sub { package Moose::Util::TypeConstraints::Builtins; use warnings; use strict; '1';},"name" => "Item","package_defined_in" => "Moose::Util::TypeConstraints::Builtins","parent" => {}}, 'Moose::Meta::TypeConstraint' )}, 'Moose::Meta::TypeConstraint' )}, 'Moose::Meta::TypeConstraint' )}, 'Moose::Meta::TypeConstraint::Parameterizable' ),"name" => "ArrayRef","name_generator" => sub { package Type::Tiny; use warnings; use strict; defined $_ and s/[\x00-\x1F]//gms foreach (my($s, @a) = @_); sprintf '%s[%s]', $s, join(',', map((!defined($_) ? 'undef' : (!ref($_) && /\W/ ? B::perlstring($_) : $_)), @a));},"parent" => bless( {"_is_core" => 1,"_overload_coderef" => sub { package Type::Tiny; BEGIN {${^WARNING_BITS} = "\x10\x01\x00\x00\x00\x50\x04\x00\x00\x00\x00\x00\x01\x40\x05\x45\x55\x15\x55\x55\x01\x00\x00"} use strict; not ref $_[0] and _failed_check(16, 'Ref', $_[0], 'exception_class', 'Error::TypeTiny::Assertion'); $_[0];},"_overrides_assert_return" => !!0,"coercion" => bless( {"_compiled_type_constraint_check" => sub ;,"display_name" => "to_Ref","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"constraint" => sub { package Types::Standard; no warnings; use strict; ref $_;},"constraint_generator" => sub { package Types::Standard; no warnings; use strict; return $meta->get_type('Ref') unless @_; Type::Tiny::check_parameter_count_for_parameterized_type('Types::Standard', 'Ref', \@_, 1); my $reftype = shift(); $reftype =~ /^(SCALAR|ARRAY|HASH|CODE|REF|GLOB|LVALUE|FORMAT|IO|VSTRING|REGEXP|Regexp)$/i or _croak "Parameter to Ref[`a] expected to be a Perl ref type; got $reftype"; $reftype = "$reftype"; return sub { ref $_[0] and builtin::reftype($_[0]) eq $reftype; } ;},"deep_explanation" => sub { package Types::Standard; no warnings; use strict; require B; my($type, $value, $varname) = @_; my $param = $type->parameters->[0]; return if $type->check($value); my $reftype = builtin::reftype($value); return [sprintf('"%s" constrains reftype(%s) to be equal to %s', $type, $varname, B::perlstring($param)), sprintf('reftype(%s) is %s', $varname, defined $reftype ? B::perlstring($reftype) : 'undef')];},"definition_context" => {"file" => "/usr/local/lib/perl5/site_perl/5.44.0/Types/Standard.pm","line" => 438,"package" => "Types::Standard"},"deprecated" => !!0,"display_name" => "Ref","exception_class" => "Error::TypeTiny::Assertion","inline_generator" => sub { package Types::Standard; no warnings; use strict; my $reftype = shift(); return sub { my $v = $_[1]; &$maybe_load_modules('Scalar::Util', "ref($v) and Scalar::Util::reftype($v) eq q($reftype)"); } ;},"inlined" => sub { package Types::Standard; no warnings; use strict; "!!ref($_[1])";},"library" => "Types::Standard","name" => "Ref","parent" => {},"uniq" => 16}, 'Type::Tiny' ),"type_default" => sub { package Types::Standard; no warnings; use strict; return [];},"type_default_generator" => sub { package Types::Standard; no warnings; use strict; return $Type::Tiny::parameterize_type->type_default if @_ < 2; return undef;},"uniq" => 21}, 'Type::Tiny' );$v->{"coercion"}{"type_constraint"} = $v;$v->{"compiled_type_constraint"} = $v->{"coercion"}{"_compiled_type_constraint_check"};$v->{"moose_type"}{"Types::TypeTiny::to_TypeTiny"} = $v;$v->{"moose_type"}{"parent"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"coercion"}{"type_constraint"} = $v->{"moose_type"}{"parent"}{"parent"}{"Types::TypeTiny::to_TypeTiny"};$v->{"moose_type"}{"parent"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"compiled_type_constraint"} = $v->{"moose_type"}{"parent"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"moose_type"}{"parent"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"complementary_type"}{"coercion"}{"type_constraint"} = $v->{"moose_type"}{"parent"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"complementary_type"};$v->{"moose_type"}{"parent"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"complementary_type"}{"compiled_type_constraint"} = $v->{"moose_type"}{"parent"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"complementary_type"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"moose_type"}{"parent"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"complementary_type"}{"complementary_type"} = $v->{"moose_type"}{"parent"}{"parent"}{"Types::TypeTiny::to_TypeTiny"};$v->{"moose_type"}{"parent"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"complementary_type"}{"parent"}{"coercion"}{"type_constraint"} = $v->{"moose_type"}{"parent"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"complementary_type"}{"parent"};$v->{"moose_type"}{"parent"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"complementary_type"}{"parent"}{"compiled_type_constraint"} = $v->{"moose_type"}{"parent"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"complementary_type"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"moose_type"}{"parent"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"complementary_type"}{"parent"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"} = $v->{"moose_type"}{"parent"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"complementary_type"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"moose_type"}{"parent"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"complementary_type"}{"parent"}{"parent"}{"coercion"}{"type_constraint"} = $v->{"moose_type"}{"parent"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"complementary_type"}{"parent"}{"parent"};$v->{"moose_type"}{"parent"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"complementary_type"}{"parent"}{"parent"}{"compiled_type_constraint"} = $v->{"moose_type"}{"parent"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"complementary_type"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"moose_type"}{"parent"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"complementary_type"}{"parent"}{"parent"}{"constraint"} = $v->{"moose_type"}{"parent"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"complementary_type"}{"parent"}{"constraint"};$v->{"moose_type"}{"parent"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"complementary_type"}{"parent"}{"parent"}{"moose_type"}{"Types::TypeTiny::to_TypeTiny"} = $v->{"moose_type"}{"parent"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"complementary_type"}{"parent"}{"parent"};$v->{"moose_type"}{"parent"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"moose_type"} = $v->{"moose_type"}{"parent"}{"parent"};$v->{"moose_type"}{"parent"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"} = $v->{"moose_type"}{"parent"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"complementary_type"}{"parent"};$v->{"moose_type"}{"parent"}{"parent"}{"parent"}{"parent"} = $v->{"moose_type"}{"parent"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"complementary_type"}{"parent"}{"parent"}{"moose_type"};$v->{"parent"}{"coercion"}{"type_constraint"} = $v->{"parent"};$v->{"parent"}{"compiled_type_constraint"} = $v->{"parent"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"parent"}{"parent"} = $v->{"moose_type"}{"parent"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}; \$v}->get_message($data)) |
12 |
0 |
12 |
|
| 101 |
12 |
| my $layout = $self->layout; |
| 102 |
|
| |
| 103 |
|
| return $data->map( |
| 104 |
12 |
▶ | sub { |
|
Subroutine
__ANON__: called CC=3 SCAR=11.0
|
| 105 |
12 |
| my ($layer_data) = @_; |
| 106 |
|
| |
| 107 |
12 |
| my $match_id = |
| 108 |
|
| match( $layer_data->at('PANEL'), $layout->at('PANEL') ); |
| 109 |
|
| |
| 110 |
23 |
▶ | my $do_axis = sub { |
|
Subroutine
__ANON__: called CC=4 SCAR=13.9
|
| 111 |
23 |
| my ($axis) = @_; |
| 112 |
|
| |
| 113 |
23 |
| my $column_name = "SCALE_" . uc($axis); |
| 114 |
23 |
| my $panel_scales = "panel_scales_" . lc($axis); |
| 115 |
|
| |
| 116 |
23 |
| my $vars = |
| 117 |
|
| $self->$panel_scales->at(0)->aesthetics->intersect( $layer_data->names ); |
| 118 |
23 |
| my $scale = $layout->at($column_name)->slice($match_id); |
| 119 |
23 |
| my $new_data = |
| 120 |
|
| $self->scale_apply( $layer_data, $vars, "map_to_limits", $scale, |
| 121 |
|
| $self->$panel_scales ); |
| 122 |
|
| |
| 123 |
23 |
| for my $var (@$vars) { |
| 124 |
|
| |
| 125 |
36 |
▶ | if ($keep_raw_column) { |
Branch: 1 branch
| Branch | True | False | Total |
| if ($keep_raw_column) |
11 |
25 |
36 |
|
| 126 |
11 |
| my $colname_raw = "${var}_raw"; |
| 127 |
11 |
▶ | unless ( $layer_data->exists($colname_raw) ) { |
Branch: 1 branch
| Branch | True | False | Total |
| unless ($layer_data->exists($colname_raw)) |
0 |
11 |
11 |
|
| 128 |
0 |
| $layer_data->set( |
| 129 |
|
| $colname_raw => $layer_data->at($var) ); |
| 130 |
|
| } |
| 131 |
|
| } |
| 132 |
36 |
| $layer_data->set( $var => $new_data->{$var} ); |
| 133 |
|
| } |
| 134 |
12 |
| }; |
| 135 |
|
| |
| 136 |
12 |
▶ | &$do_axis('x') if defined $self->panel_scales_x; |
Branch: 1 branch
| Branch | True | False | Total |
| if defined $self->panel_scales_x |
12 |
0 |
12 |
|
| 137 |
12 |
▶ | &$do_axis('y') if defined $self->panel_scales_y; |
Branch: 1 branch
| Branch | True | False | Total |
| if defined $self->panel_scales_y |
11 |
1 |
12 |
|
| 138 |
|
| |
| 139 |
12 |
| return $layer_data; |
| 140 |
|
| } |
| 141 |
12 |
| ); |
| 142 |
3 |
| } |
| 143 |
|
| |
| 144 |
6 |
▶ | method reset_scales () { |
|
Subroutine
reset_scales: called CC=6 SCAR=18.3
Pod
undocumented
Branch: 2 branches
| Branch | True | False | Total |
| @_ < 1 and Function::Parameters::_croak('Too few arguments for method reset_scales (expected 1, got ' . @_ . ')') |
0 |
6 |
6 |
| @_ > 1 and Function::Parameters::_croak('Too many arguments for method reset_scales (expected 1, got ' . @_ . ')') |
0 |
6 |
6 |
|
| 145 |
6 |
▶ | return unless $self->facet->shrink; |
Branch: 1 branch
| Branch | True | False | Total |
| unless $self->facet->shrink |
0 |
6 |
6 |
|
| 146 |
6 |
▶ | if ( defined $self->panel_scales_x ) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (defined $self->panel_scales_x) |
6 |
0 |
6 |
|
| 147 |
6 |
▶ | $self->panel_scales_x->map( sub { $_->reset() } ); |
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
|
| 148 |
|
| } |
| 149 |
6 |
▶ | if ( defined $self->panel_scales_y ) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (defined $self->panel_scales_y) |
5 |
1 |
6 |
|
| 150 |
5 |
▶ | $self->panel_scales_y->map( sub { $_->reset() } ); |
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
|
| 151 |
|
| } |
| 152 |
3 |
| } |
| 153 |
|
| |
| 154 |
6 |
▶ | method finish_data ($data) { |
|
Subroutine
finish_data: called CC=3 SCAR=11.2
Pod
undocumented
Branch: 2 branches
| Branch | True | False | Total |
| @_ < 2 and Function::Parameters::_croak('Too few arguments for method finish_data (expected 2, got ' . @_ . ')') |
0 |
6 |
6 |
| @_ > 2 and Function::Parameters::_croak('Too many arguments for method finish_data (expected 2, got ' . @_ . ')') |
0 |
6 |
6 |
|
| 155 |
|
| return $data->map( |
| 156 |
6 |
▶ | sub { |
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
|
| 157 |
6 |
| $self->facet->finish_data( |
| 158 |
|
| $_, $self->layout, $self->facet_params, |
| 159 |
|
| x_scales => $self->panel_scales_x, |
| 160 |
|
| y_scales => $self->panel_scales_y, |
| 161 |
|
| ); |
| 162 |
|
| } |
| 163 |
6 |
| ); |
| 164 |
3 |
| } |
| 165 |
|
| |
| 166 |
6 |
▶ | method get_scales ($i) { |
|
Subroutine
get_scales: called CC=4 SCAR=14.0
Pod
undocumented
Branch: 2 branches
| Branch | True | False | Total |
| @_ < 2 and Function::Parameters::_croak('Too few arguments for method get_scales (expected 2, got ' . @_ . ')') |
0 |
6 |
6 |
| @_ > 2 and Function::Parameters::_croak('Too many arguments for method get_scales (expected 2, got ' . @_ . ')') |
0 |
6 |
6 |
|
| 167 |
6 |
| my $this_panel = |
| 168 |
|
| $self->layout->select_rows( which( $self->layout->at('PANEL') == $i ) ); |
| 169 |
6 |
▶ | my $href = { |
Branch: 1 branch
| Branch | True | False | Total |
| defined $self->panel_scales_y ? : |
4 |
2 |
6 |
|
| 170 |
|
| x => $self->panel_scales_x->at( $this_panel->at('SCALE_X')->at(0) ), |
| 171 |
|
| ( |
| 172 |
|
| defined $self->panel_scales_y |
| 173 |
|
| ? ( |
| 174 |
|
| y => $self->panel_scales_y->at( |
| 175 |
|
| $this_panel->at('SCALE_Y')->at(0) |
| 176 |
|
| ) |
| 177 |
|
| ) |
| 178 |
|
| : () |
| 179 |
|
| ), |
| 180 |
|
| }; |
| 181 |
3 |
| } |
| 182 |
|
| |
| 183 |
6 |
▶ | method setup_panel_params () { |
|
Subroutine
setup_panel_params: called CC=3 SCAR=11.1
Pod
undocumented
Branch: 2 branches
| Branch | True | False | Total |
| @_ < 1 and Function::Parameters::_croak('Too few arguments for method setup_panel_params (expected 1, got ' . @_ . ')') |
0 |
6 |
6 |
| @_ > 1 and Function::Parameters::_croak('Too many arguments for method setup_panel_params (expected 1, got ' . @_ . ')') |
0 |
6 |
6 |
|
| 184 |
6 |
| $self->coord->modify_scales( $self->panel_scales_x, $self->panel_scales_y ); |
| 185 |
|
| |
| 186 |
6 |
| my $scales_x = |
| 187 |
|
| $self->panel_scales_x->slice( $self->layout->at('SCALE_X')->unpdl ); |
| 188 |
6 |
| my $scales_y = |
| 189 |
|
| $self->panel_scales_y->slice( $self->layout->at('SCALE_Y')->unpdl ); |
| 190 |
|
| |
| 191 |
6 |
▶ | my @params = pairwise { |
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
|
| 192 |
6 |
| $self->coord->setup_panel_params( $a, $b, $self->coord_params ); |
| 193 |
6 |
| } @$scales_x, @$scales_y; |
| 194 |
6 |
| $self->_set_panel_params( \@params ); |
| 195 |
3 |
| } |
| 196 |
|
| |
| 197 |
6 |
▶ | fun _xylabel ($axis) { |
|
Subroutine
_xylabel: called CC=3 SCAR=20.4
Branch: 2 branches
| Branch | True | False | Total |
| @_ < 1 and Function::Parameters::_croak('Too few arguments for fun _xylabel (expected 1, got ' . @_ . ')') |
0 |
6 |
6 |
| @_ > 1 and Function::Parameters::_croak('Too many arguments for fun _xylabel (expected 1, got ' . @_ . ')') |
0 |
6 |
6 |
|
| 198 |
6 |
| my $panel_scales = "panel_scales_${axis}"; |
| 199 |
|
| |
| 200 |
0 |
▶ | return method($labels) { |
|
Subroutine
__ANON__: not called CC=8 SCAR=42.8
Branch: 2 branches
| Branch | True | False | Total |
| @_ < 2 and Function::Parameters::_croak('Too few arguments for method (anon) (expected 2, got ' . @_ . ')') |
0 |
0 |
0 |
| @_ > 2 and Function::Parameters::_croak('Too many arguments for method (anon) (expected 2, got ' . @_ . ')') |
0 |
0 |
0 |
|
| 201 |
0 |
| my $scale0 = $self->$panel_scales->at(0); |
| 202 |
0 |
| my $scale1 = $self->$panel_scales->at(1); |
| 203 |
0 |
| my ( $primary, $secondary ); |
| 204 |
0 |
▶ | $primary = $scale0->make_title( $scale0->name // $labels->at($axis) ); |
Condition0%0/3
$scale0->name // $labels->at($axis)
MC/DC0%0/2
$scale0->name // $labels->at($axis)
$scale0->name
$labels->at($axis)
Truth table0%0/3
A // B
A= $scale0->nameB= $labels->at($axis)
|
| 205 |
0 |
▶ | if ( $scale1 and $scale1->secondary_axis ) { |
Branch: 1 branch
| Branch | True | False | Total |
| if ($scale1 and $scale1->secondary_axis) |
0 |
0 |
0 |
Condition0%0/3
$scale1 and $scale1->secondary_axis
MC/DC0%0/2
$scale1 and $scale1->secondary_axis
$scale1
$scale1->secondary_axis
Truth table0%0/3
A and B
A= $scale1B= $scale1->secondary_axis
|
| 206 |
0 |
▶ | $secondary = $scale1->sec_name // $labels->at("sec_${axis}"); |
Condition0%0/3
$scale1->sec_name // $labels->at("sec_$axis")
MC/DC0%0/2
$scale1->sec_name // $labels->at("sec_$axis")
$scale1->sec_name
$labels->at("sec_$axis")
Truth table0%0/3
A // B
A= $scale1->sec_nameB= $labels->at("sec_$axis")
|
| 207 |
0 |
▶ | $secondary = $primary if ( $secondary->is_derived ); |
Branch: 1 branch
| Branch | True | False | Total |
| if $secondary->is_derived |
0 |
0 |
0 |
|
| 208 |
0 |
| $secondary = $scale1->make_sec_title($secondary); |
| 209 |
|
| } |
| 210 |
0 |
| return { primary => $primary, secondary => $secondary }; |
| 211 |
6 |
| }; |
| 212 |
3 |
| } |
| 213 |
3 |
| *xlabel = _xylabel('x'); |
| 214 |
3 |
| *ylabel = _xylabel('y'); |
| 215 |
|
| |
| 216 |
|
| # Apply scale method to multiple variables in a data set. |
| 217 |
|
| # Returns a hash ref of { var => piddle } |
| 218 |
46 |
▶ | classmethod scale_apply ($data, $vars, $method, |
|
Subroutine
scale_apply: called CC=9 SCAR=23.9
Pod
undocumented
|
| 219 |
46 |
▶ | Piddle1D $scale_id, ArrayRef $scales) { |
Branch: 4 branches
| Branch | True | False | Total |
| @_ < 6 and Function::Parameters::_croak('Too few arguments for classmethod scale_apply (expected 6, got ' . @_ . ')') |
0 |
46 |
46 |
| @_ > 6 and Function::Parameters::_croak('Too many arguments for classmethod scale_apply (expected 6, got ' . @_ . ')') |
0 |
46 |
46 |
| Type::Tiny::XS::AUTO::TC1($scale_id) and $scale_id->ndims == 1 or Function::Parameters::_croak('In classmethod scale_apply: parameter 4 ($scale_id): ' . ${my $v = bless( {"_overload_coderef" => sub { package Type::Tiny; BEGIN {${^WARNING_BITS} = "\x10\x01\x00\x00\x00\x50\x04\x00\x00\x00\x00\x00\x01\x40\x05\x45\x55\x15\x55\x55\x01\x00\x00"} use strict; Type::Tiny::XS::AUTO::TC1($_[0]) and $_[0]->ndims == 1 or _failed_check(52, 'Piddle1D', $_[0], 'exception_class', 'Error::TypeTiny::Assertion'); $_[0];},"_overrides_assert_return" => !!0,"coercion" => bless( {"_compiled_type_constraint_check" => sub ($) { package Eval::TypeTiny::Sandbox; use strict; Type::Tiny::XS::AUTO::TC1($_[0]) and $_[0]->ndims == 1;},"display_name" => "to_Piddle1D","name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"constraint" => sub { package Type::Tiny; use warnings; use strict; !0;},"constraint_generator" => sub { package Type::TinyX::Facets; use warnings; use strict; my $base = do { BEGIN {${^WARNING_BITS} = "\x55\x55\x55\x45\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55"} $Type::Tiny::parameterize_type }; my(%params) = @_ or return $base; my(@checks) = &$IG(%params)->($base, '$_[0]'); $checks[0] = $base->inline_check('$_[0]'); my $sub = sprintf('sub { %s }', join(' and ', map(("($_)"), @checks))); eval $sub or _croak("could not build sub: $@\n\nCODE: $sub\n");},"definition_context" => {"file" => "/usr/local/lib/perl5/site_perl/5.44.0/Types/PDL.pm","line" => 142,"package" => "Types::PDL"},"deprecated" => !!0,"display_name" => "Piddle1D","exception_class" => "Error::TypeTiny::Assertion","inline_generator" => sub { package Type::TinyX::Facets; use warnings; use strict; my(%p_not_destroyed) = @_; return sub { my(%p) = %p_not_destroyed; my $var = $_[1]; my(@r) = map($_->[1]->(\%p, $var, $_->[0]), @facets); _croak(sprintf('Attempt to parameterize type "%s" with unrecognised parameter%s %s', $_[0]->name, scalar keys %p == 1 ? '' : 's', Type::Utils::english_list(map((qq["$_"]), sort(keys %p))))) if keys %p; return undef, @r; } ;},"library" => "Types::PDL","moose_type" => bless( {"Types::TypeTiny::to_TypeTiny" => {},"_default_message" => sub { package Moose::Meta::TypeConstraint; use warnings; use strict; my $value = shift(); my $can_partialdump = &try(sub { require Devel::PartialDump; 'Devel::PartialDump'->VERSION(0.14); 1; } ); if ($can_partialdump) { $value = 'Devel::PartialDump'->new->dump($value); } else { $value = defined $value ? overload::StrVal($value) : 'undef'; } return q[Validation failed for '] . $name . "' with value $value";},"compiled_type_constraint" => sub { package Eval::Closure::Sandbox_194; use warnings; use strict; do { Type::Tiny::XS::AUTO::TC1($_[0]) and $_[0]->ndims == 1 };},"constraint" => sub { package Moose::Meta::TypeConstraint; use warnings; use strict; 1;},"inline_environment" => {},"name" => "Types::PDL::Piddle1D","parent" => bless( {"Types::TypeTiny::to_TypeTiny" => bless( {"coercion" => bless( {"_compiled_type_constraint_check" => do{my $o},"frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"constraint" => sub { package Type::TinyX::Facets; use warnings; use strict; Type::Tiny::XS::AUTO::TC1($_[0]) and $_[0]->ndims == 1;},"definition_context" => {"file" => "/usr/local/lib/perl5/site_perl/5.44.0/Types/PDL.pm","line" => 142,"package" => "Types::PDL"},"deprecated" => !!0,"display_name" => "Piddle[ndims=>\"1\"]","exception_class" => "Error::TypeTiny::Assertion","inlined" => sub { package Type::TinyX::Facets; use warnings; use strict; my(%p) = %p_not_destroyed; my $var = $_[1]; my(@r) = map($_->[1]->(\%p, $var, $_->[0]), @facets); _croak(sprintf('Attempt to parameterize type "%s" with unrecognised parameter%s %s', $_[0]->name, scalar keys %p == 1 ? '' : 's', Type::Utils::english_list(map((qq["$_"]), sort(keys %p))))) if keys %p; return undef, @r;},"moose_type" => {},"name" => "__ANON__","parameters" => ["ndims",1],"parent" => bless( {"_caller_level" => 1,"_default_message" => sub { package Type::Tiny::Class; BEGIN {${^WARNING_BITS} = "\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x51\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55"} use strict; sprintf '%s did not pass type constraint "%s" (not isa %s)', Type::Tiny::_dd($_[0]), $name, $c;},"_overload_coderef" => sub { package Type::Tiny; BEGIN {${^WARNING_BITS} = "\x10\x01\x00\x00\x00\x50\x04\x00\x00\x00\x00\x00\x01\x40\x05\x45\x55\x15\x55\x55\x01\x00\x00"} use strict; Type::Tiny::XS::AUTO::TC1($_[0]) or _failed_check(46, 'Piddle', $_[0], 'exception_class', 'Error::TypeTiny::Assertion'); $_[0];},"_overrides_assert_return" => !!0,"class" => "PDL","coercion" => bless( {"_compiled_type_constraint_check" => sub ;,"display_name" => "to_Piddle","name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"constraint" => sub { package Type::Tiny::Class; use warnings; use strict; builtin::blessed($_) and $_->isa($class);},"constraint_generator" => sub { package Type::TinyX::Facets; use warnings; use strict; my $base = do { BEGIN {${^WARNING_BITS} = "\x55\x55\x55\x45\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55"} $Type::Tiny::parameterize_type }; my(%params) = @_ or return $base; my(@checks) = &$IG(%params)->($base, '$_[0]'); $checks[0] = $base->inline_check('$_[0]'); my $sub = sprintf('sub { %s }', join(' and ', map(("($_)"), @checks))); eval $sub or _croak("could not build sub: $@\n\nCODE: $sub\n");},"definition_context" => {"file" => "/usr/local/lib/perl5/site_perl/5.44.0/Types/PDL.pm","line" => 138,"package" => "Types::PDL"},"deprecated" => !!0,"display_name" => "Piddle","exception_class" => "Error::TypeTiny::Assertion","inline_generator" => sub { package Type::TinyX::Facets; use warnings; use strict; my(%p_not_destroyed) = @_; return sub { my(%p) = %p_not_destroyed; my $var = $_[1]; my(@r) = map($_->[1]->(\%p, $var, $_->[0]), @facets); _croak(sprintf('Attempt to parameterize type "%s" with unrecognised parameter%s %s', $_[0]->name, scalar keys %p == 1 ? '' : 's', Type::Utils::english_list(map((qq["$_"]), sort(keys %p))))) if keys %p; return undef, @r; } ;},"inlined" => sub { package Type::Tiny::Class; use warnings; use strict; my $var = $_[1]; return "do { use Scalar::Util (); Scalar::Util::blessed($var) and $var->isa(q[$class]) }" if $Type::Tiny::AvoidCallbacks; return "$xsub($var)" if $xsub; "Scalar::Util::blessed($var) and $var->isa(q[$class])";},"library" => "Types::PDL","moose_type" => bless( {"Types::TypeTiny::to_TypeTiny" => {},"_default_message" => sub { package Moose::Meta::TypeConstraint; use warnings; use strict; my $value = shift(); my $can_partialdump = &try(sub { require Devel::PartialDump; 'Devel::PartialDump'->VERSION(0.14); 1; } ); if ($can_partialdump) { $value = 'Devel::PartialDump'->new->dump($value); } else { $value = defined $value ? overload::StrVal($value) : 'undef'; } return q[Validation failed for '] . $name . "' with value $value";},"class" => "PDL","compiled_type_constraint" => sub { package Eval::Closure::Sandbox_188; use warnings; use strict; do { builtin::blessed($_[0]) and $_[0]->isa('PDL') };},"constraint" => sub { package Moose::Meta::TypeConstraint::Class; use warnings; use strict; $_[0]->isa($class_name);},"inline_environment" => {},"inlined" => sub { package Moose::Meta::TypeConstraint::Class; use warnings; use strict; my $self = shift(); my $val = shift(); return 'Scalar::Util::blessed(' . $val . ')' . ' && ' . $val . '->isa(' . B::perlstring($self->class) . ')';},"name" => "Types::PDL::Piddle","parent" => bless( {"Types::TypeTiny::to_TypeTiny" => bless( {"_is_core" => 1,"_overload_coderef" => sub { package Type::Tiny; BEGIN {${^WARNING_BITS} = "\x10\x01\x00\x00\x00\x50\x04\x00\x00\x00\x00\x00\x01\x40\x05\x45\x55\x15\x55\x55\x01\x00\x00"} use strict; Ref::Util::XS::is_blessed_ref($_[0]) or _failed_check(24, 'Object', $_[0], 'exception_class', 'Error::TypeTiny::Assertion'); $_[0];},"_overrides_assert_return" => !!0,"coercion" => bless( {"_compiled_type_constraint_check" => sub ;,"display_name" => "to_Object","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"constraint" => sub { package Types::Standard; no warnings; use strict; builtin::blessed($_);},"definition_context" => {"file" => "/usr/local/lib/perl5/site_perl/5.44.0/Types/Standard.pm","line" => 578,"package" => "Types::Standard"},"deprecated" => !!0,"display_name" => "Object","exception_class" => "Error::TypeTiny::Assertion","inlined" => sub { package Types::Standard; no warnings; use strict; !$Type::Tiny::AvoidCallbacks ? "Ref::Util::XS::is_blessed_ref($_[1])" : &$maybe_load_modules('Scalar::Util', "Scalar::Util::blessed($_[1])");},"is_object" => 1,"library" => "Types::Standard","moose_type" => {},"name" => "Object","parent" => bless( {"_is_core" => 1,"_overload_coderef" => sub { package Type::Tiny; BEGIN {${^WARNING_BITS} = "\x10\x01\x00\x00\x00\x50\x04\x00\x00\x00\x00\x00\x01\x40\x05\x45\x55\x15\x55\x55\x01\x00\x00"} use strict; not ref $_[0] and _failed_check(16, 'Ref', $_[0], 'exception_class', 'Error::TypeTiny::Assertion'); $_[0];},"_overrides_assert_return" => !!0,"coercion" => bless( {"_compiled_type_constraint_check" => sub ;,"display_name" => "to_Ref","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"constraint" => sub { package Types::Standard; no warnings; use strict; ref $_;},"constraint_generator" => sub { package Types::Standard; no warnings; use strict; return $meta->get_type('Ref') unless @_; Type::Tiny::check_parameter_count_for_parameterized_type('Types::Standard', 'Ref', \@_, 1); my $reftype = shift(); $reftype =~ /^(SCALAR|ARRAY|HASH|CODE|REF|GLOB|LVALUE|FORMAT|IO|VSTRING|REGEXP|Regexp)$/i or _croak "Parameter to Ref[`a] expected to be a Perl ref type; got $reftype"; $reftype = "$reftype"; return sub { ref $_[0] and builtin::reftype($_[0]) eq $reftype; } ;},"deep_explanation" => sub { package Types::Standard; no warnings; use strict; require B; my($type, $value, $varname) = @_; my $param = $type->parameters->[0]; return if $type->check($value); my $reftype = builtin::reftype($value); return [sprintf('"%s" constrains reftype(%s) to be equal to %s', $type, $varname, B::perlstring($param)), sprintf('reftype(%s) is %s', $varname, defined $reftype ? B::perlstring($reftype) : 'undef')];},"definition_context" => {"file" => "/usr/local/lib/perl5/site_perl/5.44.0/Types/Standard.pm","line" => 438,"package" => "Types::Standard"},"deprecated" => !!0,"display_name" => "Ref","exception_class" => "Error::TypeTiny::Assertion","inline_generator" => sub { package Types::Standard; no warnings; use strict; my $reftype = shift(); return sub { my $v = $_[1]; &$maybe_load_modules('Scalar::Util', "ref($v) and Scalar::Util::reftype($v) eq q($reftype)"); } ;},"inlined" => sub { package Types::Standard; no warnings; use strict; "!!ref($_[1])";},"library" => "Types::Standard","name" => "Ref","parent" => bless( {"_is_core" => 1,"_overload_coderef" => sub { package Type::Tiny; BEGIN {${^WARNING_BITS} = "\x10\x01\x00\x00\x00\x50\x04\x00\x00\x00\x00\x00\x01\x40\x05\x45\x55\x15\x55\x55\x01\x00\x00"} use strict; defined $_[0] or _failed_check(7, 'Defined', $_[0], 'exception_class', 'Error::TypeTiny::Assertion'); $_[0];},"_overrides_assert_return" => !!0,"coercion" => bless( {"_compiled_type_constraint_check" => sub ;,"display_name" => "to_Defined","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"complementary_type" => bless( {"_is_core" => 1,"_overload_coderef" => sub { package Type::Tiny; BEGIN {${^WARNING_BITS} = "\x10\x01\x00\x00\x00\x50\x04\x00\x00\x00\x00\x00\x01\x40\x05\x45\x55\x15\x55\x55\x01\x00\x00"} use strict; defined $_[0] and _failed_check(6, 'Undef', $_[0], 'exception_class', 'Error::TypeTiny::Assertion'); $_[0];},"_overrides_assert_return" => !!0,"coercion" => bless( {"_compiled_type_constraint_check" => sub ;,"display_name" => "to_Undef","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"complementary_type" => {},"constraint" => sub { package Types::Standard; no warnings; use strict; not defined $_;},"definition_context" => {"file" => "/usr/local/lib/perl5/site_perl/5.44.0/Types/Standard.pm","line" => 254,"package" => "Types::Standard"},"deprecated" => !!0,"display_name" => "Undef","exception_class" => "Error::TypeTiny::Assertion","inlined" => sub { package Types::Standard; no warnings; use strict; "!defined($_[1])";},"library" => "Types::Standard","name" => "Undef","parent" => bless( {"_is_core" => 1,"_overload_coderef" => sub { package Type::Tiny; BEGIN {${^WARNING_BITS} = "\x10\x01\x00\x00\x00\x50\x04\x00\x00\x00\x00\x00\x01\x40\x05\x45\x55\x15\x55\x55\x01\x00\x00"} use strict; '???'; $_[0];},"_overrides_assert_return" => !!0,"coercion" => bless( {"_compiled_type_constraint_check" => sub ;,"display_name" => "to_Item","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"constraint" => do{my $o},"definition_context" => {"file" => "/usr/local/lib/perl5/site_perl/5.44.0/Types/Standard.pm","line" => 226,"package" => "Types::Standard"},"deprecated" => !!0,"display_name" => "Item","exception_class" => "Error::TypeTiny::Assertion","inlined" => sub { package Types::Standard; no warnings; use strict; '!!1';},"library" => "Types::Standard","name" => "Item","parent" => bless( {"_is_core" => 1,"_overload_coderef" => sub { package Type::Tiny; BEGIN {${^WARNING_BITS} = "\x10\x01\x00\x00\x00\x50\x04\x00\x00\x00\x00\x00\x01\x40\x05\x45\x55\x15\x55\x55\x01\x00\x00"} use strict; '???'; $_[0];},"_overrides_assert_return" => !!0,"coercion" => bless( {"_compiled_type_constraint_check" => do{my $o},"display_name" => "to_Any","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"complement_name" => "None","constraint" => do{my $o},"definition_context" => {"file" => "/usr/local/lib/perl5/site_perl/5.44.0/Types/Standard.pm","line" => 220,"package" => "Types::Standard"},"deprecated" => !!0,"display_name" => "Any","exception_class" => "Error::TypeTiny::Assertion","inlined" => sub { package Types::Standard; no warnings; use strict; '!!1';},"library" => "Types::Standard","moose_type" => bless( {"Types::TypeTiny::to_TypeTiny" => {},"_default_message" => sub { package Moose::Meta::TypeConstraint; use warnings; use strict; my $value = shift(); my $can_partialdump = &try(sub { require Devel::PartialDump; 'Devel::PartialDump'->VERSION(0.14); 1; } ); if ($can_partialdump) { $value = 'Devel::PartialDump'->new->dump($value); } else { $value = defined $value ? overload::StrVal($value) : 'undef'; } return q[Validation failed for '] . $name . "' with value $value";},"compiled_type_constraint" => sub { package Eval::Closure::Sandbox_44; use warnings; use strict; do { 1 };},"constraint" => sub { package Moose::Util::TypeConstraints::Builtins; use warnings; use strict; 1;},"inline_environment" => {},"inlined" => sub { package Moose::Util::TypeConstraints::Builtins; use warnings; use strict; '1';},"name" => "Any","package_defined_in" => "Moose::Util::TypeConstraints::Builtins"}, 'Moose::Meta::TypeConstraint' ),"name" => "Any","type_default" => sub { package Types::Standard; no warnings; use strict; return undef;},"uniq" => 1}, 'Type::Tiny' ),"uniq" => 2}, 'Type::Tiny' ),"type_default" => sub { package Types::Standard; no warnings; use strict; return undef;},"uniq" => 6}, 'Type::Tiny' ),"constraint" => sub { package Types::Standard; no warnings; use strict; defined $_;},"definition_context" => {"file" => "/usr/local/lib/perl5/site_perl/5.44.0/Types/Standard.pm","line" => 262,"package" => "Types::Standard"},"deprecated" => !!0,"display_name" => "Defined","exception_class" => "Error::TypeTiny::Assertion","inlined" => sub { package Types::Standard; no warnings; use strict; "defined($_[1])";},"library" => "Types::Standard","moose_type" => bless( {"Types::TypeTiny::to_TypeTiny" => {},"_default_message" => sub { package Moose::Meta::TypeConstraint; use warnings; use strict; my $value = shift(); my $can_partialdump = &try(sub { require Devel::PartialDump; 'Devel::PartialDump'->VERSION(0.14); 1; } ); if ($can_partialdump) { $value = 'Devel::PartialDump'->new->dump($value); } else { $value = defined $value ? overload::StrVal($value) : 'undef'; } return q[Validation failed for '] . $name . "' with value $value";},"compiled_type_constraint" => sub { package Eval::Closure::Sandbox_47; use warnings; use strict; do { defined $_[0] };},"constraint" => sub { package Moose::Util::TypeConstraints::Builtins; use warnings; use strict; defined $_;},"inline_environment" => {},"inlined" => sub { package Moose::Util::TypeConstraints::Builtins; use warnings; use strict; 'defined(' . $_[1] . ')';},"name" => "Defined","package_defined_in" => "Moose::Util::TypeConstraints::Builtins","parent" => bless( {"_default_message" => sub { package Moose::Meta::TypeConstraint; use warnings; use strict; my $value = shift(); my $can_partialdump = &try(sub { require Devel::PartialDump; 'Devel::PartialDump'->VERSION(0.14); 1; } ); if ($can_partialdump) { $value = 'Devel::PartialDump'->new->dump($value); } else { $value = defined $value ? overload::StrVal($value) : 'undef'; } return q[Validation failed for '] . $name . "' with value $value";},"compiled_type_constraint" => sub { package Eval::Closure::Sandbox_45; use warnings; use strict; do { 1 };},"constraint" => do{my $o},"inline_environment" => {},"inlined" => sub { package Moose::Util::TypeConstraints::Builtins; use warnings; use strict; '1';},"name" => "Item","package_defined_in" => "Moose::Util::TypeConstraints::Builtins","parent" => {}}, 'Moose::Meta::TypeConstraint' )}, 'Moose::Meta::TypeConstraint' ),"name" => "Defined","parent" => {},"uniq" => 7}, 'Type::Tiny' ),"uniq" => 16}, 'Type::Tiny' ),"uniq" => 24}, 'Type::Tiny' ),"_default_message" => sub { package Moose::Meta::TypeConstraint; use warnings; use strict; my $value = shift(); my $can_partialdump = &try(sub { require Devel::PartialDump; 'Devel::PartialDump'->VERSION(0.14); 1; } ); if ($can_partialdump) { $value = 'Devel::PartialDump'->new->dump($value); } else { $value = defined $value ? overload::StrVal($value) : 'undef'; } return q[Validation failed for '] . $name . "' with value $value";},"compiled_type_constraint" => sub { package Eval::Closure::Sandbox_58; use warnings; use strict; do { builtin::blessed($_[0]) };},"constraint" => sub { package Moose::Util::TypeConstraints::Builtins; use warnings; use strict; builtin::blessed($_);},"inline_environment" => {},"inlined" => sub { package Moose::Util::TypeConstraints::Builtins; use warnings; use strict; 'Scalar::Util::blessed(' . $_[1] . ')';},"name" => "Object","package_defined_in" => "Moose::Util::TypeConstraints::Builtins","parent" => bless( {"_default_message" => sub { package Moose::Meta::TypeConstraint; use warnings; use strict; my $value = shift(); my $can_partialdump = &try(sub { require Devel::PartialDump; 'Devel::PartialDump'->VERSION(0.14); 1; } ); if ($can_partialdump) { $value = 'Devel::PartialDump'->new->dump($value); } else { $value = defined $value ? overload::StrVal($value) : 'undef'; } return q[Validation failed for '] . $name . "' with value $value";},"compiled_type_constraint" => sub { package Eval::Closure::Sandbox_50; use warnings; use strict; do { ref $_[0] };},"constraint" => sub { package Moose::Util::TypeConstraints::Builtins; use warnings; use strict; ref $_;},"inline_environment" => {},"inlined" => sub { package Moose::Util::TypeConstraints::Builtins; use warnings; use strict; 'ref(' . $_[1] . ')';},"name" => "Ref","package_defined_in" => "Moose::Util::TypeConstraints::Builtins","parent" => {}}, 'Moose::Meta::TypeConstraint' )}, 'Moose::Meta::TypeConstraint' )}, 'Moose::Meta::TypeConstraint::Class' ),"name" => "Piddle","name_generator" => sub { package Type::TinyX::Facets; use warnings; use strict; my($s, %a) = @_; sprintf '%s[%s]', $s, join(',', map(sprintf('%s=>%s', $_, B::perlstring($a{$_})), sort(keys %a)));},"parent" => {},"uniq" => 46}, 'Type::Tiny::Class' ),"uniq" => 51}, 'Type::Tiny' ),"_default_message" => sub { package Moose::Meta::TypeConstraint; use warnings; use strict; my $value = shift(); my $can_partialdump = &try(sub { require Devel::PartialDump; 'Devel::PartialDump'->VERSION(0.14); 1; } ); if ($can_partialdump) { $value = 'Devel::PartialDump'->new->dump($value); } else { $value = defined $value ? overload::StrVal($value) : 'undef'; } return q[Validation failed for '] . $name . "' with value $value";},"compiled_type_constraint" => sub { package Eval::Closure::Sandbox_193; use warnings; use strict; do { Type::Tiny::XS::AUTO::TC1($_[0]) and $_[0]->ndims == 1 };},"constraint" => do{my $o},"inline_environment" => {},"inlined" => sub { package Type::Tiny; use warnings; use strict; shift(); $self->inline_check(@_);},"name" => "__ANON__","parent" => {}}, 'Moose::Meta::TypeConstraint' )}, 'Moose::Meta::TypeConstraint' ),"name" => "Piddle1D","name_generator" => sub { package Type::TinyX::Facets; use warnings; use strict; my($s, %a) = @_; sprintf '%s[%s]', $s, join(',', map(sprintf('%s=>%s', $_, B::perlstring($a{$_})), sort(keys %a)));},"parent" => {},"uniq" => 52}, 'Type::Tiny' );$v->{"coercion"}{"type_constraint"} = $v;$v->{"compiled_type_constraint"} = $v->{"coercion"}{"_compiled_type_constraint_check"};$v->{"moose_type"}{"Types::TypeTiny::to_TypeTiny"} = $v;$v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"coercion"}{"_compiled_type_constraint_check"} = $v->{"coercion"}{"_compiled_type_constraint_check"};$v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"coercion"}{"type_constraint"} = $v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"};$v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"compiled_type_constraint"} = $v->{"coercion"}{"_compiled_type_constraint_check"};$v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"moose_type"} = $v->{"moose_type"}{"parent"};$v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"coercion"}{"type_constraint"} = $v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"};$v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"compiled_type_constraint"} = $v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"}{"Types::TypeTiny::to_TypeTiny"} = $v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"};$v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"coercion"}{"type_constraint"} = $v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"};$v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"compiled_type_constraint"} = $v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"moose_type"} = $v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"}{"parent"};$v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"coercion"}{"type_constraint"} = $v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"};$v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"compiled_type_constraint"} = $v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"parent"}{"coercion"}{"type_constraint"} = $v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"parent"};$v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"parent"}{"compiled_type_constraint"} = $v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"parent"}{"complementary_type"}{"coercion"}{"type_constraint"} = $v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"parent"}{"complementary_type"};$v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"parent"}{"complementary_type"}{"compiled_type_constraint"} = $v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"parent"}{"complementary_type"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"parent"}{"complementary_type"}{"complementary_type"} = $v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"parent"};$v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"parent"}{"complementary_type"}{"parent"}{"coercion"}{"type_constraint"} = $v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"parent"}{"complementary_type"}{"parent"};$v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"parent"}{"complementary_type"}{"parent"}{"compiled_type_constraint"} = $v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"parent"}{"complementary_type"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"parent"}{"complementary_type"}{"parent"}{"constraint"} = $v->{"constraint"};$v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"parent"}{"complementary_type"}{"parent"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"} = $v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"parent"}{"complementary_type"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"parent"}{"complementary_type"}{"parent"}{"parent"}{"coercion"}{"type_constraint"} = $v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"parent"}{"complementary_type"}{"parent"}{"parent"};$v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"parent"}{"complementary_type"}{"parent"}{"parent"}{"compiled_type_constraint"} = $v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"parent"}{"complementary_type"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"parent"}{"complementary_type"}{"parent"}{"parent"}{"constraint"} = $v->{"constraint"};$v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"parent"}{"complementary_type"}{"parent"}{"parent"}{"moose_type"}{"Types::TypeTiny::to_TypeTiny"} = $v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"parent"}{"complementary_type"}{"parent"}{"parent"};$v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"parent"}{"moose_type"}{"Types::TypeTiny::to_TypeTiny"} = $v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"parent"};$v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"parent"}{"moose_type"}{"parent"}{"constraint"} = $v->{"moose_type"}{"constraint"};$v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"parent"}{"moose_type"}{"parent"}{"parent"} = $v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"parent"}{"complementary_type"}{"parent"}{"parent"}{"moose_type"};$v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"parent"}{"parent"} = $v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"parent"}{"complementary_type"}{"parent"};$v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"}{"parent"}{"parent"}{"parent"} = $v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"parent"}{"moose_type"};$v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"parent"} = $v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"};$v->{"moose_type"}{"parent"}{"constraint"} = $v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"constraint"};$v->{"moose_type"}{"parent"}{"parent"} = $v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"};$v->{"parent"} = $v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}; \$v}->get_message($scale_id)) |
46 |
0 |
46 |
| Ref::Util::XS::is_plain_arrayref($scales) or Function::Parameters::_croak('In classmethod scale_apply: parameter 5 ($scales): ' . ${my $v = bless( {"_is_core" => 1,"_overload_coderef" => sub { package Type::Tiny; BEGIN {${^WARNING_BITS} = "\x10\x01\x00\x00\x00\x50\x04\x00\x00\x00\x00\x00\x01\x40\x05\x45\x55\x15\x55\x55\x01\x00\x00"} use strict; Ref::Util::XS::is_plain_arrayref($_[0]) or _failed_check(21, 'ArrayRef', $_[0], 'exception_class', 'Error::TypeTiny::Assertion'); $_[0];},"_overrides_assert_return" => !!0,"coercion" => bless( {"_compiled_type_constraint_check" => sub ;,"display_name" => "to_ArrayRef","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"coercion_generator" => sub { package Types::Standard::ArrayRef; no warnings; use strict; my($parent, $child, $param) = @_; return unless $param->has_coercion; my $coercable_item = $param->coercion->_source_type_union; my $C = 'Type::Coercion'->new('type_constraint', $child); if ($param->coercion->can_be_inlined and $coercable_item->can_be_inlined) { $C->add_type_coercions($parent, &Types::Standard::Stringable(sub { my @code; push @code, 'do { my ($orig, $return_orig, @new) = ($_, 0);'; push @code, 'for (@$orig) {'; push @code, sprintf('++$return_orig && last unless (%s);', $coercable_item->inline_check('$_')); push @code, sprintf('push @new, (%s);', $param->coercion->inline_coercion('$_')); push @code, '}'; push @code, '$return_orig ? $orig : \\@new'; push @code, '}'; join $", @code; } )); } else { $C->add_type_coercions($parent, sub { my $value = @_ ? $_[0] : $_; my @new; foreach my $item (@$value) { return $value unless $coercable_item->check($item); push @new, $param->coerce($item); } return \@new; } ); } return $C;},"compiled_type_constraint" => do{my $o},"constraint" => sub { package Types::Standard; no warnings; use strict; ref $_ eq 'ARRAY';},"constraint_generator" => sub { package Types::Standard::ArrayRef; no warnings; use strict; return &Types::Standard::ArrayRef() unless @_; Type::Tiny::check_parameter_count_for_parameterized_type('Types::Standard', 'ArrayRef', \@_, 3); my $param = shift(); Types::TypeTiny::is_TypeTiny($param) or _croak "Parameter to ArrayRef[`a] expected to be a type constraint; got $param"; my($min, $max) = (0, -1); $min = Types::Standard::assert_Int(shift()) if @_; $max = Types::Standard::assert_Int(shift()) if @_; my $param_compiled_check = $param->compiled_check; my $xsub; if ($min == 0 and $max == -1) { my $paramname = Type::Tiny::XS::is_known($param_compiled_check); $xsub = Type::Tiny::XS::get_coderef_for("ArrayRef[$paramname]") if $paramname; } elsif (&Type::Tiny::_USE_MOUSE() and $param->_has_xsub and $min == 0 and $max == -1) { require Mouse::Util::TypeConstraints; my $maker = 'Mouse::Util::TypeConstraints'->can('_parameterize_ArrayRef_for'); $xsub = &$maker($param) if $maker; } return sub { my $array = shift(); ($param->check($_) or return) foreach (@$array); return !0; } , $xsub if $min == 0 and $max == -1; return sub { my $array = shift(); return if @$array < $min; ($param->check($_) or return) foreach (@$array); return !0; } if $max == -1; return sub { my $array = shift(); return if @$array > $max; ($param->check($_) or return) foreach (@$array); return !0; } if $min == 0; return sub { my $array = shift(); return if @$array < $min; return if @$array > $max; ($param->check($_) or return) foreach (@$array); return !0; } ;},"deep_explanation" => sub { package Types::Standard::ArrayRef; no warnings; use strict; my($type, $value, $varname) = @_; my $param = $type->parameters->[0]; my($min, $max) = (0, -1); $min = $type->parameters->[1] if @{$type->parameters;} > 1; $max = $type->parameters->[2] if @{$type->parameters;} > 2; if ($min != 0 and @$value < $min) { return [sprintf('"%s" constrains array length at least %s', $type, $min), sprintf('@{%s} is %d', $varname, scalar @$value)]; } if ($max > 0 and @$value > $max) { return [sprintf('"%s" constrains array length at most %d', $type, $max), sprintf('@{%s} is %d', $varname, scalar @$value)]; } foreach my $i (0 .. $value->$#*) { my $item = $value->[$i]; next if $param->check($item); return [sprintf('"%s" constrains each value in the array with "%s"', $type, $param), @{$param->validate_explain($item, sprintf('%s->[%d]', $varname, $i));}]; } return;},"definition_context" => {"file" => "/usr/local/lib/perl5/site_perl/5.44.0/Types/Standard.pm","line" => 523,"package" => "Types::Standard"},"deprecated" => !!0,"display_name" => "ArrayRef","exception_class" => "Error::TypeTiny::Assertion","inline_generator" => sub { package Types::Standard::ArrayRef; no warnings; use strict; my $param = shift(); my($min, $max) = (0, -1); $min = shift() if @_; $max = shift() if @_; my $param_compiled_check = $param->compiled_check; my $xsubname; if ($min == 0 and $max == -1) { my $paramname = Type::Tiny::XS::is_known($param_compiled_check); $xsubname = Type::Tiny::XS::get_subname_for("ArrayRef[$paramname]"); } return unless $param->can_be_inlined; return sub { my $v = $_[1]; return "$xsubname($v)" if $xsubname and not $Type::Tiny::AvoidCallbacks; my $p = &Types::Standard::ArrayRef()->inline_check($v); if ($min != 0) { $p .= sprintf(' and @{%s} >= %d', $v, $min); } if ($max > 0) { $p .= sprintf(' and @{%s} <= %d', $v, $max); } my $param_check = $param->inline_check('$i'); return $p if $param->{'uniq'} eq &Types::Standard::Any()->{'uniq'}; "$p and do { " . 'my $ok = 1; ' . "for my \$i (\@{$v}) { " . "(\$ok = 0, last) unless $param_check " . '}; ' . '$ok ' . '}'; } ;},"inlined" => sub { package Types::Standard; no warnings; use strict; !$Type::Tiny::AvoidCallbacks ? "Ref::Util::XS::is_plain_arrayref($_[1])" : "ref($_[1]) eq 'ARRAY'";},"library" => "Types::Standard","moose_type" => bless( {"Types::TypeTiny::to_TypeTiny" => {},"_default_message" => sub { package Moose::Meta::TypeConstraint; use warnings; use strict; my $value = shift(); my $can_partialdump = &try(sub { require Devel::PartialDump; 'Devel::PartialDump'->VERSION(0.14); 1; } ); if ($can_partialdump) { $value = 'Devel::PartialDump'->new->dump($value); } else { $value = defined $value ? overload::StrVal($value) : 'undef'; } return q[Validation failed for '] . $name . "' with value $value";},"compiled_type_constraint" => sub { package Eval::Closure::Sandbox_62; use warnings; use strict; do { ref $_[0] eq 'ARRAY' };},"constraint" => sub { package Moose::Util::TypeConstraints::Builtins; use warnings; use strict; ref $_ eq 'ARRAY';},"constraint_generator" => sub { package Moose::Util::TypeConstraints::Builtins; use warnings; use strict; my $type_parameter = shift(); my $check = $type_parameter->_compiled_type_constraint; return sub { foreach my $x (@$_) { &$check($x) or return; } 1; } ;},"inline_environment" => {},"inline_generator" => sub { package Moose::Util::TypeConstraints::Builtins; use warnings; use strict; my $self = shift(); my $type_parameter = shift(); my $val = shift(); 'do {my $check = ' . $val . ';' . 'ref($check) eq "ARRAY" ' . '&& &List::Util::all(' . 'sub { ' . $type_parameter->_inline_check('$_') . ' }, ' . '@{$check}' . ')' . '}';},"inlined" => sub { package Moose::Util::TypeConstraints::Builtins; use warnings; use strict; 'ref(' . $_[1] . ') eq "ARRAY"';},"name" => "ArrayRef","package_defined_in" => "Moose::Util::TypeConstraints::Builtins","parent" => bless( {"_default_message" => sub { package Moose::Meta::TypeConstraint; use warnings; use strict; my $value = shift(); my $can_partialdump = &try(sub { require Devel::PartialDump; 'Devel::PartialDump'->VERSION(0.14); 1; } ); if ($can_partialdump) { $value = 'Devel::PartialDump'->new->dump($value); } else { $value = defined $value ? overload::StrVal($value) : 'undef'; } return q[Validation failed for '] . $name . "' with value $value";},"compiled_type_constraint" => sub { package Eval::Closure::Sandbox_50; use warnings; use strict; do { ref $_[0] };},"constraint" => sub { package Moose::Util::TypeConstraints::Builtins; use warnings; use strict; ref $_;},"inline_environment" => {},"inlined" => sub { package Moose::Util::TypeConstraints::Builtins; use warnings; use strict; 'ref(' . $_[1] . ')';},"name" => "Ref","package_defined_in" => "Moose::Util::TypeConstraints::Builtins","parent" => bless( {"Types::TypeTiny::to_TypeTiny" => bless( {"_is_core" => 1,"_overload_coderef" => sub { package Type::Tiny; BEGIN {${^WARNING_BITS} = "\x10\x01\x00\x00\x00\x50\x04\x00\x00\x00\x00\x00\x01\x40\x05\x45\x55\x15\x55\x55\x01\x00\x00"} use strict; defined $_[0] or _failed_check(7, 'Defined', $_[0], 'exception_class', 'Error::TypeTiny::Assertion'); $_[0];},"_overrides_assert_return" => !!0,"coercion" => bless( {"_compiled_type_constraint_check" => sub ;,"display_name" => "to_Defined","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"complementary_type" => bless( {"_is_core" => 1,"_overload_coderef" => sub { package Type::Tiny; BEGIN {${^WARNING_BITS} = "\x10\x01\x00\x00\x00\x50\x04\x00\x00\x00\x00\x00\x01\x40\x05\x45\x55\x15\x55\x55\x01\x00\x00"} use strict; defined $_[0] and _failed_check(6, 'Undef', $_[0], 'exception_class', 'Error::TypeTiny::Assertion'); $_[0];},"_overrides_assert_return" => !!0,"coercion" => bless( {"_compiled_type_constraint_check" => sub ;,"display_name" => "to_Undef","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"complementary_type" => {},"constraint" => sub { package Types::Standard; no warnings; use strict; not defined $_;},"definition_context" => {"file" => "/usr/local/lib/perl5/site_perl/5.44.0/Types/Standard.pm","line" => 254,"package" => "Types::Standard"},"deprecated" => !!0,"display_name" => "Undef","exception_class" => "Error::TypeTiny::Assertion","inlined" => sub { package Types::Standard; no warnings; use strict; "!defined($_[1])";},"library" => "Types::Standard","name" => "Undef","parent" => bless( {"_is_core" => 1,"_overload_coderef" => sub { package Type::Tiny; BEGIN {${^WARNING_BITS} = "\x10\x01\x00\x00\x00\x50\x04\x00\x00\x00\x00\x00\x01\x40\x05\x45\x55\x15\x55\x55\x01\x00\x00"} use strict; '???'; $_[0];},"_overrides_assert_return" => !!0,"coercion" => bless( {"_compiled_type_constraint_check" => sub ;,"display_name" => "to_Item","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"constraint" => sub { package Type::Tiny; use warnings; use strict; !0;},"definition_context" => {"file" => "/usr/local/lib/perl5/site_perl/5.44.0/Types/Standard.pm","line" => 226,"package" => "Types::Standard"},"deprecated" => !!0,"display_name" => "Item","exception_class" => "Error::TypeTiny::Assertion","inlined" => sub { package Types::Standard; no warnings; use strict; '!!1';},"library" => "Types::Standard","name" => "Item","parent" => bless( {"_is_core" => 1,"_overload_coderef" => sub { package Type::Tiny; BEGIN {${^WARNING_BITS} = "\x10\x01\x00\x00\x00\x50\x04\x00\x00\x00\x00\x00\x01\x40\x05\x45\x55\x15\x55\x55\x01\x00\x00"} use strict; '???'; $_[0];},"_overrides_assert_return" => !!0,"coercion" => bless( {"_compiled_type_constraint_check" => do{my $o},"display_name" => "to_Any","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"complement_name" => "None","constraint" => do{my $o},"definition_context" => {"file" => "/usr/local/lib/perl5/site_perl/5.44.0/Types/Standard.pm","line" => 220,"package" => "Types::Standard"},"deprecated" => !!0,"display_name" => "Any","exception_class" => "Error::TypeTiny::Assertion","inlined" => sub { package Types::Standard; no warnings; use strict; '!!1';},"library" => "Types::Standard","moose_type" => bless( {"Types::TypeTiny::to_TypeTiny" => {},"_default_message" => sub { package Moose::Meta::TypeConstraint; use warnings; use strict; my $value = shift(); my $can_partialdump = &try(sub { require Devel::PartialDump; 'Devel::PartialDump'->VERSION(0.14); 1; } ); if ($can_partialdump) { $value = 'Devel::PartialDump'->new->dump($value); } else { $value = defined $value ? overload::StrVal($value) : 'undef'; } return q[Validation failed for '] . $name . "' with value $value";},"compiled_type_constraint" => sub { package Eval::Closure::Sandbox_44; use warnings; use strict; do { 1 };},"constraint" => sub { package Moose::Util::TypeConstraints::Builtins; use warnings; use strict; 1;},"inline_environment" => {},"inlined" => sub { package Moose::Util::TypeConstraints::Builtins; use warnings; use strict; '1';},"name" => "Any","package_defined_in" => "Moose::Util::TypeConstraints::Builtins"}, 'Moose::Meta::TypeConstraint' ),"name" => "Any","type_default" => sub { package Types::Standard; no warnings; use strict; return undef;},"uniq" => 1}, 'Type::Tiny' ),"uniq" => 2}, 'Type::Tiny' ),"type_default" => sub { package Types::Standard; no warnings; use strict; return undef;},"uniq" => 6}, 'Type::Tiny' ),"constraint" => sub { package Types::Standard; no warnings; use strict; defined $_;},"definition_context" => {"file" => "/usr/local/lib/perl5/site_perl/5.44.0/Types/Standard.pm","line" => 262,"package" => "Types::Standard"},"deprecated" => !!0,"display_name" => "Defined","exception_class" => "Error::TypeTiny::Assertion","inlined" => sub { package Types::Standard; no warnings; use strict; "defined($_[1])";},"library" => "Types::Standard","moose_type" => {},"name" => "Defined","parent" => {},"uniq" => 7}, 'Type::Tiny' ),"_default_message" => sub { package Moose::Meta::TypeConstraint; use warnings; use strict; my $value = shift(); my $can_partialdump = &try(sub { require Devel::PartialDump; 'Devel::PartialDump'->VERSION(0.14); 1; } ); if ($can_partialdump) { $value = 'Devel::PartialDump'->new->dump($value); } else { $value = defined $value ? overload::StrVal($value) : 'undef'; } return q[Validation failed for '] . $name . "' with value $value";},"compiled_type_constraint" => sub { package Eval::Closure::Sandbox_47; use warnings; use strict; do { defined $_[0] };},"constraint" => sub { package Moose::Util::TypeConstraints::Builtins; use warnings; use strict; defined $_;},"inline_environment" => {},"inlined" => sub { package Moose::Util::TypeConstraints::Builtins; use warnings; use strict; 'defined(' . $_[1] . ')';},"name" => "Defined","package_defined_in" => "Moose::Util::TypeConstraints::Builtins","parent" => bless( {"_default_message" => sub { package Moose::Meta::TypeConstraint; use warnings; use strict; my $value = shift(); my $can_partialdump = &try(sub { require Devel::PartialDump; 'Devel::PartialDump'->VERSION(0.14); 1; } ); if ($can_partialdump) { $value = 'Devel::PartialDump'->new->dump($value); } else { $value = defined $value ? overload::StrVal($value) : 'undef'; } return q[Validation failed for '] . $name . "' with value $value";},"compiled_type_constraint" => sub { package Eval::Closure::Sandbox_45; use warnings; use strict; do { 1 };},"constraint" => sub { package Moose::Meta::TypeConstraint; use warnings; use strict; 1;},"inline_environment" => {},"inlined" => sub { package Moose::Util::TypeConstraints::Builtins; use warnings; use strict; '1';},"name" => "Item","package_defined_in" => "Moose::Util::TypeConstraints::Builtins","parent" => {}}, 'Moose::Meta::TypeConstraint' )}, 'Moose::Meta::TypeConstraint' )}, 'Moose::Meta::TypeConstraint' )}, 'Moose::Meta::TypeConstraint::Parameterizable' ),"name" => "ArrayRef","name_generator" => sub { package Type::Tiny; use warnings; use strict; defined $_ and s/[\x00-\x1F]//gms foreach (my($s, @a) = @_); sprintf '%s[%s]', $s, join(',', map((!defined($_) ? 'undef' : (!ref($_) && /\W/ ? B::perlstring($_) : $_)), @a));},"parent" => bless( {"_is_core" => 1,"_overload_coderef" => sub { package Type::Tiny; BEGIN {${^WARNING_BITS} = "\x10\x01\x00\x00\x00\x50\x04\x00\x00\x00\x00\x00\x01\x40\x05\x45\x55\x15\x55\x55\x01\x00\x00"} use strict; not ref $_[0] and _failed_check(16, 'Ref', $_[0], 'exception_class', 'Error::TypeTiny::Assertion'); $_[0];},"_overrides_assert_return" => !!0,"coercion" => bless( {"_compiled_type_constraint_check" => sub ;,"display_name" => "to_Ref","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"constraint" => sub { package Types::Standard; no warnings; use strict; ref $_;},"constraint_generator" => sub { package Types::Standard; no warnings; use strict; return $meta->get_type('Ref') unless @_; Type::Tiny::check_parameter_count_for_parameterized_type('Types::Standard', 'Ref', \@_, 1); my $reftype = shift(); $reftype =~ /^(SCALAR|ARRAY|HASH|CODE|REF|GLOB|LVALUE|FORMAT|IO|VSTRING|REGEXP|Regexp)$/i or _croak "Parameter to Ref[`a] expected to be a Perl ref type; got $reftype"; $reftype = "$reftype"; return sub { ref $_[0] and builtin::reftype($_[0]) eq $reftype; } ;},"deep_explanation" => sub { package Types::Standard; no warnings; use strict; require B; my($type, $value, $varname) = @_; my $param = $type->parameters->[0]; return if $type->check($value); my $reftype = builtin::reftype($value); return [sprintf('"%s" constrains reftype(%s) to be equal to %s', $type, $varname, B::perlstring($param)), sprintf('reftype(%s) is %s', $varname, defined $reftype ? B::perlstring($reftype) : 'undef')];},"definition_context" => {"file" => "/usr/local/lib/perl5/site_perl/5.44.0/Types/Standard.pm","line" => 438,"package" => "Types::Standard"},"deprecated" => !!0,"display_name" => "Ref","exception_class" => "Error::TypeTiny::Assertion","inline_generator" => sub { package Types::Standard; no warnings; use strict; my $reftype = shift(); return sub { my $v = $_[1]; &$maybe_load_modules('Scalar::Util', "ref($v) and Scalar::Util::reftype($v) eq q($reftype)"); } ;},"inlined" => sub { package Types::Standard; no warnings; use strict; "!!ref($_[1])";},"library" => "Types::Standard","name" => "Ref","parent" => {},"uniq" => 16}, 'Type::Tiny' ),"type_default" => sub { package Types::Standard; no warnings; use strict; return [];},"type_default_generator" => sub { package Types::Standard; no warnings; use strict; return $Type::Tiny::parameterize_type->type_default if @_ < 2; return undef;},"uniq" => 21}, 'Type::Tiny' );$v->{"coercion"}{"type_constraint"} = $v;$v->{"compiled_type_constraint"} = $v->{"coercion"}{"_compiled_type_constraint_check"};$v->{"moose_type"}{"Types::TypeTiny::to_TypeTiny"} = $v;$v->{"moose_type"}{"parent"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"coercion"}{"type_constraint"} = $v->{"moose_type"}{"parent"}{"parent"}{"Types::TypeTiny::to_TypeTiny"};$v->{"moose_type"}{"parent"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"compiled_type_constraint"} = $v->{"moose_type"}{"parent"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"moose_type"}{"parent"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"complementary_type"}{"coercion"}{"type_constraint"} = $v->{"moose_type"}{"parent"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"complementary_type"};$v->{"moose_type"}{"parent"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"complementary_type"}{"compiled_type_constraint"} = $v->{"moose_type"}{"parent"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"complementary_type"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"moose_type"}{"parent"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"complementary_type"}{"complementary_type"} = $v->{"moose_type"}{"parent"}{"parent"}{"Types::TypeTiny::to_TypeTiny"};$v->{"moose_type"}{"parent"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"complementary_type"}{"parent"}{"coercion"}{"type_constraint"} = $v->{"moose_type"}{"parent"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"complementary_type"}{"parent"};$v->{"moose_type"}{"parent"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"complementary_type"}{"parent"}{"compiled_type_constraint"} = $v->{"moose_type"}{"parent"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"complementary_type"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"moose_type"}{"parent"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"complementary_type"}{"parent"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"} = $v->{"moose_type"}{"parent"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"complementary_type"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"moose_type"}{"parent"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"complementary_type"}{"parent"}{"parent"}{"coercion"}{"type_constraint"} = $v->{"moose_type"}{"parent"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"complementary_type"}{"parent"}{"parent"};$v->{"moose_type"}{"parent"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"complementary_type"}{"parent"}{"parent"}{"compiled_type_constraint"} = $v->{"moose_type"}{"parent"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"complementary_type"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"moose_type"}{"parent"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"complementary_type"}{"parent"}{"parent"}{"constraint"} = $v->{"moose_type"}{"parent"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"complementary_type"}{"parent"}{"constraint"};$v->{"moose_type"}{"parent"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"complementary_type"}{"parent"}{"parent"}{"moose_type"}{"Types::TypeTiny::to_TypeTiny"} = $v->{"moose_type"}{"parent"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"complementary_type"}{"parent"}{"parent"};$v->{"moose_type"}{"parent"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"moose_type"} = $v->{"moose_type"}{"parent"}{"parent"};$v->{"moose_type"}{"parent"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"} = $v->{"moose_type"}{"parent"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"complementary_type"}{"parent"};$v->{"moose_type"}{"parent"}{"parent"}{"parent"}{"parent"} = $v->{"moose_type"}{"parent"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"complementary_type"}{"parent"}{"parent"}{"moose_type"};$v->{"parent"}{"coercion"}{"type_constraint"} = $v->{"parent"};$v->{"parent"}{"compiled_type_constraint"} = $v->{"parent"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"parent"}{"parent"} = $v->{"moose_type"}{"parent"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}; \$v}->get_message($scales)) |
46 |
0 |
46 |
Condition33%1/3
Type::Tiny::XS::AUTO::TC1($scale_id) and $scale_id->ndims == 1
MC/DC0%0/2
Type::Tiny::XS::AUTO::TC1($scale_id) and $scale_id->ndims == 1
Type::Tiny::XS::AUTO::TC1($scale_id)
$scale_id->ndims == 1
Truth table33%1/3
A and B
A= Type::Tiny::XS::AUTO::TC1($scale_id)B= $scale_id->ndims == 1
|
| 220 |
46 |
▶ | return if ( $vars->length == 0 ); |
Branch: 1 branch
| Branch | True | False | Total |
| if $vars->length == 0 |
0 |
46 |
46 |
|
| 221 |
46 |
▶ | return if ( $data->nrow == 0 ); |
Branch: 1 branch
| Branch | True | False | Total |
| if $data->nrow == 0 |
0 |
46 |
46 |
|
| 222 |
|
| |
| 223 |
46 |
▶ | die if ( $scale_id->nbad ); |
Branch: 1 branch
| Branch | True | False | Total |
| if $scale_id->nbad |
0 |
46 |
46 |
|
| 224 |
|
| |
| 225 |
46 |
| my $n = $scales->length; |
| 226 |
46 |
| my $scale_indices = $class->_split_indices( $scale_id, $n ); |
| 227 |
|
| my $scale_indices_flattened = |
| 228 |
0 |
▶ | ( reduce { $a->glue( 0, $b ) } @$scale_indices )->qsorti; |
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
|
| 229 |
|
| return { |
| 230 |
72 |
▶ | $vars->map( |
Branch: 1 branch
| Branch | True | False | Total |
| @_ < 1 and Function::Parameters::_croak('Too few arguments for fun (anon) (expected 1, got ' . @_ . ')') |
0 |
72 |
72 |
|
| 231 |
72 |
▶ | fun($var) |
|
Subroutine
__ANON__: called CC=4 SCAR=14.2
|
| 232 |
72 |
▶ | { |
Branch: 1 branch
| Branch | True | False | Total |
| @_ > 1 and Function::Parameters::_croak('Too many arguments for fun (anon) (expected 1, got ' . @_ . ')') |
0 |
72 |
72 |
|
| 233 |
|
| my $pieces = [ 0 .. $n - 1 ]->map( |
| 234 |
72 |
▶ | sub { |
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
|
| 235 |
|
| # if $method is 'train', $scale is just trained here |
| 236 |
72 |
| my $scale = $scales->at($_); |
| 237 |
72 |
| $scale->$method( |
| 238 |
|
| $data->at($var)->slice( $scale_indices->[$_] ) ); |
| 239 |
|
| } |
| 240 |
72 |
| ); |
| 241 |
72 |
| $pieces = $pieces->[0]->glue( 0, @$pieces[ 1 .. $#$pieces ] ); |
| 242 |
|
| |
| 243 |
|
| # Join pieces back together, if necessary |
| 244 |
72 |
▶ | if ( $pieces->length ) { |
Branch: 1 branch
| Branch | True | False | Total |
| if ($pieces->length) { } |
72 |
0 |
72 |
|
| 245 |
72 |
| return ( $var => $pieces->slice($scale_indices_flattened) ); |
| 246 |
|
| } |
| 247 |
|
| else { |
| 248 |
0 |
| return; |
| 249 |
|
| } |
| 250 |
46 |
| } |
| 251 |
|
| )->flatten |
| 252 |
|
| }; |
| 253 |
3 |
| } |
| 254 |
|
| |
| 255 |
|
| # Split indices of a piddle of indices into $n groups |
| 256 |
|
| # Return an arrayref of piddles. |
| 257 |
49 |
▶ | classmethod _split_indices (Piddle1D $indices, $n=$indices->max+1) { |
|
Subroutine
_split_indices: called CC=6 SCAR=18.7
Branch: 4 branches
| Branch | True | False | Total |
| @_ < 2 and Function::Parameters::_croak('Too few arguments for classmethod _split_indices (expected 2, got ' . @_ . ')') |
0 |
49 |
49 |
| @_ > 3 and Function::Parameters::_croak('Too many arguments for classmethod _split_indices (expected 3, got ' . @_ . ')') |
0 |
49 |
49 |
| @_ < 2 and $n = $indices->max + 1 |
2 |
47 |
49 |
| Type::Tiny::XS::AUTO::TC1($indices) and $indices->ndims == 1 or Function::Parameters::_croak('In classmethod _split_indices: parameter 1 ($indices): ' . ${my $v = bless( {"_overload_coderef" => sub { package Type::Tiny; BEGIN {${^WARNING_BITS} = "\x10\x01\x00\x00\x00\x50\x04\x00\x00\x00\x00\x00\x01\x40\x05\x45\x55\x15\x55\x55\x01\x00\x00"} use strict; Type::Tiny::XS::AUTO::TC1($_[0]) and $_[0]->ndims == 1 or _failed_check(52, 'Piddle1D', $_[0], 'exception_class', 'Error::TypeTiny::Assertion'); $_[0];},"_overrides_assert_return" => !!0,"coercion" => bless( {"_compiled_type_constraint_check" => sub ($) { package Eval::TypeTiny::Sandbox; use strict; Type::Tiny::XS::AUTO::TC1($_[0]) and $_[0]->ndims == 1;},"display_name" => "to_Piddle1D","name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"constraint" => sub { package Type::Tiny; use warnings; use strict; !0;},"constraint_generator" => sub { package Type::TinyX::Facets; use warnings; use strict; my $base = do { BEGIN {${^WARNING_BITS} = "\x55\x55\x55\x45\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55"} $Type::Tiny::parameterize_type }; my(%params) = @_ or return $base; my(@checks) = &$IG(%params)->($base, '$_[0]'); $checks[0] = $base->inline_check('$_[0]'); my $sub = sprintf('sub { %s }', join(' and ', map(("($_)"), @checks))); eval $sub or _croak("could not build sub: $@\n\nCODE: $sub\n");},"definition_context" => {"file" => "/usr/local/lib/perl5/site_perl/5.44.0/Types/PDL.pm","line" => 142,"package" => "Types::PDL"},"deprecated" => !!0,"display_name" => "Piddle1D","exception_class" => "Error::TypeTiny::Assertion","inline_generator" => sub { package Type::TinyX::Facets; use warnings; use strict; my(%p_not_destroyed) = @_; return sub { my(%p) = %p_not_destroyed; my $var = $_[1]; my(@r) = map($_->[1]->(\%p, $var, $_->[0]), @facets); _croak(sprintf('Attempt to parameterize type "%s" with unrecognised parameter%s %s', $_[0]->name, scalar keys %p == 1 ? '' : 's', Type::Utils::english_list(map((qq["$_"]), sort(keys %p))))) if keys %p; return undef, @r; } ;},"library" => "Types::PDL","moose_type" => bless( {"Types::TypeTiny::to_TypeTiny" => {},"_default_message" => sub { package Moose::Meta::TypeConstraint; use warnings; use strict; my $value = shift(); my $can_partialdump = &try(sub { require Devel::PartialDump; 'Devel::PartialDump'->VERSION(0.14); 1; } ); if ($can_partialdump) { $value = 'Devel::PartialDump'->new->dump($value); } else { $value = defined $value ? overload::StrVal($value) : 'undef'; } return q[Validation failed for '] . $name . "' with value $value";},"compiled_type_constraint" => sub { package Eval::Closure::Sandbox_194; use warnings; use strict; do { Type::Tiny::XS::AUTO::TC1($_[0]) and $_[0]->ndims == 1 };},"constraint" => sub { package Moose::Meta::TypeConstraint; use warnings; use strict; 1;},"inline_environment" => {},"name" => "Types::PDL::Piddle1D","parent" => bless( {"Types::TypeTiny::to_TypeTiny" => bless( {"coercion" => bless( {"_compiled_type_constraint_check" => do{my $o},"frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"constraint" => sub { package Type::TinyX::Facets; use warnings; use strict; Type::Tiny::XS::AUTO::TC1($_[0]) and $_[0]->ndims == 1;},"definition_context" => {"file" => "/usr/local/lib/perl5/site_perl/5.44.0/Types/PDL.pm","line" => 142,"package" => "Types::PDL"},"deprecated" => !!0,"display_name" => "Piddle[ndims=>\"1\"]","exception_class" => "Error::TypeTiny::Assertion","inlined" => sub { package Type::TinyX::Facets; use warnings; use strict; my(%p) = %p_not_destroyed; my $var = $_[1]; my(@r) = map($_->[1]->(\%p, $var, $_->[0]), @facets); _croak(sprintf('Attempt to parameterize type "%s" with unrecognised parameter%s %s', $_[0]->name, scalar keys %p == 1 ? '' : 's', Type::Utils::english_list(map((qq["$_"]), sort(keys %p))))) if keys %p; return undef, @r;},"moose_type" => {},"name" => "__ANON__","parameters" => ["ndims",1],"parent" => bless( {"_caller_level" => 1,"_default_message" => sub { package Type::Tiny::Class; BEGIN {${^WARNING_BITS} = "\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x51\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55"} use strict; sprintf '%s did not pass type constraint "%s" (not isa %s)', Type::Tiny::_dd($_[0]), $name, $c;},"_overload_coderef" => sub { package Type::Tiny; BEGIN {${^WARNING_BITS} = "\x10\x01\x00\x00\x00\x50\x04\x00\x00\x00\x00\x00\x01\x40\x05\x45\x55\x15\x55\x55\x01\x00\x00"} use strict; Type::Tiny::XS::AUTO::TC1($_[0]) or _failed_check(46, 'Piddle', $_[0], 'exception_class', 'Error::TypeTiny::Assertion'); $_[0];},"_overrides_assert_return" => !!0,"class" => "PDL","coercion" => bless( {"_compiled_type_constraint_check" => sub ;,"display_name" => "to_Piddle","name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"constraint" => sub { package Type::Tiny::Class; use warnings; use strict; builtin::blessed($_) and $_->isa($class);},"constraint_generator" => sub { package Type::TinyX::Facets; use warnings; use strict; my $base = do { BEGIN {${^WARNING_BITS} = "\x55\x55\x55\x45\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55"} $Type::Tiny::parameterize_type }; my(%params) = @_ or return $base; my(@checks) = &$IG(%params)->($base, '$_[0]'); $checks[0] = $base->inline_check('$_[0]'); my $sub = sprintf('sub { %s }', join(' and ', map(("($_)"), @checks))); eval $sub or _croak("could not build sub: $@\n\nCODE: $sub\n");},"definition_context" => {"file" => "/usr/local/lib/perl5/site_perl/5.44.0/Types/PDL.pm","line" => 138,"package" => "Types::PDL"},"deprecated" => !!0,"display_name" => "Piddle","exception_class" => "Error::TypeTiny::Assertion","inline_generator" => sub { package Type::TinyX::Facets; use warnings; use strict; my(%p_not_destroyed) = @_; return sub { my(%p) = %p_not_destroyed; my $var = $_[1]; my(@r) = map($_->[1]->(\%p, $var, $_->[0]), @facets); _croak(sprintf('Attempt to parameterize type "%s" with unrecognised parameter%s %s', $_[0]->name, scalar keys %p == 1 ? '' : 's', Type::Utils::english_list(map((qq["$_"]), sort(keys %p))))) if keys %p; return undef, @r; } ;},"inlined" => sub { package Type::Tiny::Class; use warnings; use strict; my $var = $_[1]; return "do { use Scalar::Util (); Scalar::Util::blessed($var) and $var->isa(q[$class]) }" if $Type::Tiny::AvoidCallbacks; return "$xsub($var)" if $xsub; "Scalar::Util::blessed($var) and $var->isa(q[$class])";},"library" => "Types::PDL","moose_type" => bless( {"Types::TypeTiny::to_TypeTiny" => {},"_default_message" => sub { package Moose::Meta::TypeConstraint; use warnings; use strict; my $value = shift(); my $can_partialdump = &try(sub { require Devel::PartialDump; 'Devel::PartialDump'->VERSION(0.14); 1; } ); if ($can_partialdump) { $value = 'Devel::PartialDump'->new->dump($value); } else { $value = defined $value ? overload::StrVal($value) : 'undef'; } return q[Validation failed for '] . $name . "' with value $value";},"class" => "PDL","compiled_type_constraint" => sub { package Eval::Closure::Sandbox_188; use warnings; use strict; do { builtin::blessed($_[0]) and $_[0]->isa('PDL') };},"constraint" => sub { package Moose::Meta::TypeConstraint::Class; use warnings; use strict; $_[0]->isa($class_name);},"inline_environment" => {},"inlined" => sub { package Moose::Meta::TypeConstraint::Class; use warnings; use strict; my $self = shift(); my $val = shift(); return 'Scalar::Util::blessed(' . $val . ')' . ' && ' . $val . '->isa(' . B::perlstring($self->class) . ')';},"name" => "Types::PDL::Piddle","parent" => bless( {"Types::TypeTiny::to_TypeTiny" => bless( {"_is_core" => 1,"_overload_coderef" => sub { package Type::Tiny; BEGIN {${^WARNING_BITS} = "\x10\x01\x00\x00\x00\x50\x04\x00\x00\x00\x00\x00\x01\x40\x05\x45\x55\x15\x55\x55\x01\x00\x00"} use strict; Ref::Util::XS::is_blessed_ref($_[0]) or _failed_check(24, 'Object', $_[0], 'exception_class', 'Error::TypeTiny::Assertion'); $_[0];},"_overrides_assert_return" => !!0,"coercion" => bless( {"_compiled_type_constraint_check" => sub ;,"display_name" => "to_Object","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"constraint" => sub { package Types::Standard; no warnings; use strict; builtin::blessed($_);},"definition_context" => {"file" => "/usr/local/lib/perl5/site_perl/5.44.0/Types/Standard.pm","line" => 578,"package" => "Types::Standard"},"deprecated" => !!0,"display_name" => "Object","exception_class" => "Error::TypeTiny::Assertion","inlined" => sub { package Types::Standard; no warnings; use strict; !$Type::Tiny::AvoidCallbacks ? "Ref::Util::XS::is_blessed_ref($_[1])" : &$maybe_load_modules('Scalar::Util', "Scalar::Util::blessed($_[1])");},"is_object" => 1,"library" => "Types::Standard","moose_type" => {},"name" => "Object","parent" => bless( {"_is_core" => 1,"_overload_coderef" => sub { package Type::Tiny; BEGIN {${^WARNING_BITS} = "\x10\x01\x00\x00\x00\x50\x04\x00\x00\x00\x00\x00\x01\x40\x05\x45\x55\x15\x55\x55\x01\x00\x00"} use strict; not ref $_[0] and _failed_check(16, 'Ref', $_[0], 'exception_class', 'Error::TypeTiny::Assertion'); $_[0];},"_overrides_assert_return" => !!0,"coercion" => bless( {"_compiled_type_constraint_check" => sub ;,"display_name" => "to_Ref","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"constraint" => sub { package Types::Standard; no warnings; use strict; ref $_;},"constraint_generator" => sub { package Types::Standard; no warnings; use strict; return $meta->get_type('Ref') unless @_; Type::Tiny::check_parameter_count_for_parameterized_type('Types::Standard', 'Ref', \@_, 1); my $reftype = shift(); $reftype =~ /^(SCALAR|ARRAY|HASH|CODE|REF|GLOB|LVALUE|FORMAT|IO|VSTRING|REGEXP|Regexp)$/i or _croak "Parameter to Ref[`a] expected to be a Perl ref type; got $reftype"; $reftype = "$reftype"; return sub { ref $_[0] and builtin::reftype($_[0]) eq $reftype; } ;},"deep_explanation" => sub { package Types::Standard; no warnings; use strict; require B; my($type, $value, $varname) = @_; my $param = $type->parameters->[0]; return if $type->check($value); my $reftype = builtin::reftype($value); return [sprintf('"%s" constrains reftype(%s) to be equal to %s', $type, $varname, B::perlstring($param)), sprintf('reftype(%s) is %s', $varname, defined $reftype ? B::perlstring($reftype) : 'undef')];},"definition_context" => {"file" => "/usr/local/lib/perl5/site_perl/5.44.0/Types/Standard.pm","line" => 438,"package" => "Types::Standard"},"deprecated" => !!0,"display_name" => "Ref","exception_class" => "Error::TypeTiny::Assertion","inline_generator" => sub { package Types::Standard; no warnings; use strict; my $reftype = shift(); return sub { my $v = $_[1]; &$maybe_load_modules('Scalar::Util', "ref($v) and Scalar::Util::reftype($v) eq q($reftype)"); } ;},"inlined" => sub { package Types::Standard; no warnings; use strict; "!!ref($_[1])";},"library" => "Types::Standard","name" => "Ref","parent" => bless( {"_is_core" => 1,"_overload_coderef" => sub { package Type::Tiny; BEGIN {${^WARNING_BITS} = "\x10\x01\x00\x00\x00\x50\x04\x00\x00\x00\x00\x00\x01\x40\x05\x45\x55\x15\x55\x55\x01\x00\x00"} use strict; defined $_[0] or _failed_check(7, 'Defined', $_[0], 'exception_class', 'Error::TypeTiny::Assertion'); $_[0];},"_overrides_assert_return" => !!0,"coercion" => bless( {"_compiled_type_constraint_check" => sub ;,"display_name" => "to_Defined","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"complementary_type" => bless( {"_is_core" => 1,"_overload_coderef" => sub { package Type::Tiny; BEGIN {${^WARNING_BITS} = "\x10\x01\x00\x00\x00\x50\x04\x00\x00\x00\x00\x00\x01\x40\x05\x45\x55\x15\x55\x55\x01\x00\x00"} use strict; defined $_[0] and _failed_check(6, 'Undef', $_[0], 'exception_class', 'Error::TypeTiny::Assertion'); $_[0];},"_overrides_assert_return" => !!0,"coercion" => bless( {"_compiled_type_constraint_check" => sub ;,"display_name" => "to_Undef","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"complementary_type" => {},"constraint" => sub { package Types::Standard; no warnings; use strict; not defined $_;},"definition_context" => {"file" => "/usr/local/lib/perl5/site_perl/5.44.0/Types/Standard.pm","line" => 254,"package" => "Types::Standard"},"deprecated" => !!0,"display_name" => "Undef","exception_class" => "Error::TypeTiny::Assertion","inlined" => sub { package Types::Standard; no warnings; use strict; "!defined($_[1])";},"library" => "Types::Standard","name" => "Undef","parent" => bless( {"_is_core" => 1,"_overload_coderef" => sub { package Type::Tiny; BEGIN {${^WARNING_BITS} = "\x10\x01\x00\x00\x00\x50\x04\x00\x00\x00\x00\x00\x01\x40\x05\x45\x55\x15\x55\x55\x01\x00\x00"} use strict; '???'; $_[0];},"_overrides_assert_return" => !!0,"coercion" => bless( {"_compiled_type_constraint_check" => sub ;,"display_name" => "to_Item","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"constraint" => do{my $o},"definition_context" => {"file" => "/usr/local/lib/perl5/site_perl/5.44.0/Types/Standard.pm","line" => 226,"package" => "Types::Standard"},"deprecated" => !!0,"display_name" => "Item","exception_class" => "Error::TypeTiny::Assertion","inlined" => sub { package Types::Standard; no warnings; use strict; '!!1';},"library" => "Types::Standard","name" => "Item","parent" => bless( {"_is_core" => 1,"_overload_coderef" => sub { package Type::Tiny; BEGIN {${^WARNING_BITS} = "\x10\x01\x00\x00\x00\x50\x04\x00\x00\x00\x00\x00\x01\x40\x05\x45\x55\x15\x55\x55\x01\x00\x00"} use strict; '???'; $_[0];},"_overrides_assert_return" => !!0,"coercion" => bless( {"_compiled_type_constraint_check" => do{my $o},"display_name" => "to_Any","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"complement_name" => "None","constraint" => do{my $o},"definition_context" => {"file" => "/usr/local/lib/perl5/site_perl/5.44.0/Types/Standard.pm","line" => 220,"package" => "Types::Standard"},"deprecated" => !!0,"display_name" => "Any","exception_class" => "Error::TypeTiny::Assertion","inlined" => sub { package Types::Standard; no warnings; use strict; '!!1';},"library" => "Types::Standard","moose_type" => bless( {"Types::TypeTiny::to_TypeTiny" => {},"_default_message" => sub { package Moose::Meta::TypeConstraint; use warnings; use strict; my $value = shift(); my $can_partialdump = &try(sub { require Devel::PartialDump; 'Devel::PartialDump'->VERSION(0.14); 1; } ); if ($can_partialdump) { $value = 'Devel::PartialDump'->new->dump($value); } else { $value = defined $value ? overload::StrVal($value) : 'undef'; } return q[Validation failed for '] . $name . "' with value $value";},"compiled_type_constraint" => sub { package Eval::Closure::Sandbox_44; use warnings; use strict; do { 1 };},"constraint" => sub { package Moose::Util::TypeConstraints::Builtins; use warnings; use strict; 1;},"inline_environment" => {},"inlined" => sub { package Moose::Util::TypeConstraints::Builtins; use warnings; use strict; '1';},"name" => "Any","package_defined_in" => "Moose::Util::TypeConstraints::Builtins"}, 'Moose::Meta::TypeConstraint' ),"name" => "Any","type_default" => sub { package Types::Standard; no warnings; use strict; return undef;},"uniq" => 1}, 'Type::Tiny' ),"uniq" => 2}, 'Type::Tiny' ),"type_default" => sub { package Types::Standard; no warnings; use strict; return undef;},"uniq" => 6}, 'Type::Tiny' ),"constraint" => sub { package Types::Standard; no warnings; use strict; defined $_;},"definition_context" => {"file" => "/usr/local/lib/perl5/site_perl/5.44.0/Types/Standard.pm","line" => 262,"package" => "Types::Standard"},"deprecated" => !!0,"display_name" => "Defined","exception_class" => "Error::TypeTiny::Assertion","inlined" => sub { package Types::Standard; no warnings; use strict; "defined($_[1])";},"library" => "Types::Standard","moose_type" => bless( {"Types::TypeTiny::to_TypeTiny" => {},"_default_message" => sub { package Moose::Meta::TypeConstraint; use warnings; use strict; my $value = shift(); my $can_partialdump = &try(sub { require Devel::PartialDump; 'Devel::PartialDump'->VERSION(0.14); 1; } ); if ($can_partialdump) { $value = 'Devel::PartialDump'->new->dump($value); } else { $value = defined $value ? overload::StrVal($value) : 'undef'; } return q[Validation failed for '] . $name . "' with value $value";},"compiled_type_constraint" => sub { package Eval::Closure::Sandbox_47; use warnings; use strict; do { defined $_[0] };},"constraint" => sub { package Moose::Util::TypeConstraints::Builtins; use warnings; use strict; defined $_;},"inline_environment" => {},"inlined" => sub { package Moose::Util::TypeConstraints::Builtins; use warnings; use strict; 'defined(' . $_[1] . ')';},"name" => "Defined","package_defined_in" => "Moose::Util::TypeConstraints::Builtins","parent" => bless( {"_default_message" => sub { package Moose::Meta::TypeConstraint; use warnings; use strict; my $value = shift(); my $can_partialdump = &try(sub { require Devel::PartialDump; 'Devel::PartialDump'->VERSION(0.14); 1; } ); if ($can_partialdump) { $value = 'Devel::PartialDump'->new->dump($value); } else { $value = defined $value ? overload::StrVal($value) : 'undef'; } return q[Validation failed for '] . $name . "' with value $value";},"compiled_type_constraint" => sub { package Eval::Closure::Sandbox_45; use warnings; use strict; do { 1 };},"constraint" => do{my $o},"inline_environment" => {},"inlined" => sub { package Moose::Util::TypeConstraints::Builtins; use warnings; use strict; '1';},"name" => "Item","package_defined_in" => "Moose::Util::TypeConstraints::Builtins","parent" => {}}, 'Moose::Meta::TypeConstraint' )}, 'Moose::Meta::TypeConstraint' ),"name" => "Defined","parent" => {},"uniq" => 7}, 'Type::Tiny' ),"uniq" => 16}, 'Type::Tiny' ),"uniq" => 24}, 'Type::Tiny' ),"_default_message" => sub { package Moose::Meta::TypeConstraint; use warnings; use strict; my $value = shift(); my $can_partialdump = &try(sub { require Devel::PartialDump; 'Devel::PartialDump'->VERSION(0.14); 1; } ); if ($can_partialdump) { $value = 'Devel::PartialDump'->new->dump($value); } else { $value = defined $value ? overload::StrVal($value) : 'undef'; } return q[Validation failed for '] . $name . "' with value $value";},"compiled_type_constraint" => sub { package Eval::Closure::Sandbox_58; use warnings; use strict; do { builtin::blessed($_[0]) };},"constraint" => sub { package Moose::Util::TypeConstraints::Builtins; use warnings; use strict; builtin::blessed($_);},"inline_environment" => {},"inlined" => sub { package Moose::Util::TypeConstraints::Builtins; use warnings; use strict; 'Scalar::Util::blessed(' . $_[1] . ')';},"name" => "Object","package_defined_in" => "Moose::Util::TypeConstraints::Builtins","parent" => bless( {"_default_message" => sub { package Moose::Meta::TypeConstraint; use warnings; use strict; my $value = shift(); my $can_partialdump = &try(sub { require Devel::PartialDump; 'Devel::PartialDump'->VERSION(0.14); 1; } ); if ($can_partialdump) { $value = 'Devel::PartialDump'->new->dump($value); } else { $value = defined $value ? overload::StrVal($value) : 'undef'; } return q[Validation failed for '] . $name . "' with value $value";},"compiled_type_constraint" => sub { package Eval::Closure::Sandbox_50; use warnings; use strict; do { ref $_[0] };},"constraint" => sub { package Moose::Util::TypeConstraints::Builtins; use warnings; use strict; ref $_;},"inline_environment" => {},"inlined" => sub { package Moose::Util::TypeConstraints::Builtins; use warnings; use strict; 'ref(' . $_[1] . ')';},"name" => "Ref","package_defined_in" => "Moose::Util::TypeConstraints::Builtins","parent" => {}}, 'Moose::Meta::TypeConstraint' )}, 'Moose::Meta::TypeConstraint' )}, 'Moose::Meta::TypeConstraint::Class' ),"name" => "Piddle","name_generator" => sub { package Type::TinyX::Facets; use warnings; use strict; my($s, %a) = @_; sprintf '%s[%s]', $s, join(',', map(sprintf('%s=>%s', $_, B::perlstring($a{$_})), sort(keys %a)));},"parent" => {},"uniq" => 46}, 'Type::Tiny::Class' ),"uniq" => 51}, 'Type::Tiny' ),"_default_message" => sub { package Moose::Meta::TypeConstraint; use warnings; use strict; my $value = shift(); my $can_partialdump = &try(sub { require Devel::PartialDump; 'Devel::PartialDump'->VERSION(0.14); 1; } ); if ($can_partialdump) { $value = 'Devel::PartialDump'->new->dump($value); } else { $value = defined $value ? overload::StrVal($value) : 'undef'; } return q[Validation failed for '] . $name . "' with value $value";},"compiled_type_constraint" => sub { package Eval::Closure::Sandbox_193; use warnings; use strict; do { Type::Tiny::XS::AUTO::TC1($_[0]) and $_[0]->ndims == 1 };},"constraint" => do{my $o},"inline_environment" => {},"inlined" => sub { package Type::Tiny; use warnings; use strict; shift(); $self->inline_check(@_);},"name" => "__ANON__","parent" => {}}, 'Moose::Meta::TypeConstraint' )}, 'Moose::Meta::TypeConstraint' ),"name" => "Piddle1D","name_generator" => sub { package Type::TinyX::Facets; use warnings; use strict; my($s, %a) = @_; sprintf '%s[%s]', $s, join(',', map(sprintf('%s=>%s', $_, B::perlstring($a{$_})), sort(keys %a)));},"parent" => {},"uniq" => 52}, 'Type::Tiny' );$v->{"coercion"}{"type_constraint"} = $v;$v->{"compiled_type_constraint"} = $v->{"coercion"}{"_compiled_type_constraint_check"};$v->{"moose_type"}{"Types::TypeTiny::to_TypeTiny"} = $v;$v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"coercion"}{"_compiled_type_constraint_check"} = $v->{"coercion"}{"_compiled_type_constraint_check"};$v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"coercion"}{"type_constraint"} = $v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"};$v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"compiled_type_constraint"} = $v->{"coercion"}{"_compiled_type_constraint_check"};$v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"moose_type"} = $v->{"moose_type"}{"parent"};$v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"coercion"}{"type_constraint"} = $v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"};$v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"compiled_type_constraint"} = $v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"}{"Types::TypeTiny::to_TypeTiny"} = $v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"};$v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"coercion"}{"type_constraint"} = $v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"};$v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"compiled_type_constraint"} = $v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"moose_type"} = $v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"}{"parent"};$v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"coercion"}{"type_constraint"} = $v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"};$v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"compiled_type_constraint"} = $v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"parent"}{"coercion"}{"type_constraint"} = $v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"parent"};$v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"parent"}{"compiled_type_constraint"} = $v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"parent"}{"complementary_type"}{"coercion"}{"type_constraint"} = $v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"parent"}{"complementary_type"};$v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"parent"}{"complementary_type"}{"compiled_type_constraint"} = $v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"parent"}{"complementary_type"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"parent"}{"complementary_type"}{"complementary_type"} = $v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"parent"};$v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"parent"}{"complementary_type"}{"parent"}{"coercion"}{"type_constraint"} = $v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"parent"}{"complementary_type"}{"parent"};$v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"parent"}{"complementary_type"}{"parent"}{"compiled_type_constraint"} = $v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"parent"}{"complementary_type"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"parent"}{"complementary_type"}{"parent"}{"constraint"} = $v->{"constraint"};$v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"parent"}{"complementary_type"}{"parent"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"} = $v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"parent"}{"complementary_type"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"parent"}{"complementary_type"}{"parent"}{"parent"}{"coercion"}{"type_constraint"} = $v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"parent"}{"complementary_type"}{"parent"}{"parent"};$v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"parent"}{"complementary_type"}{"parent"}{"parent"}{"compiled_type_constraint"} = $v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"parent"}{"complementary_type"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"parent"}{"complementary_type"}{"parent"}{"parent"}{"constraint"} = $v->{"constraint"};$v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"parent"}{"complementary_type"}{"parent"}{"parent"}{"moose_type"}{"Types::TypeTiny::to_TypeTiny"} = $v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"parent"}{"complementary_type"}{"parent"}{"parent"};$v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"parent"}{"moose_type"}{"Types::TypeTiny::to_TypeTiny"} = $v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"parent"};$v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"parent"}{"moose_type"}{"parent"}{"constraint"} = $v->{"moose_type"}{"constraint"};$v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"parent"}{"moose_type"}{"parent"}{"parent"} = $v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"parent"}{"complementary_type"}{"parent"}{"parent"}{"moose_type"};$v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"parent"}{"parent"} = $v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"parent"}{"complementary_type"}{"parent"};$v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"}{"parent"}{"parent"}{"parent"} = $v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"parent"}{"moose_type"};$v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"parent"} = $v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"};$v->{"moose_type"}{"parent"}{"constraint"} = $v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"constraint"};$v->{"moose_type"}{"parent"}{"parent"} = $v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}{"parent"}{"moose_type"};$v->{"parent"} = $v->{"moose_type"}{"parent"}{"Types::TypeTiny::to_TypeTiny"}; \$v}->get_message($indices)) |
49 |
0 |
49 |
Condition33%1/3
Type::Tiny::XS::AUTO::TC1($indices) and $indices->ndims == 1
MC/DC0%0/2
Type::Tiny::XS::AUTO::TC1($indices) and $indices->ndims == 1
Type::Tiny::XS::AUTO::TC1($indices)
$indices->ndims == 1
Truth table33%1/3
A and B
A= Type::Tiny::XS::AUTO::TC1($indices)B= $indices->ndims == 1
|
| 258 |
49 |
| my $indices1 = $indices->copy; |
| 259 |
49 |
| $indices1->where($indices1 > $n - 1) .= $n - 1; |
| 260 |
49 |
| return [ map { which( $indices1 == $_ ) } ( 0 .. $n - 1 ) ]; |
| 261 |
3 |
| } |
| 262 |
|
| |
| 263 |
3 |
| 1; |
| 264 |
|
| |
| 265 |
|
| __END__ |