Group
Extension

Matches 35358

Time-Verbal ( G/GU/GUGOD/Time-Verbal-1.1.1.tar.gz, GUGOD, 2021; MetaCPAN )
Time-Verbal/dev-bin/import-rails-i18n.pl ( view source; MetaCPAN )
ort translations from rails i18n project

use strict;
use warnings;
use utf8;
use YAML::Syck;
use JSON::PP;
use File::Find;
use FindBin;
use Cwd;

sub convert_one_locale {
    my ($code, $input_file, 
);

    for my $k (keys %lexicon) {
        $lexicon{$k} =~ s/%\{count\}/%1/g;
    }

    my $j = JSON::PP->new;
    open(my $fh, ">", $output_file) or die "$output_file: $!";
    print $fh $j->encode
 {
    /([^\/]+)\.yml/ or return;

    my $code = $1;
    my $output_file =  "$out_i18n_dir/$code.json";

    eval {
        convert_one_locale($code, $File::Find::name, $output_file);
        1;
    
CLI-Meta-YtDlp ( P/PE/PERLANCAR/CLI-Meta-YtDlp-0.001.tar.gz, PERLANCAR, 2021; MetaCPAN )
CLI-Meta-YtDlp/lib/CLI/Meta/YtDlp.pm ( view source; MetaCPAN )
   'write-info-json!' => undef,
        'write-playlist-metafiles!' => undef,
        'clean-infojson!' => undef,
        'write-comments|get-comments!' => undef,
        'load-info-json=s' => {comple
ip-download|no-download' => undef,
        'print|O=s' => undef,
        'dump-json|j' => undef,
        'dump-single-json|J' => undef,
        'force-write-archive|force-download-archive' => undef,
 
Benchmark-Perl-Formance ( S/SC/SCHWIGON/perl-formance/Benchmark-Perl-Formance-0.55.tar.gz, SCHWIGON, 2021; MetaCPAN )
Benchmark-Perl-Formance/lib/Benchmark/Perl/Formance.pm ( view source; MetaCPAN )
anything; # -cccc
        $outstyle          = 'json' if $benchmarkanything and $outstyle !~ /^(json|yaml|yamlish)$/;
        $outstyle          = 'json' if $benchmarkanything_report;

        # fill 
       return YAML::Dump($RESULTS);
}

sub print_outstyle_json
{
        my ($self, $RESULTS) = @_;

        require JSON;
        return JSON->new->allow_nonref->pretty->encode( $RESULTS );
}

sub pr
>{options}{outstyle};
        $outstyle = "summary" unless $outstyle =~ qr/^(summary|yaml|yamlish|json)$/;
        my $sub = "print_outstyle_$outstyle";

        my $output = $self->$sub($RESULTS);

 
Module-Features ( P/PE/PERLANCAR/Module-Features-0.1.7.tar.gz, PERLANCAR, 2021; MetaCPAN )
Module-Features/lib/Module/Features.pm ( view source; MetaCPAN )
 feature name">.

=head2 feature set name

A string following regular Perl namespace name, e.g. C<JSON::Encoder> or
C<TextTable>.

=head2 feature set specification

A collection of L</"feature name">s
Mailru-Cloud ( V/VR/VRAG/Mailru-Cloud-0.10.tar.gz, VRAG, 2021; MetaCPAN )
Mailru-Cloud/lib/Mailru/Cloud.pm ( view source; MetaCPAN )
:std :utf8);
use Carp qw/croak carp/;
use URI::Escape;
use File::Basename;
use HTTP::Request;
use JSON::XS;
use Encode;
use IO::Socket::SSL;
use base qw/Mailru::Cloud::Auth/;

our $VERSION = '0.10';


    $code = $res->code;
    if ($code eq '200') {
        my $json = JSON::XS::decode_json($res->content);
        my $new_fname = $json->{body};
        return $new_fname;
    }

    croak "Cant upl
$res->code;
    if ($res->is_success) {
        my $json_parsed = decode_json($res->content);
        my @list_files;

        for my $item (@{$json_parsed->{body}->{list}}) {
            my $h = {
  
Finance-Bank-ID-Mandiri ( P/PE/PERLANCAR/Finance-Bank-ID-Mandiri-0.383.tar.gz, PERLANCAR, 2021; MetaCPAN )
Finance-Bank-ID-Mandiri/lib/Finance/Bank/ID/Mandiri.pm ( view source; MetaCPAN )
teTime->dmy . ' ' .
DateTime->hms). This is to make it easy to pass the data structure into YAML,
JSON, MySQL, etc. Nevertheless, internally DateTime objects are still used.

=back

Additional notes:
FB3-Convert ( G/GR/GRIBUSER/FB3-Convert-0.48.tar.gz, GRIBUSER, 2021; MetaCPAN )
FB3-Convert/bin/fb3_to_fb2.pl ( view source; MetaCPAN )
mage::LibRSVG;
use File::Temp qw/tempfile/;
use Encode;
use Text::Unidecode;
use URI::Escape;
use JSON::XS;
use utf8;
use open OUT => ':utf8';

use constant {
  RELATION_TYPE_FB3_BOOK =>
    'http://w
ned") unless defined $OPT{'fb2'};
$OPT{'genremap'} //= dist_file("FB3-Convert", "fb3_to_fb2_genre.json");

#CHECK --fb2,--fb3 
my $FileName = $OPT{'fb3'};
$FileName =~ s/.*?([^\/]+)$/$1/;
$FileName =~
$fh>;
  };
  my $GenreMap = eval {JSON::XS->new->utf8->decode($GenreMapString)};
  if ($@) {
    die "Seems like genres map file '$GenreMapPath' contains invalid JSON. Error occured '$@'";
  }
  die "
FB3-Convert ( G/GR/GRIBUSER/FB3-Convert-0.48.tar.gz, GRIBUSER, 2021; MetaCPAN )
FB3-Convert/lib/FB3/Euristica.pm ( view source; MetaCPAN )
          {
              "DEBUG": '[INDEX:' + currIndex + ']' + currNode.outerHTML + '[DUMP:' + JSON.stringify(Calc) + ']',
              "BALLS": Calc['BALLS'],
              "CHANGED": Changed
FB3-Convert ( G/GR/GRIBUSER/FB3-Convert-0.48.tar.gz, GRIBUSER, 2021; MetaCPAN )
FB3-Convert/bin/fb3_2_json.pl ( view source; MetaCPAN )
e OPC::Node;
use FB3;
use utf8;
use Encode;
use open qw(:std :utf8);
use Image::Info;
use JSON::Path;
use JSON::PP;
use File::Copy;
use File::Basename;
use MIME::Base64;
use TeX::Hyphen;

use Getopt::
nary = undef;
my $Hyp = undef;

GetOptions ('in|from|src|fb3=s' => \$FB3,
            'out|to|dst|json=s' => \$Out,
            'lang=s'            => \$Lang,
            'art|art-id=s'      => \$ArtI
   unless $FB3;
print join('', <DATA>) and die "ERROR: destination directory not specified, use --json parameter\n" unless $Out;

die "\nERROR: source directory `$FB3' not found\n"      unless -d $FB3
Mailru-Cloud ( V/VR/VRAG/Mailru-Cloud-0.10.tar.gz, VRAG, 2021; MetaCPAN )
Mailru-Cloud/lib/Mailru/Cloud/Auth.pm ( view source; MetaCPAN )
rict;
use warnings;
use utf8;
use open qw(:std :utf8);
use LWP::UserAgent;
use HTTP::Request;
use JSON::XS;
use URI::Escape;
use Carp qw/carp croak/;

our $VERSION    = '0.10';

sub new {
    my ($cla
 login form: " . $res->code;
    }

    my $json = decode_json($res->decoded_content);
    if ($json->{status} eq 'fail') {
        croak "Fail login: $json->{code}";
    }

    $self->__getToken() or
{
            croak "Can't get status about login";
        }
        my $json_res = decode_json($res->content);
        $json_res->{status} eq 'ok' and return 1;
        $self->login() and return 1;
lib-filter ( P/PE/PERLANCAR/lib-filter-0.281.tar.gz, PERLANCAR, 2021; MetaCPAN )
lib-filter/lib/lib/filter.pm ( view source; MetaCPAN )
n still run without a module (e.g. an
optional prereq):

 % perl -Mlib::filter=disallow,'YAML::XS;JSON::XS' yourscript.pl

 # idem, but the list of disallowed modules are retrieved from a file
 % perl
de> is another module which you can you for exactly this purpose:

 % perl -MDevel::Hide=YAML::XS,JSON::XS yourscript.pl

To no-op instead of disallowing, see L<lib::noop>.

=item * Do custom filterin
Plasp ( S/SL/SLEUNG/Plasp-1.09.tar.gz, SLEUNG, 2021; MetaCPAN )
Plasp/lib/Plasp.pm ( view source; MetaCPAN )
$mm->addFileExts( '\.js$',    'application/javascript' );
        $mm->addFileExts( '\.json$',  'application/json' );
        $mm->addFileExts( '\.gif$',   'image/gif' );
        $mm->addFileExts( '\.
JMAP-Tester-WebSocket ( W/WO/WOLFSAGE/JMAP-Tester-WebSocket-0.004.tar.gz, WOLFSAGE, 2021; MetaCPAN )
JMAP-Tester-WebSocket/lib/JMAP/Tester/WebSocket.pm ( view source; MetaCPAN )
nds qw(JMAP::Tester);

has +json_codec => (
  is => 'bare',
  handles => {
    json_encode => 'encode',
    json_decode => 'decode',
  },
  default => sub {
    require JSON;

    # Not ->utf8-> or we
  # Maybe to be fixed in Protocol::WebSocket? Or IO::Async is doing this
    # for us?
    return JSON->new->convert_blessed;
  },
);


has 'ws_api_uri' => (
  is        => 'rw',
  required  => 1,
);
est->{'@type'} = 'Request';

  my $json = $self->json_encode($request);

  my $client = $self->_cached_client || $self->connect_ws;

  $client->send_text_frame($json);

  my $res = $self->loop->run;

Minion-Backend-Redis ( D/DF/DFUG/Minion-Backend-Redis-0.003.tar.gz, DFUG, 2021; MetaCPAN )
Minion-Backend-Redis/lib/Minion/Backend/Redis.pm ( view source; MetaCPAN )
ak';
use Digest::SHA 'sha256_base64';
use List::Util 'any';
use Mojo::IOLoop;
use Mojo::JSON qw(from_json to_json);
use Mojo::Redis;
use Mojo::Util 'encode';
use Sort::Versions 'versioncmp';
use Sys::
lf, $command, $args, $ids ) =
      ( shift, shift, shift || [], shift || [] );
    my $item = to_json( [ $command, @$args ] );
    my %worker_ids =
      map { ( $_ => 1 ) } @{ $self->redis->db->smem
redis->db->incr('minion.last_job_id');

    my %notes = %{ $options->{notes} || {} };
    $_ = to_json($_) for values %notes;
    my $parents  = $options->{parents} || [];
    my $queue    = $options-
Net-Google-Spreadsheets-V4 ( H/HI/HIROSE/Net-Google-Spreadsheets-V4-0.003.tar.gz, HIROSE, 2021; MetaCPAN )
Net-Google-Spreadsheets-V4/lib/Net/Google/Spreadsheets/V4.pm ( view source; MetaCPAN )
se Net::Google::DataAPI::Auth::OAuth2;
use Net::OAuth2::AccessToken;
use Text::CSV;
use Furl;
use JSON;
use Sub::Retry;

sub new {
    state $rule = Data::Validator->new(
        client_id      => { i

    my $headers = [];
    if ($content) {
        push @$headers, 'Content-Type' => 'application/json';
    }
    if ($opt->{headers}) {
        push @$headers, @{ $opt->{headers} };
    }

    my $r
      url     => $url,
            headers => $headers,
            $content ? (content => encode_json($content)) : (),
        );
    }, sub {
        my $res = shift;
        if (!$res) {
          
Catmandu-AlephX ( N/NJ/NJFRANCK/Catmandu-AlephX-1.073.tar.gz, NJFRANCK, 2021; MetaCPAN )
Catmandu-AlephX/lib/Catmandu/AlephX.pm ( view source; MetaCPAN )
21',library=>'rug01');
if($illgetdoc->is_success){

  if($illgetdoc->record){
    say "data: ".to_json($illgetdoc->record,{ pretty => 1 });
  }
  else{
    say "nothing found";
  }

}else{
  say STDER
Test2-MojoX ( E/EL/ELCAMLOST/Test2-MojoX-0.07.tar.gz, ELCAMLOST, 2021; MetaCPAN )
Test2-MojoX/lib/Test2/MojoX.pm ( view source; MetaCPAN )
lling you, dude.
##  Fry: Santa Claus is gunning you down!"
use Mojo::IOLoop;
use Mojo::JSON 'j';
use Mojo::JSON::Pointer;
use Mojo::Server;
use Mojo::UserAgent;
use Mojo::Util qw(decode encode monkey


sub json_has {
  my ($self, $p, $desc) = @_;
  my $ctx = context;
  $desc = _desc($desc, qq{has value for JSON Pointer "$p"});
  my $out
    = ok(!!Mojo::JSON::Pointer->new($self->tx->res->json)->co
sub json_hasnt {
  my ($self, $p, $desc) = @_;
  my $ctx = context;
  $desc = _desc($desc, qq{has no value for JSON Pointer "$p"});
  my $out
    = ok(!Mojo::JSON::Pointer->new($self->tx->res->json)->
Plasp ( S/SL/SLEUNG/Plasp-1.09.tar.gz, SLEUNG, 2021; MetaCPAN )
Plasp/lib/Plasp/Response.pm ( view source; MetaCPAN )
  $body = Encode::encode( $charset, $body );
    } elsif ( $self->ContentType =~ /text|javascript|json/ ) {
        $body = Encode::encode( 'UTF-8', $body );
    }

    if ( $self->_content_writer ) {
App-git-ship ( J/JH/JHTHORSEN/App-git-ship-0.37.tar.gz, JHTHORSEN, 2021; MetaCPAN )
App-git-ship/lib/App/git/ship/perl.pm ( view source; MetaCPAN )
(Makefile Makefile.old MANIFEST MYMETA.json MYMETA.yml);

  unlink 'Makefile' and $self->_make('clean') if -e 'Makefile';

  push @files, qw(Changes.bak META.json META.yml) if $all;
  push @files, $se
clean

Used to clean out build files:

Makefile, Makefile.old, MANIFEST, MYMETA.json, MYMETA.yml, Changes.bak, META.json
and META.yml.

=head2 ship

  $ git ship

Used to ship a Perl distribution by r
JMAP-Tester-WebSocket ( W/WO/WOLFSAGE/JMAP-Tester-WebSocket-0.004.tar.gz, WOLFSAGE, 2021; MetaCPAN )
JMAP-Tester-WebSocket/lib/JMAP/Tester/WebSocket/Response.pm ( view source; MetaCPAN )
dumper {
  state $default = do {
    require JSON::MaybeXS;
    state $json = JSON::MaybeXS->new->utf8->convert_blessed->pretty->canonical;
    sub { $json->encode($_[0]); }
  };

  return $default;
}

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.