content
stringlengths
263
5.24M
pred_label
stringclasses
1 value
pred_score_pos
float64
0.6
1
<?php namespace Apiato\Foundation\Configuration; use Illuminate\Support\Str; final class View { protected static \Closure $namespaceBuilder; /** @var string[] */ protected array $paths = []; public function __construct() { $this->buildNamespaceUsing(function (string $path): string { ...
__label__POS
0.989604
package org.apereo.cas.services; import org.apereo.cas.authentication.surrogate.SurrogateAuthenticationService; import org.apereo.cas.test.CasTestExtension; import org.apereo.cas.util.CollectionUtils; import lombok.val; import org.junit.jupiter.api.Tag; import org.junit.jupiter.api.Test; import org.junit.jupiter.api....
__label__POS
0.901629
<?php namespace Apiato\Core\Requests; use Illuminate\Foundation\Http\FormRequest as LaravelRequest; use Illuminate\Support\Arr; use Illuminate\Support\Str; abstract class Request extends LaravelRequest { /** * Id's that needs decoding before applying the validation rules. * * @example ['id', 'auth...
__label__POS
0.923896
package org.apereo.cas.services; import org.apereo.cas.authentication.surrogate.SurrogateAuthenticationService; import org.apereo.cas.test.CasTestExtension; import org.apereo.cas.util.CollectionUtils; import lombok.val; import org.junit.jupiter.api.Tag; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.e...
__label__POS
0.853228
<?php namespace Apiato\Core\Models\Concerns; use Illuminate\Support\Str; trait HandlesHashedIdRouteModelBinding { public function resolveRouteBinding($value, $field = null) { return $this->resolveRouteBindingQuery($this, $this->processHashId($value), $field)->first(); } public function proce...
__label__POS
0.98071
<?php namespace Apiato\Core\Testing\Concerns; use Illuminate\Support\Facades\Schema; trait PerformsAssertions { /** * Assert if the given database table has the expected columns with the expected types. * * @param string $table the table name * @param array<string, string> $expectedColumns Th...
__label__POS
0.973657
package org.apereo.cas.services; import org.apereo.cas.configuration.support.ExpressionLanguageCapable; import org.apereo.cas.util.LoggingUtils; import org.apereo.cas.util.ResourceUtils; import org.apereo.cas.util.scripting.ExecutableCompiledScriptFactory; import org.apereo.cas.util.spring.SpringExpressionLanguageValu...
__label__POS
0.973004
package org.apereo.cas.authentication.surrogate; import org.apereo.cas.authentication.MutableCredential; import com.fasterxml.jackson.annotation.JsonTypeInfo; import lombok.EqualsAndHashCode; import lombok.Getter; import lombok.NoArgsConstructor; import lombok.RequiredArgsConstructor; import lombok.ToString; import l...
__label__POS
0.968695
package org.apereo.cas.authentication.surrogate; import org.apereo.cas.authentication.AuthenticationBuilder; import org.apereo.cas.authentication.principal.Principal; import org.apereo.cas.authentication.principal.Service; import lombok.val; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.util.C...
__label__POS
0.884121
<?php namespace App\Containers\AppSection\Authentication\Data\Factories; use League\OAuth2\Server\ResourceServer; use Psr\Http\Message\ServerRequestInterface; use Symfony\Bridge\PsrHttpMessage\Factory\PsrHttpFactory; use Symfony\Component\HttpFoundation\Request; /** * This is a temporary solution to get the request...
__label__POS
0.879608
// // RegexMatch.cc // snowcrash // // Created by Zdenek Nemec on 7/1/13. // Copyright (c) 2013 Apiary Inc. All rights reserved. // #include <regex> #include <cstring> #include "../RegexMatch.h" using namespace std; #if _MSC_VER == 1500 using namespace std::tr1; #endif // // A C++09 implementation // bool snowc...
__label__POS
0.653911
package org.apereo.cas.otp.util; import org.apereo.cas.util.EncodingUtils; import com.google.zxing.BarcodeFormat; import com.google.zxing.EncodeHintType; import com.google.zxing.qrcode.QRCodeWriter; import com.google.zxing.qrcode.decoder.ErrorCorrectionLevel; import lombok.Cleanup; import lombok.experimental.UtilityC...
__label__POS
0.980783
package org.apereo.cas.otp.repository.credentials; import org.apereo.cas.authentication.MultifactorAuthenticationProvider; import org.apereo.cas.authentication.OneTimeTokenAccount; import org.apereo.cas.authentication.device.MultifactorAuthenticationDeviceManager; import org.apereo.cas.authentication.device.Multifacto...
__label__POS
0.912277
package org.apereo.cas.otp.repository.credentials; import org.apereo.cas.authentication.OneTimeTokenAccount; import org.apereo.cas.configuration.model.support.mfa.gauth.GoogleAuthenticatorMultifactorProperties; import org.apereo.cas.configuration.model.support.mfa.gauth.GoogleAuthenticatorMultifactorScratchCodePropert...
__label__POS
0.878233
package org.apereo.cas.otp.repository.credentials; import org.apereo.cas.authentication.OneTimeTokenAccount; import java.util.Collection; /** * This is {@link OneTimeTokenCredentialRepository}. * * @author Misagh Moayyed * @since 5.1.0 */ public interface OneTimeTokenCredentialRepository { /** * Get on...
__label__POS
0.987987
package org.apereo.cas.otp.repository.credentials; import org.apereo.cas.util.cipher.BaseStringCipherExecutor; import lombok.Getter; /** * This is {@link OneTimeTokenAccountCipherExecutor}. * * @author Misagh Moayyed * @since 5.3.0 */ @Getter public class OneTimeTokenAccountCipherExecutor extends BaseStringCiph...
__label__POS
0.999612
package org.apereo.cas.otp.repository.credentials; import org.apereo.cas.authentication.Authentication; import org.apereo.cas.authentication.OneTimeToken; import org.apereo.cas.authentication.OneTimeTokenAccount; import org.apereo.cas.authentication.credential.OneTimeTokenCredential; import org.apereo.cas.otp.reposito...
__label__POS
0.853443
/* * Copyright (C) 2025 American Printing House for the Blind * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the Free * Software Foundation, version 3. * * This program is distributed in the hope that it will be usef...
__label__POS
0.860627
package org.apereo.cas.otp.repository.token; import org.apereo.cas.authentication.OneTimeToken; /** * This is {@link OneTimeTokenRepository}. * * @author Misagh Moayyed * @since 5.1.0 */ public interface OneTimeTokenRepository<T extends OneTimeToken> { /** * Default bean name. */ String BEAN_N...
__label__POS
0.973615
package org.apereo.cas.otp.web.flow; import org.apereo.cas.authentication.principal.Principal; import org.apereo.cas.configuration.CasConfigurationProperties; import org.apereo.cas.multitenancy.TenantExtractor; import org.apereo.cas.otp.repository.credentials.OneTimeTokenCredentialRepository; import org.apereo.cas.web...
__label__POS
0.955401
package org.apereo.cas.otp.web.flow; import org.apereo.cas.otp.repository.credentials.OneTimeTokenCredentialRepository; import org.apereo.cas.web.flow.actions.BaseCasWebflowAction; import org.apereo.cas.web.flow.util.MultifactorAuthenticationWebflowUtils; import org.apereo.cas.web.support.WebUtils; import lombok.Requ...
__label__POS
0.995807
package org.apereo.cas.otp.web.flow; import org.apereo.cas.authentication.OneTimeTokenAccount; import org.apereo.cas.configuration.CasConfigurationProperties; import org.apereo.cas.configuration.model.support.mfa.gauth.CoreGoogleAuthenticatorMultifactorProperties; import org.apereo.cas.configuration.support.Configurat...
__label__POS
0.69818
package org.apereo.cas.otp.web.flow; import org.apereo.cas.authentication.OneTimeTokenAccount; import org.apereo.cas.authentication.principal.Principal; import org.apereo.cas.configuration.CasConfigurationProperties; import org.apereo.cas.configuration.model.support.mfa.gauth.CoreGoogleAuthenticatorMultifactorProperti...
__label__POS
0.957547
/** * @fileoverview Utility functions for array manipulation with ID-based operations * @module utils/arrays */ import { WithId } from 'types/arrays' /** * Adds an element to an array if it doesn't exist, or removes it if it does (toggle behavior) * * @template T - The type of the element data * @template S - ...
__label__POS
0.859036
package org.apereo.cas.adaptors.x509; import org.apereo.cas.config.CasCoreAuthenticationAutoConfiguration; import org.apereo.cas.config.CasCoreAutoConfiguration; import org.apereo.cas.config.CasCoreLogoutAutoConfiguration; import org.apereo.cas.config.CasCoreNotificationsAutoConfiguration; import org.apereo.cas.config...
__label__POS
0.690635
package org.apereo.cas.adaptors.x509; import org.apereo.cas.adaptors.x509.authentication.RequestHeaderX509CertificateExtractor; import org.apereo.cas.adaptors.x509.authentication.X509CertificateExtractor; import org.apereo.cas.configuration.CasConfigurationProperties; import org.apereo.cas.test.CasTestExtension; impor...
__label__POS
0.80431
package org.apereo.cas.adaptors.x509.authentication.ldap; import org.apereo.cas.adaptors.x509.BaseX509Tests; import org.apereo.cas.test.CasTestExtension; import org.junit.jupiter.api.extension.ExtendWith; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.scheduling.annotation.Enab...
__label__POS
0.887649
/* * Copyright (C) 2025 American Printing House for the Blind * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the Free * Software Foundation, version 3. * * This program is distributed in the hope that it will be usef...
__label__POS
0.754602
package org.apereo.cas.audit; import org.apereo.cas.audit.spi.AbstractAuditTrailManager; import org.apereo.cas.redis.core.CasRedisTemplate; import lombok.RequiredArgsConstructor; import lombok.Setter; import lombok.extern.slf4j.Slf4j; import lombok.val; import org.apereo.inspektr.audit.AuditActionContext; import java....
__label__POS
0.920566
local function sorted_entries(t) local tmp = {} for k in pairs(t) do tmp[#tmp + 1] = k end table.sort(tmp) return tmp end ------------------ -- cdef.lua ------------------ local cparser = require("cparser.cparser") local tmpfile = io.tmpfile() cparser.cpp("cimgui/cimgui.h", tmpfile, {"-U__GNUC__", "-...
__label__POS
0.61892
local env = { assert = assert, type = type, tonumber = tonumber, tostring = tostring, require = require, error = error, getmetatable = getmetatable, setmetatable = setmetatable, string = string, table = table, love = love, jit = jit, } setfenv(1, env) local path = (...):...
__label__POS
0.612002
-- Copyright (c) Facebook, Inc. and its affiliates. -- This source code is licensed under the MIT license found in the -- LICENSE file in the root directory of this source tree. -- -- Lua module to preprocess and parse C declarations. -- (Leon Bottou, 2015) -- standard libs local string = require 'string' local coro...
__label__POS
0.683297
local env = { assert = assert, type = type, tonumber = tonumber, tostring = tostring, require = require, error = error, getmetatable = getmetatable, setmetatable = setmetatable, string = string, table = table, love = love, jit = jit, } setfenv(1, env) local path = (...):...
__label__POS
0.869887
package org.apereo.cas.authentication.surrogate; import org.apereo.cas.authentication.principal.Principal; import org.apereo.cas.authentication.principal.Service; import org.apereo.cas.configuration.CasConfigurationProperties; import org.apereo.cas.services.RegisteredServicePrincipalAccessStrategyEnforcer; import org....
__label__POS
0.761184
package org.apereo.cas; import org.junit.jupiter.api.Tag; import org.junit.jupiter.api.Test; import java.sql.DriverManager; import static org.junit.jupiter.api.Assertions.*; /** * This is {@link JdbcServletContextListenerTests}. * * @author leeyc0 * @since 6.2.0 */ @Tag("Hibernate") @SuppressWarnings("JdkObsol...
__label__POS
0.951034
package org.apereo.cas.nativex; import org.apereo.cas.util.nativex.CasRuntimeHintsRegistrar; import org.springframework.aot.hint.RuntimeHints; import org.springframework.aot.hint.TypeReference; import javax.sql.DataSource; import java.sql.Driver; import java.util.List; /** * This is {@link JdbcDriversRuntimeHints}. ...
__label__POS
0.997396
package io.apibrew.client; import io.apibrew.client.model.Extension; import java.util.List; import java.util.Objects; public class ExtensionInfo { private final List<String> namespaces; private final List<String> resources; private final Extension.Action action; private final boolean sync; priva...
__label__POS
0.752615
package io.apibrew.client; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; import lombok.Data; import java.util.HashMap; import java.util.Map; import java.util.UUID; @Data public class GenericRecord extends Entity { private final Map<String, Object> ...
__label__POS
0.90399
package io.apibrew.client; import io.apibrew.client.model.Resource; import static org.apache.logging.log4j.util.Strings.isBlank; public final class EntityInfo<T> { private final String namespace; private final String resource; private final Class<T> entityClass; private final String restPath; pu...
__label__POS
0.880764
package io.apibrew.client; import io.apibrew.client.model.Extension; import lombok.Getter; import static io.apibrew.client.model.Extension.Code.INTERNAL_ERROR; @Getter public class ApiException extends RuntimeException { private final Extension.Error error; public ApiException(Extension.Error error) { ...
__label__POS
0.941903
package io.apibrew.client.ext; import io.apibrew.client.Entity; import io.apibrew.client.ExtensionInfo; import io.apibrew.client.model.Extension; import java.util.function.BiPredicate; import java.util.function.Function; public class SimpleCondition<T extends Entity> implements Condition<T> { private final Funct...
__label__POS
0.84155
package io.github.apickledwalrus.skriptgui.elements.expressions; import ch.njol.skript.Skript; import ch.njol.skript.lang.Expression; import ch.njol.skript.lang.ExpressionType; import ch.njol.skript.lang.SkriptParser.ParseResult; import ch.njol.skript.lang.util.SimpleExpression; import ch.njol.util.Kleenean; import io...
__label__POS
0.945272
package io.github.apickledwalrus.skriptgui.elements.expressions; import ch.njol.skript.Skript; import ch.njol.skript.doc.Description; import ch.njol.skript.doc.Examples; import ch.njol.skript.doc.Name; import ch.njol.skript.doc.Since; import ch.njol.skript.lang.Expression; import ch.njol.skript.lang.ExpressionType; im...
__label__POS
0.758414
package io.github.apickledwalrus.skriptgui.elements.expressions; import ch.njol.skript.Skript; import ch.njol.skript.doc.Description; import ch.njol.skript.doc.Examples; import ch.njol.skript.doc.Name; import ch.njol.skript.doc.Since; import ch.njol.skript.lang.Expression; import ch.njol.skript.lang.ExpressionType; im...
__label__POS
0.602074
@core Feature: As Httpbin client I want to use variables in my feature files #test variable injection logic Scenario: using unknown variable in request path When I GET /get?foo=`UNKNOWN_VARIABLE` #replace unknown variables with empty string Then response body path $.args.foo should not be UNKNOWN_...
__label__POS
0.987862
@console Feature: Httpbin.org exposes various resources for HTTP request testing As Httpbin client I want to verify that all API resources are working as they should Scenario: Test output - response code should be (.*) Given I set User-Agent header to apickli When I GET /get Then re...
__label__POS
0.618083
package io.apibrew.client.model; import java.util.Objects; import io.apibrew.client.EntityInfo; import io.apibrew.client.Entity; import io.apibrew.client.Client; import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; im...
__label__POS
0.908534
package io.apibrew.client.model; import java.util.Objects; import io.apibrew.client.EntityInfo; import io.apibrew.client.Entity; import io.apibrew.client.Client; import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; im...
__label__POS
0.668325
package io.apibrew.client.model; import java.util.Objects; import io.apibrew.client.EntityInfo; import io.apibrew.client.Entity; import io.apibrew.client.Client; import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; im...
__label__POS
0.679326
package io.apibrew.client.model; import java.util.Objects; import io.apibrew.client.EntityInfo; import io.apibrew.client.Entity; import io.apibrew.client.Client; import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; im...
__label__POS
0.610548
package io.apibrew.client.model; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Date; public class Token { public static class Container { private Token token; public Token getToken() { return token; } public void setToken(Token token) { ...
__label__POS
0.672989
package org.apereo.cas.audit; import org.apereo.cas.audit.spi.AbstractAuditTrailManager; import org.apereo.cas.audit.spi.AuditActionContextJsonSerializer; import org.apereo.cas.configuration.model.core.audit.AuditAmazonFirehoseProperties; import lombok.extern.slf4j.Slf4j; import lombok.val; import org.apereo.inspektr....
__label__POS
0.669285
package io.apibrew.client.impl; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.SerializationFeature; import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; import io.apibrew.client.Client; import io.apibrew.client.Entity; import io.apibrew.client.EntityInfo; import io.a...
__label__POS
0.600227
package io.apibrew.client.impl; import io.apibrew.client.*; import io.apibrew.client.model.Extension; import java.util.List; import java.util.Map; import java.util.function.Consumer; public class RepositoryImpl<T extends Entity> implements Repository<T> { private final Client client; private final EntityInfo...
__label__POS
0.870591
package io.apibrew.client.nano.impl; import io.apibrew.client.Client; import io.apibrew.client.EntityInfo; import io.apibrew.client.nano.model.Code; import io.apibrew.client.nano.NanoService; import lombok.RequiredArgsConstructor; import java.util.Base64; @RequiredArgsConstructor public class NanoServiceImpl impleme...
__label__POS
0.921393
package io.apibrew.client.storage.model; import java.util.Objects; import io.apibrew.client.EntityInfo; import io.apibrew.client.Entity; import io.apibrew.client.Client; import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIg...
__label__POS
0.655321
package io.apibrew.client.storage.model; import java.util.Objects; import io.apibrew.client.EntityInfo; import io.apibrew.client.Entity; import io.apibrew.client.Client; import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIg...
__label__POS
0.62146
package io.apibrew.client.storage.impl; import io.apibrew.client.Client; import io.apibrew.client.Repository; import io.apibrew.client.impl.ClientImpl; import io.apibrew.client.storage.StorageService; import io.apibrew.client.storage.model.StorageObject; import kong.unirest.ContentType; import kong.unirest.HttpRespons...
__label__POS
0.829098
import {Resource} from "./model/resource"; export interface EntityInfo { namespace: string; resource: string; restPath: string; } // fromResource export function fromResource(resource: Resource): EntityInfo { return { namespace: resource.namespace.name, resource: resource.name, ...
__label__POS
0.833477
import {Action, EventSelector, Extension} from "./model/extension"; export interface ExtensionInfo { namespaces?: string[] resources?: string[] action: Action sync: boolean responds: boolean finalizer: boolean order: number sealResource?: boolean } export function toExtension(extension...
__label__POS
0.741143
load File.join(File.dirname(__FILE__), '../../init.rb') describe ApibuilderCli::Util do describe "Util.file_join" do it "should eliminate nils" do expect(ApibuilderCli::Util.file_join(nil, "foo", "bar")).to eq("foo/bar") end it "should eliminate empty strings" do expect(ApibuilderCli::Util....
__label__POS
0.960823
GET /_internal_/healthcheck controllers.Healthchecks.index() GET / controllers.ApplicationController.index(orgsPage: Int ?= 0, membershipRequestsPage: Int ?= 0, publicOrganizationsPage: Int ?= 0) GET /login ...
__label__POS
0.966188
package org.apereo.cas.pm.rest; import org.apereo.cas.authentication.Credential; import org.apereo.cas.configuration.CasConfigurationProperties; import org.apereo.cas.pm.PasswordChangeRequest; import org.apereo.cas.pm.PasswordHistoryService; import org.apereo.cas.pm.PasswordManagementQuery; import org.apereo.cas.pm.im...
__label__POS
0.928037
package org.apereo.cas.consent; import org.apereo.cas.authentication.Authentication; import org.apereo.cas.authentication.principal.Service; import org.apereo.cas.services.RegisteredService; import java.io.Serializable; import java.time.temporal.ChronoUnit; import java.util.List; import java.util.Map; /** * This is...
__label__POS
0.975592
package org.apereo.cas.consent; import lombok.Getter; import java.util.Arrays; /** * This is {@link ConsentReminderOptions}. * * @author Misagh Moayyed * @since 5.2.0 */ @Getter public enum ConsentReminderOptions { /** * Always ask for consent. */ ALWAYS(0), /** * Ask for consent when...
__label__POS
0.631544
package org.apereo.cas.consent; import org.apereo.cas.authentication.principal.Service; import org.apereo.cas.services.RegisteredService; import java.io.Serializable; import java.util.List; import java.util.Map; /** * This is {@link ConsentDecisionBuilder}. * * @author Misagh Moayyed * @since 5.2.0 */ public in...
__label__POS
0.957945
package org.apereo.cas.consent; import org.apereo.cas.authentication.Authentication; import org.apereo.cas.authentication.principal.Service; import org.apereo.cas.services.RegisteredService; import java.io.Serializable; import java.util.Collection; /** * This is {@link ConsentRepository}. * * @author Misagh Moayy...
__label__POS
0.994933
package org.apereo.cas.consent; import org.apereo.cas.authentication.Authentication; import org.apereo.cas.authentication.principal.Service; import org.apereo.cas.services.RegisteredService; import jakarta.servlet.http.HttpServletRequest; /** * This is {@link ConsentActivationStrategy}. * * @author Misagh Moayyed...
__label__POS
0.984255
package abs import ( "fmt" "github.com/apibrew/apibrew/pkg/errors" "github.com/apibrew/apibrew/pkg/model" "github.com/apibrew/apibrew/pkg/util" "google.golang.org/protobuf/types/known/structpb" "time" ) func ValueToRecord(resource *model.Resource, resultExported interface{}) (*model.Record, errors.ServiceError)...
__label__POS
0.941542
package i18n import ( "github.com/apicat/apicat/v2/backend/i18n/lang" "github.com/apicat/apicat/v2/backend/route/middleware/jwt" "fmt" "strings" "github.com/gin-gonic/gin" ) var langs = map[string]map[string]map[string]string{} const defaultLang = "en-US" func init() { langs[defaultLang] = lang.En langs["z...
__label__POS
0.91985
@( tpl: models.MainTemplate, attr: io.apibuilder.api.v0.models.Attribute, generatorWithServices: lib.PaginatedCollection[io.apibuilder.api.v0.models.GeneratorWithService] )(implicit flash: Flash, messages: Messages) @main(tpl) { @if(tpl.canEditAttribute(attr)) { <div class="pull-right"> <span class=...
__label__POS
0.641816
package org.apereo.cas.web.report; import org.apereo.cas.configuration.CasConfigurationProperties; import org.apereo.cas.util.InetAddressUtils; import org.apereo.cas.util.SystemUtils; import org.apereo.cas.util.feature.CasRuntimeModuleLoader; import lombok.RequiredArgsConstructor; import org.apache.commons.lang3.Stri...
__label__POS
0.857953
package util import org.apache.commons.codec.binary.Base64 object BasicAuthorization { sealed trait Authorization case class Session(id: String) extends Authorization case class Token(token: String) extends Authorization case class User(user: String, password: String) extends Authorization def get(value: ...
__label__POS
0.908162
package route import ( "github.com/apicat/apicat/v2/backend/route/api/collection" "github.com/apicat/apicat/v2/backend/route/api/iteration" "github.com/apicat/apicat/v2/backend/route/api/jsonschema" "github.com/apicat/apicat/v2/backend/route/api/project" "github.com/apicat/apicat/v2/backend/route/api/sysconfig" ...
__label__POS
0.929689
# frozen_string_literal: true require "spec_helper" RSpec.describe Apicraft do it "has a version number" do expect(Apicraft::VERSION).not_to be_nil end describe ".configure" do it "yields the shared config object" do expect { |b| described_class.configure(&b) }.to( yield_with_args(describ...
__label__POS
0.63932
package org.apereo.cas.web.report; import org.apereo.cas.configuration.CasConfigurationProperties; import org.apereo.cas.configuration.features.CasFeatureModule; import org.apereo.cas.web.BaseCasActuatorEndpoint; import io.swagger.v3.oas.annotations.Operation; import org.springframework.boot.actuate.endpoint.Access; ...
__label__POS
0.958142
# frozen_string_literal: true require "spec_helper" RSpec.describe Apicraft::Openapi::Contract do let(:contracts_path) { "#{Bundler.root}/spec/fixtures/contracts" } let(:contract) { described_class.all[0] } before do Apicraft.configure do |c| c.contracts_path = contracts_path c.strict_reference...
__label__POS
0.769399
# frozen_string_literal: true require "spec_helper" RSpec.describe Apicraft::Openapi::Operation do let(:contracts_path) { "#{Bundler.root}/spec/fixtures/contracts" } let(:contract) { Apicraft::Openapi::Contract.all[0] } let(:operation) { contract.operation("GET", "/books/1") } before do Apicraft.configur...
__label__POS
0.631172
# frozen_string_literal: true module Apicraft # Configuration class for Apicraft. # # This class provides a simple way to configure Apicraft's behavior. # It uses a hash-based configuration system, where default values can be # overridden by user-provided options. class Config DEFAULTS = { contra...
__label__POS
0.961574
package relations import ( "context" "encoding/json" "github.com/apicat/apicat/v2/backend/model" "github.com/apicat/apicat/v2/backend/model/collection" "github.com/apicat/apicat/v2/backend/model/global" "github.com/apicat/apicat/v2/backend/module/spec" ) // ImportGlobalParameters 导入全局参数 func ImportGlobalParame...
__label__POS
0.931819
package relations import ( "context" "encoding/json" "github.com/apicat/apicat/v2/backend/model" "github.com/apicat/apicat/v2/backend/model/collection" "github.com/apicat/apicat/v2/backend/model/definition" "github.com/apicat/apicat/v2/backend/module/spec" ) // ImportDefinitionParameters 导入公共参数 func ImportDefi...
__label__POS
0.894813
package relations import ( "github.com/apicat/apicat/v2/backend/model/collection" "github.com/apicat/apicat/v2/backend/model/definition" "github.com/apicat/apicat/v2/backend/model/global" "github.com/apicat/apicat/v2/backend/model/project" "github.com/apicat/apicat/v2/backend/module/spec" "github.com/gin-gonic/...
__label__POS
0.953602
package org.apereo.cas.config; import org.apereo.cas.configuration.CasConfigurationProperties; import org.apereo.cas.configuration.features.CasFeatureModule; import org.apereo.cas.ticket.catalog.CasTicketCatalogConfigurationValuesProvider; import org.apereo.cas.util.spring.boot.ConditionalOnFeatureEnabled; import org....
__label__POS
0.60653
package org.apereo.cas.ticket.registry; import com.fasterxml.jackson.annotation.JsonProperty; import lombok.Getter; import lombok.NoArgsConstructor; import lombok.Setter; import lombok.ToString; import lombok.experimental.SuperBuilder; import org.springframework.data.mongodb.core.mapping.Document; import java.io.Seri...
__label__POS
0.979668
package org.apereo.cas.support.events.dao; import org.apereo.cas.support.events.CasEventRepositoryFilter; import org.apereo.cas.support.events.dao.filter.GroovyCasEventRepositoryFilter; import org.junit.jupiter.api.Tag; import org.springframework.boot.test.context.TestConfiguration; import org.springframework.context...
__label__POS
0.841245
package spec import ( "errors" "strconv" "github.com/apicat/apicat/v2/backend/module/spec/jsonschema" ) const NODE_HTTP_RESPONSE = "apicat-http-response" type CollectionHttpResponse struct { Type string `json:"type" yaml:"type"` Attrs *HttpResponseAttrs `json:"attrs" yaml:"attrs"` } type HttpResp...
__label__POS
0.920142
package spec import ( "encoding/json" "errors" "strconv" "github.com/apicat/apicat/v2/backend/module/spec/jsonschema" ) const TYPE_MODEL = "schema" type DefinitionModel struct { ID int64 `json:"id,omitempty" yaml:"id,omitempty"` ParentId uint64 `json:"parentid,omitempty" y...
__label__POS
0.800926
package spec import ( "errors" "strconv" "github.com/apicat/apicat/v2/backend/module/spec/jsonschema" ) const NODE_HTTP_REQUEST = "apicat-http-request" type CollectionHttpRequest struct { Type string `json:"type" yaml:"type"` Attrs *HttpRequestAttrs `json:"attrs" yaml:"attrs"` } type HttpRequestAt...
__label__POS
0.741919
package util import ( "github.com/apibrew/apibrew/pkg/model" "github.com/apibrew/apibrew/pkg/resources/special" "github.com/apibrew/apibrew/pkg/service/annotations" "google.golang.org/protobuf/proto" ) type Named interface { GetName() string } func GetNamedMap[T Named](items []T) map[string]T { var result = ma...
__label__POS
0.892406
package util import ( "regexp" "strings" ) var matchFirstCap = regexp.MustCompile("(.)([A-Z][a-z]+)") var matchAllCap = regexp.MustCompile("([a-z0-9])([A-Z])") func ToSnakeCase(str string) string { snake := matchFirstCap.ReplaceAllString(str, "${1}_${2}") snake = matchAllCap.ReplaceAllString(snake, "${1}_${2}") ...
__label__POS
0.990532
package spec import ( "errors" "sort" "strconv" "strings" ) type BasicResponse struct { ID int64 `json:"id,omitempty" yaml:"id,omitempty"` Name string `json:"name,omitempty" yaml:"name,omitempty"` Description string `json:"description,omitempty" yaml:"description,omitempty...
__label__POS
0.720283
package spec import ( "encoding/json" "errors" "strconv" "github.com/apicat/apicat/v2/backend/module/spec/jsonschema" ) const TYPE_RESPONSE = "response" type DefinitionResponse struct { BasicResponse ParentId int64 `json:"parentid,omitempty" yaml:"parentid,omitempty"` Type string ...
__label__POS
0.895037
package util func FlatMap[T interface{}](arr ...[]T) []T { var list []T for _, item := range arr { list = append(list, item...) } return list } func ArrayMap[T interface{}, R interface{}](arr []T, mapper func(T) R) []R { var list = make([]R, 0) for _, item := range arr { list = append(list, mapper(item))...
__label__POS
0.997641
package spec import "fmt" const NODE_DOC = "doc" type CollectionDoc struct { Type string `json:"type"` Content []*CollectionDoc `json:"content,omitempty"` Text string `json:"text,omitempty"` Attrs map[string]any `json:"attrs,omitempty"` Mark []*CollectionDoc `json:"mark,omitempt...
__label__POS
0.981946
package util import ( "github.com/apibrew/apibrew/pkg/model" "github.com/apibrew/apibrew/pkg/service/annotations" ) func IsSameIdentifiedResourceIndex(index1, index2 *model.ResourceIndex) bool { return IsSameResourceIndex(index1, index2) } func IsSameResourceIndex(index1, index2 *model.ResourceIndex) bool { if l...
__label__POS
0.986343
package org.apereo.cas.support.events.dao; import org.apereo.cas.support.events.CasEventRepositoryFilter; import com.github.benmanes.caffeine.cache.LoadingCache; import java.util.UUID; import java.util.stream.Stream; /** * This is {@link InMemoryCasEventRepository}. * * @author Misagh Moayyed * @since 5.1.0 */ p...
__label__POS
0.98782
package util import ( "fmt" "github.com/apibrew/apibrew/pkg/model" "github.com/apibrew/apibrew/pkg/types" log "github.com/sirupsen/logrus" "google.golang.org/protobuf/proto" "google.golang.org/protobuf/types/known/structpb" "strings" ) type PropertyAccessor struct { Property *model.ResourceProperty Get ...
__label__POS
0.877843
package lib import javax.inject.{Inject, Singleton} case class RollbarConfig(enabled: Boolean, accessToken: String) case class SendgridConfig(apiKey: String) @Singleton class AppConfig @Inject() ( config: Config ) { val apibuilderWwwHost: String = config.requiredString("apibuilder.app.host") val subjectPrefi...
__label__POS
0.740732
package lib import core.ServiceFetcher import db.{Authorization, InternalVersionsDao} import javax.inject.Inject import io.apibuilder.spec.v0.models.Service import models.VersionsModel /** * Implements service fetch by querying the DB */ class DatabaseServiceFetcher @Inject() ( ...
__label__POS
0.792644
package jsonschema import ( "encoding/json" "errors" "fmt" "strconv" "strings" "golang.org/x/exp/slices" ) type Schema struct { // Meta Data Title string `json:"title,omitempty" yaml:"title,omitempty"` Description string `json:"description,omitempty" yaml:"description,omitempty"` Default any `...
__label__POS
0.790667