Group
Extension

Matches 35358

AI-Embedding ( B/BO/BOD/AI-Embedding-1.11.tar.gz, BOD, 2023; MetaCPAN )
AI-Embedding/lib/AI/Embedding.pm ( view source; MetaCPAN )
package AI::Embedding;

use strict;
use warnings;

use HTTP::Tiny;
use JSON::PP;
use Data::CosineSimilarity;

our $VERSION = '1.11';
$VERSION = eval $VERSION;

my $http = HTTP::Tiny->new;
         'Authorization' => 'Bearer ' . $self->{'key'},
         'Content-type'  => 'application/json'
     };
 }

 # Fetch Embedding response
 sub _get_embedding {
     my ($self, $text) = @_;
 'Bearer ' . $self->{'key'},
             'Content-type'  => 'application/json'
         },
         content => encode_json {
             input  => $text,
             model  => $self->{'model'}
Story-Interact-WWW ( T/TO/TOBYINK/Story-Interact-WWW-0.002000.tar.gz, TOBYINK, 2023; MetaCPAN )
Story-Interact-WWW/lib/Story/Interact/WWW.pm ( view source; MetaCPAN )
=s.user_id WHERE s.token=?' );
		$sth->execute( ref($c) ? ( $c->req->param('session') // $c->req->json->{session} ) : $c );
		if ( my $row = $sth->fetchrow_hashref ) {
			my $sth2 = $db->prepare( 'UPD
e/init' )->to(
			cb => sub ( $c ) {
				my $blank = Story::Interact::State->new;
				$c->render( json => { state => $blank->dump } );
			},
		)->name( 'api-state-init' );
	}
	
	# API endpoint to read
 = $story_config->{data_munge}  // sub {};
				my $state = Story::Interact::State->load( $c->req->json( '/state' ) );
				$munge_state->( $c, $state );
				
				if ( $page_id =~ /\A(.+)\?(.+)\z/ms ) {
Kephra ( L/LI/LICHTKIND/Kephra-0.406.tar.gz, LICHTKIND, 2023; MetaCPAN )
Kephra/lib/Kephra/App/Editor/SyntaxMode.pm ( view source; MetaCPAN )
ode::Bash::set($self);
    } elsif ($mode eq 'json'){
        require Kephra::App::Editor::SyntaxMode::JSON;
        Kephra::App::Editor::SyntaxMode::JSON::set($self);
    } elsif ($mode eq 'markdown'
Task-BeLike-PERLANCAR-Used ( P/PE/PERLANCAR/Task-BeLike-PERLANCAR-Used-20231201.1.tar.gz, PERLANCAR, 2023; MetaCPAN )
Task-BeLike-PERLANCAR-Used/lib/Task/BeLike/PERLANCAR/Used.pm ( view source; MetaCPAN )
nplace> 0

=head3 L<App::instopt> 0

=head3 L<App::isbn> 0

=head3 L<App::jpath> 0

=head3 L<App::jsonsel> 0

=head3 L<App::lcpan> 1.066

=head3 L<App::lcpan::Bootstrap> 0

=head3 L<App::lcpan::Call> 
:Scenarios::IPManipulation> 0

=head3 L<Bencher::Scenarios::ISBN> 0

=head3 L<Bencher::Scenarios::JSONDecodeRegexp> 0

=head3 L<Bencher::Scenarios::LanguageExpr> 0

=head3 L<Bencher::Scenarios::Levens
::ForJSON> 0

=head3 L<Data::Clean::ForJSON::Pregen> 0

=head3 L<Data::Clean::FromJSON::Pregen> 0

=head3 L<Data::Clean::JSON> 0

=head3 L<Data::Clean::ToStringyNumber> 0

=head3 L<Data::CleanJSON> 0
File-Unpack2 ( K/KR/KRAIH/File-Unpack2-1.0.tar.gz, KRAIH, 2023; MetaCPAN )
File-Unpack2/Unpack2.pm ( view source; MetaCPAN )
use File::Temp ();		# tempdir() in _run_mime_helper.
use File::Copy ();
use File::Compare ();
use JSON;
use String::ShellQuote;		# used in _prep_configdir 
use IPC::Run;			# implements File::Unpack2::
bzip2
    # ...

    $u->unpack("inputfile.tar.bz2");
    while ($log =~ m{^\s*"(.*?)":}g) # it's JSON.
      {
        print "$1\n"; 	# report all files unpacked
      }

    ...

Most of the known a
0, archive_name_as_dir => 0,
	    follow_file_symlinks => 0, 
	    log_params => {}, log_type => 'JSON');

Creates an unpacker instance. The parameter C<destdir> must be a writable location; all outpu
WWW-Suffit-Plugin-ServerInfo ( A/AB/ABALAMA/WWW-Suffit-Plugin-ServerInfo-1.01.tar.gz, ABALAMA, 2023; MetaCPAN )
WWW-Suffit-Plugin-ServerInfo/lib/WWW/Suffit/Plugin/ServerInfo.pm ( view source; MetaCPAN )
   curl -H "Accept: text/plain" http://localhost:8080/serverinfo
    curl -H "Accept: application/json" http://localhost:8080/serverinfo

=head1 DESCRIPTION

The WWW::Suffit Plugin for show Server and
    # Json
    my %json = ();
    foreach my $r (@o) {
        next unless ref($r) eq 'HASH';
        my $key = $r->{key}; # key   - Key
        my $val = $r->{val}; # val   - Value
        $json{$key
@html, $r;
        }
    }

    # Render
    return $self->respond_to(
        json    => {
            json    => \%json,
        },
        text    => {
            text    => join("", @text),
     
WQS-SPARQL ( S/SK/SKIM/WQS-SPARQL-0.02.tar.gz, SKIM, 2023; MetaCPAN )
WQS-SPARQL/SPARQL.pm ( view source; MetaCPAN )
;
use warnings;

use Class::Utils qw(set_params);
use Error::Pure qw(err);
use HTTP::Request;
use JSON::XS;
use LWP::UserAgent;
use URI;
use URI::QueryParam;
use Unicode::UTF8 qw(encode_utf8);

our $V
lf->{'_api_uri'});
	$uri->query_param_append('format' => 'json');
	$uri->query_param_append('query' => $query);

	return $self->_http_get_json($uri->as_string);
}

sub query_count {
	my ($self, $query
nt'}->{'value'};
}

sub _http_get_json {
	my ($self, $uri) = @_;

	my $res = $self->{'lwp_user_agent'}->get($uri);
	if ($res->is_success) {
		my $content = decode_json($res->decoded_content);
		return
Image-DS9 ( D/DJ/DJERIUS/Image-DS9-v1.0.1.tar.gz, DJERIUS, 2023; MetaCPAN )
Image-DS9/OpenAPI/OpenAPI.pm ( view source; MetaCPAN )
# ABSTRACT: Grammar definitions

use strict;
use warnings;

use JSON::PP;
use latest;
our $VERSION = '0.189';

# TODO:
#  shm

my %Schemas = (

    'object_name' => {
        type => 'string',
    },
> { '$ref' => '#/components/responses/emptySuccess' },
            },
        },
    },

);


say JSON::PP->new->pretty()->encode( {
        openapi => '3.0.3',
        info    => {
            title 
DataStore-CAS ( N/NE/NERDVANA/DataStore-CAS-0.08.tar.gz, NERDVANA, 2023; MetaCPAN )
DataStore-CAS/lib/DataStore/CAS/Simple.pm ( view source; MetaCPAN )
 being "Simple", I decided to just read and write
# raw files for each parameter instead of using JSON or YAML.
# It is not expected that this module will have very many options.
# Subclasses will lik
WWW-Suffit-Plugin-BasicAuth ( A/AB/ABALAMA/WWW-Suffit-Plugin-BasicAuth-1.00.tar.gz, ABALAMA, 2023; MetaCPAN )
WWW-Suffit-Plugin-BasicAuth/lib/WWW/Suffit/Plugin/BasicAuth.pm ( view source; MetaCPAN )
 "Strict Zone",
            authn_fail_render => {
                status => 401,
                json => {
                    status => 0,
                    message => "Basic authentication requir

            },
            authz_fail_render => {
                status => 403,
                json => {
                    status => 0,
                    message => "Forbidden!",
              
_compare($in_pass, "mypass") ? 1 : 0;
            },
            fail_render => {
                json => {
                    message => "Basic authentication required!",
                },
        
File-Unpack2 ( K/KR/KRAIH/File-Unpack2-1.0.tar.gz, KRAIH, 2023; MetaCPAN )
File-Unpack2/file_unpack2.pl ( view source; MetaCPAN )
a logfile, where freshly unpacked files are reported.
	When a logfile is specified, its format is JSON; 
	default is STDOUT with format PLAIN.
 
 -l --list-helpers
        Overview of mime-type patter
  Default: skip all symlinks.

}) if $help;

if (defined $opt{logfile})
  {
    $opt{log_type} = 'JSON';
    $opt{logfile} = \*STDOUT if $opt{logfile} eq '-';
  }

$opt{logfile} ||= '/dev/null' if $li
und. (new() opens the logfile, unpack() closese it.)
        $u = File::Unpack2->new(%opt);
        $u->mime_helper_dir(@mime_helper_dirs);
      }
  }

# delete $u->{json};
# die "$0: " . Dumper $u;
Database-Async ( T/TE/TEAM/Database-Async-0.019.tar.gz, TEAM, 2023; MetaCPAN )
Database-Async/lib/Database/Async/ORM/Schema.pm ( view source; MetaCPAN )
 xid
    cid
    oidvector
    pg_type
    pg_attribute
    pg_proc
    pg_class
    json
    xml
    _xml
    _json
    pg_node_tree
    pg_ndistinct
    pg_dependencies
    pg_ddl_command
    smgr
 
egdictionary
    _tsvector
    _gtsvector
    _tsquery
    _regconfig
    _regdictionary
    jsonb
    _jsonb
    txid_snapshot
    _txid_snapshot
    int4range
    _int4range
    numrange
    _numran
PayProp-API-Public-Client ( Y/YA/YANGAK/PayProp-API-Public-Client-0.04.tar.gz, YANGAK, 2023; MetaCPAN )
PayProp-API-Public-Client/lib/PayProp/API/Public/Client/Response/Export/Beneficiary.pm ( view source; MetaCPAN )
:Beneficiary;

use strict;
use warnings;

use Mouse;
with qw/ PayProp::API::Public::Client::Role::JSON /;


has id                 => (is => 'ro', isa => 'Str' );
has is_owner           => (is => 'ro'
PayProp-API-Public-Client ( Y/YA/YANGAK/PayProp-API-Public-Client-0.04.tar.gz, YANGAK, 2023; MetaCPAN )
PayProp-API-Public-Client/lib/PayProp/API/Public/Client/Response/Tag.pm ( view source; MetaCPAN )
esponse::Tag;

use strict;
use warnings;

use Mouse;
with qw/ PayProp::API::Public::Client::Role::JSON /;


has name  => (is => 'ro', isa => 'Str');
has id    => (is => 'ro', isa => 'Str' );
has type 
PayProp-API-Public-Client ( Y/YA/YANGAK/PayProp-API-Public-Client-0.04.tar.gz, YANGAK, 2023; MetaCPAN )
PayProp-API-Public-Client/lib/PayProp/API/Public/Client/Request/Entity/Payment.pm ( view source; MetaCPAN )
ntent = $args->{content};

	return $self
		->api_request_p({
			method => 'POST',
			content => { json => $content },
			handle_response_cb => sub { $self->_get_payment( @_ ) },
		})
	;
}

sub update_
> $path_params,
			content => { json => $content },
			handle_response_cb => sub { $self->_get_payment( @_ ) },
		})
	;
}

sub _get_payment {
	my ( $self, $response_json ) = @_;

	my $Payment = PayPro
         => $response_json->{id},
		tax                   => $response_json->{tax},
		amount                => $response_json->{amount},
		enabled               => $response_json->{enabled},
		has_tax
PayProp-API-Public-Client ( Y/YA/YANGAK/PayProp-API-Public-Client-0.04.tar.gz, YANGAK, 2023; MetaCPAN )
PayProp-API-Public-Client/lib/PayProp/API/Public/Client/Request/Export/Beneficiaries.pm ( view source; MetaCPAN )
 },
		})
	;
}

