content stringlengths 263 5.24M | pred_label stringclasses 1
value | pred_score_pos float64 0.6 1 |
|---|---|---|
package org.apereo.cas.nativex;
import org.apereo.cas.authentication.attribute.AggregatingPersonAttributeDao;
import org.apereo.cas.authentication.principal.PrincipalAttributesRepositoryCache;
import org.apereo.cas.authentication.principal.attribute.PersonAttributeDao;
import org.apereo.cas.authentication.principal.re... | __label__POS | 0.907412 |
package org.apereo.cas.persondir.cache;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import java.io.Serial;
import java.io.Serializable;
/**
* Cache key which value is based on a pre-calculated hash code.
*
* @author Alex Ruiz
* @since 7.1.0
*/
@AllArgsCon... | __label__POS | 0.976139 |
package org.apereo.cas.persondir.groovy;
import org.apereo.cas.authentication.attribute.AbstractDefaultAttributePersonAttributeDao;
import org.apereo.cas.authentication.attribute.SimplePersonAttributes;
import org.apereo.cas.authentication.principal.attribute.PersonAttributeDao;
import org.apereo.cas.authentication.pr... | __label__POS | 0.671496 |
package org.apereo.cas.persondir.groovy;
import org.apereo.cas.authentication.attribute.SimpleUsernameAttributeProvider;
import org.apereo.cas.authentication.principal.attribute.PersonAttributes;
import org.apereo.cas.authentication.principal.attribute.UsernameAttributeProvider;
import org.apereo.cas.configuration.Cas... | __label__POS | 0.630715 |
package org.apereo.cas.persondir.groovy;
import org.apereo.cas.authentication.principal.attribute.PersonAttributes;
import java.util.List;
import java.util.Map;
import java.util.Set;
/**
* Simplified DAO interface for use by Groovy scripts that provide user attributes.
*
* @author James Wennmacher, jwennmacher@uni... | __label__POS | 0.618187 |
package org.apereo.cas.authentication.principal.resolvers;
import org.apereo.cas.configuration.model.core.authentication.PersonDirectoryPrincipalResolverProperties;
import lombok.experimental.UtilityClass;
import org.apache.commons.lang3.StringUtils;
import java.util.Arrays;
import java.util.Set;
import java.util.stre... | __label__POS | 0.998746 |
package org.apereo.cas.interrupt;
import org.apereo.cas.authentication.CoreAuthenticationTestUtils;
import org.apereo.cas.util.CollectionUtils;
import org.apereo.cas.util.MockRequestContext;
import org.apereo.cas.util.serialization.JacksonObjectMapperFactory;
import com.fasterxml.jackson.databind.ObjectMapper;
import ... | __label__POS | 0.731496 |
package org.apereo.cas.interrupt;
import org.apereo.cas.authentication.CoreAuthenticationTestUtils;
import org.apereo.cas.services.DefaultRegisteredServiceWebflowInterruptPolicy;
import org.apereo.cas.services.RegisteredServiceTestUtils;
import org.apereo.cas.util.MockRequestContext;
import lombok.val;
import org.juni... | __label__POS | 0.956368 |
package org.apereo.cas.interrupt;
import org.apereo.cas.util.cipher.BaseStringCipherExecutor;
/**
* This is {@link InterruptTrackingCookieCipherExecutor}.
*
* @author Misagh Moayyed
* @since 7.0.0
*/
public class InterruptTrackingCookieCipherExecutor extends BaseStringCipherExecutor {
public InterruptTrackin... | __label__POS | 0.999943 |
package org.apereo.cas.interrupt;
import org.apereo.cas.authentication.Authentication;
import org.apereo.cas.authentication.Credential;
import org.apereo.cas.authentication.principal.Service;
import org.apereo.cas.services.RegisteredService;
import org.apereo.cas.services.WebBasedRegisteredService;
import lombok.exter... | __label__POS | 0.841027 |
package org.apereo.cas.interrupt;
import org.apereo.cas.authentication.Authentication;
import org.apereo.cas.authentication.Credential;
import org.apereo.cas.authentication.principal.Service;
import org.apereo.cas.services.RegisteredService;
import org.apereo.cas.util.scripting.ExecutableCompiledScript;
import org.ape... | __label__POS | 0.908217 |
package org.apereo.cas.interrupt;
import org.apereo.cas.authentication.Authentication;
import org.apereo.cas.authentication.Credential;
import org.apereo.cas.authentication.principal.Service;
import org.apereo.cas.services.RegisteredService;
import org.apereo.cas.util.CollectionUtils;
import lombok.RequiredArgsConstr... | __label__POS | 0.904539 |
package org.apereo.cas.config;
import org.apereo.cas.configuration.CasConfigurationProperties;
import org.apereo.cas.configuration.features.CasFeatureModule;
import org.apereo.cas.eclipselink.CasEclipseLinkJpaBeanFactory;
import org.apereo.cas.jpa.JpaBeanFactory;
import org.apereo.cas.util.spring.boot.ConditionalOnFea... | __label__POS | 0.728087 |
package org.apereo.cas.eclipselink;
import org.apereo.cas.configuration.model.support.jpa.AbstractJpaProperties;
import org.apereo.cas.configuration.model.support.jpa.DatabaseProperties;
import org.apereo.cas.configuration.support.JpaBeans;
import org.apereo.cas.jpa.JpaBeanFactory;
import org.apereo.cas.jpa.JpaConfigu... | __label__POS | 0.93734 |
package org.apereo.cas.support.wsfederation;
import org.apereo.cas.support.wsfederation.attributes.WsFederationAttributeMutator;
import lombok.val;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;
import java.io.Serial;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
... | __label__POS | 0.992659 |
package org.apereo.cas.support.wsfederation.attributes;
import org.apereo.cas.authentication.CoreAuthenticationTestUtils;
import org.apereo.cas.config.CasCoreScriptingAutoConfiguration;
import org.apereo.cas.test.CasTestExtension;
import org.apereo.cas.util.scripting.ExecutableCompiledScriptFactory;
import org.apereo.... | __label__POS | 0.777195 |
package org.apereo.cas.support.wsfederation.authentication.crypto;
import org.apereo.cas.support.wsfederation.AbstractWsFederationTests;
import lombok.val;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;
import org.springframework.test.context.TestPropertySource;
import static org.junit.jupiter.... | __label__POS | 0.908829 |
package org.apereo.cas.support.wsfederation.authentication.principal;
import org.apereo.cas.authentication.AuthenticationManager;
import org.apereo.cas.authentication.CoreAuthenticationTestUtils;
import org.apereo.cas.support.wsfederation.AbstractWsFederationTests;
import lombok.val;
import org.junit.jupiter.api.Tag;... | __label__POS | 0.71091 |
package org.apereo.cas.support.wsfederation.authentication.principal;
import org.apereo.cas.support.wsfederation.AbstractWsFederationTests;
import lombok.val;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;
import java.time.ZoneOffset;
import java.time.ZonedDateTime;
import static org.junit.jup... | __label__POS | 0.898373 |
package org.apereo.cas.support.wsfederation.authentication.handler.support;
import org.apereo.cas.authentication.principal.PrincipalFactoryUtils;
import org.apereo.cas.authentication.principal.Service;
import org.apereo.cas.support.wsfederation.AbstractWsFederationTests;
import lombok.val;
import org.junit.jupiter.ap... | __label__POS | 0.770845 |
package org.apereo.cas.support.wsfederation;
import org.apereo.cas.configuration.model.support.delegation.DelegationAutoRedirectTypes;
import org.apereo.cas.support.wsfederation.attributes.WsFederationAttributeMutator;
import org.apereo.cas.web.cookie.CasCookieBuilder;
import lombok.Getter;
import lombok.Setter;
impo... | __label__POS | 0.737053 |
package org.apereo.cas.support.wsfederation.attributes;
import org.apereo.cas.util.scripting.ExecutableCompiledScript;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import lombok.val;
import java.io.Serial;
import java.util.List;
import java.util.Map;
/**
* This is {@link GroovyWsFederatio... | __label__POS | 0.994671 |
package org.apereo.cas.support.wsfederation.web;
import org.apereo.cas.util.cipher.BaseStringCipherExecutor;
/**
* This is {@link WsFederationCookieCipherExecutor}.
*
* @author Misagh Moayyed
* @since 5.3.0
*/
public class WsFederationCookieCipherExecutor extends BaseStringCipherExecutor {
public WsFederatio... | __label__POS | 0.999948 |
package org.apereo.cas.support.wsfederation.authentication.crypto;
import org.jooq.lambda.Unchecked;
import org.opensaml.security.credential.Credential;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
/**
* This is {@link ChainingWsFederationCertificateProvider}.
*
* @author... | __label__POS | 0.999575 |
package org.apereo.cas.support.wsfederation.authentication.crypto;
import org.apereo.cas.support.saml.OpenSamlConfigBean;
import org.apereo.cas.support.wsfederation.WsFederationConfiguration;
import org.apereo.cas.util.ResourceUtils;
import org.apereo.cas.util.crypto.CertUtils;
import lombok.val;
import org.jooq.lamb... | __label__POS | 0.778107 |
package org.apereo.cas.support.wsfederation.authentication.principal;
import org.apereo.cas.authentication.credential.AbstractCredential;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import lombok.extern.slf4j.Slf4j;
import lomb... | __label__POS | 0.875117 |
package org.apereo.cas.support.wsfederation.authentication.handler.support;
import org.apereo.cas.authentication.AuthenticationHandlerExecutionResult;
import org.apereo.cas.authentication.Credential;
import org.apereo.cas.authentication.handler.support.AbstractPreAndPostProcessingAuthenticationHandler;
import org.aper... | __label__POS | 0.983842 |
package org.apereo.cas.web.flow;
import org.apereo.cas.config.CasCoreMultifactorAuthenticationAutoConfiguration;
import org.apereo.cas.config.CasCoreMultifactorAuthenticationWebflowAutoConfiguration;
import org.apereo.cas.config.CasTrustedAuthenticationWebflowAutoConfiguration;
import lombok.val;
import org.junit.jupi... | __label__POS | 0.783062 |
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.947235 |
package org.apereo.cas.web.saml2;
import org.apereo.cas.config.CasDelegatedAuthenticationSaml2AutoConfiguration;
import org.apereo.cas.support.pac4j.authentication.clients.ConfigurableDelegatedClientBuilder;
import org.apereo.cas.util.spring.boot.SpringBootTestAutoConfigurations;
import org.apereo.cas.web.BaseDelegate... | __label__POS | 0.795126 |
package org.apereo.cas.web.saml2;
import org.apereo.cas.web.report.AbstractCasEndpointTests;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;
import org.springframework.context.annotation.Import;
import org.springframework.http.MediaType;
import org.springframework.test.context.TestPropertySource;
... | __label__POS | 0.684859 |
package org.apereo.cas.web.saml2;
import org.apereo.cas.authentication.principal.ClientCustomPropertyConstants;
import org.apereo.cas.configuration.CasConfigurationProperties;
import org.apereo.cas.configuration.model.support.delegation.DelegationAutoRedirectTypes;
import org.apereo.cas.support.pac4j.authentication.cl... | __label__POS | 0.989187 |
package org.apereo.cas.web.saml2;
import org.apereo.cas.web.flow.BaseWebflowConfigurerTests;
import org.apereo.cas.web.flow.CasWebflowConfigurer;
import org.apereo.cas.web.flow.CasWebflowConstants;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;
import org.springframework.context.annotation.Import... | __label__POS | 0.808996 |
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.928312 |
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.963907 |
# 🐷 Apigcc - 非侵入的RestDoc文档生成工具

### 前言
程序员一直以来都有一个烦恼,只想写代码,不想写文档。代码就表达了我的思想和灵魂。
Python提出了一个方案,叫**docstring**,来试图解决这个问题。即编写代码,同时也能写出文档,保持代码和文档的一致。docstring说白了就是一堆代码中的注释。Python的docstring可以通过help函数直接输出一份有格式的文档,本工具的思想与此类似。
### 代码即文档
Apigcc是一个**非侵入**的RestDoc文档生... | __label__POS | 0.999997 |
package org.apereo.cas.web.saml2;
import org.apereo.cas.support.pac4j.authentication.clients.DelegatedClientsEndpointContributor;
import org.apereo.cas.util.CollectionUtils;
import lombok.val;
import org.apache.commons.lang3.BooleanUtils;
import org.apache.commons.lang3.StringUtils;
import org.pac4j.core.client.BaseCl... | __label__POS | 0.79117 |
package com.github.apigcc.springmvc;
import com.github.apigcc.core.common.URI;
import com.github.apigcc.core.common.helper.AnnotationHelper;
import com.github.apigcc.core.common.helper.ClassHelper;
import com.github.apigcc.core.common.helper.ExpressionHelper;
import com.github.apigcc.core.schema.Method;
import com.git... | __label__POS | 0.999835 |
package com.github.apigcc.springmvc;
import com.github.javaparser.ast.NodeList;
import com.github.javaparser.ast.body.Parameter;
public class ParameterHelper {
public static final String ANNOTATION_REQUEST_PARAM = "RequestParam";
public static final String ANNOTATION_REQUEST_HEADER = "RequestHeader";
pub... | __label__POS | 1.000009 |
package com.github.apigcc.core;
import com.github.apigcc.core.common.helper.FileHelper;
import com.github.apigcc.core.declaration.CodeTypeDeclaration;
import com.github.apigcc.core.render.AsciidocRender;
import com.github.apigcc.core.render.PostmanRender;
import com.github.apigcc.core.render.ProjectRender;
import com.... | __label__POS | 0.811204 |
package com.github.apigcc.core.description;
import com.github.apigcc.core.common.ObjectMappers;
import com.github.apigcc.core.schema.Row;
import com.fasterxml.jackson.databind.node.ArrayNode;
import java.util.ArrayList;
import java.util.Collection;
public class ArrayTypeDescription extends TypeDescription {
pro... | __label__POS | 0.834659 |
package com.github.apigcc.core.schema;
import com.github.apigcc.core.Context;
import com.github.apigcc.core.common.helper.StringHelper;
import com.github.javaparser.ast.comments.Comment;
import lombok.Getter;
import lombok.Setter;
import javax.annotation.Nonnull;
import java.util.HashMap;
import java.util.Map;
import... | __label__POS | 0.974047 |
package com.github.apigcc.core.schema;
import com.github.apigcc.core.common.helper.CommentHelper;
import com.github.javaparser.ast.comments.Comment;
import com.github.javaparser.javadoc.Javadoc;
import com.github.javaparser.javadoc.JavadocBlockTag;
import lombok.extern.slf4j.Slf4j;
import java.util.HashMap;
import ja... | __label__POS | 0.986241 |
package com.github.apigcc.core.schema;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.node.ObjectNode;
import com.github.apigcc.core.common.ObjectMappers;
import com.github.apigcc.core.common.QueryStringBuilder;
import com.github.apigcc.core.common.helper.StringHelper;
import lom... | __label__POS | 0.705359 |
package com.github.apigcc.core.resolver;
import com.github.apigcc.core.Apigcc;
import com.github.apigcc.core.description.ArrayTypeDescription;
import com.github.apigcc.core.description.TypeDescription;
import com.github.apigcc.core.description.UnAvailableTypeDescription;
import com.github.apigcc.core.common.helper.Cla... | __label__POS | 0.896534 |
package org.apereo.cas.webauthn;
import org.apereo.cas.configuration.CasConfigurationProperties;
import org.apereo.cas.redis.core.CasRedisTemplate;
import org.apereo.cas.util.crypto.CipherExecutor;
import org.apereo.cas.util.function.FunctionUtils;
import org.apereo.cas.webauthn.storage.BaseWebAuthnCredentialRepositor... | __label__POS | 0.87022 |
package com.github.apigcc.core.resolver;
import com.github.apigcc.core.description.TypeDescription;
import com.github.apigcc.core.description.UnAvailableTypeDescription;
import com.github.apigcc.core.common.helper.ClassHelper;
import com.github.javaparser.ast.type.Type;
import com.github.javaparser.resolution.Unsolved... | __label__POS | 0.65971 |
package com.github.apigcc.core.resolver;
import com.github.apigcc.core.description.PrimitiveTypeDescription;
import com.github.apigcc.core.description.TypeDescription;
import com.github.javaparser.resolution.types.ResolvedType;
import com.google.common.collect.ImmutableList;
/**
* 基础类型解析
*/
public class PrimitiveTy... | __label__POS | 0.994885 |
package com.github.apigcc.core.resolver;
import com.github.apigcc.core.description.StringTypeDescription;
import com.github.apigcc.core.description.TypeDescription;
import com.github.javaparser.resolution.declarations.ResolvedEnumConstantDeclaration;
import com.github.javaparser.resolution.declarations.ResolvedEnumDec... | __label__POS | 0.97213 |
package com.github.apigcc.core.resolver;
import com.github.apigcc.core.description.StringTypeDescription;
import com.github.apigcc.core.description.TypeDescription;
import com.github.javaparser.resolution.types.ResolvedType;
import com.google.common.collect.ImmutableList;
import java.time.LocalDate;
import java.time.... | __label__POS | 0.92776 |
package com.github.apigcc.core.common;
import com.github.apigcc.core.common.helper.StringHelper;
import com.google.common.collect.Lists;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
@Getter
@EqualsAndHashCode
public class URI {
... | __label__POS | 0.997732 |
package com.github.apigcc.core.common;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.node.ObjectNode;
import java.util.Iterator;
public class ObjectMappers {
... | __label__POS | 0.996795 |
package com.github.apigcc.core.render;
import com.github.apigcc.core.Apigcc;
import com.github.apigcc.core.common.ObjectMappers;
import com.github.apigcc.core.common.helper.FileHelper;
import com.fasterxml.jackson.databind.node.ObjectNode;
import com.github.apigcc.core.common.postman.*;
import com.github.apigcc.core.s... | __label__POS | 0.603736 |
package com.github.apigcc.core.common.markup;
import com.github.apigcc.core.common.markup.asciidoc.AsciiDocBuilder;
import java.util.List;
import java.util.function.Consumer;
/**
* 文档构建器
* 只实现满足需求的部分即可
*/
public interface MarkupBuilder {
static MarkupBuilder getInstance(){
return new AsciiDocBuilder(... | __label__POS | 0.871515 |
package com.github.apigcc.core.common.helper;
import com.github.javaparser.ast.body.FieldDeclaration;
import com.github.javaparser.ast.expr.AnnotationExpr;
import com.github.javaparser.ast.expr.Expression;
import com.github.javaparser.resolution.declarations.ResolvedFieldDeclaration;
import com.github.javaparser.symbo... | __label__POS | 0.999172 |
package com.github.apigcc.core.common.helper;
import com.github.javaparser.ast.body.FieldDeclaration;
import com.github.javaparser.ast.expr.AnnotationExpr;
import com.github.javaparser.resolution.declarations.ResolvedFieldDeclaration;
import com.github.javaparser.symbolsolver.javaparsermodel.declarations.JavaParserFie... | __label__POS | 0.999946 |
package com.github.apigcc.core.common.helper;
import com.github.javaparser.ast.CompilationUnit;
import com.github.javaparser.ast.ImportDeclaration;
import com.github.javaparser.ast.body.ClassOrInterfaceDeclaration;
import com.github.javaparser.ast.body.FieldDeclaration;
import com.github.javaparser.ast.type.ClassOrInt... | __label__POS | 0.987778 |
package com.github.apigcc.core.common.helper;
import com.github.javaparser.ast.body.FieldDeclaration;
import com.github.javaparser.ast.body.MethodDeclaration;
import com.github.javaparser.ast.comments.Comment;
import com.github.javaparser.javadoc.description.JavadocDescription;
import com.github.javaparser.javadoc.des... | __label__POS | 0.955558 |
package com.github.apigcc.core.common.helper;
import com.github.javaparser.resolution.declarations.ResolvedFieldDeclaration;
import com.github.javaparser.resolution.types.ResolvedReferenceType;
import com.github.javaparser.resolution.types.ResolvedType;
import com.github.javaparser.symbolsolver.javaparsermodel.declara... | __label__POS | 0.997949 |
package com.github.apigcc.core.common.helper;
import com.google.common.collect.Lists;
import lombok.extern.slf4j.Slf4j;
import java.io.BufferedWriter;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.List;
import java.util.st... | __label__POS | 0.733934 |
package com.github.apigcc.core.common.helper;
import com.github.javaparser.ast.expr.AnnotationExpr;
import com.github.javaparser.ast.expr.Expression;
import com.github.javaparser.ast.expr.MemberValuePair;
import com.github.javaparser.ast.nodeTypes.NodeWithAnnotations;
import java.util.List;
import java.util.Objects;
... | __label__POS | 0.999591 |
package com.github.apigcc.core.common.helper;
import com.google.common.base.Strings;
public class StringHelper {
public static boolean isBlank(String text) {
return Strings.isNullOrEmpty(text) || Strings.isNullOrEmpty(text.trim());
}
public static boolean nonBlank(String text) {
return !... | __label__POS | 0.999933 |
package com.github.apigcc.core.common.helper;
import com.github.javaparser.ast.NodeList;
import com.github.javaparser.ast.expr.*;
import com.github.javaparser.resolution.Resolvable;
import com.github.javaparser.symbolsolver.javaparsermodel.declarations.JavaParserFieldDeclaration;
import lombok.extern.slf4j.Slf4j;
imp... | __label__POS | 0.905184 |
package com.github.apigcc.core.common.diff;
import java.awt.*;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
public class FileSystem {
public static boolean open(Path path) {
if(!Files.exists(path)){
return false;
}
if ... | __label__POS | 0.999913 |
package com.github.apigcc.core.common.diff;
import com.google.common.base.Charsets;
import lombok.Getter;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileReader;
import java.io.IOException;
import java.nio.charset.Charset;
import java.nio.file.Files;
import java.nio.file.OpenOption;
i... | __label__POS | 0.916812 |
package org.apereo.cas.support.saml.metadata.resolver;
import org.apereo.cas.support.saml.BaseRedisSamlMetadataTests;
import org.apereo.cas.support.saml.services.SamlRegisteredService;
import org.apereo.cas.support.saml.services.idp.metadata.SamlMetadataDocument;
import org.apereo.cas.util.junit.EnabledIfListeningOnP... | __label__POS | 0.725408 |
package com.github.apigcc.core.common.markup.asciidoc;
public enum AsciiDoc implements CharSequence {
EXTENSION(".adoc"),
/**
* 各种关键字
*/
HEADER("= "),
TABLE("|==="),
TABLE_CELL("|"),
TITLE("="),
EMPHASIZED("_"),
STRONG("*"),
MONOSPACED("+"),
QUOTED("`"),
DOUBLE_QUO... | __label__POS | 0.988344 |
package com.github.apigcc.core.common.markup.markdown;
import com.github.apigcc.core.common.Assert;
import com.github.apigcc.core.common.markup.MarkupBuilder;
import com.google.common.base.Strings;
import java.util.List;
import java.util.function.Consumer;
import java.util.regex.Matcher;
public class MarkdownBuilder... | __label__POS | 0.632809 |
package com.github.apigcc.core.common.markup.markdown;
public enum Markdown implements CharSequence {
EXTENSION(".md"),
/**
* 各种关键字
*/
HEADER("# "),
TABLE_CELL("|"),
TABLE_ROW("-"),
TABLE_Header("---|"),
TITLE("#"),
EMPHASIZED("**"),
STRONG("**"),
MONOSPACED("`"),
... | __label__POS | 0.988339 |
package org.apereo.cas.support.saml.metadata.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.cas.redis.core.CasRe... | __label__POS | 0.790843 |
package org.apereo.cas.support.saml.idp.metadata;
import org.apereo.cas.monitor.Monitorable;
import org.apereo.cas.redis.core.CasRedisTemplate;
import org.apereo.cas.support.saml.idp.metadata.locator.AbstractSamlIdPMetadataLocator;
import org.apereo.cas.support.saml.services.SamlRegisteredService;
import org.apereo.c... | __label__POS | 0.964092 |
package org.apereo.cas.support.saml.idp.metadata;
import org.apereo.cas.util.cipher.BaseStringCipherExecutor;
/**
* This is {@link RedisSamlIdPMetadataCipherExecutor}.
*
* @author Misagh Moayyed
* @since 6.4.0
*/
public class RedisSamlIdPMetadataCipherExecutor extends BaseStringCipherExecutor {
public Redis... | __label__POS | 0.999958 |
package org.apereo.cas.support.saml.idp.metadata;
import org.apereo.cas.redis.core.CasRedisTemplate;
import org.apereo.cas.support.saml.idp.metadata.generator.BaseSamlIdPMetadataGenerator;
import org.apereo.cas.support.saml.idp.metadata.generator.SamlIdPMetadataGeneratorConfigurationContext;
import org.apereo.cas.supp... | __label__POS | 0.942131 |
package org.apereo.cas.logging;
import org.apereo.cas.aws.ChainingAWSCredentialsProvider;
import org.apereo.cas.util.CollectionUtils;
import org.apereo.cas.util.function.FunctionUtils;
import lombok.val;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.tuple.Pair;
import org.apache.logging... | __label__POS | 0.694613 |
package org.apereo.cas.adaptors.yubikey;
import org.apereo.cas.configuration.model.core.util.EncryptionJwtCryptoProperties;
import lombok.val;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;
import java.util.UUID;
import static org.junit.jupiter.api.Assertions.*;
/**
* This is {@link YubiKeyAcco... | __label__POS | 0.987085 |
package org.apereo.cas.adaptors.yubikey;
import lombok.val;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;
import org.springframework.util.LinkedMultiValueMap;
import java.util.List;
import static org.junit.jupiter.api.Assertions.*;
/**
* This is {@link YubiKeyRestHttpRequestCredentialFactory... | __label__POS | 0.998042 |
package org.apereo.cas.adaptors.yubikey;
import org.apereo.cas.util.function.FunctionUtils;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import... | __label__POS | 0.758382 |
package org.apereo.cas.adaptors.yubikey;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import lombok.AllArgsConstructor;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
im... | __label__POS | 0.69644 |
package org.apereo.cas.adaptors.yubikey;
import org.apereo.cas.authentication.MultifactorAuthenticationProvider;
import org.apereo.cas.authentication.device.MultifactorAuthenticationDeviceManager;
import org.apereo.cas.authentication.device.MultifactorAuthenticationRegisteredDevice;
import org.apereo.cas.authenticatio... | __label__POS | 0.940849 |
package org.apereo.cas.adaptors.yubikey;
import org.apereo.cas.authentication.Credential;
import org.apereo.cas.rest.factory.RestHttpRequestCredentialFactory;
import org.apereo.cas.util.CollectionUtils;
import lombok.extern.slf4j.Slf4j;
import lombok.val;
import org.apache.commons.lang3.StringUtils;
import org.spring... | __label__POS | 0.92753 |
package org.apereo.cas.adaptors.yubikey;
import org.apereo.cas.util.NamedObject;
import org.apereo.cas.util.crypto.CipherExecutor;
import java.io.Serializable;
import java.util.Collection;
import java.util.Optional;
/**
* General contract that allows one to determine whether
* a particular YubiKey account
* is al... | __label__POS | 0.944888 |
package org.apereo.cas.adaptors.yubikey;
import org.apereo.cas.util.cipher.BaseStringCipherExecutor;
/**
* This is {@link YubikeyAccountCipherExecutor}.
*
* @author Dmitriy Kopylenko
* @since 5.3.0
*/
public class YubikeyAccountCipherExecutor extends BaseStringCipherExecutor {
public YubikeyAccountCipherExe... | __label__POS | 0.999947 |
#ifndef _UI_SDL_EVENT_HANDLER_H_
#define _UI_SDL_EVENT_HANDLER_H_
#include "motion.h"
#include "helpers/getTicks.h"
#include "plugins/components/EventInterface.h"
#ifndef MAX_SCREEN_MOTION
// The current display only support 5 touch point
#define MAX_SCREEN_MOTION 5
#endif
class EventHandler {
protected:
Motion ... | __label__POS | 0.819934 |
package org.apereo.cas.acct;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.experimental.SuperBuilder;
import java.io.Serial;
import java.io.Serializable;
import java.util.ArrayList;
import java.ut... | __label__POS | 0.810489 |
package org.apereo.cas.acct;
import org.apereo.cas.util.CollectionUtils;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.google.errorprone.annotations.CanIgnoreReturnValue;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.ToStrin... | __label__POS | 0.953516 |
package org.apereo.cas.acct;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import lombok.Getter;
import lombok.NoArgsConstructor;
import java.io.Serial;
import java.io.Serializable;
import java.util.LinkedHashMap;
import java.util.Map;
/**
* This is {@link... | __label__POS | 0.971814 |
package org.apereo.cas.acct;
import org.apereo.cas.acct.provision.AccountRegistrationProvisioner;
/**
* This is {@link AccountRegistrationService}.
*
* @author Misagh Moayyed
* @since 6.5.0
*/
public interface AccountRegistrationService {
/**
* Implementation bean name.
*/
String BEAN_NAME = "a... | __label__POS | 0.990155 |
// g++ -o matrix matrix.cpp -lrt
#include <iostream>
#include <unistd.h> // for usleep
#include "../helpers/gpio.h"
// Define row and column pins
const uint8_t rowPins[] = { 5, 26 };
const uint8_t colPins[] = { 6, 13, 19 };
void setup()
{
// Initialize GPIO
if (initGpio() < 0) {
std::cerr << "Failed... | __label__POS | 0.722767 |
// g++ -o matrix matrix.cpp -lrt
#include "../helpers/gpio.h"
#include <iostream>
#include <vector>
#include <thread>
#include <chrono>
const uint8_t rowPins[] = { 5, 26 };
const uint8_t colPins[] = { 6, 13, 19 };
const uint8_t numRows = 2;
const uint8_t numCols = 3;
void setupPins() {
for (uint8_t i = 0; i < n... | __label__POS | 0.805235 |
// g++ -o matrix matrix.cpp -lrt
#include <iostream>
#include <unistd.h> // for usleep
#include "../helpers/gpio.h"
// Define row and column pins
const uint8_t rowPins[] = { 5, 26 };
const uint8_t colPins[] = { 6, 13, 19 };
void setup()
{
// Initialize GPIO
if (initGpio() < 0) {
std::cerr << "Failed... | __label__POS | 0.722767 |
# ESLint
#
# Configuration: http://eslint.org/docs/user-guide/configuring
# Rules: http://eslint.org/docs/rules/
---
env:
node: true
rules:
indent: [2, 2]
brace-style: [2, "1tbs"]
comma-style: [2, "last"]
curly: [2, "multi-line"]
default-case: 2
func-style: [2, "declaration"]
g... | __label__POS | 0.882972 |
#pragma once
#include "plugins/audio/audioPlugin.h"
#include <vector>
class MidiMapping {
protected:
AudioPlugin* plugin;
int valueIndex;
bool (MidiMapping::*handlePtr)(std::vector<unsigned char>* message);
uint8_t size;
uint8_t msg[2];
bool handleUint8Position1(std::vector<unsigned char>* me... | __label__POS | 0.895455 |
package org.apereo.cas.acct;
import org.apereo.cas.services.RegisteredServiceTestUtils;
import org.apereo.cas.util.MockRequestContext;
import lombok.val;
import org.aspectj.lang.JoinPoint;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;
import java.util.Map;
import static org.junit.jupiter.api.Ass... | __label__POS | 0.960817 |
package org.apereo.cas.acct;
import lombok.val;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;
import org.springframework.core.io.FileSystemResource;
import java.nio.file.Files;
import java.util.HashMap;
import static org.junit.jupiter.api.Assertions.*;
/**
* This is {@link DefaultAccountRegist... | __label__POS | 0.998052 |
#ifndef _TRIMCHAR_H_
#define _TRIMCHAR_H_
#include <cstdint>
#include <string>
#include <cstring>
uint16_t countLeadingChar(char* str, char c)
{
uint16_t count = 0;
while (str[0] == c) {
count++;
str++;
}
return count;
}
char* ltrim(char* str, char c)
{
uint16_t count = countLeadi... | __label__POS | 0.854257 |
#pragma once
#include <string>
#include <fcntl.h>
#include <linux/i2c-dev.h>
#include <sys/ioctl.h>
#include <unistd.h>
#include <cstdint>
#include <cstring>
class I2c {
public:
int file = 0;
bool init(int i2c, int dev_addr)
{
if (file == 0) {
char filename[32];
sprintf(fi... | __label__POS | 0.941658 |
#pragma once
#include "helpers/gpio.h"
#include <functional>
#include <stdio.h>
#include <thread>
#include <vector>
using namespace std;
#ifdef DEBUG_GPIO_ENCODER
#define LOG_GPIO_ENCODER(...) printf(__VA_ARGS__)
#else
#define LOG_GPIO_ENCODER(...)
#endif
class GpioEncoder {
public:
struct Encoder {
in... | __label__POS | 0.603663 |
/* -----------------------------------------------------------------------------
Software License for The Fraunhofer FDK AAC Codec Library for Android
© Copyright 1995 - 2018 Fraunhofer-Gesellschaft zur Förderung der angewandten
Forschung e.V. All rights reserved.
1. INTRODUCTION
The Fraunhofer FDK AAC Codec Lib... | __label__POS | 0.650647 |
package org.apereo.cas.acct;
import org.apereo.cas.audit.AuditPrincipalIdProvider;
import org.apereo.cas.authentication.Authentication;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
import lombok.Setter;
import lombok.val;
import org.aspectj.lang.JoinPoint;
import org.springframework.core.Ordered;
impo... | __label__POS | 0.623126 |
package org.apereo.cas.acct;
import org.apereo.cas.configuration.model.support.captcha.GoogleRecaptchaProperties;
import lombok.experimental.UtilityClass;
import org.springframework.webflow.execution.RequestContext;
/**
* This is {@link AccountRegistrationUtils}.
*
* @author Misagh Moayyed
* @since 6.5.0
*/
@Ut... | __label__POS | 0.998619 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.