content stringlengths 263 5.24M | pred_label stringclasses 1
value | pred_score_pos float64 0.6 1 |
|---|---|---|
package writer
import (
"github.com/apibrew/apibrew/pkg/formats"
"github.com/apibrew/apibrew/pkg/formats/unstructured"
"github.com/apibrew/apibrew/pkg/model"
"github.com/apibrew/apibrew/pkg/resource_model"
"reflect"
"sort"
)
type Writer struct {
Annotations map[string]string
}
func (w *Writer) isForApply() bo... | __label__POS | 0.937634 |
package org.apereo.cas.support.rest.resources;
import org.apereo.cas.authentication.AuthenticationException;
import org.apereo.cas.configuration.model.core.web.MessageBundleProperties;
import org.apereo.cas.util.LoggingUtils;
import org.apereo.cas.util.serialization.JacksonObjectMapperFactory;
import com.fasterxml.ja... | __label__POS | 0.70268 |
package io.apicurio.datamodels.cmd.commands;
import io.apicurio.datamodels.paths.NodePath;
import io.apicurio.datamodels.util.NodeUtil;
/**
* A command used to modify the simple property of a node. Should not be used
* to modify complex (object) properties, only simple property types like
* string, boolean, numbe... | __label__POS | 0.900664 |
package io.apicurio.datamodels.cmd.commands;
import io.apicurio.datamodels.cmd.AbstractCommand;
import io.apicurio.datamodels.models.Document;
import io.apicurio.datamodels.models.Node;
import io.apicurio.datamodels.paths.NodePath;
import io.apicurio.datamodels.paths.NodePathUtil;
import io.apicurio.datamodels.util.Lo... | __label__POS | 0.971369 |
package io.apicurio.datamodels.cmd.commands;
import com.fasterxml.jackson.databind.node.ObjectNode;
import io.apicurio.datamodels.Library;
import io.apicurio.datamodels.models.Node;
import io.apicurio.datamodels.models.openapi.OpenApiOperation;
import io.apicurio.datamodels.models.openapi.OpenApiPathItem;
import io.ap... | __label__POS | 0.966304 |
package io.apicurio.datamodels.cmd.commands;
import io.apicurio.datamodels.cmd.AbstractCommand;
import io.apicurio.datamodels.models.Document;
import io.apicurio.datamodels.util.LoggerUtil;
import io.apicurio.datamodels.util.NodeUtil;
/**
* A command used to modify the version of a document.
* @author eric.wittmann... | __label__POS | 0.971443 |
package extramappings
import (
"github.com/apibrew/apibrew/pkg/model"
"github.com/apibrew/apibrew/pkg/resource_model"
"github.com/apibrew/apibrew/pkg/util"
)
func ErrorToProto(result resource_model.Error) *model.Error {
var err = new(model.Error)
err.Message = util.DePointer(result.Message, "")
err.Code = mode... | __label__POS | 0.6976 |
package io.apicurio.datamodels.cmd.commands;
import com.fasterxml.jackson.databind.node.ObjectNode;
import io.apicurio.datamodels.Library;
import io.apicurio.datamodels.models.Node;
import io.apicurio.datamodels.models.Schema;
import io.apicurio.datamodels.models.openapi.OpenApiComponents;
import io.apicurio.datamodel... | __label__POS | 0.752423 |
package io.apicurio.datamodels.cmd.commands;
import com.fasterxml.jackson.databind.node.ObjectNode;
import io.apicurio.datamodels.Library;
import io.apicurio.datamodels.models.Node;
import io.apicurio.datamodels.models.openapi.OpenApiPathItem;
import io.apicurio.datamodels.models.openapi.OpenApiPaths;
/**
* A comman... | __label__POS | 0.978869 |
Samples & Walkthroughs
============================

Sample 1
--------------------------
This sample demonstrates the most simplistic usage of Swagger Express Middleware. It simply creates a new Express Application and adds all of the Swagger middleware without changing any option... | __label__POS | 0.606904 |
package io.apicurio.datamodels.cmd.commands;
import com.fasterxml.jackson.databind.node.ObjectNode;
import io.apicurio.datamodels.Library;
import io.apicurio.datamodels.cmd.AbstractCommand;
import io.apicurio.datamodels.models.Node;
import io.apicurio.datamodels.models.Referenceable;
import io.apicurio.datamodels.mode... | __label__POS | 0.823198 |
package io.apicurio.datamodels.cmd.commands;
import com.fasterxml.jackson.databind.node.ObjectNode;
import io.apicurio.datamodels.cmd.AbstractCommand;
import io.apicurio.datamodels.cmd.ICommand;
import io.apicurio.datamodels.models.Document;
import io.apicurio.datamodels.util.LoggerUtil;
import java.util.List;
/**
... | __label__POS | 0.648978 |
package postgres
import (
"github.com/apibrew/apibrew/pkg/model"
"github.com/apibrew/apibrew/pkg/types"
"strconv"
)
func (p postgreSqlBackendOptions) TypeModifier(propertyType model.ResourceProperty_Type) types.PropertyType {
return types.ByResourcePropertyType(propertyType)
}
func (p postgreSqlBackendOptions) G... | __label__POS | 0.823501 |
package mysql
import (
"github.com/apibrew/apibrew/pkg/backend/common"
"github.com/apibrew/apibrew/pkg/model"
"github.com/apibrew/apibrew/pkg/types"
"google.golang.org/protobuf/types/known/structpb"
"strconv"
)
func (p mysqlBackendOptions) TypeModifier(propertyType model.ResourceProperty_Type) types.PropertyType... | __label__POS | 0.874707 |
package org.apereo.cas.support.saml.services;
import org.apereo.cas.services.RegisteredServiceTestUtils;
import org.apereo.cas.services.ServicesManager;
import lombok.val;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;
import org.springframework.core.Ordered;
import static org.junit.jupiter.api... | __label__POS | 0.85948 |
package org.apereo.cas.support.saml.services.idp.metadata.cache;
import org.apereo.cas.configuration.model.support.saml.idp.SamlIdPProperties;
import org.apereo.cas.support.saml.InMemoryResourceMetadataResolver;
import org.apereo.cas.support.saml.SamlException;
import org.apereo.cas.support.saml.services.BaseSamlIdPSe... | __label__POS | 0.641987 |
package org.apereo.cas.support.saml.services.idp.metadata.cache;
import org.apereo.cas.support.saml.services.SamlRegisteredService;
import lombok.val;
import net.shibboleth.shared.resolver.CriteriaSet;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;
import org.opensaml.core.criterion.EntityIdCrit... | __label__POS | 0.985113 |
package org.apereo.cas.support.saml.services.idp.metadata.cache.resolver;
import org.apereo.cas.configuration.model.support.saml.idp.SamlIdPProperties;
import org.apereo.cas.support.saml.services.BaseSamlIdPServicesTests;
import org.apereo.cas.support.saml.services.SamlRegisteredService;
import lombok.val;
import org... | __label__POS | 0.960936 |
package common
import (
"fmt"
"github.com/apibrew/apibrew/pkg/types"
"google.golang.org/protobuf/types/known/structpb"
)
type CustomType struct {
CustomEquals func(a, b interface{}) bool
CustomPack func(value interface{}) (*structpb.Value, error)
CustomUnPack func(val *structpb.Value) (interface{}, error)
... | __label__POS | 0.824232 |
package org.apereo.cas.support.saml.services.idp.metadata.cache.resolver;
import org.apereo.cas.configuration.model.support.saml.idp.SamlIdPProperties;
import org.apereo.cas.support.saml.SamlException;
import org.apereo.cas.support.saml.services.BaseSamlIdPServicesTests;
import org.apereo.cas.support.saml.services.Sam... | __label__POS | 0.906437 |
package org.apereo.cas.support.saml.services.idp.metadata.cache.resolver;
import org.apereo.cas.configuration.model.support.saml.idp.SamlIdPProperties;
import org.apereo.cas.support.saml.services.BaseSamlIdPServicesTests;
import org.apereo.cas.support.saml.services.SamlRegisteredService;
import lombok.val;
import net... | __label__POS | 0.675041 |
package org.apereo.cas.support.saml.services.idp.metadata.cache.resolver;
import org.apereo.cas.configuration.model.support.saml.idp.SamlIdPProperties;
import org.apereo.cas.support.saml.services.BaseSamlIdPServicesTests;
import org.apereo.cas.support.saml.services.SamlRegisteredService;
import lombok.val;
import org... | __label__POS | 0.964846 |
package org.apereo.cas.support.saml.services.idp.metadata.cache;
import org.apereo.cas.support.saml.SamlUtils;
import org.apereo.cas.support.saml.services.SamlRegisteredService;
import org.apereo.cas.util.DigestUtils;
import lombok.AccessLevel;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.ToSt... | __label__POS | 0.715722 |
/*
* Simple string replacement utility
*/
#include <string.h>
#include <stdio.h>
int
main(int argc, char **argv)
{
int i;
char line[512];
if (argc < 2 || argc % 2 != 1) {
fprintf(stderr, "usage: %s search1 replace1 ..\n", argv[0]);
exit(1);
}
for (i = 1 + 1; i < argc; i += 2) {
if (argv[i][0... | __label__POS | 0.792907 |
package org.apereo.cas.support.saml.services.idp.metadata.cache.resolver;
import org.apereo.cas.audit.AuditActionResolvers;
import org.apereo.cas.audit.AuditResourceResolvers;
import org.apereo.cas.audit.AuditableActions;
import org.apereo.cas.configuration.model.support.saml.idp.SamlIdPProperties;
import org.apereo.c... | __label__POS | 0.791337 |
<?php
namespace Dingo\Api;
use Dingo\Api\Auth\Auth;
use Illuminate\Support\Str;
use Dingo\Api\Routing\Router;
use Dingo\Api\Http\InternalRequest;
use Illuminate\Container\Container;
use Illuminate\Filesystem\Filesystem;
use Symfony\Component\HttpFoundation\Cookie;
use Dingo\Api\Exception\InternalHttpException;
use Sy... | __label__POS | 0.759012 |
<?php
namespace Dingo\Api\Provider;
use Illuminate\Support\ServiceProvider as IlluminateServiceProvider;
abstract class ServiceProvider extends IlluminateServiceProvider
{
/**
* Array of config items that are instantiable.
*
* @var array
*/
protected $instantiable = [
'middleware'... | __label__POS | 0.995011 |
<?php
namespace Dingo\Api\Http;
use ArrayObject;
use stdClass;
use Illuminate\Support\Str;
use UnexpectedValueException;
use Illuminate\Http\JsonResponse;
use Dingo\Api\Transformer\Binding;
use Dingo\Api\Event\ResponseIsMorphing;
use Dingo\Api\Event\ResponseWasMorphed;
use Illuminate\Contracts\Support\Arrayable;
use ... | __label__POS | 0.638347 |
<?php
namespace Dingo\Api\Routing;
use Illuminate\Support\Arr;
use Illuminate\Support\Str;
use Illuminate\Http\Request;
use Illuminate\Container\Container;
use Dingo\Api\Contract\Routing\Adapter;
class Route extends \Illuminate\Routing\Route
{
/**
* Routing adapter instance.
*
* @var \Dingo\Api\Co... | __label__POS | 0.929561 |
<?php
namespace Dingo\Api\Routing;
use Countable;
use ArrayIterator;
use IteratorAggregate;
class RouteCollection implements Countable, IteratorAggregate
{
/**
* Routes on the collection.
*
* @var array
*/
protected $routes = [];
/**
* Lookup for named routes.
*
* @var... | __label__POS | 0.977581 |
<?php
namespace Dingo\Api\Routing;
use ErrorException;
use Dingo\Api\Auth\Auth;
use Dingo\Api\Dispatcher;
use Dingo\Api\Http\Response\Factory;
/**
* @property \Dingo\Api\Dispatcher $api
* @property \Illuminate\Auth\GenericUser|\Illuminate\Database\Eloquent\Model $user
* ... | __label__POS | 0.984843 |
/*
* This is a sample implementation of the
* Transaction Processing Performance Council
* Benchmark B coded in Java/JDBC and ANSI SQL2.
*
* This version is using one connection per
* thread to parallellize server operations.
*/
package SQLite;
import java.sql.Connection;
import javax.sql.DataSource;
imp... | __label__POS | 0.95536 |
<?php
namespace Dingo\Api\Routing;
use Closure;
use Dingo\Api\Contract\Debug\ExceptionHandler;
use Dingo\Api\Contract\Routing\Adapter;
use Dingo\Api\Http\InternalRequest;
use Dingo\Api\Http\Request;
use Dingo\Api\Http\Response;
use Exception;
use Illuminate\Container\Container;
use Illuminate\Http\JsonResponse;
use I... | __label__POS | 0.945563 |
<?php
namespace Dingo\Api\Auth;
use Exception;
use Dingo\Api\Routing\Router;
use Illuminate\Container\Container;
use Symfony\Component\HttpKernel\Exception\BadRequestHttpException;
use Symfony\Component\HttpKernel\Exception\UnauthorizedHttpException;
class Auth
{
/**
* Router instance.
*
* @var \D... | __label__POS | 0.687439 |
<?php
namespace Dingo\Api\Facade;
use Dingo\Api\Http\InternalRequest;
use Illuminate\Support\Facades\Facade;
class API extends Facade
{
/**
* Get the registered name of the component.
*
* @return string
*/
protected static function getFacadeAccessor()
{
return 'api.dispatcher'... | __label__POS | 0.993762 |
package SQLite;
/**
* String encoder/decoder for SQLite.
*
* This module was kindly donated by Eric van der Maarel of Nedap N.V.
*
* This encoder was implemented based on an original idea from an anonymous
* author in the source code of the SQLite distribution.
* I feel obliged to provide a quote from the origi... | __label__POS | 0.90545 |
<?php
namespace Dingo\Api\Exception;
use Exception;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\Exception\HttpException;
class InternalHttpException extends HttpException
{
/**
* The response.
*
* @var \Illuminate\Http\Response
*/
protected $response;
... | __label__POS | 0.878763 |
<?php
namespace Dingo\Api\Exception;
use Exception;
use Illuminate\Support\MessageBag;
use Dingo\Api\Contract\Debug\MessageBagErrors;
use Symfony\Component\HttpKernel\Exception\HttpException;
class ResourceException extends HttpException implements MessageBagErrors
{
/**
* MessageBag errors.
*
* @... | __label__POS | 0.757216 |
<?php
namespace Dingo\Api\Transformer;
use Closure;
use RuntimeException;
use Illuminate\Container\Container;
class Binding
{
/**
* Illuminate container instance.
*
* @var \Illuminate\Container\Container
*/
protected $container;
/**
* Binding resolver.
*
* @var mixed
... | __label__POS | 0.960073 |
<?php
namespace Dingo\Api\Transformer;
use Closure;
use RuntimeException;
use Dingo\Api\Http\Request;
use Illuminate\Support\Collection;
use Illuminate\Container\Container;
use Dingo\Api\Contract\Transformer\Adapter;
use Illuminate\Contracts\Pagination\Paginator;
use Illuminate\Http\Request as IlluminateRequest;
cla... | __label__POS | 0.833949 |
package SQLite;
import java.sql.Connection;
import java.sql.Driver;
import java.sql.DriverPropertyInfo;
import java.sql.SQLException;
import java.sql.SQLFeatureNotSupportedException;
import java.util.Properties;
import java.util.logging.Logger;
public class JDBCDriver extends JDBC implements Driver {
public stat... | __label__POS | 0.914986 |
package io.apicurio.datamodels.validation.rules.mutex;
import io.apicurio.datamodels.models.openapi.OpenApiExamplesParent;
import io.apicurio.datamodels.models.openapi.OpenApiMediaType;
import io.apicurio.datamodels.validation.ValidationRule;
import io.apicurio.datamodels.validation.ValidationRuleMetaData;
/**
* Imp... | __label__POS | 0.999248 |
<?php
namespace Dingo\Api\Http\Response;
use Closure;
use ErrorException;
use Illuminate\Support\Str;
use Dingo\Api\Http\Response;
use Illuminate\Support\Collection;
use Illuminate\Contracts\Pagination\Paginator;
use Dingo\Api\Transformer\Factory as TransformerFactory;
use Symfony\Component\HttpKernel\Exception\HttpE... | __label__POS | 0.824667 |
<?php
namespace Dingo\Api\Http\Middleware;
use Closure;
use Dingo\Api\Routing\Router;
class PrepareController
{
/**
* Dingo router instance.
*
* @var \Dingo\Api\Routing\Router
*/
protected $router;
/**
* Create a new prepare controller instance.
*
* @param \Dingo\Api\R... | __label__POS | 0.909532 |
<?php
namespace Dingo\Api\Http\Middleware;
use Closure;
use Dingo\Api\Routing\Router;
use Dingo\Api\Auth\Auth as Authentication;
class Auth
{
/**
* Router instance.
*
* @var \Dingo\Api\Routing\Router
*/
protected $router;
/**
* Authenticator instance.
*
* @var \Dingo\A... | __label__POS | 0.944633 |
package org.apereo.cas.support.saml.idp.metadata;
import org.apereo.cas.util.LoggingUtils;
import lombok.Getter;
import lombok.extern.slf4j.Slf4j;
import lombok.val;
import org.opensaml.saml.metadata.resolver.impl.AbstractBatchMetadataResolver;
import org.w3c.dom.Element;
/**
* This is {@link BaseElementMetadataRes... | __label__POS | 0.945979 |
<?php
namespace Dingo\Api\Http\Middleware;
use Closure;
use Exception;
use Dingo\Api\Routing\Router;
use Laravel\Lumen\Application;
use Illuminate\Pipeline\Pipeline;
use Dingo\Api\Http\RequestValidator;
use Dingo\Api\Event\RequestWasMatched;
use Dingo\Api\Http\Request as HttpRequest;
use Illuminate\Contracts\Containe... | __label__POS | 0.694207 |
<?php
namespace Dingo\Api\Http\Validation;
use Illuminate\Http\Request;
use Dingo\Api\Contract\Http\Validator;
class Prefix implements Validator
{
/**
* API prefix.
*
* @var string
*/
protected $prefix;
/**
* Create a new prefix validator instance.
*
* @param string $p... | __label__POS | 0.896986 |
package SQLite;
/**
* Context for execution of SQLite's user defined functions.
* A reference to an instance of this class is passed to
* user defined functions.
*/
public class FunctionContext {
/**
* Internal handle for the native SQLite API.
*/
private long handle = 0;
/**
* Set f... | __label__POS | 0.971196 |
<?php
namespace Dingo\Api\Http\Validation;
use Illuminate\support\Str;
use Illuminate\Http\Request;
use Dingo\Api\Contract\Http\Validator;
class Domain implements Validator
{
const PATTERN_STRIP_PROTOCOL = '/:\d*$/';
/**
* API domain.
*
* @var string
*/
protected $domain;
/**
... | __label__POS | 0.951677 |
<?php
namespace Dingo\Api\Http\RateLimit;
use Dingo\Api\Http\Request;
use Illuminate\Support\Carbon;
use Illuminate\Cache\CacheManager;
use Illuminate\Support\Collection;
use Illuminate\Container\Container;
use Dingo\Api\Http\RateLimit\Throttle\Route;
use Dingo\Api\Contract\Http\RateLimit\Throttle;
use Dingo\Api\Cont... | __label__POS | 0.827993 |
<?php
namespace Dingo\Api\Http\Response\Format;
class Jsonp extends Json
{
/**
* Name of JSONP callback parameter.
*
* @var string
*/
protected $callbackName = 'callback';
/**
* Create a new JSONP response formatter instance.
*
* @param string $callbackName
* @retu... | __label__POS | 0.990513 |
<?php
namespace Dingo\Api\Http\Response\Format;
use Illuminate\Support\Str;
use Illuminate\Contracts\Support\Arrayable;
class Json extends Format
{
/*
* JSON format (as well as JSONP) uses JsonOptionalFormatting trait, which
* provides extra functionality for the process of encoding data to
* its ... | __label__POS | 0.783313 |
/*
* This is a sample implementation of the
* Transaction Processing Performance Council
* Benchmark B coded in Java/JDBC and ANSI SQL2.
*
* This version is using one connection per
* thread to parallellize server operations.
*/
package SQLite;
import java.sql.DriverManager;
import java.sql.Connection;
p... | __label__POS | 0.939753 |
<?php
namespace Dingo\Api\Http\Response\Format;
abstract class Format
{
/**
* Illuminate request instance.
*
* @var \Illuminate\Http\Request
*/
protected $request;
/**
* Illuminate response instance.
*
* @var \Illuminate\Http\Response
*/
protected $response;
... | __label__POS | 0.997733 |
package SQLite;
/**
* Class to represent compiled SQLite3 statement.
*
* Note, that all native methods of this class are
* not synchronized, i.e. it is up to the caller
* to ensure that only one thread is in these
* methods at any one time.
*/
public class Stmt {
/**
* Internal handle for the SQLite3... | __label__POS | 0.915255 |
package SQLite;
/**
* Callback interface for SQLite's query results.
* <BR><BR>
* Example:<BR>
*
* <PRE>
* class TableFmt implements SQLite.Callback {
* public void columns(String cols[]) {
* System.out.println("<TH><TR>");
* for (int i = 0; i < cols.length; i++) {
* ... | __label__POS | 0.813274 |
<?php
namespace Dingo\Api\Console\Command;
use Illuminate\Support\Arr;
use Illuminate\Support\Str;
use Dingo\Api\Routing\Router;
use Illuminate\Console\Command;
use Symfony\Component\Console\Input\InputOption;
use Illuminate\Foundation\Console\RouteListCommand;
class Routes extends RouteListCommand
{
/**
* ... | __label__POS | 0.825711 |
<?php
namespace Dingo\Api\Routing\Adapter;
use Dingo\Api\Contract\Routing\Adapter;
use Dingo\Api\Exception\UnknownVersionException;
use Illuminate\Http\Request;
use Illuminate\Routing\Route;
use Illuminate\Routing\RouteCollection;
use Illuminate\Routing\Router;
class Laravel implements Adapter
{
/**
* Appli... | __label__POS | 0.985615 |
<?php
namespace Dingo\Api\Routing\Adapter;
use ArrayIterator;
use ReflectionClass;
use FastRoute\Dispatcher;
use FastRoute\RouteParser;
use Illuminate\Support\Str;
use FastRoute\DataGenerator;
use Illuminate\Http\Request;
use FastRoute\RouteCollector;
use Laravel\Lumen\Application;
use Dingo\Api\Contract\Routing\Adap... | __label__POS | 0.90197 |
<?php
namespace Dingo\Api\Auth\Provider;
use Illuminate\Support\Str;
use Illuminate\Http\Request;
use Symfony\Component\HttpKernel\Exception\BadRequestHttpException;
abstract class Authorization implements \Dingo\Api\Contract\Auth\Provider
{
/**
* Array of provider specific options.
*
* @var array... | __label__POS | 0.894974 |
package SQLite;
import java.sql.Connection;
import java.sql.Driver;
import java.sql.DriverPropertyInfo;
import java.sql.SQLException;
import java.util.Properties;
public class JDBCDriver extends JDBC implements Driver {
public static final int MAJORVERSION = 1;
public static boolean sharedCache = false;
... | __label__POS | 0.968422 |
package SQLite;
/**
* Class to represent compiled SQLite VM.
*/
public class Vm {
/**
* Internal handle for the compiled SQLite VM.
*/
private long handle = 0;
/**
* Internal last error code for compile()/step() methods.
*/
protected int error_code = 0;
/**
* Perfor... | __label__POS | 0.961415 |
<?php
namespace Dingo\Api\Auth\Provider;
use Dingo\Api\Routing\Route;
use Illuminate\Http\Request;
use Illuminate\Auth\AuthManager;
use Symfony\Component\HttpKernel\Exception\UnauthorizedHttpException;
class Basic extends Authorization
{
/**
* Illuminate authentication manager.
*
* @var \Illuminat... | __label__POS | 0.876331 |
<?php
namespace Dingo\Api\Contract\Routing;
use Illuminate\Http\Request;
interface Adapter
{
/**
* Dispatch a request.
*
* @param \Illuminate\Http\Request $request
* @param string $version
* @return mixed
*/
public function dispatch(Request $request, $version);... | __label__POS | 0.995807 |
package SQLite;
/**
* Callback interface for SQLite's user defined functions.
* Each callback method receives a
* <A HREF="FunctionContext.html">FunctionContext</A> object
* which is used to set the function result or error code.
* <BR><BR>
* Example:<BR>
*
* <PRE>
* class SinFunc implements SQLite.Function... | __label__POS | 0.908233 |
/* DO NOT EDIT */
package SQLite;
/**
* Container for SQLite constants.
*/
public final class Constants {
/* Error code: 0 */
public static final int SQLITE_OK = 0;
/* Error code: 1 */
public static final int SQLITE_ERROR = 1;
/* Error code: 2 */
public static final int SQLITE_INTERNAL = 2;... | __label__POS | 0.999968 |
package SQLite;
import java.sql.Connection;
import java.sql.Driver;
import java.sql.DriverPropertyInfo;
import java.sql.SQLException;
import java.util.Properties;
public class JDBCDriver extends JDBC implements Driver {
public static final int MAJORVERSION = 1;
public static boolean sharedCache = false;
... | __label__POS | 0.968422 |
<?php
namespace Dingo\Api\Tests\Stubs;
use Illuminate\Container\Container;
use Illuminate\Contracts\Foundation\Application;
class Application9Stub extends Container implements Application
{
public function version()
{
return 'v1';
}
public function basePath($path = '')
{
//
}... | __label__POS | 0.732986 |
package SQLite;
import java.util.Vector;
/**
* Class representing an SQLite result set as
* returned by the
* <A HREF="Database.html#get_table(java.lang.String)">Database.get_table</A>
* convenience method.
* <BR><BR>
* Example:<BR>
*
* <PRE>
* ...
* SQLite.Database db = new SQLite.Database();
* db.o... | __label__POS | 0.991453 |
<?php
namespace Dingo\Api\Tests\Stubs;
use Illuminate\Container\Container;
use Illuminate\Contracts\Foundation\Application;
class Application8Stub extends Container implements Application
{
public function version()
{
return 'v1';
}
public function basePath($path = '')
{
//
}... | __label__POS | 0.879729 |
<?php
namespace Dingo\Api\Tests\Stubs;
use Illuminate\Container\Container;
use Illuminate\Contracts\Foundation\Application;
class Application10Stub extends Container implements Application
{
public function version()
{
return 'v1';
}
public function basePath($path = '')
{
//
... | __label__POS | 0.72952 |
<?php
namespace Dingo\Api\Tests\Stubs;
use Closure;
use Illuminate\Container\Container;
use Illuminate\Contracts\Foundation\Application;
class Application6Stub extends Container implements Application
{
public function version()
{
return 'v1';
}
public function basePath($path = '')
{
... | __label__POS | 0.840446 |
<?php
namespace Dingo\Api\Tests\Stubs;
use Illuminate\Container\Container;
use Illuminate\Contracts\Foundation\Application;
class ApplicationStub extends Container implements Application
{
public function version()
{
return 'v1';
}
public function basePath()
{
//
}
publi... | __label__POS | 0.824813 |
<?php
namespace Dingo\Api\Tests\Stubs;
use Illuminate\Container\Container;
use Illuminate\Contracts\Foundation\Application;
class Application7Stub extends Container implements Application
{
public function version()
{
return 'v1';
}
public function basePath($path = '')
{
//
}... | __label__POS | 0.879467 |
<?php
namespace Dingo\Api\Tests\Stubs;
use Closure;
use Illuminate\Container\Container;
use Illuminate\Contracts\Foundation\Application;
class Application58Stub extends Container implements Application
{
public function version()
{
return 'v1';
}
public function basePath()
{
//
... | __label__POS | 0.851184 |
package org.apereo.cas.web.flow;
import org.apereo.cas.config.CasAcceptableUsagePolicyWebflowAutoConfiguration;
import lombok.val;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;
import org.springframework.boot.autoconfigure.ImportAutoConfiguration;
import org.springframework.webflow.engine.Flow;
... | __label__POS | 0.944255 |
package SQLite;
/**
* Class wrapping an SQLite backup object.
*/
public class Backup {
/**
* Internal handle for the native SQLite API.
*/
protected long handle = 0;
/**
* Finish a backup.
*
* @throws SQLite.Exception indicating SQLite error
*/
protected void finish... | __label__POS | 0.964445 |
package org.apereo.cas.web.flow;
import org.apereo.cas.configuration.CasConfigurationProperties;
import org.apereo.cas.web.flow.configurer.AbstractCasWebflowConfigurer;
import lombok.val;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.webflow.definition.registry.FlowDefin... | __label__POS | 0.860848 |
package com.apifest.oauth20.persistence.cassandra;
import com.datastax.driver.core.Cluster;
import com.datastax.driver.core.Host;
import com.datastax.driver.core.Metadata;
import com.datastax.driver.core.Session;
import com.datastax.driver.core.policies.ConstantReconnectionPolicy;
import com.datastax.driver.core.polic... | __label__POS | 0.849367 |
package org.apereo.cas.web.flow;
import org.apereo.cas.audit.AuditActionResolvers;
import org.apereo.cas.audit.AuditResourceResolvers;
import org.apereo.cas.audit.AuditableActions;
import org.apereo.cas.aup.AcceptableUsagePolicyRepository;
import org.apereo.cas.web.flow.actions.BaseCasWebflowAction;
import lombok.Get... | __label__POS | 0.860086 |
package SQLite.JDBC0;
import java.sql.*;
public class JDBCResultSetMetaData implements java.sql.ResultSetMetaData {
private JDBCResultSet r;
public JDBCResultSetMetaData(JDBCResultSet r) {
this.r = r;
}
public String getCatalogName(int column) throws java.sql.SQLException {
return null;
}
... | __label__POS | 0.94997 |
package SQLite.JDBC0;
import java.sql.Types;
import java.util.Vector;
public class TableResultX extends SQLite.TableResult {
public int sql_type[];
public TableResultX() {
super();
sql_type = new int[this.ncolumns];
for (int i = 0; i < this.ncolumns; i++) {
sql_type[i] = Types.VARCHAR;
}
}
... | __label__POS | 0.814991 |
package com.example.springtest.entity;
import org.springframework.http.HttpStatus;
import java.io.Serializable;
/**
* 统一响应实体
*
* @ClassName R
* @Author zwj
* @Date 2023/11/16 16:13
*/
public class RMain<T> implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 成功
*/... | __label__POS | 0.994817 |
package com.example.springtest.entity;
import com.fasterxml.jackson.annotation.JsonView;
import org.springframework.http.HttpStatus;
import java.io.Serializable;
/**
* 统一响应实体
*
* @ClassName R
* @Author zwj
* @Date 2023/11/16 16:13
*/
public class R<T> implements Serializable {
private static final long ser... | __label__POS | 0.993215 |
package SQLite.JDBC2z1;
import java.sql.Connection;
import java.sql.DatabaseMetaData;
import java.sql.ResultSet;
import java.sql.RowIdLifetime;
import java.sql.SQLException;
import java.sql.SQLFeatureNotSupportedException;
import java.sql.Types;
import java.util.Hashtable;
public class JDBCDatabaseMetaData implements... | __label__POS | 0.729115 |
package com.example.springtest.entity;
import com.example.springtest.anno.*;
import com.example.springtest.enumData.EnumData;
import com.example.springtest.enumData.UserTypeConstant;
import jakarta.annotation.Nullable;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.... | __label__POS | 0.990371 |
package com.example.springtest.entity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class OpenApiData {
/**
* @fieldRequire
*/
private Integer requireIn;
private Integer noRequireIn;
/**
* @... | __label__POS | 0.998172 |
package SQLite.JDBC2z1;
import java.math.BigDecimal;
import java.sql.NClob;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.RowId;
import java.sql.SQLException;
import java.sql.SQLFeatureNotSupportedException;
import java.sql.SQLWarning;
import java.sql.SQLXML;
import java.sql.Statement;
... | __label__POS | 0.629133 |
package SQLite.JDBC2z1;
import java.sql.SQLException;
import java.sql.Types;
public class JDBCResultSetMetaData implements java.sql.ResultSetMetaData {
private JDBCResultSet r;
public JDBCResultSetMetaData(JDBCResultSet r) {
this.r = r;
}
@Override
public String getCatalogName(int column) thro... | __label__POS | 0.969326 |
package com.example.springtest.controller;
import com.example.springtest.anno.ParamName;
import com.example.springtest.entity.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
impor... | __label__POS | 0.988336 |
package com.example.springtest.controller;
import com.example.springtest.entity.Case;
import com.example.springtest.entity.FieldDefaultDto;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMappin... | __label__POS | 0.997452 |
package com.example.springtest.controller;
import com.example.springtest.anno.Response;
import com.example.springtest.entity.R;
import com.example.springtest.entity.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframewor... | __label__POS | 0.632451 |
package com.example.springtest.controller;
import com.example.springtest.entity.ParamType;
import org.springframework.web.bind.annotation.*;
import java.util.List;
import java.util.Map;
@RestController
@RequestMapping(value = "/anyParamTypeController")
public class AnyParamTypeController {
/**
* anyParamTy... | __label__POS | 0.672831 |
package com.example.springtest.controller;
import com.example.springtest.entity.*;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestCon... | __label__POS | 0.997032 |
package com.example.springtest.controller;
import com.example.springtest.entity.Case;
import com.example.springtest.entity.FieldDefaultDto;
import org.springframework.web.bind.annotation.*;
import java.util.List;
@RestController
@RequestMapping(value = "/fieldDefaultValueController")
public class FieldDefaultValueCo... | __label__POS | 0.992404 |
package com.example.springtest.controller;
import com.example.springtest.anno.ParamType;
import com.example.springtest.entity.User;
import org.springframework.web.bind.annotation.*;
@RestController
@RequestMapping(value = "/methodDefaultContentTypeController")
public class MethodDefaultContentTypeController {
/... | __label__POS | 0.788048 |
package com.example.springtest.controller;
import com.example.springtest.anno.DefaultValue;
import com.example.springtest.entity.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;... | __label__POS | 0.67298 |
package com.example.springtest.httpClient;
import okhttp3.*;
import javax.net.ssl.SSLContext;
import javax.net.ssl.SSLSocketFactory;
import javax.net.ssl.TrustManager;
import javax.net.ssl.X509TrustManager;
import java.io.IOException;
import java.net.InetSocketAddress;
import java.net.Proxy;
import java.security.cert.... | __label__POS | 0.703657 |
package com.example.springtest.httpClient;
import javax.net.ssl.HttpsURLConnection;
import javax.net.ssl.SSLContext;
import javax.net.ssl.TrustManager;
import javax.net.ssl.X509TrustManager;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.Authenticator;
impo... | __label__POS | 0.864743 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.