Group
Extension

Matches 35358

Eixo-Queue ( A/AL/ALAMBIKE/Eixo-Queue-0.5.7.tar.gz, ALAMBIKE, 2018; MetaCPAN )
Eixo-Queue/lib/Eixo/Queue.pod ( view source; MetaCPAN )
ntly this module has the following dependencies:


=over

=item *

Eixo::Base >= 1.200,

=item *

JSON >= 2.50,

=item *

Data::UUID >= 1,

=item *

MongoDB >= 0.708,

=back



=head1 CAVEATS


=head1
Eixo-Queue ( A/AL/ALAMBIKE/Eixo-Queue-0.5.7.tar.gz, ALAMBIKE, 2018; MetaCPAN )
Eixo-Queue/README.pod ( view source; MetaCPAN )
ntly this module has the following dependencies:


=over

=item *

Eixo::Base >= 1.200,

=item *

JSON >= 2.50,

=item *

Data::UUID >= 1,

=item *

MongoDB >= 0.708,

=back



=head1 CAVEATS


=head1
Catalyst-Controller-SimpleCAS ( V/VA/VANSTYN/Catalyst-Controller-SimpleCAS-1.002.tar.gz, VANSTYN, 2018; MetaCPAN )
Catalyst-Controller-SimpleCAS/lib/Catalyst/Controller/SimpleCAS/Role/TextTranscode.pm ( view source; MetaCPAN )
::SimpleCAS::CSS::Simple; #<-- hack/workaround CSS::Simple busted on CPAN
use String::Random;
use JSON;

use Catalyst::Controller::SimpleCAS::MimeUriResolver;

# FIXME - This is old and broken - file 
pe};
  if ($rct eq 'JSON' || $rct eq 'text/x-rapidapp-form-response') {
    $c->stash->{json}= { success => \1, content => $src_text };
    return $c->forward('View::RapidApp::JSON');
  }
  
  # find 
 = @_;
  die "No html content supplied" unless ($c->req->params->{html_enc});
  my $html = decode_json($c->req->params->{html_enc})->{data};

  # 'filename' param is optional and probably not supplied
App-Kritika ( V/VT/VTI/App-Kritika-0.05.tar.gz, VTI, 2018; MetaCPAN )
App-Kritika/lib/App/Kritika.pm ( view source; MetaCPAN )
package App::Kritika;

use strict;
use warnings;

our $VERSION = '0.05';

use JSON ();
use Cwd qw(abs_path);
use HTTP::Tiny;

sub new {
    my $class = shift;
    my (%params) = @_;

    my $self = {}
token},
                Accept        => 'application/json',
                'X-Version'   => $VERSION,
            },
            content => JSON->new->canonical(1)->encode(
                {
       
val { JSON::decode_json( $response->{content} )->{message} }
          || 'Unknown Error';

        die "Remote error: $response->{status} $response->{reason}: $message\n";
    }

    return JSON::dec
QBit-Application-Model-DB-clickhouse ( M/MA/MADSKILL/QBit-Application-Model-DB-clickhouse-0.007.tar.gz, MADSKILL, 2018; MetaCPAN )
QBit-Application-Model-DB-clickhouse/lib/QBit/Application/Model/DB/clickhouse.pm ( view source; MetaCPAN )
 }

    return $name;
}

sub _get_all {
    my ($self, $sql, @params) = @_;

    $sql .= ' FORMAT JSON';

    return $self->SUPER::_get_all($sql, @params);
}

TRUE;

__END__

=encoding utf8

=head1 Na
HPC-Runner-Command ( J/JI/JILLROWE/HPC-Runner-Command-3.2.14.tar.gz, JILLROWE, 2018; MetaCPAN )
HPC-Runner-Command/lib/HPC/Runner/Command/stats.pm ( view source; MetaCPAN )
nd::Logger::JSON';
with 'HPC::Runner::Command::stats::Logger::JSON::Summary';
with 'HPC::Runner::Command::stats::Logger::JSON::Long';
with 'HPC::Runner::Command::Logger::Loggers';

use JSON;
use File:
cmd_aliases => ['l'],
);

option 'json' => (
    is            => 'rw',
    isa           => 'Bool',
    default       => 0,
    documentation => 'Output data in json instead of a table. '
      . 'Th
=> 'Str',
    default       => 'JSON',
    documentation => 'hpcrunner.pl stats JSON/Sqlite/Elasticsearch .',
);