sub _get_beneficiaries {
	my ( $self, $response_json ) = @_;

	my @beneficiaries;
	for my $beneficiary ( @{ $response_json->{items} // [] } ) {
		my $Beneficiary = PayProp::API::Public:
PayProp-API-Public-Client ( Y/YA/YANGAK/PayProp-API-Public-Client-0.04.tar.gz, YANGAK, 2023; MetaCPAN )
PayProp-API-Public-Client/lib/PayProp/API/Public/Client/Request/Export/Tenants.pm ( view source; MetaCPAN )
enants( @_ ) },
		})
	;
}

sub _get_tenants {
	my ( $self, $response_json ) = @_;

	my @tenants;
	for my $tenant ( @{ $response_json->{items} // [] } ) {
		my $Tenant = PayProp::API::Public::Client::R
PayProp-API-Public-Client ( Y/YA/YANGAK/PayProp-API-Public-Client-0.04.tar.gz, YANGAK, 2023; MetaCPAN )
PayProp-API-Public-Client/lib/PayProp/API/Public/Client/Authorization/ClientCredentials.pm ( view source; MetaCPAN )
my ( $Transaction ) = @_;

			my $Result = $Transaction->result;

			my $json = $Result->json // {};
			my $access_token = $json->{access_token};

			PayProp::API::Public::Client::Exception::Authoriza
				status_code => $Result->code,
				errors => [
					{
						code => $json->{error} // 'NO_ERROR_CODE',
						message => $json->{error_description} // 'NO_ERROR_MESSAGE',
					},
				],
			)
				unl
PayProp-API-Public-Client ( Y/YA/YANGAK/PayProp-API-Public-Client-0.04.tar.gz, YANGAK, 2023; MetaCPAN )
PayProp-API-Public-Client/lib/PayProp/API/Public/Client/Response/Export/Tenant.pm ( view source; MetaCPAN )
port::Tenant;

use strict;
use warnings;

use Mouse;
with qw/ PayProp::API::Public::Client::Role::JSON /;


has id                => (is => 'ro', isa => 'Str' );
has notify_sms        => (is => 'ro', 
Database-Async ( T/TE/TEAM/Database-Async-0.019.tar.gz, TEAM, 2023; MetaCPAN )
Database-Async/lib/Database/Async/ORM.pm ( view source; MetaCPAN )
 ->say
       ->completed
  })->get;

 # Load schemata from a hashref (e.g. pulled
 # from a YAML/JSON/XML file or API)
 $orm->load_from({ ... })
  ->then(sub {
   $orm->apply_to($db)
  })->then(sub {
 elsif($path->basename ne $path->basename(qw(.yaml .yml))) {
            require JSON::MaybeXS;
            return JSON::MaybeXS->new->decode($path->slurp_utf8);
        } else {
            die 'Unkn

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