view release on metacpan or search on metacpan
script/genpw-base56 view on Meta::CPAN
# } elsif ($fmt_name eq 'sci2dec') {
# if ($row->[$j] =~ /\A(?:[+-]?)(?:\d+\.|\d*\.(\d+))[eE]([+-]?\d+)\z/) {
# my $n = length($1 || "") - $2; $n = 0 if $n < 0;
# $row->[$j] = sprintf("%.${n}f", $row->[$j]);
# }
# } elsif ($fmt_name eq 'percent') {
# my $fmt = $fmt_opts->{sprintf} // '%.2f%%';
# $row->[$j] = sprintf($fmt, $row->[$j] * 100);
# } elsif ($fmt_name eq 'number') {
# require Number::Format::BigFloat;
# $row->[$j] = Number::Format::BigFloat::format_number(
view all matches for this distribution
view release on metacpan or search on metacpan
script/genpw-base58 view on Meta::CPAN
# } elsif ($fmt_name eq 'sci2dec') {
# if ($row->[$j] =~ /\A(?:[+-]?)(?:\d+\.|\d*\.(\d+))[eE]([+-]?\d+)\z/) {
# my $n = length($1 || "") - $2; $n = 0 if $n < 0;
# $row->[$j] = sprintf("%.${n}f", $row->[$j]);
# }
# } elsif ($fmt_name eq 'percent') {
# my $fmt = $fmt_opts->{sprintf} // '%.2f%%';
# $row->[$j] = sprintf($fmt, $row->[$j] * 100);
# } elsif ($fmt_name eq 'number') {
# require Number::Format::BigFloat;
# $row->[$j] = Number::Format::BigFloat::format_number(
view all matches for this distribution
view release on metacpan or search on metacpan
script/genpw-base64 view on Meta::CPAN
# } elsif ($fmt_name eq 'sci2dec') {
# if ($row->[$j] =~ /\A(?:[+-]?)(?:\d+\.|\d*\.(\d+))[eE]([+-]?\d+)\z/) {
# my $n = length($1 || "") - $2; $n = 0 if $n < 0;
# $row->[$j] = sprintf("%.${n}f", $row->[$j]);
# }
# } elsif ($fmt_name eq 'percent') {
# my $fmt = $fmt_opts->{sprintf} // '%.2f%%';
# $row->[$j] = sprintf($fmt, $row->[$j] * 100);
# } elsif ($fmt_name eq 'number') {
# require Number::Format::BigFloat;
# $row->[$j] = Number::Format::BigFloat::format_number(
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/genpw/id.pm view on Meta::CPAN
%s Random ASCII symbol, e.g. "-" (dash), "_" (underscore), etc.
%x Random letter/digit/ASCII symbol (combination of %a and %s)
%m Base64 character (A-Z, a-z, 0-9, +, /)
%b Base58 character (A-Z, a-z, 0-9 minus IOl0)
%B Base56 character (A-Z, a-z, 0-9 minus IOol01)
%% A literal percent sign
%w Random word
=item * B<wordlists> => I<array[str]>
Select one or more wordlist modules.
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/genpw/ind.pm view on Meta::CPAN
%s Random ASCII symbol, e.g. "-" (dash), "_" (underscore), etc.
%x Random letter/digit/ASCII symbol (combination of %a and %s)
%m Base64 character (A-Z, a-z, 0-9, +, /)
%b Base58 character (A-Z, a-z, 0-9 minus IOl0)
%B Base56 character (A-Z, a-z, 0-9 minus IOol01)
%% A literal percent sign
%w Random word
=item * B<wordlists> => I<array[str]>
Select one or more wordlist modules.
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/genpw/wordlist.pm view on Meta::CPAN
%s Random ASCII symbol, e.g. "-" (dash), "_" (underscore), etc.
%x Random letter/digit/ASCII symbol (combination of %a and %s)
%m Base64 character (A-Z, a-z, 0-9, +, /)
%b Base58 character (A-Z, a-z, 0-9 minus IOl0)
%B Base56 character (A-Z, a-z, 0-9 minus IOol01)
%% A literal percent sign
%w Random word. Known arguments:
- "stdin:" (for getting the words from stdin, the default)
- "wordlist:NAME" (for getting the words from a L<WordList> module)
- "arraydata:NAME" (for getting the words from an L<ArrayData> module, the
Role::TinyCommons::Collection::PickItems::RandomPos will be applied).
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/genusername.pm view on Meta::CPAN
%s Random ASCII symbol, e.g. "-" (dash), "_" (underscore), etc.
%x Random letter/digit/ASCII symbol (combination of %a and %s)
%m Base64 character (A-Z, a-z, 0-9, +, /)
%b Base58 character (A-Z, a-z, 0-9 minus IOl0)
%B Base56 character (A-Z, a-z, 0-9 minus IOol01)
%% A literal percent sign
%w Random word. Known arguments:
- "stdin:" (for getting the words from stdin, the default)
- "wordlist:NAME" (for getting the words from a L<WordList> module)
- "arraydata:NAME" (for getting the words from an L<ArrayData> module, the
Role::TinyCommons::Collection::PickItems::RandomPos will be applied).
view all matches for this distribution
view release on metacpan or search on metacpan
lib/FlashVideo/Downloader.pm view on Meta::CPAN
return if $self->quiet;
my $progress_text;
if ($self->{content_length}) {
my $percent = int(
($self->{downloaded} / $self->{content_length}) * 100
);
if ($percent != $self->{percent} || time != $self->{last_time}) {
my $downloaded_kib = _bytes_to_kib($self->{downloaded});
my $total_kib = _bytes_to_kib($self->{content_length});
$progress_text = ": $percent% ($downloaded_kib / $total_kib KiB)";
$self->{last_time} = time;
$self->{percent} = $percent;
}
} else {
# Handle lame servers that don't tell us how big the file is
my $data_transferred = _bytes_to_kib($self->{downloaded});
if ($data_transferred != $self->{data_transferred}) {
view all matches for this distribution
view release on metacpan or search on metacpan
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
view all matches for this distribution
view release on metacpan or search on metacpan
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/idxdb.pm view on Meta::CPAN
}
}
delete $row->{StockCode};
delete $row->{persen};
delete $row->{percentage};
delete $row->{ctime};
delete $row->{mtime};
for my $f (@daily_fields) { delete $row->{$f} unless (grep {$_ eq $f} @$fields) }
push @{ $stock_rows{$code} }, $row;
}
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/indodax.pm view on Meta::CPAN
$tot_avail_est_idr += $rec->{avail_est_idr};
$tot_held_est_idr += $rec->{held_est_idr};
$tot_total_est_idr += $rec->{total_est_idr};
}
# calculate percentages
for my $rec (@recs) {
if ($tot_total_est_idr > 0) {
$rec->{pct_est_idr} = $rec->{total_est_idr} / $tot_total_est_idr;
} else {
$rec->{pct_est_idr} = 0;
lib/App/indodax.pm view on Meta::CPAN
total_est_idr => $tot_total_est_idr,
pct_est_idr => 1,
};
$resmeta{'table.fields'} = [qw/currency bal_avail price_btc price_idr avail_est_idr bal_held held_est_idr bal_total total_est_idr pct_est_idr/];
$resmeta{'table.field_aligns'} = [qw/left right right right right right right right right right/];
$resmeta{'table.field_formats'} = [undef, undef, $fnum8, $fnum0, $fnum0, $fnum8, $fnum0, $fnum8, $fnum0, 'percent'];
} else {
$resmeta{'table.fields'} = [qw/currency bal_avail bal_held bal_total/];
$resmeta{'table.field_aligns'} = [qw/left right right right/];
$resmeta{'table.field_formats'} = [undef, $fnum8, $fnum8, $fnum8,];
}
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/ipinfo.pm view on Meta::CPAN
=item * C<%t> - the timezone of the organization (e.g. C<America/New_York> )
=item * C<%T> - tab
=item * C<%%> - literal percent
=back
=head2 Class methods
view all matches for this distribution
view release on metacpan or search on metacpan
--trace-limit N
Max number of trace entries per validation (0 = unlimited).
--trace-sample P
Sampling percentage for trace events.
--unique-keys / --no-unique-keys
Enables the non-standard extension "uniqueKeys"
EXIT CODES
view all matches for this distribution
view release on metacpan or search on metacpan
script/lapidary view on Meta::CPAN
Options:\n
read_1\tLocation of first read file (required)\n
read_2\tLocation of second read file if read files are paired\n
db\tFull location to fasta file containing amino acid sequences (required)\n
threads\tNumber of threads to use for Diamond (default: 1)\n
identity\tDiamond identity percentage cut-off to use (default: 70)\n
coverage\tDiamond coverage percentage cut-off to use (default: 50)\n
read_type\tTypes of reads used (required): single or paired\n
sequence_identification\tMethod for calling most likely sequence: identity (default) or consensus\n
help\tDisplay help screen\n
version\tReturn version of Lapidary\n\n";
}
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/lcpan/Cmd/debian_dist2deb.pm view on Meta::CPAN
v => 1.1,
summary => 'Show Debian package name/version for a dist',
description => <<'_',
This routine uses the simple rule of: converting the dist name to lowercase then
add "lib" prefix and "-perl" suffix. A small percentage of Perl distributions do
not follow this rule.
_
args => {
%App::lcpan::common_args,
lib/App/lcpan/Cmd/debian_dist2deb.pm view on Meta::CPAN
handle_cmd(%args) -> [$status_code, $reason, $payload, \%result_meta]
Show Debian package nameE<sol>version for a dist.
This routine uses the simple rule of: converting the dist name to lowercase then
add "lib" prefix and "-perl" suffix. A small percentage of Perl distributions do
not follow this rule.
This function is not exported.
Arguments ('*' denotes required arguments):
view all matches for this distribution
view release on metacpan or search on metacpan
- [subcommand script2rel] Accept multiple arguments.
- [subcommand dists] Add options --sort, --has-multiple-rels.
- [subcommands authors-by-*] Add percentage result field.
- [subcommand contents] Add option --package.
0.68 2016-02-11 Released-By: PERLANCAR
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/mdee.pm view on Meta::CPAN
The color specification supports modifiers:
=over 4
=item * C<+y10> / C<-y10>: Adjust luminance by percentage
=item * C<=y50>: Set absolute luminance
=item * C<D>: Bold, C<U>: Underline, C<E>: Erase line
view all matches for this distribution
view release on metacpan or search on metacpan
script/metasyn view on Meta::CPAN
# } elsif ($fmt_name eq 'sci2dec') {
# if ($row->[$j] =~ /\A(?:[+-]?)(?:\d+\.|\d*\.(\d+))[eE]([+-]?\d+)\z/) {
# my $n = length($1 || "") - $2; $n = 0 if $n < 0;
# $row->[$j] = sprintf("%.${n}f", $row->[$j]);
# }
# } elsif ($fmt_name eq 'percent') {
# my $fmt = $fmt_opts->{sprintf} // '%.2f%%';
# $row->[$j] = sprintf($fmt, $row->[$j] * 100);
# } elsif ($fmt_name eq 'number') {
# require Number::Format::BigFloat;
# $row->[$j] = Number::Format::BigFloat::format_number(
view all matches for this distribution
view release on metacpan or search on metacpan
mimi.fatpack view on Meta::CPAN
}
EOI
DBI_DBD_SQLENGINE
$fatpacked{"DBI/Gofer/Execute.pm"} = '#line '.(1+__LINE__).' "'.__FILE__."\"\n".<<'DBI_GOFER_EXECUTE';
package DBI::Gofer::Execute;use strict;use warnings;use Carp;use DBI qw(dbi_time);use DBI::Gofer::Request;use DBI::Gofer::Response;use base qw(DBI::Util::_accessor);our$VERSION="0.03";our@all_dbh_methods=sort map {keys %$_}$DBI::DBI_methods{db},$DB...
DBI_GOFER_EXECUTE
$fatpacked{"DBI/Gofer/Request.pm"} = '#line '.(1+__LINE__).' "'.__FILE__."\"\n".<<'DBI_GOFER_REQUEST';
package DBI::Gofer::Request;use strict;use DBI qw(neat neat_list);use base qw(DBI::Util::_accessor);our$VERSION="0.03";use constant GOf_REQUEST_IDEMPOTENT=>0x0001;use constant GOf_REQUEST_READONLY=>0x0002;our@EXPORT=qw(GOf_REQUEST_IDEMPOTENT GOf_RE...
DBI_GOFER_REQUEST
view all matches for this distribution
view release on metacpan or search on metacpan
# END IFUNBUILT
use Getopt::Long::EvenLess qw(GetOptions);
my $mode = 'mimic';
my $percentage = 1;
my $sh = "\x{02591}"; # shade character
sub _list {
require Unicode::Homoglyph;
my $re;
if ($mode eq 'mimic') {
$re = "(?:" . join("|", map {quotemeta} sort keys %uni_homoglyphs) . ")";
$re = qr/$re/o;
while (<>) {
s/($re)/rand()*100 < $percentage ?
$uni_homoglyphs{$1}[rand()*@{ $uni_homoglyphs{$1} }] : $1/eg;
print;
}
} else {
$re = "(?:" . join("|", map {sprintf("\\x{%04X}", ord($_))} sort keys %asciis). ")";
Usage: mimic [options]
Options:
-h, --help show this help message and exit
-m CHANCE, --me-harder=CHANCE
replacement percent
-e CHAR, --explain=CHAR
show a char's homoglyphs
-l, --list show all homoglyphs
-c, --check check input for suspicious chars
-r, --reverse reverse operation, clean a mimicked file
_
exit 0;
},
'me-harder|m=s' => sub {
$percentage = $_[1];
},
'explain|e=s' => sub {
_explain($_[1]);
exit 0;
},
view all matches for this distribution
view release on metacpan or search on metacpan
t/samples/percona-compiled.txt view on Meta::CPAN
--innodb-buffer-pool-size=#
The size of the memory buffer InnoDB uses to cache data
and indexes of its tables.
--innodb-change-buffer-max-size=#
Maximum on-disk size of change buffer in terms of
percentage of the buffer pool.
--innodb-change-buffering=name
Buffer changes to reduce random access: OFF, ON,
inserting, deleting, changing, or purging.
--innodb-checksum-algorithm=name
The algorithm InnoDB uses for page checksumming. Possible
t/samples/percona-compiled.txt view on Meta::CPAN
all reads and multiple writes) to as much as you can
afford
--key-cache-age-threshold=#
This characterizes the number of hits a hot block has to
be untouched until it is considered aged enough to be
downgraded to a warm block. This specifies the percentage
ratio of that number of hits to the total number of
blocks in key cache
--key-cache-block-size=#
The default size of key cache blocks
--key-cache-division-limit=#
The minimum percentage of warm blocks in key cache
--kill-idle-transaction=#
If non-zero, number of seconds to wait before killing
idle connections that have open transactions
-L, --language=name Client error messages in given language. May be given as
a full path. Deprecated. Use --lc-messages-dir instead.
view all matches for this distribution
view release on metacpan or search on metacpan
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
view all matches for this distribution
view release on metacpan or search on metacpan
etc/input.pandoc view on Meta::CPAN
op.add_option("-i", "--in", dest="infile", help="read yuml from FILE instead of stdin", metavar="FILE", default="-")
op.add_option("-o", "--out", dest="outfile", help="store output in FILE", metavar="FILE")
op.add_option("-f", "--format", dest="fmt", help="use format FMT", metavar="FMT", default="png", choices=['png', 'pdf', 'jpg', 'svg'])
op.add_option("-t", "--type", dest="type", help="draw a TYPE diagram", metavar="TYPE", default="class", choices=['class', 'activity', 'usecase'])
op.add_option("-s", "--style", dest="style", help="use style STY", metavar="STY", default="scruffy", choices=['scruffy', 'boring', 'plain'])
op.add_option("--scale", dest="scale", help="scale output to percentage", metavar="PERCENT", type="int")
op.add_option("--dir", dest="dir", help="direction of the diagram LR RL TD", metavar="DIRECTION")
op.add_option("-v", "--verbose", dest="v", help="print some debug info", action="store_true", default=False)
-->
view all matches for this distribution
view release on metacpan or search on metacpan
pod/examples.pod view on Meta::CPAN
=item Median, Quartiles, Percentiles
The median is the number where half the list is less and half is greater.
Similarly the 1st quartile is where 25% are less and the 3rd where 25% are
greater. Use a list slice to extract these 3 and a 97th percentile, by
multiplying the fractional percentage with the list length:
pl -A 0..200 'echo @ARGV[map $_*@ARGV, .25, .5, .75, .97]'
pl -A 0..200 'e @A[map $_*@A, .25, .5, .75, .97]'
> 50 100 150 194
If you'd rather have names associated, assign them to hash slice in
sort-numerically-at-end C<%N(UMBER)>, whose key order must match the
percentages:
pl -A 0..200 '@NUMBER{qw(lower median upper 97.)} = @ARGV[map $_*@ARGV, .25, .5, .75, .97]'
pl -A 0..200 '@N{qw(lower median upper 97.)} = @A[map $_*@A, .25, .5, .75, .97]'
> 50: lower
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/plackbench/Stats.pm view on Meta::CPAN
my $sd = sqrt( $differences_sum / $self->count() );
return $sd;
}
sub percentile {
my $self = shift;
my $percentile = shift;
my $n = int(( $percentile / 100 ) * $self->count() + 0.5) - 1;
$n = 0 if $n < 0;
return $self->[$n];
}
sub elapsed {
lib/App/plackbench/Stats.pm view on Meta::CPAN
=head2 standard_deviation
Returns the standard deviation. L<http://en.wikipedia.org/wiki/Standard_deviation>.
=head2 C<percentile($n)>
Returns the number at percentile C<$n>.
=head2 SEE ALSO
L<plackbench>
view all matches for this distribution
view release on metacpan or search on metacpan
pod/examples.pod view on Meta::CPAN
=item Median, Quartiles, Percentiles
The median is the number where half the list is less and half is greater.
Similarly the 1st quartile is where 25% are less and the 3rd where 25% are
greater. Use a list slice to extract these 3 and a 97th percentile, by
multiplying the fractional percentage with the list length:
pltest -A 0..200 'echo @ARGV[map $_*@ARGV, .25, .5, .75, .97]'
If you'd rather have names associated, assign them to hash slice in
sort-numerically-at-end C<%N(UMBER)>, whose key order must match the
percentages:
pltest -A 0..200 '@NUMBER{qw(lower median upper 97.)} = @ARGV[map $_*@ARGV, .25, .5, .75, .97]'
=item Triangular Number, Factorial and Averages
view all matches for this distribution
view release on metacpan or search on metacpan
- [doc] Fix results in Synopsis.
0.005 2018-04-25 (PERLANCAR)
- [doc] Add --calc-percentile example in Synopsis and more
documentation for options.
- [Fix] Allow extrapolating to get requested low percentiles.
- Forgot the standard Getopt::Long configuration (bundling +
no_ignore_case).
0.004 2018-04-25 (PERLANCAR)
- Add options: --action (new action calc-percentile),
--calc-percentile to calculate specific percentiles.
0.003 2018-04-22 (PERLANCAR)
- Add option: --rank.
view all matches for this distribution
view release on metacpan or search on metacpan
script/redis-traffic-stats view on Meta::CPAN
=item Total network traffic and average of bytes/sec
=item Total number of requests and average and peak of req/sec
=item Top commands of count, percentage, req/sec by count
=item Top commands of network traffic and byte/sec by amount of traffic
=item Top keys for each command show bytes, byte/sec, count, percentage, req/sec
=item Worst slow requests
=back
view all matches for this distribution