content stringlengths 263 5.24M | pred_label stringclasses 1
value | pred_score_pos float64 0.6 1 |
|---|---|---|
<?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2025 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Validation;
use Aphiria\Validation\Constraints\ObjectConstraintsRegistry;
/**
* Defines the... | __label__POS | 0.916019 |
<?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2025 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Validation;
use Aphiria\Validation\Constraints\IObjectConstraintsRegistrant;
use Aphiria\Vali... | __label__POS | 0.665548 |
<?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2025 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Validation\Tests;
use Aphiria\Validation\CircularDependencyException;
use Aphiria\Validation\... | __label__POS | 0.607431 |
<?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2025 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Validation\Constraints;
/**
* Defines the minimum constraint
*/
class MinConstraint extends... | __label__POS | 0.790672 |
<?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2025 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Validation\Constraints;
/**
* Defines a base constraint
*/
abstract class Constraint implem... | __label__POS | 0.729323 |
<?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2025 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Validation\Constraints;
/**
* Defines a registry of object constraints
*/
final class Objec... | __label__POS | 0.72002 |
<?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2025 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Validation\Constraints;
/**
* Defines the maximum constraint
*/
class MaxConstraint extends... | __label__POS | 0.825834 |
<?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2025 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Validation\Constraints;
/**
* Defines the required constraint
*/
class RequiredConstraint e... | __label__POS | 0.821917 |
<?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2025 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Validation\Constraints;
use Aphiria\Validation\Constraints\Caching\IObjectConstraintsRegistry... | __label__POS | 0.850479 |
/*
* Written by Doug Lea with assistance from members of JCP JSR-166
* Expert Group and released to the public domain, as explained at
* http://creativecommons.org/publicdomain/zero/1.0/
*
* http://gee.cs.oswego.edu/cgi-bin/viewcvs.cgi/jsr166/src/main/java/util/concurrent/ThreadLocalRandom.java?view=markup
*/
pa... | __label__POS | 0.643046 |
<?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2025 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Validation\Constraints\Attributes;
use Aphiria\Validation\Constraints\EachConstraint;
use Att... | __label__POS | 0.684862 |
<?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2025 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Validation\Constraints\Attributes;
use Aphiria\Validation\Constraints\MaxConstraint;
use Attr... | __label__POS | 0.826936 |
<?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2025 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Validation\Constraints\Attributes;
use Aphiria\Validation\Constraints\RegexConstraint;
use At... | __label__POS | 0.642431 |
<?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2025 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Validation\Constraints\Attributes;
use Aphiria\Validation\Constraints\MinConstraint;
use Attr... | __label__POS | 0.800662 |
<?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2025 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Validation\Constraints\Attributes;
use Aphiria\Validation\Constraints\EqualsConstraint;
use A... | __label__POS | 0.645049 |
<?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2025 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Validation\Constraints\Attributes;
use Aphiria\Validation\Constraints\NotInConstraint;
use At... | __label__POS | 0.841758 |
(ns timelike.scheduler-test
(:refer-clojure :exclude [time])
(:use clojure.test
timelike.scheduler))
(defn reset-test!
[f]
(reset-scheduler!)
(f)
(when-not (zero? @all-threads)
(await-completion))
(reset-scheduler!))
(use-fixtures :each reset-test!)
(deftest immediate-thread-test
(l... | __label__POS | 0.738288 |
#!/usr/bin/env ruby
require 'rubygems'
require 'bacon'
require File.expand_path "#{File.dirname(__FILE__)}/../lib/salticid"
describe "Groups" do
@h = Salticid.new
@h.host :foo do
end
@h.group :top do
group :sub do
host :foo
end
end
@h.host :bar do
group :top
end
@h.host :baz do
... | __label__POS | 0.998296 |
class Salticid
class Interface
class HostView < View
attr_accessor :messages, :window, :state
def initialize(interface, params = {})
@messages = []
@scroll_position = -1
super
@host = params[:host]
@host.on_log do |message|
self << message
... | __label__POS | 0.696906 |
(ns tesser.bench-test
(:require [clojure.test :refer :all]
[clojure.test.check :as tc]
[clojure.test.check [clojure-test :refer :all]
[generators :as gen]
[properties :as prop]]
[multiset.core :refer [multiset]]
... | __label__POS | 0.901573 |
(ns tesser.utils-test
(:require [clojure.test :refer :all]
[clojure.test.check :as tc]
[clojure.test.check [clojure-test :refer :all]
[generators :as gen]
[properties :as prop]]
[multiset.core :refer [multiset]]
... | __label__POS | 0.612939 |
(ns verschlimmbesserung.core-test
(:require [clojure.test :refer :all]
[clojure.pprint :refer [pprint]]
[verschlimmbesserung.core :as v]))
(def c (v/connect "http://127.0.0.1:4001"))
; Delete all data before each test
(use-fixtures :each #(do (v/delete-all! c nil) (%)))
(deftest remap-keys-... | __label__POS | 0.815447 |
package org.apereo.cas.authentication.principal;
import org.apereo.cas.web.flow.DelegatedClientAuthenticationConfigurationContext;
import lombok.val;
import org.springframework.webflow.execution.RequestContext;
import java.util.List;
import java.util.UUID;
/**
* This is {@link TestBaseDelegatedClientAuthentication... | __label__POS | 0.9968 |
package org.apereo.cas.support.pac4j.clients;
import org.apereo.cas.authentication.CasSSLContext;
import org.apereo.cas.pac4j.client.DelegatedIdentityProviderFactory;
import org.apereo.cas.test.CasTestExtension;
import org.apereo.cas.web.BaseDelegatedAuthenticationTests;
import org.junit.jupiter.api.extension.ExtendW... | __label__POS | 0.667076 |
package org.apereo.cas.config;
import org.apereo.cas.configuration.CasConfigurationProperties;
import org.apereo.cas.configuration.features.CasFeatureModule;
import org.apereo.cas.util.spring.boot.ConditionalOnFeatureEnabled;
import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.b... | __label__POS | 0.996472 |
package org.apereo.cas.web.flow.actions;
import org.apereo.cas.authentication.principal.DelegatedAuthenticationCandidateProfile;
import org.apereo.cas.web.flow.CasWebflowConstants;
import org.apereo.cas.web.flow.DelegatedClientAuthenticationConfigurationContext;
import org.apereo.cas.web.flow.DelegationWebflowUtils;
... | __label__POS | 0.991641 |
package org.apereo.cas.web.flow.actions;
import org.apereo.cas.pac4j.client.DelegatedClientAuthenticationFailureEvaluator;
import org.apereo.cas.web.support.WebUtils;
import lombok.RequiredArgsConstructor;
import lombok.val;
import org.springframework.webflow.execution.Event;
import org.springframework.webflow.execut... | __label__POS | 0.980409 |
package org.apereo.cas.web.flow.actions;
import org.apereo.cas.authentication.principal.DelegatedAuthenticationCandidateProfile;
import org.apereo.cas.web.flow.DelegatedClientAuthenticationConfigurationContext;
import org.apereo.cas.web.flow.DelegationWebflowUtils;
import org.apereo.cas.web.support.WebUtils;
import lo... | __label__POS | 0.95784 |
package org.apereo.cas.web.flow.actions;
import org.apereo.cas.pac4j.discovery.DelegatedAuthenticationDynamicDiscoveryProviderLocator;
import org.apereo.cas.util.function.FunctionUtils;
import org.apereo.cas.web.flow.CasWebflowConstants;
import org.apereo.cas.web.flow.DelegatedClientAuthenticationConfigurationContext;... | __label__POS | 0.810799 |
package org.apereo.cas.web.flow.actions;
import org.apereo.cas.pac4j.client.DelegatedIdentityProviders;
import org.apereo.cas.web.flow.DelegatedClientIdentityProviderConfigurationProducer;
import org.apereo.cas.web.flow.DelegationWebflowUtils;
import org.apereo.cas.web.support.WebUtils;
import lombok.RequiredArgsConst... | __label__POS | 0.829205 |
package org.apereo.cas.support.inwebo.service;
import org.apereo.cas.configuration.CasConfigurationProperties;
import org.apereo.cas.configuration.model.SpringResourceProperties;
import org.apereo.cas.configuration.model.core.util.ClientCertificateProperties;
import org.apereo.cas.support.inwebo.service.response.Inweb... | __label__POS | 0.825098 |
package org.apereo.cas.support.inwebo.authentication;
import org.apereo.cas.authentication.CoreAuthenticationTestUtils;
import lombok.val;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
/**
* This is {@link InweboAuthenticationDeviceMetadataPo... | __label__POS | 0.993804 |
package org.apereo.cas.support.inwebo.authentication;
import org.apereo.cas.authentication.MultifactorAuthenticationProvider;
import org.apereo.cas.authentication.principal.PrincipalFactoryUtils;
import org.apereo.cas.authentication.principal.Service;
import org.apereo.cas.configuration.model.support.mfa.InweboMultifa... | __label__POS | 0.804621 |
package org.apereo.cas.config;
import org.apereo.cas.configuration.CasConfigurationProperties;
import org.apereo.cas.configuration.features.CasFeatureModule;
import org.apereo.cas.util.spring.boot.ConditionalOnFeatureEnabled;
import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.b... | __label__POS | 0.963225 |
package org.apereo.cas.nativex;
import org.apereo.cas.util.nativex.CasRuntimeHintsRegistrar;
import lombok.val;
import org.apache.xerces.impl.dv.dtd.DTDDVFactoryImpl;
import org.apache.xerces.parsers.XIncludeAwareParserConfiguration;
import org.springframework.aot.hint.RuntimeHints;
import org.springframework.core.io.... | __label__POS | 0.983466 |
package org.apereo.cas.support.inwebo.service;
import org.apereo.cas.configuration.CasConfigurationProperties;
import org.apereo.cas.support.inwebo.service.soap.generated.LoginQuery;
import org.apereo.cas.support.inwebo.service.soap.generated.LoginQueryResponse;
import org.apereo.cas.support.inwebo.service.soap.genera... | __label__POS | 0.996973 |
package org.apereo.cas.support.inwebo.authentication;
import org.apereo.cas.authentication.AuthenticationBuilder;
import org.apereo.cas.authentication.AuthenticationTransaction;
import org.apereo.cas.authentication.Credential;
import org.apereo.cas.authentication.metadata.BaseAuthenticationMetaDataPopulator;
import l... | __label__POS | 0.897646 |
// CHECKSTYLE:OFF
package org.apereo.cas.support.inwebo.service.soap.generated;
import jakarta.xml.bind.annotation.XmlRegistry;
/**
* The generated SOAP class.
*
* @author Jerome LELEU
* @since 6.4.0
*/
@XmlRegistry
public class ObjectFactory {
/**
* Create a new ObjectFactory that can be used to creat... | __label__POS | 0.861806 |
// CHECKSTYLE:OFF
package org.apereo.cas.support.inwebo.service.soap.generated;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlRootElement;
import jakarta.xml.bind.annotation.XmlType;
/**
* The generated SOAP class.
*
* @a... | __label__POS | 0.926587 |
// CHECKSTYLE:OFF
package org.apereo.cas.support.inwebo.service.soap.generated;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlElement;
import jakarta.xml.bind.annotation.XmlRootElement;
import jakarta.xml.bind.annotation.XmlT... | __label__POS | 0.864843 |
// CHECKSTYLE:OFF
package org.apereo.cas.support.inwebo.service.soap.generated;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlElement;
import jakarta.xml.bind.annotation.XmlRootElement;
import jakarta.xml.bind.annotation.XmlT... | __label__POS | 0.655911 |
// CHECKSTYLE:OFF
package org.apereo.cas.support.inwebo.service.soap.generated;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlElement;
import jakarta.xml.bind.annotation.XmlRootElement;
import jakarta.xml.bind.annotation.XmlT... | __label__POS | 0.797259 |
package org.apereo.cas.support.inwebo.web.flow;
import org.apereo.cas.configuration.CasConfigurationProperties;
import org.apereo.cas.support.inwebo.web.flow.actions.InweboWebflowConstants;
import org.apereo.cas.web.flow.CasWebflowConstants;
import org.apereo.cas.web.flow.configurer.AbstractCasMultifactorWebflowConfig... | __label__POS | 0.900853 |
package org.apereo.cas.support.inwebo.web.flow.actions;
import org.apereo.cas.support.inwebo.authentication.InweboCredential;
import org.apereo.cas.support.inwebo.service.InweboService;
import org.apereo.cas.support.inwebo.service.response.InweboResult;
import org.apereo.cas.util.function.FunctionUtils;
import org.ape... | __label__POS | 0.640902 |
package org.apereo.cas.support.inwebo.web.flow.actions;
import org.apereo.cas.support.inwebo.service.InweboService;
import org.apereo.cas.support.inwebo.service.response.InweboResult;
import org.apereo.cas.web.flow.actions.BaseCasWebflowAction;
import org.apereo.cas.web.support.WebUtils;
import lombok.RequiredArgsCon... | __label__POS | 0.929924 |
package org.apereo.cas.support.inwebo.web.flow.actions;
import org.apereo.cas.configuration.CasConfigurationProperties;
import org.apereo.cas.support.inwebo.service.InweboService;
import org.apereo.cas.util.LoggingUtils;
import org.apereo.cas.web.flow.actions.BaseCasWebflowAction;
import org.apereo.cas.web.support.We... | __label__POS | 0.620194 |
package org.apereo.cas.support.inwebo.web.flow.actions;
/**
* The webflow constants.
*
* @author Jerome LELEU
* @since 6.4.0
*/
public interface InweboWebflowConstants {
/**
* The pending transition.
*/
String PENDING = "pending";
/**
* The push transition.
*/
String PUSH = "pu... | __label__POS | 0.935694 |
using System;
using System.Collections.Generic;
using System.Text;
namespace Api2Pdf
{
#region Common
public abstract class ConversionRequest
{
public string FileName { get; set; }
public bool Inline { get; set; } = true;
public bool UseCustomStorage { get; set; } = false;
... | __label__POS | 0.895499 |
package org.apereo.cas.gauth.token;
import org.apereo.cas.authentication.OneTimeToken;
import org.apereo.cas.configuration.model.support.mfa.gauth.DynamoDbGoogleAuthenticatorMultifactorProperties;
import org.apereo.cas.dynamodb.DynamoDbQueryBuilder;
import org.apereo.cas.dynamodb.DynamoDbTableUtils;
import org.apereo.... | __label__POS | 0.827914 |
package org.apereo.cas.gauth.token;
import org.apereo.cas.otp.repository.token.BaseOneTimeTokenRepository;
import lombok.RequiredArgsConstructor;
import lombok.val;
import java.time.LocalDateTime;
import java.time.ZoneOffset;
/**
* This is {@link GoogleAuthenticatorDynamoDbTokenRepository}.
*
* @author Misagh Moay... | __label__POS | 0.996144 |
package org.apereo.cas.gauth.credential;
import org.apereo.cas.authentication.OneTimeTokenAccount;
import org.apereo.cas.configuration.model.support.mfa.gauth.DynamoDbGoogleAuthenticatorMultifactorProperties;
import org.apereo.cas.dynamodb.DynamoDbQueryBuilder;
import org.apereo.cas.dynamodb.DynamoDbTableUtils;
import... | __label__POS | 0.893678 |
package org.apereo.cas.gauth.credential;
import org.apereo.cas.authentication.OneTimeTokenAccount;
import org.apereo.cas.gauth.CasGoogleAuthenticator;
import org.apereo.cas.util.crypto.CipherExecutor;
import lombok.val;
import java.util.Collection;
import java.util.Objects;
import java.util.Optional;
import java.uti... | __label__POS | 0.981266 |
package org.apereo.cas.bucket4j.consumer;
import org.apereo.cas.bucket4j.producer.InMemoryBucketStore;
import org.apereo.cas.configuration.model.support.bucket4j.Bucket4jBandwidthLimitProperties;
import org.apereo.cas.configuration.model.support.throttle.Bucket4jThrottleProperties;
import lombok.val;
import org.junit... | __label__POS | 0.988745 |
package org.apereo.cas.bucket4j.producer;
import org.apereo.cas.bucket4j.consumer.DefaultBucketConsumer;
import org.apereo.cas.configuration.model.support.bucket4j.Bucket4jBandwidthLimitProperties;
import org.apereo.cas.configuration.model.support.throttle.Bucket4jThrottleProperties;
import lombok.val;
import org.jun... | __label__POS | 0.993039 |
package org.apereo.cas.bucket4j.consumer;
import java.util.concurrent.TimeUnit;
/**
* This is {@link BucketConsumer}.
*
* @author Misagh Moayyed
* @since 6.5.0
*/
@FunctionalInterface
public interface BucketConsumer {
/**
* Header value to indicate available tokens.
*/
String HEADER_NAME_X_RATE... | __label__POS | 0.96781 |
package org.apereo.cas.bucket4j.producer;
import org.apereo.cas.configuration.model.support.bucket4j.BaseBucket4jProperties;
import org.apereo.cas.configuration.support.Beans;
import io.github.bucket4j.AbstractBucket;
import io.github.bucket4j.Bandwidth;
import io.github.bucket4j.Bucket;
import io.github.bucket4j.Ref... | __label__POS | 0.90606 |
# My Collection of AppLocker Hardening Rules
I have added all bypasses I know of from my list and from this list:
https://docs.microsoft.com/nb-no/windows/security/threat-protection/device-guard/steps-to-deploy-windows-defender-application-control
**IMPORTANT:
These rules have had minimal of testing in a live envir... | __label__POS | 0.723343 |
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.892341 |
package org.apereo.cas.web.flow;
import org.apereo.cas.CasProtocolConstants;
import org.apereo.cas.authentication.principal.WebApplicationService;
import org.apereo.cas.configuration.model.support.delegation.DelegationAutoRedirectTypes;
import org.apereo.cas.support.wsfederation.WsFederationConfiguration;
import org.a... | __label__POS | 0.647384 |
package org.apereo.cas.web.flow;
import org.apereo.cas.authentication.adaptive.AdaptiveAuthenticationPolicy;
import org.apereo.cas.services.UnauthorizedServiceException;
import org.apereo.cas.util.LoggingUtils;
import org.apereo.cas.web.flow.actions.AbstractAuthenticationAction;
import org.apereo.cas.web.flow.resolver... | __label__POS | 0.634333 |
package org.apereo.cas.mfa;
import org.apereo.cas.authentication.Authentication;
import org.apereo.cas.mfa.twilio.CasTwilioMultifactorTokenCredential;
import org.apereo.cas.services.RegisteredServiceTestUtils;
import org.apereo.cas.util.MockRequestContext;
import org.apereo.cas.web.flow.SetCredentialMetadataAuthentica... | __label__POS | 0.884034 |
package org.apereo.cas.mfa.twilio;
import org.apereo.cas.authentication.AbstractMultifactorAuthenticationProvider;
import org.apereo.cas.configuration.model.support.mfa.twilio.CasTwilioMultifactorAuthenticationProperties;
import org.apereo.cas.services.RegisteredService;
import lombok.NoArgsConstructor;
import org.apa... | __label__POS | 0.994473 |
package org.apereo.cas.mfa.twilio;
import org.apereo.cas.authentication.Authentication;
import org.apereo.cas.authentication.AuthenticationHandlerExecutionResult;
import org.apereo.cas.authentication.Credential;
import org.apereo.cas.authentication.MultifactorAuthenticationFailedException;
import org.apereo.cas.authen... | __label__POS | 0.752035 |
package org.apereo.cas.mfa.twilio;
import org.apereo.cas.authentication.principal.Principal;
import org.apereo.cas.authentication.principal.WebApplicationService;
/**
* This is {@link CasTwilioMultifactorAuthenticationService}.
*
* @author Misagh Moayyed
* @since 7.2.0
*/
public interface CasTwilioMultifactorAut... | __label__POS | 0.990254 |
package org.apereo.cas.web.flow;
import org.apereo.cas.configuration.CasConfigurationProperties;
import org.apereo.cas.mfa.twilio.CasTwilioMultifactorTokenCredential;
import org.apereo.cas.util.CollectionUtils;
import org.apereo.cas.web.flow.configurer.AbstractCasMultifactorWebflowConfigurer;
import org.apereo.cas.web... | __label__POS | 0.928556 |
package org.apereo.cas.web.flow;
import org.apereo.cas.bucket4j.consumer.BucketConsumer;
import org.apereo.cas.configuration.model.support.mfa.twilio.CasTwilioMultifactorAuthenticationProperties;
import org.apereo.cas.mfa.twilio.CasTwilioMultifactorAuthenticationProvider;
import org.apereo.cas.mfa.twilio.CasTwilioMult... | __label__POS | 0.948841 |
package org.apereo.cas.support.x509.rest;
import org.apereo.cas.adaptors.x509.authentication.RequestHeaderX509CertificateExtractor;
import org.apereo.cas.adaptors.x509.authentication.principal.X509CertificateCredential;
import lombok.val;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;
import org... | __label__POS | 0.931796 |
package org.apereo.cas.support.x509.rest;
import org.apereo.cas.adaptors.x509.authentication.principal.X509CertificateCredential;
import lombok.Cleanup;
import lombok.val;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.mockito.junit.j... | __label__POS | 0.968185 |
package org.apereo.cas.support.x509.rest;
import org.apereo.cas.adaptors.x509.authentication.principal.X509CertificateCredential;
import org.apereo.cas.util.crypto.CertUtils;
import lombok.val;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;
import org.springframework.core.io.ClassPathResource;
i... | __label__POS | 0.96982 |
package org.apereo.cas.support.x509.rest;
import org.apereo.cas.adaptors.x509.authentication.principal.X509CertificateCredential;
import org.apereo.cas.authentication.Credential;
import org.apereo.cas.rest.factory.RestHttpRequestCredentialFactory;
import lombok.extern.slf4j.Slf4j;
import lombok.val;
import org.spring... | __label__POS | 0.904502 |
package org.apereo.cas.support.x509.rest;
import org.apereo.cas.adaptors.x509.authentication.X509CertificateExtractor;
import org.apereo.cas.adaptors.x509.authentication.principal.X509CertificateCredential;
import org.apereo.cas.authentication.Credential;
import org.apereo.cas.rest.factory.RestHttpRequestCredentialFac... | __label__POS | 0.744108 |
package org.apereo.cas.nativex;
import org.apereo.cas.ticket.registry.GeodeTicketDocument;
import org.apereo.cas.util.nativex.CasRuntimeHintsRegistrar;
import lombok.val;
import org.apache.geode.internal.cache.InternalCacheBuilder;
import org.apache.geode.internal.serialization.DataSerializableFixedID;
import org.apac... | __label__POS | 0.991676 |
package org.apereo.cas.monitor;
import org.apereo.cas.util.LoggingUtils;
import lombok.RequiredArgsConstructor;
import lombok.ToString;
import lombok.extern.slf4j.Slf4j;
import lombok.val;
import org.bson.Document;
import org.hjson.JsonValue;
import org.hjson.Stringify;
import java.io.StringWriter;
/**
* This is {... | __label__POS | 0.939231 |
package org.apereo.cas.monitor;
import org.apereo.cas.mongo.CasMongoOperations;
import lombok.val;
import org.bson.Document;
/**
* This is {@link MongoDbHealthIndicator} where it attempts to collect statistics
* on all mongodb instances configured inside CAS.
*
* @author Misagh Moayyed
* @since 5.2.0
*/
public... | __label__POS | 0.995284 |
-- This module is a store for all schemas unused in a code context.
-- It is meant to deal with the id and $ref madness that JSON schema authors
-- managed to put together. Resolving JSON references involves full URI
-- parsing, absolute/relative URLs, scope management, id aliases, multipass
-- parsing (as you have to ... | __label__POS | 0.667552 |
package org.apereo.cas.influxdb;
import org.apereo.cas.configuration.model.support.influxdb.InfluxDbProperties;
import org.apereo.cas.util.function.FunctionUtils;
import org.apereo.cas.util.spring.SpringExpressionLanguageValueResolver;
import com.influxdb.v3.client.InfluxDBClient;
import com.influxdb.v3.client.Point;
... | __label__POS | 0.836715 |
package org.apereo.cas.config;
import org.apereo.cas.configuration.CasConfigurationProperties;
import org.apereo.cas.configuration.features.CasFeatureModule;
import org.apereo.cas.util.spring.boot.ConditionalOnFeatureEnabled;
import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.b... | __label__POS | 0.997484 |
local base = require("resty.core.base")
local bit = require("bit")
local clear_tab = require("table.clear")
local nkeys = require("table.nkeys")
local new_tab = base.new_tab
local find_str = string.find
local tonumber = tonumber
local ipairs = ipairs
local pairs = pairs
local... | __label__POS | 0.987647 |
package org.apereo.cas.ticket.registry;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.SuperBuilder;
import java.io.... | __label__POS | 0.872137 |
package org.apereo.cas.authentication;
import org.apereo.cas.configuration.model.support.mongo.SingleCollectionMongoDbProperties;
import org.apereo.cas.mongo.MongoDbConnectionFactory;
import org.apereo.cas.util.junit.EnabledIfListeningOnPort;
import lombok.val;
import org.junit.jupiter.api.Tag;
import org.junit.jupit... | __label__POS | 0.945477 |
-- https://github.com/api7/lua-resty-http
local http = require("resty.http")
local clear_tab = require("table.clear")
local split = require("ngx.re").split
local find = ngx.re.find
local concat_tab = table.concat
local tostring = tostring
local select = select
local ipairs ... | __label__POS | 0.997214 |
local ngx_shared = ngx.shared
local utils = require("resty.etcd.utils")
local type = type
local now = os.time
local conf
local HEALTH_CHECK_MODE_ROUND_ROBIN = "round-robin"
local HEALTH_CHECK_MODE_SHARED_DICT = "shared-dict"
local HEALTH_CHECK_MODE_DISABLED = "disabled"
local _M = {}
_M.... | __label__POS | 0.618616 |
local get_request = require("resty.core.base").get_request
local get_string_buf= require("resty.core.base").get_string_buf
local ffi = require("ffi")
local C = ffi.C
local ffi_string = ffi.string
local ngx = ngx
local ngx_var = ngx.var
local re_gmatch = ngx.re.gmatch
local... | __label__POS | 0.99687 |
-- https://github.com/api7/lua-resty-radixtree
--
-- Copyright 2019-2020 Shenzhen ZhiLiu Technology Co., Ltd.
-- https://www.apiseven.com
--
-- See the NOTICE file distributed with
-- this work for additional information regarding copyright ownership.
-- The owner licenses this file to You under the Apache License, Ver... | __label__POS | 0.942738 |
package org.apereo.cas.trusted.authentication.storage.fingerprint;
import org.apereo.cas.services.RegisteredServiceTestUtils;
import org.apereo.cas.trusted.web.flow.fingerprint.ClientIpDeviceFingerprintExtractor;
import lombok.NoArgsConstructor;
import lombok.val;
import org.apereo.inspektr.common.web.ClientInfo;
impo... | __label__POS | 0.929947 |
package org.apereo.cas.trusted.authentication.storage.fingerprint;
import org.apereo.cas.services.RegisteredServiceTestUtils;
import org.apereo.cas.trusted.web.flow.fingerprint.DeviceFingerprintExtractor;
import lombok.val;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;
import org.springframewor... | __label__POS | 0.967379 |
package org.apereo.cas.audit;
import org.apereo.cas.audit.generic.JdbcAuditTrailEntity;
import org.apereo.cas.audit.mssql.MsSqlServerJdbcAuditTrailEntity;
import org.apereo.cas.audit.mysql.MySQLJdbcAuditTrailEntity;
import org.apereo.cas.audit.oracle.OracleJdbcAuditTrailEntity;
import org.apereo.cas.audit.postgres.Pos... | __label__POS | 0.99085 |
package org.apereo.cas.audit.generic;
import org.apereo.cas.audit.spi.entity.AuditTrailEntity;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.experimental.Accessors;
import lombok.experimental.SuperBuilder;
import jakarta.persistence.AttributeOverride;
import jakarta.persist... | __label__POS | 0.870498 |
package org.apereo.inspektr.audit.support;
import lombok.val;
import java.util.Calendar;
import java.util.List;
/**
* Produces a where clause to select audit records older than some arbitrary
* cutoff age in days.
*
* @author Marvin S. Addison
* @since 1.0
*
*/
public class MaxAgeWhereClauseMatchCriteria exten... | __label__POS | 0.998366 |
package org.apereo.inspektr.audit.support;
import java.util.List;
/**
* Match criteria defined in terms of a SQL where clause limiter. The
* {@link #toString()} method of this class produces a where clause beginning
* with the text "WHERE" such that is can be directly appended to a SQL
* statement without a wher... | __label__POS | 0.989639 |
package org.apereo.cas.dynamodb;
import org.apereo.cas.configuration.model.support.dynamodb.AuditDynamoDbProperties;
import lombok.val;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;
import software.amazon.awssdk.core.SdkSystemSetting;
import software.amazon.awssdk.regions.Region;
import softwar... | __label__POS | 0.928466 |
package org.apereo.cas.dynamodb;
import org.apereo.cas.configuration.model.support.dynamodb.AbstractDynamoDbProperties;
import org.apereo.cas.util.LoggingUtils;
import org.apereo.cas.util.function.FunctionUtils;
import lombok.experimental.UtilityClass;
import lombok.extern.slf4j.Slf4j;
import lombok.val;
import org.ap... | __label__POS | 0.981172 |
package org.apereo.cas.dynamodb;
import org.apereo.cas.util.CollectionUtils;
import org.apereo.cas.util.function.FunctionUtils;
import lombok.RequiredArgsConstructor;
import lombok.val;
import org.springframework.boot.actuate.health.AbstractHealthIndicator;
import org.springframework.boot.actuate.health.Health;
impor... | __label__POS | 0.677495 |
import org.apereo.cas.authentication.Credential
import org.apereo.cas.pm.*
def change(Object[] args) {
def passwordChangeBean = args[0] as PasswordChangeRequest
def logger = args[1]
switch (passwordChangeBean.username) {
case "bad-credential":
return false
case "error-credential... | __label__POS | 0.744598 |
package org.apereo.cas.pm.web.flow.actions;
import org.apereo.cas.util.MockRequestContext;
import org.apereo.cas.web.flow.CasWebflowConstants;
import lombok.val;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframewor... | __label__POS | 0.642066 |
package org.apereo.cas.pm.web.flow.actions;
import org.apereo.cas.util.MockRequestContext;
import org.apereo.cas.web.flow.CasWebflowConstants;
import lombok.val;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
/**
* This is {@link VerifySecurityQ... | __label__POS | 0.968821 |
package org.apereo.cas.pm.web.flow.actions;
import org.apereo.cas.authentication.Credential;
import org.apereo.cas.services.RegisteredServiceTestUtils;
import org.apereo.cas.util.MockRequestContext;
import org.apereo.cas.web.flow.CasWebflowConstants;
import lombok.val;
import org.junit.jupiter.api.Tag;
import org.jun... | __label__POS | 0.763787 |
package org.apereo.cas.nativex;
import org.apereo.cas.pm.PasswordChangeRequest;
import org.apereo.cas.pm.PasswordResetTokenCipherExecutor;
import org.apereo.cas.pm.impl.JsonResourcePasswordManagementService;
import org.apereo.cas.util.nativex.CasRuntimeHintsRegistrar;
import org.apereo.cas.web.CaptchaActivationStrateg... | __label__POS | 0.996338 |
package org.apereo.cas.pm.web.flow;
import org.apereo.cas.configuration.CasConfigurationProperties;
import org.apereo.cas.web.flow.CasWebflowConstants;
import org.apereo.cas.web.flow.configurer.AbstractCasWebflowConfigurer;
import lombok.val;
import org.springframework.context.ConfigurableApplicationContext;
import or... | __label__POS | 0.986693 |
package org.apereo.cas.pm.web.flow;
import org.apereo.cas.configuration.CasConfigurationProperties;
import org.apereo.cas.web.flow.CasWebflowConfigurer;
import org.apereo.cas.web.flow.CasWebflowConstants;
import org.apereo.cas.web.flow.configurer.AbstractCasWebflowConfigurer;
import lombok.val;
import org.springframew... | __label__POS | 0.988695 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.