language
stringclasses
1 value
repo
stringclasses
60 values
path
stringlengths
22
294
class_span
dict
source
stringlengths
13
1.16M
target
stringlengths
1
113
java
micronaut-projects__micronaut-core
core-processor/src/main/java/io/micronaut/expressions/EvaluatedExpressionConstants.java
{ "start": 761, "end": 1105 }
class ____ { /** * Evaluated expression prefix. */ public static final String EXPRESSION_PREFIX = "#{"; /** * RegEx pattern used to determine whether string value in * annotation includes evaluated expression. */ public static final String EXPRESSION_PATTERN = ".*#\\{.*}.*"; }
EvaluatedExpressionConstants
java
hibernate__hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/service/ServiceRegistryTest.java
{ "start": 5812, "end": 6157 }
class ____ implements StandardServiceInitiator<FakeService> { @Override public Class<FakeService> getServiceInitiated() { return FakeService.class; } @Override public FakeService initiateService(Map<String, Object> configurationValues, ServiceRegistryImplementor registry) { return null; } } publi...
NullServiceInitiator
java
apache__kafka
streams/upgrade-system-tests-35/src/test/java/org/apache/kafka/streams/tests/SmokeTestUtil.java
{ "start": 1483, "end": 4000 }
class ____ { static final int END = Integer.MAX_VALUE; static ProcessorSupplier<Object, Object, Void, Void> printProcessorSupplier(final String topic) { return printProcessorSupplier(topic, ""); } static ProcessorSupplier<Object, Object, Void, Void> printProcessorSupplier(final String topic, ...
SmokeTestUtil
java
google__guava
android/guava-testlib/src/com/google/common/collect/testing/google/MultimapContainsKeyTester.java
{ "start": 1647, "end": 3150 }
class ____<K, V> extends AbstractMultimapTester<K, V, Multimap<K, V>> { @CollectionSize.Require(absent = ZERO) public void testContainsKeyYes() { assertTrue(multimap().containsKey(k0())); } public void testContainsKeyNo() { assertFalse(multimap().containsKey(k3())); } public void testContainsKeysF...
MultimapContainsKeyTester
java
apache__kafka
streams/src/main/java/org/apache/kafka/streams/processor/internals/StoreFactory.java
{ "start": 2744, "end": 4965 }
class ____<T extends StateStore> implements StoreBuilder<T>, ConfigurableStore { private final StoreFactory storeFactory; public FactoryWrappingStoreBuilder(final StoreFactory storeFactory) { this.storeFactory = storeFactory; } public StoreFactory storeFactory() { ...
FactoryWrappingStoreBuilder
java
apache__camel
dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/WorkdayComponentBuilderFactory.java
{ "start": 1831, "end": 3937 }
interface ____ extends ComponentBuilder<WorkdayComponent> { /** * Whether the producer should be started lazy (on the first message). * By starting lazy you can use this to allow CamelContext and routes to * startup in situations where a producer may otherwise fail durin...
WorkdayComponentBuilder
java
hibernate__hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/inheritance/MappedSuperclassTest.java
{ "start": 751, "end": 1746 }
class ____ { @AfterEach void tearDown(SessionFactoryScope factoryScope) { factoryScope.dropData(); } @Test public void test(SessionFactoryScope factoryScope) { factoryScope.inTransaction( entityManager -> { DebitAccount debitAccount = new DebitAccount(); debitAccount.setId(1L); debitAccount.setOwner(...
MappedSuperclassTest
java
hibernate__hibernate-orm
hibernate-core/src/main/java/org/hibernate/boot/models/annotations/internal/JdbcTypeRegistrationsAnnotation.java
{ "start": 691, "end": 1943 }
class ____ implements JdbcTypeRegistrations, RepeatableContainer<org.hibernate.annotations.JdbcTypeRegistration> { private org.hibernate.annotations.JdbcTypeRegistration[] value; /** * Used in creating dynamic annotation instances (e.g. from XML) */ public JdbcTypeRegistrationsAnnotation(ModelsContext modelCo...
JdbcTypeRegistrationsAnnotation
java
spring-projects__spring-security
acl/src/test/java/org/springframework/security/acls/domain/AuditLoggerTests.java
{ "start": 1237, "end": 2845 }
class ____ { private PrintStream console; private ByteArrayOutputStream bytes = new ByteArrayOutputStream(); private ConsoleAuditLogger logger; private AuditableAccessControlEntry ace; @BeforeEach public void setUp() { this.logger = new ConsoleAuditLogger(); this.ace = mock(AuditableAccessControlEntry.cl...
AuditLoggerTests
java
google__dagger
javatests/dagger/internal/codegen/ComponentRequirementFieldTest.java
{ "start": 2173, "end": 3045 }
interface ____ {", " @BindsInstance Builder i(int i);", " @BindsInstance Builder list(List<String> list);", " TestComponent build();", " }", "}"); CompilerTests.daggerCompiler(component) .withProcessingOptions(compilerMode.processorOption...
Builder
java
grpc__grpc-java
android-interop-testing/src/generated/debug/grpc/io/grpc/testing/integration/XdsUpdateClientConfigureServiceGrpc.java
{ "start": 6344, "end": 6849 }
class ____ implements io.grpc.BindableService, AsyncService { @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return XdsUpdateClientConfigureServiceGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service XdsUpdateCli...
XdsUpdateClientConfigureServiceImplBase
java
elastic__elasticsearch
x-pack/plugin/sql/src/main/java/org/elasticsearch/xpack/sql/execution/search/Querier.java
{ "start": 19929, "end": 22806 }
class ____ extends BaseAggActionListener { private final boolean isPivot; CompositeActionListener( ActionListener<Page> listener, Client client, SqlConfiguration cfg, List<Attribute> output, QueryContainer query, SearchRequest req...
CompositeActionListener
java
apache__kafka
clients/src/test/java/org/apache/kafka/common/record/MemoryRecordsTest.java
{ "start": 3845, "end": 4729 }
class ____ implements ArgumentsProvider { @Override public Stream<? extends Arguments> provideArguments(ExtensionContext context) { List<Arguments> arguments = new ArrayList<>(); for (long firstOffset : asList(0L, 57L)) for (CompressionType type: CompressionType.v...
MemoryRecordsArgumentsProvider
java
apache__camel
dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/Aws2EventbridgeComponentBuilderFactory.java
{ "start": 1928, "end": 16726 }
interface ____ extends ComponentBuilder<EventbridgeComponent> { /** * Component configuration. * * The option is a: * &lt;code&gt;org.apache.camel.component.aws2.eventbridge.EventbridgeConfiguration&lt;/code&gt; type. * * Group: producer * ...
Aws2EventbridgeComponentBuilder
java
netty__netty
common/src/main/java/io/netty/util/concurrent/GenericFutureListener.java
{ "start": 912, "end": 1234 }
interface ____<F extends Future<?>> extends EventListener { /** * Invoked when the operation associated with the {@link Future} has been completed. * * @param future the source {@link Future} which called this callback */ void operationComplete(F future) throws Exception; }
GenericFutureListener
java
apache__camel
components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveTeamdrivesEndpointConfigurationConfigurer.java
{ "start": 750, "end": 8464 }
class ____ extends org.apache.camel.support.component.PropertyConfigurerSupport implements GeneratedPropertyConfigurer, ExtendedPropertyConfigurerGetter { private static final Map<String, Object> ALL_OPTIONS; static { Map<String, Object> map = new CaseInsensitiveMap(); map.put("AccessToken", ja...
DriveTeamdrivesEndpointConfigurationConfigurer
java
apache__maven
its/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng2305MultipleProxiesTest.java
{ "start": 6082, "end": 7545 }
class ____ extends AbstractHandler { public void handle(String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response) throws IOException { PrintWriter writer = response.getWriter(); String uri = request.getRequestURI(); if (!u...
RepoHandler
java
apache__flink
flink-runtime/src/test/java/org/apache/flink/runtime/state/v2/RegisteredKeyValueStateBackendMetaInfoV2Test.java
{ "start": 1797, "end": 10855 }
class ____ { @Test void testRegisteredKeyValueStateBackendMetaInfoV2SerializationRoundtrip() throws Exception { TypeSerializer<?> keySerializer = IntSerializer.INSTANCE; TypeSerializer<?> namespaceSerializer = LongSerializer.INSTANCE; TypeSerializer<?> stateSerializer = DoubleSerializer...
RegisteredKeyValueStateBackendMetaInfoV2Test
java
alibaba__druid
core/src/test/java/com/alibaba/druid/bvt/sql/oracle/select/OracleSelectTest48.java
{ "start": 982, "end": 2887 }
class ____ extends OracleTest { public void test_0() throws Exception { String sql = // "select sequence_name from all_sequences " + "union select synonym_name" + " from all_synonyms us, all_sequences asq" + " where ...
OracleSelectTest48
java
grpc__grpc-java
api/src/main/java/io/grpc/NameResolverProvider.java
{ "start": 1178, "end": 1400 }
class ____. Implementations that need arguments in * their constructor can be manually registered by {@link NameResolverRegistry#register}. * * <p>Implementations <em>should not</em> throw. If they do, it may interrupt
name
java
apache__camel
core/camel-main/src/test/java/org/apache/camel/main/MainScan2Test.java
{ "start": 1081, "end": 1627 }
class ____ { @Test public void testScan2() { Main main = new Main(); main.configure().withBasePackageScan("org.apache.camel.main.scan2"); main.start(); CamelContext camelContext = main.getCamelContext(); assertNotNull(camelContext); assertEquals(1, camelContext....
MainScan2Test
java
apache__kafka
server-common/src/main/java/org/apache/kafka/timeline/SnapshottableHashTable.java
{ "start": 4546, "end": 4825 }
class ____<T extends SnapshottableHashTable.ElementWithStartEpoch> extends BaseHashTable<T> implements Revertable { /** * A special epoch value that represents the latest data. */ static final long LATEST_EPOCH = Long.MAX_VALUE;
SnapshottableHashTable
java
quarkusio__quarkus
independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/ServerResponseFilter.java
{ "start": 959, "end": 2366 }
class ____ { * * private final SomeBean someBean; * * // SomeBean will be automatically injected by CDI as long as SomeBean is a bean itself * public CustomContainerResponseFilter(SomeBean someBean) { * this.someBean = someBean; * } * * &#64;ServerResponseFilter * public void w...
CustomContainerResponseFilter
java
redisson__redisson
redisson/src/main/java/org/redisson/PubSubStatusListener.java
{ "start": 959, "end": 2355 }
class ____ implements RedisPubSubListener<Object> { private final StatusListener listener; private final String[] names; private final Set<String> notified = Collections.newSetFromMap(new ConcurrentHashMap<>()); public PubSubStatusListener(StatusListener listener, String... names) { super(); ...
PubSubStatusListener
java
apache__flink
flink-table/flink-table-api-java-bridge/src/main/java/org/apache/flink/legacy/table/sources/StreamTableSource.java
{ "start": 1534, "end": 2093 }
interface ____<T> extends TableSource<T> { /** * Returns true if this is a bounded source, false if this is an unbounded source. Default is * unbounded for compatibility. */ default boolean isBounded() { return false; } /** * Returns the data of the table as a {@link DataSt...
StreamTableSource
java
netty__netty
handler/src/test/java/io/netty/handler/ssl/PemReaderTest.java
{ "start": 866, "end": 5514 }
class ____ { @Test public void mustBeAbleToReadMultipleCertificates() throws Exception { byte[] certs = ("-----BEGIN CERTIFICATE-----\n" + "MIICqjCCAZKgAwIBAgIIEaz8uuDHTcIwDQYJKoZIhvcNAQELBQAwFDESMBAGA1UEAwwJbG9jYWxo\n" + "b3N0MCAXDTIxMDYxNjE3MjYyOFoYDzk5OTkxMjMxMjM1OTU5W...
PemReaderTest
java
spring-projects__spring-framework
spring-context/src/test/java/org/springframework/aop/framework/JdkDynamicProxyTests.java
{ "start": 5930, "end": 6076 }
interface ____ { @SuppressWarnings("unchecked") <V extends MyInterface> boolean doWithVarargs(V... args); } public static
VarargTestInterface
java
mybatis__mybatis-3
src/test/java/org/apache/ibatis/submitted/sqlprovider/ProviderMethodResolutionTest.java
{ "start": 7048, "end": 7263 }
class ____ { public static String provideSql() { return "DELETE FROM memos WHERE id = 1"; } private ReservedMethodNameBasedSqlProvider() { } }
ReservedMethodNameBasedSqlProvider
java
apache__camel
components/camel-aws/camel-aws2-iam/src/test/java/org/apache/camel/component/aws2/iam/integration/IAMGetUserIT.java
{ "start": 1357, "end": 2846 }
class ____ extends Aws2IAMBase { @EndpointInject("mock:result") private MockEndpoint mock; @Test public void iamCreateUserTest() throws Exception { mock.expectedMessageCount(1); Exchange exchange = template.request("direct:createUser", new Processor() { @Override ...
IAMGetUserIT
java
quarkusio__quarkus
integration-tests/test-extension/extension/deployment/src/test/java/io/quarkus/extest/UnknownConfigTest.java
{ "start": 696, "end": 1981 }
class ____ { @RegisterExtension static final QuarkusUnitTest TEST = new QuarkusUnitTest() .withApplicationRoot((jar) -> jar .addAsResource("application.properties")) .setLogRecordPredicate(record -> record.getLevel().intValue() >= Level.WARNING.intValue()) ...
UnknownConfigTest
java
mapstruct__mapstruct
processor/src/test/java/org/mapstruct/ap/test/bugs/_3317/Issue3317Mapper.java
{ "start": 308, "end": 454 }
interface ____ { Issue3317Mapper INSTANCE = Mappers.getMapper( Issue3317Mapper.class ); Target map(int id, long value);
Issue3317Mapper
java
elastic__elasticsearch
x-pack/plugin/monitoring/src/main/java/org/elasticsearch/xpack/monitoring/exporter/Exporter.java
{ "start": 8579, "end": 10398 }
class ____ { private final String exporterName; private final String exporterType; private final boolean complete; private final List<Exception> exceptions; public ExporterResourceStatus(String exporterName, String exporterType, boolean complete, List<Exception> exceptions) { ...
ExporterResourceStatus
java
apache__camel
core/camel-core-processor/src/main/java/org/apache/camel/processor/validator/ProcessorValidator.java
{ "start": 1449, "end": 4102 }
class ____ extends Validator { private static final Logger LOG = LoggerFactory.getLogger(ProcessorValidator.class); private Processor processor; private String validatorString; public ProcessorValidator(CamelContext context) { setCamelContext(context); } /** * Perform content val...
ProcessorValidator
java
apache__flink
flink-table/flink-table-runtime/src/test/java/org/apache/flink/table/runtime/util/collections/binary/BytesHashMapTest.java
{ "start": 1164, "end": 1776 }
class ____ extends BytesHashMapTestBase<BinaryRowData> { public BytesHashMapTest() { super(new BinaryRowDataSerializer(KEY_TYPES.length)); } @Override public AbstractBytesHashMap<BinaryRowData> createBytesHashMap( MemoryManager memoryManager, int memorySize, ...
BytesHashMapTest
java
apache__flink
flink-runtime/src/main/java/org/apache/flink/runtime/state/filesystem/FileMergingCheckpointStateOutputStream.java
{ "start": 1990, "end": 2439 }
class ____ extends FsCheckpointStreamFactory.FsCheckpointStateOutputStream { private static final Logger LOG = LoggerFactory.getLogger(FileMergingCheckpointStateOutputStream.class); /** * A proxy of the {@link FileMergingSnapshotManager} that owns this {@link * FileMergingCheckpo...
FileMergingCheckpointStateOutputStream
java
mapstruct__mapstruct
processor/src/test/java/org/mapstruct/ap/test/conditional/propertyname/EmployeeDto.java
{ "start": 269, "end": 2049 }
class ____ implements DomainModel { private String firstName; private String lastName; private String title; private String originCountry; private boolean active; private int age; private EmployeeDto boss; private AddressDto primaryAddress; private List<AddressDto> originAddresses...
EmployeeDto
java
micronaut-projects__micronaut-core
inject/src/main/java/io/micronaut/inject/FieldInjectionPoint.java
{ "start": 1034, "end": 1608 }
interface ____<B, T> extends InjectionPoint<B>, AnnotationMetadataProvider, AnnotatedElement, ArgumentCoercible<T> { /** * @return The name of the field */ @Override String getName(); /** * Resolves the underlying field. Note that this method will cause reflection * metadata to be ...
FieldInjectionPoint
java
apache__hadoop
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/store/DataBlocks.java
{ "start": 5548, "end": 8842 }
class ____ implements Closeable { private final File file; private InputStream uploadStream; private byte[] byteArray; private boolean isClosed; /** * Constructor for byteArray upload data block. File and uploadStream * would be null. * * @param byteArray byteArray used to const...
BlockUploadData
java
hibernate__hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/query/criteria/internal/expression/SearchedCaseExpressionTest.java
{ "start": 1143, "end": 5296 }
class ____ { @AfterEach public void tearDown(SessionFactoryScope scope) { scope.getSessionFactory().getSchemaManager().truncateMappedObjects(); } @Test public void testCaseClause(SessionFactoryScope scope) { scope.inTransaction( session -> { CriteriaBuilder cb = session.getCriteriaBuilder(); CriteriaQ...
SearchedCaseExpressionTest
java
mockito__mockito
mockito-core/src/test/java/org/mockitousage/bugs/creation/PackagePrivateWithContextClassLoaderTest.java
{ "start": 3893, "end": 4895 }
class ____ delegates loading of mockito/JDK classes to its parent, * but defines in its own for others. If mockito selects the defining classloader of the mock * to the classloader of mockito, calling the abstract package-private method will fail - the * defining classloader of the mocked type's package ...
that
java
apache__avro
lang/java/avro/src/main/java/org/apache/avro/message/BinaryMessageDecoder.java
{ "start": 3212, "end": 3950 }
class ____ decode messages * that were encoded using the {@code readSchema} (if any) and other schemas * that are added using {@link #addSchema(Schema)}. * * @param model the {@link GenericData data model} for datum instances * @param readSchema the {@link Schema} used to construct datum instances ...
can
java
quarkusio__quarkus
extensions/grpc/runtime/src/main/java/io/quarkus/grpc/runtime/devmode/GrpcServices.java
{ "start": 910, "end": 2190 }
class ____ extends AbstractMap<String, ServiceDefinitionAndStatus> { @Inject GrpcConfiguration configuration; @Inject GrpcHealthStorage healthStorage; @Inject DelegatingGrpcBeansStorage delegatingBeansMapping; public List<ServiceDefinitionAndStatus> getInfos() { List<GrpcServiceD...
GrpcServices
java
junit-team__junit5
documentation/src/test/java/example/TestingAStackDemo.java
{ "start": 1597, "end": 2263 }
class ____ { String anElement = "an element"; @BeforeEach void pushAnElement() { stack.push(anElement); } @Test @DisplayName("it is no longer empty") void isNotEmpty() { assertFalse(stack.isEmpty()); } @Test @DisplayName("returns the element when popped and is empty") void r...
AfterPushing
java
apache__dubbo
dubbo-rpc/dubbo-rpc-api/src/test/java/org/apache/dubbo/rpc/support/PenetrateAttachmentSelectorMock.java
{ "start": 1059, "end": 1942 }
class ____ implements PenetrateAttachmentSelector { @Override public Map<String, Object> select( Invocation invocation, RpcContextAttachment clientAttachment, RpcContextAttachment serverAttachment) { Map<String, Object> objectAttachments = RpcContext.getServerAttachment().getObjectAttachmen...
PenetrateAttachmentSelectorMock
java
spring-projects__spring-boot
core/spring-boot/src/test/java/org/springframework/boot/origin/OriginLookupTests.java
{ "start": 965, "end": 1911 }
class ____ { @Test void getOriginWhenSourceIsNullShouldReturnNull() { assertThat(OriginLookup.getOrigin(null, "foo")).isNull(); } @Test void getOriginWhenSourceIsNotLookupShouldReturnLookupOrigin() { Object source = new Object(); assertThat(OriginLookup.getOrigin(source, "foo")).isNull(); } @Test @Supp...
OriginLookupTests
java
elastic__elasticsearch
x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/action/PutFilterAction.java
{ "start": 1066, "end": 1365 }
class ____ extends ActionType<PutFilterAction.Response> { public static final PutFilterAction INSTANCE = new PutFilterAction(); public static final String NAME = "cluster:admin/xpack/ml/filters/put"; private PutFilterAction() { super(NAME); } public static
PutFilterAction
java
apache__flink
flink-table/flink-table-api-java/src/test/java/org/apache/flink/table/expressions/resolver/ExpressionResolverTest.java
{ "start": 20253, "end": 20733 }
class ____ extends ScalarFunction { public int eval(Object... any) { return 0; } @Override public TypeInformation<?> getResultType(Class<?>[] signature) { return Types.INT; } @Override public int hashCode() { return 0; ...
LegacyScalarFunc
java
apache__flink
flink-core-api/src/main/java/org/apache/flink/api/common/state/StateDeclaration.java
{ "start": 1037, "end": 1549 }
interface ____ extends Serializable { /** Get the name of this state. */ String getName(); /** * Get the {@link RedistributionMode} of this state. More details see the doc of {@link * RedistributionMode}. */ RedistributionMode getRedistributionMode(); /** * {@link Redistributi...
StateDeclaration
java
apache__dubbo
dubbo-plugin/dubbo-mcp/src/test/java/org/apache/dubbo/mcp/transport/DubboMcpSseTransportProviderTest.java
{ "start": 2405, "end": 6812 }
class ____ { @Mock private StreamObserver<ServerSentEvent<String>> responseObserver; @Mock private HttpRequest httpRequest; @Mock private HttpResponse httpResponse; @Mock private McpServerSession.Factory sessionFactory; @Mock private RpcServiceContext rpcServiceContext; ...
DubboMcpSseTransportProviderTest
java
apache__kafka
clients/src/main/java/org/apache/kafka/clients/admin/internals/ApiRequestScope.java
{ "start": 893, "end": 1316 }
interface ____ used by {@link AdminApiDriver} to bridge the gap * to the internal `NodeProvider` defined in * {@link org.apache.kafka.clients.admin.KafkaAdminClient}. However, a * request scope is more than just a target broker specification. It also * provides a way to group key lookups according to different batc...
is
java
google__dagger
hilt-core/main/java/dagger/hilt/internal/GeneratedComponentManager.java
{ "start": 806, "end": 875 }
interface ____<T> { T generatedComponent(); }
GeneratedComponentManager
java
quarkusio__quarkus
extensions/quartz/runtime/src/main/java/io/quarkus/quartz/runtime/QuartzBuildTimeConfig.java
{ "start": 1785, "end": 3791 }
class ____ of the thread pool implementation to use. * <p> * It's important to bear in mind that Quartz threads are not used to execute scheduled methods, instead the regular Quarkus * thread pool is used by default. See also {@code quarkus.quartz.run-blocking-scheduled-method-on-quartz-thread}. */ ...
name
java
apache__hadoop
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/ApplicationClassLoader.java
{ "start": 5686, "end": 6311 }
class ____ this classloader's URLs. Note that this is like // the servlet spec, not the usual Java 2 behaviour where we ask the // parent to attempt to load first. try { c = findClass(name); if (LOG.isDebugEnabled() && c != null) { LOG.debug("Loaded class: " + name + " "); ...
from
java
quarkusio__quarkus
extensions/elytron-security-properties-file/runtime/src/main/java/io/quarkus/elytron/security/properties/runtime/MPRealmRuntimeConfig.java
{ "start": 731, "end": 2479 }
interface ____ { /** * If the passwords are stored in the property file as plain text, e.g. * {@code quarkus.security.users.embedded.users.alice=AlicesSecretPassword}. * If this is false (the default) then it is expected that passwords are hashed as per the {@code algorithm} config * property. ...
MPRealmRuntimeConfig
java
apache__flink
flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/multipleinput/output/ExceptionInMultipleInputOperatorException.java
{ "start": 1268, "end": 1695 }
class ____ extends WrappingRuntimeException { private static final long serialVersionUID = 1L; public ExceptionInMultipleInputOperatorException(Throwable cause) { this("Could not forward element to next operator", cause); } public ExceptionInMultipleInputOperatorException(String message, Thro...
ExceptionInMultipleInputOperatorException
java
netty__netty
codec-memcache/src/main/java/io/netty/handler/codec/memcache/binary/BinaryMemcacheRequest.java
{ "start": 864, "end": 1450 }
interface ____ extends BinaryMemcacheMessage { /** * Returns the reserved field value. * * @return the reserved field value. */ short reserved(); /** * Sets the reserved field value. * * @param reserved the reserved field value. */ BinaryMemcacheRequest setReser...
BinaryMemcacheRequest
java
apache__hadoop
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/TestCapacitySchedulerMetrics.java
{ "start": 1980, "end": 2013 }
class ____ CS metrics. */ public
for
java
quarkusio__quarkus
integration-tests/gradle/src/main/resources/multi-module-named-injection/common/src/main/java/org/acme/common/health/HealthStatus.java
{ "start": 41, "end": 250 }
class ____ { private boolean healthy = true; public boolean isHealthy() { return healthy; } public void setHealthy(boolean healthy) { this.healthy = healthy; } }
HealthStatus
java
spring-projects__spring-security
oauth2/oauth2-jose/src/test/java/org/springframework/security/oauth2/jwt/NimbusJweEncoderTests.java
{ "start": 9004, "end": 13917 }
class ____ implements JwtEncoder { private static final String ENCODING_ERROR_MESSAGE_TEMPLATE = "An error occurred while attempting to encode the Jwt: %s"; private static final Converter<JweHeader, JWEHeader> JWE_HEADER_CONVERTER = new JweHeaderConverter(); private static final Converter<JwtClaimsSet, JWTClai...
NimbusJweEncoder
java
apache__kafka
connect/mirror-client/src/main/java/org/apache/kafka/connect/mirror/Heartbeat.java
{ "start": 1262, "end": 5352 }
class ____ { public static final String SOURCE_CLUSTER_ALIAS_KEY = "sourceClusterAlias"; public static final String TARGET_CLUSTER_ALIAS_KEY = "targetClusterAlias"; public static final String TIMESTAMP_KEY = "timestamp"; public static final String VERSION_KEY = "version"; public static final short V...
Heartbeat
java
hibernate__hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/embeddable/NestedStructWithArrayEmbeddableTest.java
{ "start": 2836, "end": 17619 }
class ____ { @BeforeEach public void setUp(SessionFactoryScope scope) { scope.inTransaction( session -> { session.persist( new StructHolder( 1L, "XYZ", 10, "String \"<abc>A&B</abc>\"", EmbeddableWithArrayAggregate.createAggregate1() ) ); session.persist( new StructHolder( 2L, null, 20, "String 'abc'"...
NestedStructWithArrayEmbeddableTest
java
elastic__elasticsearch
server/src/internalClusterTest/java/org/elasticsearch/snapshots/SnapshotStressTestsIT.java
{ "start": 69868, "end": 78841 }
class ____ { private final Semaphore permits = new Semaphore(Integer.MAX_VALUE); private final String indexName; // these fields are only changed when all permits held by the delete/recreate process: private int shardCount; private Semaphore docPermits; ...
TrackedIndex
java
FasterXML__jackson-databind
src/main/java/tools/jackson/databind/ser/impl/ObjectIdWriter.java
{ "start": 300, "end": 2789 }
class ____ { public final JavaType idType; /** * Name of id property to write, if not null: if null, should * only write references, but id property is handled by some * other entity. */ public final SerializableString propertyName; /** * Blueprint generator instance: actual i...
ObjectIdWriter
java
micronaut-projects__micronaut-core
core/src/main/java/io/micronaut/core/reflect/exception/InstantiationException.java
{ "start": 763, "end": 1147 }
class ____ extends RuntimeException { /** * @param message The message * @param cause The throwable */ public InstantiationException(String message, Throwable cause) { super(message, cause); } /** * @param message The message */ public InstantiationException(Stri...
InstantiationException
java
bumptech__glide
annotation/compiler/src/main/java/com/bumptech/glide/annotation/compiler/IndexerGenerator.java
{ "start": 1312, "end": 1527 }
class ____ a GlideExtension looks like this: * * <pre> * <code> * {@literal @com.bumptech.glide.annotation.compiler.Index(} * extensions = "com.bumptech.glide.integration.gif.GifOptions" * ) * public
with
java
elastic__elasticsearch
x-pack/plugin/sql/src/main/java/org/elasticsearch/xpack/sql/expression/function/scalar/datetime/BinaryDateTimeProcessor.java
{ "start": 742, "end": 1900 }
class ____ extends BinaryProcessor { private final ZoneId zoneId; public BinaryDateTimeProcessor(Processor source1, Processor source2, ZoneId zoneId) { super(source1, source2); this.zoneId = zoneId; } public BinaryDateTimeProcessor(StreamInput in) throws IOException { super(in...
BinaryDateTimeProcessor
java
apache__camel
components/camel-spring-parent/camel-spring-xml/src/test/java/org/apache/camel/spring/management/SpringJmxEndpointInjectBeanTest.java
{ "start": 1520, "end": 2678 }
class ____ extends SpringTestSupport { @Override protected boolean useJmx() { return true; } @Override protected AbstractXmlApplicationContext createApplicationContext() { return new ClassPathXmlApplicationContext("org/apache/camel/spring/management/SpringJmxEndpointInjectBeanTest....
SpringJmxEndpointInjectBeanTest
java
apache__hadoop
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/crypto/CipherSuite.java
{ "start": 1089, "end": 3089 }
enum ____ { UNKNOWN("Unknown", 0), AES_CTR_NOPADDING("AES/CTR/NoPadding", 16), SM4_CTR_NOPADDING("SM4/CTR/NoPadding", 16); private final String name; private final int algoBlockSize; private Integer unknownValue = null; CipherSuite(String name, int algoBlockSize) { this.name = name; this.algoBl...
CipherSuite
java
google__error-prone
core/src/test/java/com/google/errorprone/bugpatterns/ExplicitArrayForVarargsTest.java
{ "start": 2131, "end": 2539 }
class ____ { List<Object[]> test() { return Arrays.asList(new Object[] {1, 2}, new Object[] {3, 4}); } } """) .doTest(); } @Test public void emptyInitializers() { helper .addSourceLines( "Test.java", "...
Test
java
FasterXML__jackson-databind
src/test/java/tools/jackson/databind/ser/jdk/NumberSerTest.java
{ "start": 1503, "end": 1642 }
class ____ { public BigDecimal value; public BigDecimalWrapper(BigDecimal v) { value = v; } } static
BigDecimalWrapper
java
google__dagger
javatests/dagger/functional/basic/ComponentMethodTest.java
{ "start": 1146, "end": 1206 }
class ____ { @Inject Dep3() {} } @Component
Dep3
java
elastic__elasticsearch
server/src/main/java/org/elasticsearch/index/query/CombinedFieldsQueryBuilder.java
{ "start": 14837, "end": 15124 }
class ____ { final MappedFieldType fieldType; final float boost; FieldAndBoost(MappedFieldType fieldType, float boost) { this.fieldType = Objects.requireNonNull(fieldType); this.boost = boost; } } private static
FieldAndBoost
java
apache__avro
lang/java/mapred/src/test/java/org/apache/avro/mapred/TestAvroMultipleInputs.java
{ "start": 5059, "end": 8660 }
class ____ extends AvroReducer<KeyRecord, JoinableRecord, CompleteRecord> { @Override public void reduce(KeyRecord ID, Iterable<JoinableRecord> joinables, AvroCollector<CompleteRecord> collector, Reporter reporter) throws IOException { CompleteRecord rec = new CompleteRecord(); for (Joinabl...
ReduceImpl
java
elastic__elasticsearch
x-pack/plugin/esql/compute/src/main/generated/org/elasticsearch/compute/aggregation/ValuesBytesRefAggregatorFunction.java
{ "start": 1001, "end": 6028 }
class ____ implements AggregatorFunction { private static final List<IntermediateStateDesc> INTERMEDIATE_STATE_DESC = List.of( new IntermediateStateDesc("values", ElementType.BYTES_REF) ); private final DriverContext driverContext; private final ValuesBytesRefAggregator.SingleState state; private fina...
ValuesBytesRefAggregatorFunction
java
alibaba__fastjson
src/test/java/com/alibaba/json/bvt/asm/LoopTest.java
{ "start": 1185, "end": 1804 }
class ____ { private int id; private String name; private Department department; public int getId() { return id; } public void setId(int id) { this.id = id; } public String getName() { return name; ...
Employee
java
quarkusio__quarkus
extensions/redis-client/runtime/src/main/java/io/quarkus/redis/runtime/datasource/RedisCommandExecutor.java
{ "start": 176, "end": 361 }
interface ____ { default Uni<Response> execute(RedisCommand cmd) { return execute(cmd.toRequest()); } Uni<Response> execute(Request toRequest); }
RedisCommandExecutor
java
quarkusio__quarkus
extensions/mutiny/runtime/src/main/java/io/quarkus/mutiny/runtime/ContextualRunnableScheduledFuture.java
{ "start": 301, "end": 1903 }
class ____<V> implements RunnableScheduledFuture<V> { private final RunnableScheduledFuture<V> runnable; private final Object context; private final ContextHandler<Object> contextHandler; public ContextualRunnableScheduledFuture(ContextHandler<Object> contextHandler, Object context, Runnabl...
ContextualRunnableScheduledFuture
java
spring-projects__spring-framework
spring-beans/src/main/java/org/springframework/beans/TypeConverterDelegate.java
{ "start": 12857, "end": 13289 }
enum ____ custom enum // with values defined as static fields. Resulting value still needs // to be checked, hence we don't return it right away. try { Field enumField = requiredType.getField(trimmedValue); ReflectionUtils.makeAccessible(enumField); convertedValue = enumField.get(null); } cat...
or
java
quarkusio__quarkus
extensions/panache/mongodb-panache/runtime/src/main/java/io/quarkus/mongodb/panache/reactive/ReactivePanacheMongoEntity.java
{ "start": 209, "end": 666 }
class ____ gain the ID field and auto-generated accessors * to all their public fields, as well as all the useful methods from {@link ReactivePanacheMongoEntityBase}. * * If you want a custom ID type or strategy, you can directly extend {@link ReactivePanacheMongoEntityBase} * instead, and write your own ID field. ...
they
java
spring-projects__spring-boot
module/spring-boot-graphql-test/src/test/java/org/springframework/boot/graphql/test/autoconfigure/tester/GraphQlTesterAutoConfigurationTests.java
{ "start": 2082, "end": 2236 }
class ____ { @Bean ExecutionGraphQlService graphQlService() { return mock(ExecutionGraphQlService.class); } } }
CustomGraphQlServiceConfiguration
java
apache__dubbo
dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/ApplicationConfigTest.java
{ "start": 1965, "end": 14054 }
class ____ { @BeforeEach public void beforeEach() { DubboBootstrap.reset(); SysProps.clear(); SysProps.setProperty("dubbo.metrics.enabled", "false"); SysProps.setProperty("dubbo.metrics.protocol", "disabled"); } @AfterEach public void afterEach() { SysProps....
ApplicationConfigTest
java
apache__camel
components/camel-aws/camel-aws2-kinesis/src/main/java/org/apache/camel/component/aws2/kinesis/Kinesis2ShardClosedStrategyEnum.java
{ "start": 860, "end": 935 }
enum ____ { ignore, fail, silent }
Kinesis2ShardClosedStrategyEnum
java
apache__dubbo
dubbo-registry/dubbo-registry-api/src/test/java/org/apache/dubbo/registry/client/InstanceAddressURLTest.java
{ "start": 2359, "end": 10658 }
class ____ { private static URL url = URL.valueOf( "dubbo://30.225.21.30:20880/org.apache.dubbo.registry.service.DemoService?" + "REGISTRY_CLUSTER=registry1&anyhost=true&application=demo-provider2&delay=1000&deprecated=false&dubbo=2.0.2" + "&dynamic=true&generic=f...
InstanceAddressURLTest
java
spring-projects__spring-framework
spring-context/src/test/java/org/springframework/scheduling/annotation/AsyncAnnotationBeanPostProcessorTests.java
{ "start": 2113, "end": 10628 }
class ____ { @Test void proxyCreated() { ConfigurableApplicationContext context = initContext( new RootBeanDefinition(AsyncAnnotationBeanPostProcessor.class)); Object target = context.getBean("target"); assertThat(AopUtils.isAopProxy(target)).isTrue(); context.close(); } @Test void invokedAsynchronou...
AsyncAnnotationBeanPostProcessorTests
java
quarkusio__quarkus
extensions/elytron-security-properties-file/deployment/src/test/java/io/quarkus/security/test/SubjectExposingResource.java
{ "start": 503, "end": 1680 }
class ____ { @Inject Principal principal; @GET @RolesAllowed("Tester") @Path("secured") public String getSubjectSecured(@Context SecurityContext sec) { Principal user = sec.getUserPrincipal(); String name = user != null ? user.getName() : "anonymous"; return name; }...
SubjectExposingResource
java
quarkusio__quarkus
extensions/vertx-http/deployment/src/main/java/io/quarkus/vertx/http/deployment/devmode/RouteDescriptionBuildItem.java
{ "start": 244, "end": 1026 }
class ____ extends MultiBuildItem { private RouteDescription description; public RouteDescriptionBuildItem(String javaMethod, String path, String httpMethod, String[] produces, String[] consumes) { RouteDescription description = new RouteDescription(); description.setBasePath(path); d...
RouteDescriptionBuildItem
java
elastic__elasticsearch
x-pack/plugin/sql/qa/server/security/src/test/java/org/elasticsearch/xpack/sql/qa/security/JdbcShowTablesIT.java
{ "start": 455, "end": 932 }
class ____ extends ShowTablesTestCase { @Override protected Settings restClientSettings() { return RestSqlIT.securitySettings(); } @Override protected String getProtocol() { return RestSqlIT.SSL_ENABLED ? "https" : "http"; } @Override protected Properties connectionProp...
JdbcShowTablesIT
java
alibaba__nacos
api/src/main/java/com/alibaba/nacos/api/ability/constant/AbilityStatus.java
{ "start": 803, "end": 1051 }
enum ____ { /**. * Support a certain ability */ SUPPORTED, /**. * Not support a certain ability */ NOT_SUPPORTED, /**. * Cannot find ability table, unknown */ UNKNOWN }
AbilityStatus
java
apache__hadoop
hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestEncryptionZoneManager.java
{ "start": 1695, "end": 7207 }
class ____ { private FSDirectory mockedDir; private INodesInPath mockedINodesInPath; private INodeDirectory firstINode; private INodeDirectory secondINode; private INodeDirectory rootINode; private PermissionStatus defaultPermission; private EncryptionZoneManager ezManager; @BeforeEach public void s...
TestEncryptionZoneManager
java
elastic__elasticsearch
x-pack/plugin/ql/src/main/java/org/elasticsearch/xpack/ql/expression/Expression.java
{ "start": 4826, "end": 6619 }
class ____, instead usually calling the utility methods on {@link TypeResolutions}. * </p> * <p> * Implementations should fail if {@link #childrenResolved()} returns {@code false}. * </p> */ protected TypeResolution resolveType() { return TypeResolution.TYPE_RESOLVED; } ...
directly
java
apache__camel
core/camel-api/src/generated/java/org/apache/camel/spi/annotations/ServiceFactory.java
{ "start": 1134, "end": 1220 }
interface ____ { String JDK_SERVICE = "#jdk#"; String value(); }
ServiceFactory
java
hibernate__hibernate-orm
hibernate-core/src/main/java/org/hibernate/boot/models/annotations/internal/NamedNativeQueryAnnotation.java
{ "start": 1105, "end": 7736 }
class ____ implements NamedNativeQuery { private String name; private String query; private Class<?> resultClass; private String resultSetMapping; private FlushModeType flushMode; private QueryFlushMode flush; boolean cacheable; String cacheRegion; int fetchSize; int timeout; String comment; CacheStoreMode ...
NamedNativeQueryAnnotation
java
apache__flink
flink-core/src/main/java/org/apache/flink/util/InstantiationUtil.java
{ "start": 11229, "end": 11362 }
class ____ exceptions occurring later. * @return An instance of the given class. * @throws RuntimeException Thrown, if the
cast
java
alibaba__nacos
config/src/main/java/com/alibaba/nacos/config/server/service/repository/ConfigRowMapperInjector.java
{ "start": 21159, "end": 21854 }
class ____ implements RowMapper<ConfigInfoBase> { @Override public ConfigInfoBase mapRow(ResultSet rs, int rowNum) throws SQLException { ConfigInfoBase info = new ConfigInfoBase(); info.setDataId(rs.getString("data_id")); info.setGroup(rs.getStri...
ConfigInfoBaseRowMapper
java
apache__kafka
clients/src/main/java/org/apache/kafka/common/requests/AlterUserScramCredentialsResponse.java
{ "start": 1098, "end": 2224 }
class ____ extends AbstractResponse { private final AlterUserScramCredentialsResponseData data; public AlterUserScramCredentialsResponse(AlterUserScramCredentialsResponseData responseData) { super(ApiKeys.ALTER_USER_SCRAM_CREDENTIALS); this.data = responseData; } @Override public ...
AlterUserScramCredentialsResponse
java
elastic__elasticsearch
server/src/main/java/org/elasticsearch/common/util/BigArrays.java
{ "start": 9132, "end": 11664 }
class ____ extends AbstractArrayWrapper implements LongArray { private final byte[] array; ByteArrayAsLongArrayWrapper(BigArrays bigArrays, long size, boolean clearOnResize) { super(bigArrays, size, null, clearOnResize); assert size >= 0 && size <= PageCacheRecycler.LONG_PAGE_S...
ByteArrayAsLongArrayWrapper
java
micronaut-projects__micronaut-core
core/src/main/java/io/micronaut/core/io/value/ValueResourceLoader.java
{ "start": 2836, "end": 3197 }
class ____ extends URLStreamHandler { private final byte[] bytes; StreamHandlerImpl(byte[] bytes) { this.bytes = bytes; } @Override protected URLConnection openConnection(URL u) throws IOException { return new FixedURLConnection(u, bytes); } ...
StreamHandlerImpl
java
apache__camel
dsl/camel-xml-io-dsl/src/test/java/org/apache/camel/dsl/xml/io/XmlKameletTest.java
{ "start": 960, "end": 1401 }
class ____ { @Test public void testMainKameletAsXml() throws Exception { Main main = new Main(); main.configure().withRoutesIncludePattern("file:src/test/resources/org/apache/camel/kamelet/camel-kamelet.xml"); main.start(); Object out = main.getCamelTemplate().requestBody("dire...
XmlKameletTest
java
apache__camel
dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/GrapeEndpointBuilderFactory.java
{ "start": 4394, "end": 6711 }
interface ____ { /** * Grape (camel-grape) * Fetch, load and manage additional jars dynamically after Camel * Context was started. * * Category: management * Since: 2.16 * Maven coordinates: org.apache.camel:camel-grape * * @retu...
GrapeBuilders
java
apache__flink
flink-datastream/src/test/java/org/apache/flink/datastream/impl/functions/ProcessFunctionTest.java
{ "start": 2360, "end": 9146 }
class ____ { @Test void testOneInputStreamProcessFunctionOpenAndCloseInvoked() throws Exception { AtomicBoolean openInvoked = new AtomicBoolean(false); AtomicBoolean closeInvoked = new AtomicBoolean(false); OneInputStreamProcessFunction<Integer, Integer> processFunction = ...
ProcessFunctionTest