sub BUILD {
    my $self = shift;

    if ( $self->json && $self->summary ) {
        
HPC-Runner-Command ( J/JI/JILLROWE/HPC-Runner-Command-3.2.14.tar.gz, JILLROWE, 2018; MetaCPAN )
HPC-Runner-Command/lib/HPC/Runner/Command/execute_job/Base.pm ( view source; MetaCPAN )
'HPC::Runner::Command::execute_job::Utils::Log';
with 'HPC::Runner::Command::execute_job::Logger::JSON';

use Sys::Hostname;
use Archive::Tar;

=head2 Command Line Options

=cut


=head2 Internal Attr
Net-Twitter ( M/MM/MMIMS/Net-Twitter-4.01043.tar.gz, MMIMS, 2018; MetaCPAN )
Net-Twitter/lib/Net/Twitter/WrappedResult.pm ( view source; MetaCPAN )
:Twitter::WrappedResult;
$Net::Twitter::WrappedResult::VERSION = '4.01043';
use Moose;

# decoded JSON Twitter API response
has result => (
    is       => 'ro',
    required => 1,
);

has http_respon
_limit_remaining;

=head1 DESCRIPTION

Often, the result of a Twitter API call, inflated from the JSON body of the
HTTP response does not contain all the information you need. Twitter includes
meta da
Twitter result and HTTP response.

=item result

Returns the Twitter API result, i.e., the decode JSON response body.

=item http_response

Returns the L<HTTP::Response> object for the API call.

=ite
Net-Twitter ( M/MM/MMIMS/Net-Twitter-4.01043.tar.gz, MMIMS, 2018; MetaCPAN )
Net-Twitter/lib/Net/Twitter/Error.pm ( view source; MetaCPAN )
 an empty string

=item twitter_error_code

Returns the first numeric twitter error code from the JSON response body, if
there is one. Otherwise, it returns 0 so the result should always be safe use
i
Device-TPLink ( V/VE/VERLIN/Device-TPLink-0.02.tar.gz, VERLIN, 2018; MetaCPAN )
Device-TPLink/lib/Device/TPLink/Kasa.pm ( view source; MetaCPAN )
ce::TPLink::Kasa;

use 5.008003;
use Moose;
use Carp;
use JSON; # The Kasa API is JSON based
use LWP::JSON::Tiny; # Simplify working with JSON requests
use UUID::Generator::PurePerl; # Used to generat
 = {
     method => 'login',
     params => $credentials
  };

  my $user_agent = LWP::UserAgent::JSON->new;
  # Uncomment the next two lines if you need to debug...
  #$user_agent->add_handler("reque
 = HTTP::Request::JSON->new(POST => "https://wap.tplinkcloud.com");
  $request->header('Accept' => '*/*'); # Really, really annoying, but required by Kasa service...
  $request->json_content( $request
Net-Twitter ( M/MM/MMIMS/Net-Twitter-4.01043.tar.gz, MMIMS, 2018; MetaCPAN )
Net-Twitter/lib/Net/Twitter/Core.pm ( view source; MetaCPAN )
 Twitter API

use 5.008001;
use Moose;
use Carp::Clan qw/^(?:Net::Twitter|Moose|Class::MOP)/;
use JSON::MaybeXS;
use URI::Escape;
use HTTP::Request::Common;
use Net::Twitter::Error;
use Scalar::Util q
 role composition from bitching ??
has _json_handler   => (
    is      => 'rw',
    default => sub { JSON->new->allow_nonref->utf8 },
    handles => { from_json => 'decode' },
);

sub _legacy_synthet
l.git/commit/eaf7a4d2
    return { map { utf8::upgrade($_) unless ref($_); $_ } %$args };
}

sub _json_request {
    my ($self, $http_method, $uri, $args, $authenticate, $dt_parser, $content_type ) = 
Device-TPLink ( V/VE/VERLIN/Device-TPLink-0.02.tar.gz, VERLIN, 2018; MetaCPAN )
Device-TPLink/lib/Device/TPLink/SmartHome.pm ( view source; MetaCPAN )
package Device::TPLink::SmartHome;

use 5.008003;
use Moose;
use Carp;
use JSON;

=head1 NAME

Device::TPLink::SmartHome - Base class for TPLink Smart Home devices

=head1 VERSION

Version 0.02

=cut
 {
  my $requestData = { system => { reboot => { delay => 1 }}};
  return $requestData;
}

sub TO_JSON { return { %{ shift() } }; }



=head1 AUTHOR

Verlin Henderson, C<< <verlin at gmail.com> >>

=h
HPC-Runner-Command ( J/JI/JILLROWE/HPC-Runner-Command-3.2.14.tar.gz, JILLROWE, 2018; MetaCPAN )
HPC-Runner-Command/lib/HPC/Runner/Command/Utils/Log.pm ( view source; MetaCPAN )
,
);

=head3 process_table

We also want to write all cmds and exit codes to a table

#TODO add a json format also

=cut

option 'process_table' => (
    isa     => Path,
    is      => 'rw',
    lazy
b {
        my $self = shift;
        $self->process_table->touchpath;
    },
);

=head3 metastr

JSON string passed from HPC::Runner::App::Scheduler. It describes the total number of jobs, processes,
Net-Twitter ( M/MM/MMIMS/Net-Twitter-4.01043.tar.gz, MMIMS, 2018; MetaCPAN )
Net-Twitter/lib/Net/Twitter.pm ( view source; MetaCPAN )
itter::VERSION = '4.01043';
use Moose;
use Carp::Clan qw/^(?:Net::Twitter|Moose|Class::MOP)/;
use JSON::MaybeXS;
use Net::Twitter::Core;
use Digest::SHA qw/sha1_hex/;
use Class::Load ();

use namespac
ref $t[0] eq 'HASH' ) {
                my $params = shift @t;
                my $sig = sha1_hex(JSON->new->utf8->encode($params));
                my $sn  = $serial_for_params{$sig} ||= ++$serial_nu
HPC-Runner-Command ( J/JI/JILLROWE/HPC-Runner-Command-3.2.14.tar.gz, JILLROWE, 2018; MetaCPAN )
HPC-Runner-Command/lib/HPC/Runner/Command/single_node.pm ( view source; MetaCPAN )
;
use namespace::autoclean;

extends 'HPC::Runner::Command';

with 'HPC::Runner::Command::Logger::JSON';
with 'HPC::Runner::Command::Utils::Base';
with 'HPC::Runner::Command::Utils::Log';
# with 'HPC:
HPC-Runner-Command ( J/JI/JILLROWE/HPC-Runner-Command-3.2.14.tar.gz, JILLROWE, 2018; MetaCPAN )
HPC-Runner-Command/lib/HPC/Runner/Command/execute_job/Utils/Log.pm ( view source; MetaCPAN )
  $self->log_table( $cmdpid, $exitcode, $format->format_duration($duration) );

    $self->update_json_task;

    return $exitcode;
}

=head3 name_log

Default is dt, jobname, counter

=cut

#TODO mov
h->autoflush();

    # Start Command Log
    $self->start_command_log($cmdpid);
    $self->create_json_task($cmdpid);

    ##IF we have an exitcode the job failed with a command not found
    return (
HPC-Runner-Command ( J/JI/JILLROWE/HPC-Runner-Command-3.2.14.tar.gz, JILLROWE, 2018; MetaCPAN )
HPC-Runner-Command/lib/HPC/Runner/Command/submit_jobs/Utils/Scheduler/Submit.pm ( view source; MetaCPAN )
x_start = $self->gen_batch_index_str;

    my $log = "";
    if ( $self->no_log_json ) {
        $log = "\t--no_log_json \\\n";
    }

    $command .=
        "\t--infile "
      . $self->cmdfile . " 
HPC-Runner-Command ( J/JI/JILLROWE/HPC-Runner-Command-3.2.14.tar.gz, JILLROWE, 2018; MetaCPAN )
HPC-Runner-Command/lib/HPC/Runner/Command/submit_jobs/Utils/Scheduler/JobStats.pm ( view source; MetaCPAN )
 HPC::Runner::Command::submit_jobs::Utils::Scheduler::JobStats;

#use Moose::Role;
use Moose;
use JSON;
use List::MoreUtils 0.428 qw(firstidx);

=head1 HPC::Runner::Command::submit_jobs::Utils::Schedu
  my $json      = JSON->new->allow_nonref;
    my $json_text = $json->encode($batch);

    # $batch->{meta_str} = $json_text;
    # delete $batch->{meta_str};
    $json_text = "--metastr \'$json_text\
'";
    return $json_text;
}

=head3 collect_stats

Collect job stats

=cut

sub collect_stats {
    my $self          = shift;
    my $batch_counter = shift;
    my $cmd_counter   = shift;
    my $cu
Device-TPLink ( V/VE/VERLIN/Device-TPLink-0.02.tar.gz, VERLIN, 2018; MetaCPAN )
Device-TPLink/lib/Device/TPLink/SmartHome/Kasa.pm ( view source; MetaCPAN )
package Device::TPLink::SmartHome::Kasa;

use 5.008003;
use Moose;
use LWP::JSON::Tiny;

extends 'Device::TPLink::SmartHome';

has token => (
  is => 'rw',
  isa => 'Str',
);

=head1 NAME

Device::TPL
INES/METHODS

=head2 passthrough

Passes an arbitrary object to the device after converting it to JSON and wrapping it in a Kasa request. Used internally to package commands and send them to the devic
 = @_;

  my $json = JSON->new->allow_nonref;
  $json = $json->pretty(1);

  my $user_agent = LWP::UserAgent::JSON->new;
  my $params = { deviceId => $self->deviceId, requestData => $json->encode($req
Net-Twitter ( M/MM/MMIMS/Net-Twitter-4.01043.tar.gz, MMIMS, 2018; MetaCPAN )
Net-Twitter/lib/Net/Twitter/Role/WrapResult.pm ( view source; MetaCPAN )
>rate_limit_remaining;

=head1 DESCRIPTION

Normally, Net::Twitter API methods return the decoded JSON body from the HTTP response. Some useful information, notably rate limit information, is included
turn a L<Net::Twitter::WrappedResult> object that includes both the HTTP response and the decoded JSON response body. See L<Net::Twitter::WrappedResult> for details.

=head1 AUTHOR

Marc Mims <marc@qu

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