view release on metacpan or search on metacpan
cci-src/aclocal.m4 view on Meta::CPAN
[AC_REQUIRE([AC_PROG_CC_C_O])dnl
AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
# FIXME: we rely on the cache variable name because
# there is no other way.
set dummy $CC
ac_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
# Losing compiler, so override with the script.
# FIXME: It is wrong to rewrite CC.
# But if we don't then we get into trouble of one sort or another.
# A longer-term fix would be to have automake use am__CC in this case,
cci-src/aclocal.m4 view on Meta::CPAN
# symlink; some systems play weird games with the mod time of symlinks
# (eg FreeBSD returns the mod time of the symlink's containing
# directory).
if (
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
if test "$[*]" = "X"; then
# -L didn't work.
set X `ls -t $srcdir/configure conftest.file`
fi
rm -f conftest.file
if test "$[*]" != "X $srcdir/configure conftest.file" \
&& test "$[*]" != "X conftest.file $srcdir/configure"; then
# If neither matched, then we have a broken ls. This can happen
# if, for instance, CONFIG_SHELL is bash and it inherits a
# broken ls alias from the environment. This has actually
# happened. Such a system could not be considered "sane".
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
alias in your environment])
fi
test "$[2]" = conftest.file
)
then
# Ok.
:
else
view all matches for this distribution
view release on metacpan or search on metacpan
lib/DBIx/Class/StorageReadOnly/TT.pm view on Meta::CPAN
use tt (subs => [qw/insert update delete/]);
[% FOR sub IN subs %]
{
no warnings 'redefine';
no strict 'refs'; ## no critic
my $[%- sub -%]_code_org = DBIx::Class::Storage::DBI->can('[%- sub -%]');
*{"DBIx\::Class\::Storage\::DBI\::[%- sub -%]"} = sub {
my $self = shift;
if ($self->_search_readonly_info) {
croak("This connection is read only. Can't [%- sub -%].");
}
return $self->$[%- sub -%]_code_org(@_);
};
}
[% END %]
no tt;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/DBIx/Web.pm view on Meta::CPAN
$#_+1 !=2*int(($#_+1)/2)
? 0
: substr($_[$#_],0,1) eq "\n"
? ($n =$_[$#_])
: ($c =$_[$#_]);
((!ref($_[$[+4])
? ('<', $_[$[+4]
,(map {$_[$_]
? (defined($_[$_+1])
? (' ', substr($_[$_],0,1) eq '-' ? substr($_[$_],1) : $_[$_], '="'
, &{$_[$_] ne 'href' ? $_[$[] : $_[$[+1]}
($_[$[+3], !ref($_[$_+1]) ? $_[$_+1] : strdata($_[$[+3], $_[$_+1]))
, '"')
: ())
: eval{$c =$_[$_]; $v =$_[$_+1]; ()}
} map {$_*2+3} $[+1..int(($#_-3)/2) )
,(!defined($c)
? ' />'
: $c eq '0'
? '>'
: ('>'
, (ref($v) eq 'CODE') && ($v =&{$v}) && 0
? ()
: ref($v) eq 'ARRAY'
? &lsTag(@_[$[..$[+3], $v)
: defined($v)
? &{$_[$[+2]}($_[$[+3], $v)
: ()
, '</', $_[$[+4], '>') )
)
: ref($_[$[+4]) eq 'ARRAY'
? (map {ref($_) ne 'ARRAY' ? &{$_[$[+2]}($_[$[+3], $_) : lsTag(@_[$[..$[+3], @$_)} @{$_[$[+4]})
: ref($_[$[+4]) eq 'HASH' && eval{$v =$_[$[+4]; $c =$v->{'-'}||$v->{'-tag'}||'tag'}
? ('<', $c
,(map {defined($v->{$_})
?(' '
, substr($_,0,1) eq '-' ? substr($_, 1) : $_, '="'
, &{$_ ne 'href' ? $_[$[] : $_[$[+1]}
($_[$[+3], !ref($v->{$_}) ? $v->{$_} : strdata($_[$[+3], $v->{$_}))
,'"')
:()
}
sort grep {$_ && $_ !~/^-(tag|data|)$/} keys %$v)
, (grep {exists($v->{$_}) && eval{$v =$v->{$_}}} '', '-data')
? ('>'
,(ref($v) eq 'CODE') && ($v =&{$v}) && 0
? ()
: ref($v) eq 'ARRAY'
? &lsTag(@_[$[..$[+3], $v)
: defined($v)
? &{$_[$[+2]}($_[$[+3], $v)
: ()
,'</',$c,'>')
: exists($v->{0})
? '>'
: ' />'
view all matches for this distribution
view release on metacpan or search on metacpan
lib/DDG/Rewrite.pm view on Meta::CPAN
# out consistently by calling 'sort keys' on the returned hash and 'join' turns
# the sorted keys into a single string.
# e.g. post_body '{"method":"$2","query":"$1","cleaned_query":"$1"}'
# Would give a $cache_keys value of '$1$2'
my $cache_keys = join '', sort keys %{ {
map { $_ => 1 } ( $self->post_body =~ m/\$[0-9]+/g )
} };
$cfg .= "\tproxy_cache_key spice_${spice_name}_$cache_keys;\n"
}
if($uses_echo_module) {
view all matches for this distribution
view release on metacpan or search on metacpan
CAB/Analyzer.pm view on Meta::CPAN
## {details=>$taghvar->{hi}, prob=>($$taghvar->{w}||0), tag=>($$taghvar->{hi} =~ /\[\_?([A-Z0-9]+)\]/ ? \$1 : $$taghvar->{hi})}
sub _am_tagh_fst2moota {
my $taghvar = shift||'$_';
return ("{details=>$taghvar\->{hi},"
." prob=>($taghvar\->{w}||0),"
." tag=>($taghvar\->{hi} =~ /\\[\\_?((?:[A-Za-z0-9\.]+|\\\$[^\\]]+))\\]/ ? \$1 : $taghvar\->{hi})" ##-- allow e.g. [$(] tags from tokenizer!
."} ##-- _am_tagh_fst2moota\n");
}
## PACKAGE::_am_tagh_list2moota($listvar='@{$_->{morph}}')
## + access-closure macro (EXPR): moot token analysis-list from TAGH-style fst analysis-list
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Daje/Document/Templates/Tools/Generate/Perl.pm view on Meta::CPAN
#
# my $class = Daje::Plugin::[%- class_name -%]::Helpers->new();
[%- FOREACH table IN tables %]
# $app->helper(
# [% project_name %]_[% table.table_name %] => sub {
# state $[% project_name %]_[% table.table_name %] = Daje::Database::Model::[%- table.class_name -%]->new(db => shift->pg->db)
# });
[%- END -%]
#
#
# DESCRIPTION
lib/Daje/Document/Templates/Tools/Generate/Perl.pm view on Meta::CPAN
sub helpers($self, $app, $config) {
[%- FOREACH table IN tables %]
$app->helper(
[% project_name %]_[% table.table_name %] => sub {
state $[% project_name %]_[% table.table_name %] = Daje::Database::Model::[%- table.class_name -%]->new(db => shift->pg->db)
});
[%- END -%]
}
lib/Daje/Document/Templates/Tools/Generate/Perl.pm view on Meta::CPAN
#
# use Daje::Database::Model::Super::[%- class_name -%];
#
# my $table = Daje::Database::Model::Super::[%- class_name -%]->new(db => $db);
#
# my $result = $table->load_[%- project_name -%]_[%- table.table_name -%]_pkey($self, $[%- project_name -%]_[%- table.table_name -%]_pkey);
#
[%- FOREACH field IN fields -%]
[%- IF field.foreign_key %]
# my $result = $table->load_[%- project_name -%]_[%- field.fieldname -%]_fkey($self, $[%- project_name -%]_[%- field.fieldname -%]_fkey);
#
[%- END -%]
[%- END -%]
#
# my $result = $table->insert($self, $data);
lib/Daje/Document/Templates/Tools/Generate/Perl.pm view on Meta::CPAN
[%- END -%]
[%- END -%]';
[%- FOREACH field IN fields -%]
[%- IF field.foreign_key %]
async sub load_[%- project_name -%]_[%- field.fieldname -%]_fkey_p($self, $[%- project_name -%]_[%- field.fieldname -%]_fkey) {
return $self->load_[%- project_name -%]_[%- field.fieldname -%]_fkey($[%- project_name -%]_[%- field.fieldname -%]_fkey);
}
sub load_[%- project_name -%]_[%- field.fieldname -%]_fkey($self, $[%- project_name -%]_[%- field.fieldname -%]_fkey) {
return $self->load_fkey(
$self->table_name, $self->fields(), "[%- project_name -%]_[%- field.fieldname -%]_fkey", $[%- project_name -%]_[%- field.fieldname -%]_fkey
);
}
[%- END -%]
[%- END -%]
async sub load_[%- project_name -%]_[%- table.table_name -%]_pkey_p($self, $[%- project_name -%]_[%- table.table_name -%]_pkey) {
return $self->load_[%- project_name -%]_[%- table.table_name -%]_pkey($[%- project_name -%]_[%- table.table_name -%]_pkey);
}
sub load_[%- project_name -%]_[%- table.table_name -%]_pkey($self, $[%- project_name -%]_[%- table.table_name -%]_pkey) {
return $self->load_pk(
$self->table_name, $self->fields(), $self->primary_key_name(), $[%- project_name -%]_[%- table.table_name -%]_pkey
);
}
sub insert($self, $data) {
my $result = $self->SUPER::insert(
view all matches for this distribution
view release on metacpan or search on metacpan
share/debugtoolbar/js/prettify/lang-xq.js view on Meta::CPAN
PR.registerLangHandler(PR.createSimpleLexer([["var pln",/^\$[\w-]+/,null,"$"]],[["pln",/^[\s=][<>][\s=]/],["lit",/^@[\w-]+/],["tag",/^<\/?[a-z](?:[\w-.:]*\w)?|\/?>$/i],["com",/^\(:[\S\s]*?:\)/],["pln",/^[(),/;[\]{}]$/],["str",/^(?:"(?:[^"\\{]|\\[\S\s...
["typ",/^(?:xs:yearMonthDuration|xs:unsignedLong|xs:time|xs:string|xs:short|xs:QName|xs:Name|xs:long|xs:integer|xs:int|xs:gYearMonth|xs:gYear|xs:gMonthDay|xs:gDay|xs:float|xs:duration|xs:double|xs:decimal|xs:dayTimeDuration|xs:dateTime|xs:date|xs:byt...
["pln",/^[\w:-]+/],["pln",/^[\t\n\r \xa0]+/]]),["xq","xquery"]);
view all matches for this distribution
view release on metacpan or search on metacpan
MS>=_ARGN>T@LK.XVZCC\(2`$(O&])@A?'%OPK^_'^E[DQON"N8IEA1DI-)ZK
MKXYB>:KM;Q;[;QJ094\=YK*67%->L=E0-M+Q:.B3%2TUG<-6.\7C\@F`````
M```````````````````ISY-1J'<V3EC4=V:9W.P)ZNUK-IU#E8F9U#32L8Z;
MGN!2M<==SW1^[+;X@K%LEMSV71$1&H`K6*QJ(=```'+1N-(TIRI@#EITZY:-
MP"$]+;@CU/\`X[6D[ZR[R_?L$)Z[,?NG%>KE:ZF9!&LZO,NVGFIMVU-SN)=F
MOVZ@'*1":%:VB>Z4]@0\K?IW)VASDM$[B4];KJ05QY.V]2':TF)W,NWKOK'<
M$<?NY;4Q,IUKJ$9I.^_0$L?A"3D1J-.@A%/NVF```"O)CB>L=)6`*:7U/+='
M+BU]U>RW)2+1^4,=IK/)?L#.ECM-9VGGQZ^ZO92#;2T6C<),>*\UG\-=9BT;
M@'0```````````````````$<EHK7<NS.HVRYK\UOP"-K3:=RY$;EQ?@IK[K`
MECI%*\TN1O+?\%IG)?4=H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AQ"
M?II[6H6'CPY4`]B]KK>,)\\IL1&DHS^PL.-Y^K@:3\U:)^T7:W55L".NAM7:
MJ9*MH<02FD!2D)=<Y2<'H?/RU3=K&KD[5WSMGBM"0H165"NM5(']M"E`M.G_
M`!6`?GRZ\[0MJU9<(JR[ALO2647,"2XB,@N*`0Z%+``\\8/^M9+\A2](7.[N
M*6_F.!0+-TXK<L+<TNL>GL-(0J0Q%:4ZM13CE'@(S@?I^>K#B'Q8O*[=E]#@
5VBXS$W9L>QJPA*0(\DI0X5)./,H*
view all matches for this distribution
view release on metacpan or search on metacpan
t/01_default_settings.t view on Meta::CPAN
like $@, qr/^Please provide password argument/, 'die with empty password argument';
};
subtest 'passphrase->encoded' => sub {
$passphrase_generated = passphrase($password)->encoded;
like $passphrase_generated, qr/^\$argon2id\$v=19\$m=32768,t=3,p=1\$[\w\+\$\/]+\z/, 'with default settings';
};
subtest 'passphrase->matches' => sub {
ok passphrase($password)->matches($passphrase_generated), 'correct password matched';
ok !passphrase('bad-password')->matches($passphrase_generated), 'incorrect password doesn\'t match';
view all matches for this distribution