content
stringlengths
263
5.24M
pred_label
stringclasses
1 value
pred_score_pos
float64
0.6
1
- task_name: "apinto_week_request_v1" cron: "0 0 * * 1" offset: "3m30s" flux: | from(bucket: "apinto/day") |> range(start: -1w) |> filter(fn: (r) => r._measurement == "request") |> filter( fn: (r) => r._field == "total" or r._field == "success" or r._...
__label__POS
0.742843
- task_name: "apinto_minute_request_request_v1" cron: "* * * * *" offset: "10s" flux: | request_request = from(bucket: "apinto") |> range(start: -1m) |> filter(fn: (r) => r._measurement == "request") |> filter(fn: (r) => r._field == "request") |> group( column...
__label__POS
0.906695
- task_name: "apinto_day_request_v1" cron: "0 0 * * *" offset: "2m30s" flux: | from(bucket: "apinto/hour") |> range(start: -1d) |> filter(fn: (r) => r._measurement == "request") |> filter( fn: (r) => r._field == "total" or r._field == "success" or r._...
__label__POS
0.735341
<?php /* * This file is part of the API Platform project. * * (c) Kévin Dunglas <dunglas@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ declare(strict_types=1); namespace ApiPlatform\Doctrine\Orm\Util; use Doctrine\...
__label__POS
0.876443
package driver import "github.com/eolinker/eosc" var ( manager = NewManager() ) func NewManager() *Manager { return &Manager{ drivers: eosc.BuildUntyped[string, IDriver](), driversByGroup: eosc.BuildUntyped[string, DynamicDrivers](), } } type DynamicDrivers eosc.Untyped[string, IDriver] type Manager ...
__label__POS
0.880701
package org.apereo.cas.adaptors.radius.web.flow; import org.apereo.cas.adaptors.radius.authentication.RadiusTokenCredential; import org.apereo.cas.configuration.CasConfigurationProperties; import org.apereo.cas.util.CollectionUtils; import org.apereo.cas.web.flow.CasWebflowConstants; import org.apereo.cas.web.flow.con...
__label__POS
0.944824
package org.apereo.cas.adaptors.radius.web.flow; import org.apereo.cas.web.flow.CasWebflowConstants; import org.apereo.cas.web.flow.authentication.FinalMultifactorAuthenticationTransactionWebflowEventResolver; import org.apereo.cas.web.flow.resolver.impl.CasWebflowEventResolutionConfigurationContext; import lombok.val...
__label__POS
0.996831
/* * Copyright 2016 JBoss Inc * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
__label__POS
0.734377
package org.apereo.cas.support.saml.web.idp.audit; import org.apereo.cas.authentication.CoreAuthenticationTestUtils; import org.apereo.cas.util.CollectionUtils; import lombok.val; import org.aspectj.lang.JoinPoint; import org.junit.jupiter.api.Tag; import org.junit.jupiter.api.Test; import org.opensaml.saml.saml2.cor...
__label__POS
0.82499
<!doctype html> <title>CodeMirror: Dart mode</title> <meta charset="utf-8"/> <link rel=stylesheet href="../../doc/docs.css"> <link rel="stylesheet" href="../../lib/codemirror.css"> <script src="../../lib/codemirror.js"></script> <script src="../clike/clike.js"></script> <script src="dart.js"></script> <style>.CodeMirr...
__label__POS
0.610479
package org.apereo.cas.support.saml.web.idp.audit; import lombok.val; import org.apache.commons.lang3.tuple.Pair; import org.aspectj.lang.JoinPoint; import org.junit.jupiter.api.Tag; import org.junit.jupiter.api.Test; import org.opensaml.saml.saml2.core.AuthnRequest; import org.opensaml.saml.saml2.core.Issuer; import ...
__label__POS
0.879274
package upstream_dto import ( "github.com/APIParkLab/APIPark/service/upstream" ) func FromProxyHeaders(p []*upstream.ProxyHeader) []*ProxyHeader { proxyHeaders := make([]*ProxyHeader, 0, len(p)) for _, header := range p { proxyHeaders = append(proxyHeaders, &ProxyHeader{ Key: header.Key, Value: heade...
__label__POS
0.964155
package org.apereo.cas.support.saml.web.idp.audit; import org.apereo.cas.support.saml.services.SamlRegisteredService; import lombok.val; import org.aspectj.lang.JoinPoint; import org.junit.jupiter.api.Tag; import org.junit.jupiter.api.Test; import org.opensaml.saml.metadata.resolver.MetadataResolver; import org.sprin...
__label__POS
0.861383
package org.apereo.cas.support.saml.web.consent; import org.apereo.cas.authentication.Authentication; import org.apereo.cas.authentication.AuthenticationServiceSelectionPlan; import org.apereo.cas.authentication.MultifactorAuthenticationContextValidator; import org.apereo.cas.authentication.MultifactorAuthenticationTr...
__label__POS
0.940628
package org.apereo.cas.support.saml.web.flow; import org.apereo.cas.configuration.CasConfigurationProperties; import org.apereo.cas.support.saml.SamlException; import org.apereo.cas.web.flow.CasWebflowConstants; import org.apereo.cas.web.flow.configurer.AbstractCasWebflowConfigurer; import lombok.val; import org.sprin...
__label__POS
0.997297
{ # https://caddyserver.com/docs/caddyfile/directives#sorting-algorithm order mercure after encode order vulcain after reverse_proxy } localhost root /srv vulcain file_server handle /books { header "Link" "</books>; rel=\"self\", <https://localhost/.well-known/mercure>; rel=\"mercure\"" try_files ./tests-ser...
__label__POS
0.967808
package org.apereo.cas.support.saml.web.flow; import org.apereo.cas.authentication.AuthenticationServiceSelectionPlan; import org.apereo.cas.services.RegisteredServiceAccessStrategyUtils; import org.apereo.cas.services.ServicesManager; import org.apereo.cas.support.saml.mdui.MetadataUIUtils; import org.apereo.cas.supp...
__label__POS
0.835699
goog.provide('API.Client.v1.Asset'); /** * Represents an asset. * @record */ API.Client.V1Asset = function() {} /** * Gets or sets the asset ID. * @type {!string} * @export */ API.Client.V1Asset.prototype.assetId; /** * Gets or sets the name of the asset. * @type {!string} * @export */ API.Client.V1Asset....
__label__POS
0.775382
package org.apereo.cas.support.saml.web.idp.audit; import org.apereo.cas.support.saml.services.SamlRegisteredService; import lombok.val; import org.apereo.inspektr.audit.spi.support.ReturnValueAsStringResourceResolver; import org.aspectj.lang.JoinPoint; import org.opensaml.saml.metadata.resolver.MetadataResolver; imp...
__label__POS
0.994756
package org.apereo.cas.support.saml.web.idp.audit; import lombok.extern.slf4j.Slf4j; import lombok.val; import org.apache.commons.lang3.ArrayUtils; import org.apereo.inspektr.audit.spi.support.ReturnValueAsStringResourceResolver; import org.aspectj.lang.JoinPoint; import org.opensaml.saml.saml2.core.Response; import o...
__label__POS
0.725508
package org.apereo.cas.support.saml.web.idp.audit; import org.apereo.cas.audit.spi.principal.DefaultAuditPrincipalIdProvider; import org.apereo.cas.authentication.Authentication; import lombok.val; import org.aspectj.lang.JoinPoint; import org.opensaml.saml.saml2.core.Response; /** * This is {@link SamlResponseAudi...
__label__POS
0.99549
package org.apereo.cas.support.saml.web.idp.audit; import lombok.val; import org.apache.commons.lang3.ArrayUtils; import org.apache.commons.lang3.tuple.Pair; import org.apereo.inspektr.audit.spi.support.ReturnValueAsStringResourceResolver; import org.aspectj.lang.JoinPoint; import org.opensaml.core.xml.XMLObject; impo...
__label__POS
0.974156
package org.apereo.cas.support.saml.web.idp.web; import org.apereo.cas.authentication.Authentication; import org.apereo.cas.authentication.MultifactorAuthenticationProvider; import org.apereo.cas.authentication.MultifactorAuthenticationTrigger; import org.apereo.cas.authentication.MultifactorAuthenticationUtils; impor...
__label__POS
0.670521
<?php declare(strict_types=1); namespace DoctrineMigrations; use Doctrine\DBAL\Schema\Schema; use Doctrine\Migrations\AbstractMigration; /** * Auto-generated Migration: Please modify to your needs! */ final class Version20240605141831 extends AbstractMigration { public function getDescription(): string { ...
__label__POS
0.892358
package org.apereo.cas.support.saml.web.idp.profile.artifact; import org.apereo.cas.ticket.TicketFactory; import org.apereo.cas.ticket.TicketGrantingTicket; import org.apereo.cas.ticket.artifact.SamlArtifactTicket; import org.apereo.cas.ticket.artifact.SamlArtifactTicketFactory; import org.apereo.cas.ticket.registry.T...
__label__POS
0.693804
Feature: Collections filtering In order to retrieve subsets of collections As an API consumer I need to be able to set filters @createSchema Scenario: Retrieve a collection filtered using the boolean filter Given there is 1 dummy object with dummyBoolean true And there is 1 dummy object with dummyBoo...
__label__POS
0.909541
Feature: GraphQL collection support @createSchema Scenario: Retrieve a collection through a GraphQL query Given there are 4 dummy objects with relatedDummy and its thirdLevel When I send the following GraphQL request: """ { dummies { ...dummyFields } } fragment dummyFiel...
__label__POS
0.662331
package org.apereo.cas.support.saml.web.idp.profile.slo; import org.apereo.cas.support.saml.SamlIdPConstants; import org.apereo.cas.support.saml.web.idp.profile.SamlProfileHandlerConfigurationContext; import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.tags.Tag; import lombok.val; imp...
__label__POS
0.726089
Feature: Authorization checking In order to use the API As a client software user I need to be authorized to access a given resource using legacy access_control attribute. @createSchema Scenario: An anonymous user retrieves a secured resource When I add "Accept" header equal to "application/ld+json" ...
__label__POS
0.920411
Feature: Authorization checking In order to use the API As a client software user I need to be authorized to access a given resource. @createSchema Scenario: An anonymous user retrieves a secured resource When I add "Accept" header equal to "application/ld+json" And I send a "GET" request to "/secure...
__label__POS
0.962246
Feature: JSON API pagination handling In order to be able to handle pagination As a client software developer I need to retrieve an JSON API pagination information as metadata and links Background: Given I add "Accept" header equal to "application/vnd.api+json" And I add "Content-Type" header equal to ...
__label__POS
0.846407
Feature: JSON API filter handling In order to be able to handle filtering As a client software developer I need to be able to specify filtering parameters according to JSON API recommendation Background: Given I add "Accept" header equal to "application/vnd.api+json" And I add "Content-Type" header equ...
__label__POS
0.666206
Feature: JSON API collections support In order to use the JSON API hypermedia format As a client software developer I need to be able to retrieve valid JSON API responses for collection attributes on entities. Background: Given I add "Accept" header equal to "application/vnd.api+json" And I add "Conten...
__label__POS
0.94046
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Berke...
__label__POS
0.859634
/* * FX Historical REST API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v1 * Contact: support@apibricks.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * htt...
__label__POS
0.61
Feature: Set properties to include In order to select specific properties from a resource As a client software developer I need to select attributes to retrieve @createSchema Scenario: Test properties filter Given there are 1 dummy objects with relatedDummy and its thirdLevel When I send a "GET" requ...
__label__POS
0.978564
package org.apereo.cas.support.saml.web.idp.profile.sso; import org.apereo.cas.support.saml.SamlIdPConstants; import org.apereo.cas.support.saml.web.idp.profile.AbstractSamlIdPProfileHandlerController; import org.apereo.cas.support.saml.web.idp.profile.SamlProfileHandlerConfigurationContext; import io.swagger.v3.oas....
__label__POS
0.686745
Feature: IRI should contain network path In order to add detail to IRIs Include the network path @createSchema Scenario: I should be able to GET a collection of objects with network paths Given there are 1 networkPathDummy objects with a related networkPathRelationDummy And I add "Accept" header equal ...
__label__POS
0.955901
Feature: IRI should contain Absolute URL In order to add detail to IRIs Include the absolute url @createSchema Scenario: I should be able to GET a collection of Objects with Absolute Urls Given there are 1 absoluteUrlDummy objects with a related absoluteUrlRelationDummy And I add "Accept" header equal ...
__label__POS
0.830081
package org.apereo.cas.support.saml.web.idp.profile.sso; import org.apereo.cas.support.saml.SamlIdPConstants; import org.apereo.cas.support.saml.web.idp.profile.AbstractSamlIdPProfileHandlerController; import org.apereo.cas.support.saml.web.idp.profile.SamlProfileHandlerConfigurationContext; import org.apereo.cas.web....
__label__POS
0.604031
/* * FX Historical REST API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v1 * Contact: support@apibricks.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * htt...
__label__POS
0.998079
package org.apereo.cas.support.saml.web.idp.profile.builders; import lombok.Builder; import lombok.Getter; import lombok.ToString; import lombok.experimental.SuperBuilder; import java.io.Serial; import java.io.Serializable; import java.time.ZoneOffset; import java.time.ZonedDateTime; import java.util.LinkedHashMap; i...
__label__POS
0.855958
/* * FX Historical REST API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v1 * Contact: support@apibricks.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * htt...
__label__POS
0.786495
package org.apereo.cas.support.saml.web.idp.profile.builders; import org.apereo.cas.support.saml.services.SamlRegisteredService; import org.apereo.cas.support.saml.services.idp.metadata.SamlRegisteredServiceMetadataAdaptor; import lombok.Builder; import lombok.Getter; import lombok.ToString; import lombok.experimenta...
__label__POS
0.89211
/* * FX Historical REST API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v1 * Contact: support@apibricks.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * htt...
__label__POS
0.762223
Feature: Entrypoint support In order to build an auto-discoverable API As a client software developer I need to access to an entrypoint listing top-level resources Scenario: Retrieve the Entrypoint When I add "Accept" header equal to "application/ld+json" When I send a "GET" request to "/" Then the...
__label__POS
0.983625
@!mongodb Feature: Error handling In order to be able to handle error client side As a client software developer I need to retrieve an Hydra serialization of errors That is compatible with the JSON Problem specification Scenario: Get an rfc 7807 error When I add "Content-Type" header equal to "applicatio...
__label__POS
0.738006
Feature: Documentation support In order to build an auto-discoverable API As a client software developer I need to know Hydra specifications of objects I send and receive Scenario: Checks that the Link pointing to the Hydra documentation is set Given I send a "GET" request to "/" Then the header "Link"...
__label__POS
0.81422
package org.apereo.cas.support.saml.web.idp.profile.sso.request; import org.apache.commons.lang3.tuple.Pair; import org.opensaml.messaging.context.MessageContext; import org.opensaml.messaging.decoder.servlet.BaseHttpServletRequestXMLMessageDecoder; import org.opensaml.saml.common.SignableSAMLObject; import jakarta.s...
__label__POS
0.956708
@!mongodb Feature: Eager Loading In order to have better performance As a client software developer The eager loading should be enabled @createSchema Scenario: Eager loading for a relation Given there is a RelatedDummy with 2 friends When I send a "GET" request to "/related_dummies/1" Then the re...
__label__POS
0.894223
Feature: Update an embed collection with PUT As a client software developer I need to be able to update an embed collection Background: Given I add "Content-Type" header equal to "application/ld+json" @createSchema @!mongodb Scenario: Update embed collection And I send a "POST" request to "/issue5...
__label__POS
0.697903
package org.apereo.cas.support.saml.web.idp.profile.builders.enc; import org.apereo.cas.configuration.model.support.saml.idp.SamlIdPProperties; import org.apereo.cas.support.saml.SamlException; import org.apereo.cas.support.saml.SamlIdPUtils; import org.apereo.cas.support.saml.idp.metadata.locator.SamlIdPMetadataCrede...
__label__POS
0.613373
package org.apereo.cas.support.saml.web.idp.profile.builders.enc; import org.apereo.cas.support.saml.services.SamlRegisteredService; import org.apereo.cas.support.saml.services.idp.metadata.SamlRegisteredServiceMetadataAdaptor; import org.opensaml.messaging.context.MessageContext; import org.opensaml.saml.common.SAML...
__label__POS
0.884948
package org.apereo.cas.support.saml.web.idp.profile.builders.nameid; import org.apereo.cas.support.saml.SamlIdPUtils; import org.apereo.cas.support.saml.services.SamlRegisteredService; import org.apereo.cas.util.function.FunctionUtils; import lombok.AccessLevel; import lombok.NoArgsConstructor; import lombok.NonNull;...
__label__POS
0.90516
# URI Variables * Status: accepted * Deciders: @dunglas, @soyuka Implementation: [#4408][pull/4408] ## Context and Problem Statement For reference see the previously implemented [Resource identifier](0001-resource-identifiers.md) ADR. URI variables are the URI template (e.g. `/books/{id}`) variables (e.g. `id`). W...
__label__POS
0.950802
/* * Copyright 2014 JBoss Inc * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
__label__POS
0.928959
package org.apereo.cas.support.saml.web.idp.profile.builders.conditions; import org.apereo.cas.configuration.CasConfigurationProperties; import org.apereo.cas.configuration.support.Beans; import org.apereo.cas.support.saml.OpenSamlConfigBean; import org.apereo.cas.support.saml.SamlException; import org.apereo.cas.supp...
__label__POS
0.954679
package org.apereo.cas.support.saml.web.idp.profile.builders.response; import org.apereo.cas.support.saml.util.Saml20ObjectBuilder; import org.apereo.cas.support.saml.web.idp.profile.builders.SamlProfileBuilderContext; import org.opensaml.saml.saml2.core.Assertion; import org.opensaml.saml.saml2.core.Response; /** ...
__label__POS
0.989991
<?php /* * This file is part of the API Platform project. * * (c) Kévin Dunglas <dunglas@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ declare(strict_types=1); namespace ApiPlatform\SchemaGenerator\AnnotationGenerat...
__label__POS
0.981558
package org.apereo.cas.support.saml.web.idp.profile.builders.enc.validate; import org.apereo.cas.configuration.CasConfigurationProperties; import org.apereo.cas.support.saml.SamlIdPUtils; import lombok.val; import net.shibboleth.shared.resolver.CriteriaSet; import org.opensaml.core.criterion.EntityIdCriterion; import...
__label__POS
0.995796
<!doctype html> <title>CodeMirror: Scheme mode</title> <meta charset="utf-8"/> <link rel=stylesheet href="../../doc/docs.css"> <link rel="stylesheet" href="../../lib/codemirror.css"> <script src="../../lib/codemirror.js"></script> <script src="scheme.js"></script> <style>.CodeMirror {background: #f8f8f8;}</style> <di...
__label__POS
0.604403
package guice; import com.google.common.collect.*; import com.google.common.collect.BiMap; import com.google.common.collect.HashBiMap; import com.google.common.collect.HashMultimap; import com.google.common.collect.Maps; import com.google.common.collect.Multimap; import com.google.common.collect.Range; import com.goog...
__label__POS
0.877661
package guice; import com.google.inject.Inject; import java.util.Date; /** * Created by lucky on 2017/12/15. */ public class HumanGroup { public HumanGroup() { System.out.println(new Date().getTime());// test singleton } @Inject private String groupName; /** * properties inject ...
__label__POS
0.891699
package org.apereo.cas.support.saml.web.idp.profile.builders.enc.encoder; import org.apereo.cas.support.saml.SamlException; import org.apereo.cas.support.saml.SamlIdPUtils; import org.apereo.cas.support.saml.services.idp.metadata.SamlRegisteredServiceMetadataAdaptor; import org.apereo.cas.util.function.FunctionUtils; ...
__label__POS
0.870966
package kafka; import org.apache.kafka.clients.producer.*; import java.util.Properties; /** * Created by lucky on 2017/7/21. */ public class LogProducer { public static void main(String[] args) throws Exception{ Properties props = new Properties(); props.put(ProducerConfig.BOOTSTRAP_SERVERS_CO...
__label__POS
0.979088
package kafka; import kafka.consumer.Consumer; import kafka.consumer.ConsumerConfig; import kafka.consumer.ConsumerIterator; import kafka.consumer.KafkaStream; import kafka.javaapi.consumer.ConsumerConnector; import kafka.message.MessageAndMetadata; import kafka.serializer.Decoder; import kafka.serializer.StringDecode...
__label__POS
0.991186
package org.apereo.cas.support.saml.web.idp.profile.builders.enc.encoder.sso; import org.apereo.cas.support.saml.services.idp.metadata.SamlRegisteredServiceMetadataAdaptor; import org.apereo.cas.support.saml.web.idp.profile.builders.enc.encoder.BaseHttpServletAwareSamlObjectEncoder; import lombok.val; import org.apac...
__label__POS
0.996724
package org.openapitools.client.infrastructure enum class ResponseType { Success, Informational, Redirection, ClientError, ServerError } interface Response abstract class ApiResponse<T>(val responseType: ResponseType): Response { abstract val statusCode: Int abstract val headers: Map<String,List<String>>...
__label__POS
0.619605
package kafka; import kafka.javaapi.producer.Producer; import kafka.producer.KeyedMessage; import kafka.producer.ProducerConfig; import java.util.Date; import java.util.Properties; /** * Created by lucky on 2017/7/21. */ public class HelloWorldProducer { public static void main(String[] args) { Propert...
__label__POS
0.999449
package org.apereo.cas.support.saml.web.idp.profile.builders.enc.encoder.sso; import org.apereo.cas.support.saml.services.idp.metadata.SamlRegisteredServiceMetadataAdaptor; import org.apereo.cas.support.saml.web.idp.profile.builders.enc.encoder.BaseHttpServletAwareSamlObjectEncoder; import lombok.val; import org.apac...
__label__POS
0.946644
package kafka; import com.google.common.collect.Lists; import org.apache.kafka.clients.consumer.ConsumerConfig; import org.apache.kafka.clients.consumer.ConsumerRecord; import org.apache.kafka.clients.consumer.ConsumerRecords; import org.apache.kafka.clients.consumer.KafkaConsumer; import java.util.Properties; /** ...
__label__POS
0.995457
package org.apereo.cas.support.saml.web.idp.profile.builders.enc.encoder.sso; import org.apereo.cas.support.saml.services.idp.metadata.SamlRegisteredServiceMetadataAdaptor; import org.apereo.cas.support.saml.web.idp.profile.builders.enc.encoder.BaseHttpServletAwareSamlObjectEncoder; import lombok.val; import org.apac...
__label__POS
0.996736
package org.apereo.cas.support.saml.web.idp.profile.builders.response.query; import org.apereo.cas.support.saml.SamlProtocolConstants; import org.apereo.cas.support.saml.SamlUtils; import org.apereo.cas.support.saml.web.idp.profile.builders.SamlProfileBuilderContext; import org.apereo.cas.support.saml.web.idp.profile....
__label__POS
0.715236
package Hot; import com.google.common.collect.Lists; import com.google.inject.*; import com.road.ClassReloader; import org.objectweb.asm.ClassReader; import java.io.BufferedInputStream; import java.io.File; import java.io.FileInputStream; import java.util.List; import java.util.Map; /** * Created by lucky on 2017/7...
__label__POS
0.948824
package org.apereo.cas.support.saml.web.idp.profile.builders.response.artifact; import org.apereo.cas.support.saml.SamlUtils; import org.apereo.cas.support.saml.web.idp.profile.builders.SamlProfileBuilderContext; import org.apereo.cas.support.saml.web.idp.profile.builders.response.SamlProfileSamlResponseBuilderConfigu...
__label__POS
0.776923
package a8; import com.google.common.collect.HashBasedTable; import com.google.common.collect.Lists; import com.google.common.collect.Table; import com.server.util.Util; import io.netty.buffer.ByteBuf; import io.netty.buffer.ByteBufAllocator; import scala.Char; import java.util.*; import java.util.function.Function; ...
__label__POS
0.991273
package a8; /** * Created by lucky on 2018/5/2. */ public class VehiclePart { private int tier; private int stars; private long experience; private int type; private double rd; public int getTier() { return tier; } public void setTier(int tier) { this.tier = tier; ...
__label__POS
0.785175
package org.apereo.cas.support.saml.web.idp.profile.builders.response.soap; import org.apereo.cas.support.saml.SamlUtils; import org.apereo.cas.support.saml.web.idp.profile.builders.SamlProfileBuilderContext; import org.apereo.cas.support.saml.web.idp.profile.builders.response.BaseSamlProfileSamlResponseBuilder; impor...
__label__POS
0.748406
package jetty; import com.game.sdk.erating.domain.RechargeInfo; import com.game.sdk.utils.XmlParser; import org.eclipse.jetty.server.Request; import org.eclipse.jetty.server.handler.AbstractHandler; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServ...
__label__POS
0.980487
package algorithm; import java.io.BufferedReader; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import java.util.BitSet; /** * Created by aping.foo * 已知某个文件内包含一些电话号码,一行一个的格式吧,简单点处理,提供个思路 * ,每个号码为8位数字,统计不同号码的个数 * 需要空间时间复杂度尽可能小 * 其他类型题型,都可参考此方案解答 */ public class Exercise7 { ...
__label__POS
0.999754
package algorithm; import java.util.Arrays; /** * Created by aping.foo. * 归并排序 * 思想,分治法,将数组分割成N个有序部分,最终目的是分割成只有1个元素的部分,这样每个部分都是有序 * 最后合并有序数组 * * 空间复杂读 o(n) * 时间复杂读 o(nlgn) */ public class MergeSort { static void memeryArray(int a[], int first, int mid, int last, int temp[]) { int i = first, j = m...
__label__POS
1.000001
package algorithm; import java.math.BigDecimal; import java.util.Arrays; import java.util.List; import java.util.stream.Collectors; /** * Created by aping.foo * 求N个数如何组织成一个最大的数字,第一个算法里,暂不考虑越界问题 * 后面会出一个考虑越界的做法 */ public class Exercise6 { public static void main(String[] args) { int[] arr = {12, 122, 1...
__label__POS
0.999853
package algorithm; import java.util.Arrays; /** * Created by aping.foo * 基数排序,限于整数排序,效率比较高 * 时间复杂度:O(d(n+r) * 空间复杂度:O(n+r) * r为基数,0~9,d为位数 */ public class Exercise13 { public static void main(String[] args) { int[] array = { 50, 123, 1999,543, 187, 49, 30, 0, 2, 11, 100 }; ...
__label__POS
0.998352
package algorithm; import java.util.ArrayDeque; import java.util.Queue; import java.util.Random; /** * Created by aping.foo * 二叉树,层序遍历 */ public class TreeSequence extends AbstractTree { public static void main(String[] args) { Random random = new Random(); Node root = new Node(50, null, null...
__label__POS
1.000009
package algorithm; import java.io.Serializable; import java.lang.reflect.Array; import java.util.concurrent.atomic.AtomicInteger; /** * Created by aping.foo * RingBuffer 是 Distruptor 中的一个用来替代 ArrayBlockingQueue 的队列, * 它的思想在于长度可控, 且无锁, 只有在 blocking 的时候(没有数据的时候出队, 数据满的时候入队)会自旋. * 实现原理是使用一个环形array, 生产者作为 tail, 消费者作为...
__label__POS
0.996656
<!doctype html> <title>CodeMirror: Go mode</title> <meta charset="utf-8"/> <link rel=stylesheet href="../../doc/docs.css"> <link rel="stylesheet" href="../../lib/codemirror.css"> <link rel="stylesheet" href="../../theme/elegant.css"> <script src="../../lib/codemirror.js"></script> <script src="../../addon/edit/matchb...
__label__POS
0.659392
package algorithm; /** * Created by aping.foo * 堆排序 */ public class Exercise4 { public static void main(String[] args) { int num[] = new int[]{1, 3, 4, 5, 7, 2, 6, 8, 0}; heapSort(num, num.length); for (int x = 0; x < num.length; x++) { System.out.print(num[x] + " "); ...
__label__POS
0.999925
package algorithm; /** * Created by lucky on 2017/7/28. */ public class AbstractTree { /** * 构建二叉树 * * @param root * @param node */ static void buildTree(Node root, Node node) { if (node.getValue() >= root.getValue()) { if (root.getRight() == null) { ...
__label__POS
0.998875
package algorithm; /** * Created by aping.foo * 输入一个整数,删除N个数,求最大值 * 比如 325 ,删除1个,最大值是35 * * 方法有很多 * 比如暴力求法,首先组装出所有符合规则的数字,然后比较大小。 * 消耗在组装数据上 * * */ public class Exercise17 { public static void main(String[] args) { int[] arr = {1, 2, 6, 4, 5, 3, 8}; func(arr, 4); } /** * 在这...
__label__POS
1.000005
package algorithm; /** * Created by aping.foo * 游戏中,经常用到判断点是否在矩形范围内 * 当然游戏里我们通常只有8个方向,来实现下点在矩形内的判断 * 点在边的同侧,则不在范围内 * 一般采用点到矩形中心线的距离是否超过边长一半即可进行判断 * 下面演示技能矩形,怪物是否在攻击矩形范围内 * * 这里暂时没考虑水平和竖直方向的,因为这2个方向更简单 * 其他点都可以采用此方法 */ public class Exercise15 { /** * 直线方程 y = kx + b * 由于游戏里确定为8个方向,那么k可以确定为1 或者-...
__label__POS
0.993538
=begin #FX Historical REST API #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) The version of the OpenAPI document: v1 Contact: support@apibricks.io Generated by: https://openapi-generator.tech Generator version: 7.14.0 =end require 'spec_helper' require '...
__label__POS
0.790582
package algorithm; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.List; /** * Created by aping.foo * 洗牌算法,棋牌游戏里重点 */ public class Exercise11 { public static void main(String[] args) { //方案一,在游戏中,在一轮打完之后,牌不要重置,继续采用次算法进行打乱 int[] arr = {0, 1, 2,...
__label__POS
1.000009
package algorithm; import java.util.Random; import java.util.Stack; /** * Created by aping.foo. * 二叉非递归调用 */ public class TreeNoRecursion extends AbstractTree { public static void main(String[] args) { Random random = new Random(); Node root = new Node(50, null, null,null); for (int i ...
__label__POS
0.999872
package algorithm; /** * Created by aping.foo * 2个字符串最长公共字串 */ public class Exercise18 { public static void main(String[] args) { String s1 = "abac"; String s2 = "baba"; func(s1, s2); func1(s1, s2); } /** * 首先大家想到的方法可能是使用一个双层遍历的方式 * 即外层长字符串,内层短字符串对比 * 下面...
__label__POS
0.999694
package algorithm; import java.util.Random; /** * Created by aping.foo * 可以参考treemap里的实现 */ public class Exercise1 extends AbstractTree { private static Node root; public static void main(String[] args) { Random random = new Random(); root = new Node(50, null, null, null); for (int...
__label__POS
0.99925
package algorithm; /** * Created by aping.foo * 唯一id算法 */ public class Exercise12 { /** 起始的时间,可以选定一个时间,选定之后就不能够进行更改(正式上线之后) **/ private static final long twepoch = 1493568000000L; // 2017年5月1日0点 /** 区服Id(gameZoneId)所占的位数 **/ private static final long gameZoneIdBits = 13L; /** 支持的最大区服Id **/ ...
__label__POS
0.998456
package algorithm; import java.util.Random; import java.util.Stack; /** * Created by aping.foo * 二叉镜像树. * 非递归模式 */ public class MirroNoRecursively extends AbstractTree { public static void main(String[] args) { Random random = new Random(); Node root = new Node(50, null, null,null); f...
__label__POS
1.00001
package algorithm; /** * Created by aping.foo * KMP算法,高效寻找目标串。 * 给定的字符串中,是否包含某个子字符串 */ public class Exercise8 { public static void main(String[] args) throws Exception { final String s = "abadabcd"; kmp(s, "abad"); } /** * 在target字符串中寻找source的匹配 * * @param target * ...
__label__POS
0.999991
package algorithm; /** * Created by aping.foo * 逆转 */ public class Exercise5 { public static void main(String[] args) { int[] arr = {1, 2, 3, 4, 5, 6}; reverse1(arr); for (int i = 0; i < arr.length; i++) { System.out.print(arr[i]); } System.out.println(); ...
__label__POS
0.99985
package io.apiman.manager.api.beans.notifications; import io.apiman.manager.api.beans.search.SearchCriteriaBean; import io.apiman.manager.api.beans.search.SearchCriteriaFilterBean; import java.util.Arrays; import java.util.HashSet; import java.util.List; import java.util.Set; import java.util.stream.Collectors; /** ...
__label__POS
0.99897