:*.md=38;5;184:
*.mkd=38;5;184:*.nfo=38;5;184:*.pod=38;5;184:*.tex=38;5;184:*.textile=38;5;184:
*.json=38;5;178:*.msg=38;5;178:*.pgn=38;5;178:*.rss=38;5;178:*.xml=38;5;178:
*.yml=38;5;178:*.RData=38;5
package CPAN::Perl::Releases::MetaCPAN;
use strict;
use warnings;
our $VERSION = '0.009';
use JSON::PP ();
use HTTP::Tinyish;
use Exporter 'import';
our @EXPORT_OK = qw(perl_tarballs perl_versions p
, agent => __PACKAGE__ . "/$VERSION");
my $json = JSON::PP->new->canonical(1);
bless { uri => $uri, http => $http, cache => $cache, json => $json }, $class;
}
sub get {
my $self = shift;
{ term => { distribution => "perl" } },
{ term => { authorized => JSON::PP::true } },
],
},
},
size => 1000,
uageServer::DebuggerInterface ;
#use DB;
our @ISA = qw(DB);
use strict ;
use IO::Socket ;
use JSON ;
use PadWalker ;
use Scalar::Util qw{blessed reftype looks_like_number};
use Hash::SafeKeys;
#us
ax_display = 5 ;
our $debug = 0 ;
our $session = $ENV{PLSDI_SESSION} || 1 ;
our $socket ;
our $json = JSON -> new -> utf8(1) -> ascii(1) ;
our @evalresult ;
our %postponed_breakpoints ;
our $breakpoin
;
my $outdata = $json -> encode ($result) ;
use bytes ;
my $len = length($outdata) ;
my $wrdata = "Content-Length: $len\r\nContent-Type: application/vscode-jsonrpc; charset=utf-8\r\n
package CrowdSec::Client;
use strict;
use Date::Parse;
use HTTP::Request::Common;
use JSON;
use LWP::UserAgent;
use Moo;
use POSIX "strftime";
our $VERSION = '0.04';
# Default alert template
our %D
=> 'Banned by CrowdSec::Client',
scenario => 'Banned by CrowdSec::Client',
simulated => JSON::false,
type => 'ban',
);
# Watcher accessors
has machineId => ( is => 'ro' );
has pass
1/watchers/login',
Accept => 'application/json',
Content_Type => 'application/json',
Content => JSON::to_json(
{
machine_id => $self->mac
-> {thread_ref}) || 1,
preserveFocusHint => JSON::false (),
allThreadsStopped => JSON::true (),
}) ;
}
if (!$initia
kpoint =>
{
verified => $bp -> [2]?JSON::true ():JSON::false (),
message => $bp -> [3],
mlscript_version = '0.1.34';
use Alien::YAMLScript;
use FFI::Platypus;
use FFI::CheckLib ();
use JSON ();
sub new {
bless {}, shift;
}
unless ( Alien::YAMLScript->exact_version($libyamlscript_v
$ffi->attach(
[ load_ys_to_json => 'load' ] => [qw( sint64 string )] => 'string' => sub {
my ( $xsub, $self, $ys ) = @_;
my $resp = JSON::decode_json( $xsub->( $thread, $ys ) );
ins([ 'NextRelease', ]);
$self->add_bundle('@Git');
$self->add_plugins(
'MetaJSON',
'PodWeaver',
'PerlTidy',
'PruneFiles',
'Minimum
,
'Test::Pod::LinkCheck',
'RunExtraTests',
'Test::CPAN::Meta::JSON',
['Test::MinimumVersion' => {
'max_target_perl' => $target_perl,
#
use strict;
use warnings;
use Getopt::Long::Descriptive;
use Path::Tiny qw(path);
use JSON qw(encode_json);
use YAML qw(Dump);
use Data::Dump qw(dump);
BEGIN {
use lib "lib";
use lib "..
.pl> captures the C<STDOUT>, C<STDERR>, the C<EXIT CODE> from a
sub process and parses it into I<JSON>, I<YAML> or I<Plain Text> formats.
=head1 OVERVIEW
run_subprocess.pl [-bcdfhnrtx] [long op
ils': Process terminating ...
:====END:====
=item JSON Format
$ bin/run_subprocess.pl -n "test-script" -c "t/test_script.pl 2 0" -f json | jq '.'
{
"exit_code": 0,
"error_co
$self->{level}--;
return;
}
sub is_literal_number {
my $self = shift;
# Stolen from JSON::Tiny
return B::svref_2object(\$_[0])->FLAGS & (B::SVp_IOK | B::SVp_NOK)
&& 0 + $
nt++ ;
return $self -> refcnt ($refcnt) - 1 ; # make sure there is no string value, so encode json encodes it as number
}
# -------------------------------------------------------------------
supportsConfigurationDoneRequest => JSON::true(),
# The debug adapter supports function breakpoints.
supportsFunctionBreakpoints => JSON::false(),
# The debug adapter s
lBreakpoints => JSON::true(),
# The debug adapter supports breakpoints that break execution after a specified number of hits.
supportsHitConditionalBreakpoints => JSON::false(),
'0.16'; ## VERSION
=head1 NAME
Log::Any::Adapter::DERIV - standardised logging to STDERR and JSON file
=head1 SYNOPSIS
use Mojo::WebSocketProxy::RequestLogger;
my $logger = Mojo::WebSocketProx
$args = $req_storage->{args};
if (ref $args ne 'HASH') {
# for invalid call, eg: not json
$req_storage->{args} = {};
$result = $c->wsp_error('error', 'BadRequest', 'The ap
END__
=head1 NAME
Mojo::WebSocketProxy::Parser
=head1 DESCRIPTION
This module using for parse JSON websocket messages.
=head1 METHODS
=head2 parse_req
=head1 SEE ALSO
L<Mojolicious::Plugin::We
qw($log);
# Other backend types may be available; we default to 'jsonrpc' in the code below
use Mojo::WebSocketProxy::Backend::JSONRPC;
our $VERSION = '0.16'; ## VERSION
sub register {
my (
my %args = %{$backend_configs->{$name}};
my $type = delete($args{type}) // 'jsonrpc';
my $key = $default_backend eq $name ? 'default' : $name;
$dispatche
to add a plain JSON::RPC backend
my $jsonrpc_backend_key = exists $dispatcher_config->{backends}->{default} ? 'http' : 'default';
$dispatcher_config->add_backend(
$jsonrpc_backend_key
e Wx;
package Kephra::App::Editor::SyntaxMode::JSON;
sub set {
my ($self) = @_;
$self->StyleClearAll;
$self->SetLexer( 120 ); # &Wx::wxSTC_LEX_JSON
$self->SetKeyWords(0, '');
}
1;
jo::WebSocketProxy::Parser;
use Mojo::WebSocketProxy::Config;
use Class::Method::Modifiers;
use JSON::MaybeUTF8 qw(:v1);
use Log::Any qw($log);
use Unicode::Normalize ();
use Future::Mo
_response_size};
if ($max_response_size && length(encode_json_utf8($api_response)) > $max_response_size) {
$api_response->{json} = $c->wsp_error('error', 'ResponseTooLarge', 'Response too
nd_api_response = $config->{before_send_api_response};
$_->($c, $req_storage, $api_response->{json})
for grep { $_ } (ref $before_send_api_response eq 'ARRAY' ? @{$before_send_api_response
:WebSocketProxy::Backend::JSONRPC;
use strict;
use warnings;
use parent qw(Mojo::WebSocketProxy::Backend);
use feature qw(state);
no indirect;
use curry;
use MojoX::JSON::RPC::Client;
our $VERS
ister_type('jsonrpc');
sub url { return shift->{url} }
my $request_number = 0;
=head2 call_rpc
Description: Makes a remote call to a process returning the result to the client in JSON format.
B
s undef.
=cut
sub call_rpc {
my ($self, $c, $req_storage) = @_;
state $client = MojoX::JSON::RPC::Client->new;
my $url = $req_storage->{url} // $self->url;
die 'No url found' unles
Abstract base class for RPC dispatch backends. See
L<Mojo::WebSocketProxy::Backend::JSONRPC> for the original JSON::RPC backend.
=cut
=head1 CLASS METHODS
=cut
=head2 register_type
$class->r
gs;
our $VERSION = '0.16';
1;
__END__
=head1 NAME
Mojo::WebSocketProxy - WebSocket proxy for JSON-RPC 2.0 server
=head1 SYNOPSIS
# lib/your-application.pm
use parent 'Mojolicious';
f->plugin(
'web_socket_proxy' => {
actions => [
['json_key', {some_param => 'some_value'}]
],
base_path => '/api',
eb_socket_proxy' => {
actions => [
[
'json_key',
{
instead_of_forward => sub {
Wx::Menu->new();
#my @mode_label = (qw/no Bash C\/++ JSON Markdown Perl Python Ruby Rust YAML/);
#my @modes = (qw/no bash cpp json markdown perl python ruby rust yaml/);
#$doc_mode_me
;
} else {
# TODO: We probably can't do much about RAW
# format, yet we could parse at least JSON
croak "Unknown content type: $content_type";
}
}
=head1 SEE ALSO
L<WWW::Splunk>, L<sc>
=hea