code stringlengths 72 362k | identifier stringlengths 3 50 ⌀ | lang stringclasses 1
value | repository stringclasses 36
values |
|---|---|---|---|
package org.mockito.internal.creation;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import org.mockito.internal.invocation.MockitoMethod;
public class DelegatingMethod implements MockitoMethod {
private final Method method;
private final Class<?>[] parameterTypes;
public DelegatingMethod(Method m... | that | java | mockito |
package org.elasticsearch.xpack.ml.inference.nlp.tokenizers;
import org.apache.lucene.analysis.Analyzer;
import org.apache.lucene.analysis.TokenStream;
import org.apache.lucene.analysis.tokenattributes.PositionIncrementAttribute;
import org.elasticsearch.common.util.set.Sets;
import org.elasticsearch.xpack.core.ml.infe... | seq | java | elasticsearch |
package org.springframework.boot.rsocket.netty;
import java.net.InetSocketAddress;
import java.nio.channels.ClosedChannelException;
import java.time.Duration;
import java.util.Arrays;
import java.util.concurrent.Callable;
import io.netty.buffer.PooledByteBufAllocator;
import io.netty.handler.ssl.SslProvider;
import io.... | action | java | spring-boot |
package org.elasticsearch.xpack.esql.expression.function.scalar.string;
import com.carrotsearch.randomizedtesting.annotations.Name;
import com.carrotsearch.randomizedtesting.annotations.ParametersFactory;
import org.apache.logging.log4j.Logger;
import org.apache.lucene.util.BytesRef;
import org.elasticsearch.xpack.esql... | testCaseSupplier | java | elasticsearch |
package org.elasticsearch.xpack.core.ml.inference.results;
import org.elasticsearch.common.io.stream.Writeable;
import org.elasticsearch.test.AbstractXContentSerializingTestCase;
import org.elasticsearch.xcontent.XContentParser;
import java.io.IOException;
public class RegressionFeatureImportanceTests extends AbstractX... | instance | java | elasticsearch |
package org.elasticsearch.xpack.sql.type;
import org.elasticsearch.common.io.stream.StreamInput;
import org.elasticsearch.common.io.stream.StreamOutput;
import org.elasticsearch.xpack.ql.type.Converter;
import org.elasticsearch.xpack.ql.type.DataType;
import org.elasticsearch.xpack.ql.type.DataTypeConverter;
import org... | dataType | java | elasticsearch |
package org.elasticsearch.xpack.downsample;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.elasticsearch.ElasticsearchException;
import org.elasticsearch.ResourceAlreadyExistsException;
import org.elasticsearch.action.ActionListener;
import org.elasticsearch.action.Action... | labelFields | java | elasticsearch |
package org.springframework.expression.spel;
import java.util.Collection;
import java.util.List;
import java.util.Optional;
import java.util.Set;
import org.jspecify.annotations.Nullable;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
import org.springframework.core.MethodParameter;
import o... | typeConverter | java | spring-framework |
package org.springframework.boot.autoconfigure.r2dbc;
import io.r2dbc.proxy.ProxyConnectionFactory;
import io.r2dbc.spi.ConnectionFactory;
import org.springframework.beans.factory.ObjectProvider;
import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.boot.autoconfigure.EnableAutoCon... | customizers | java | spring-boot |
package okio;
import java.io.EOFException;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
public final class Utf8Test {
@Test public void oneByteCharacters() throws Exception ... | expectedUtf8 | java | j2objc |
package org.elasticsearch.xpack.core.security.authc.support.mapper.expressiondsl;
import org.elasticsearch.common.io.stream.StreamInput;
import org.elasticsearch.common.io.stream.StreamOutput;
import org.elasticsearch.xcontent.XContentBuilder;
import java.io.IOException;
import java.util.Collections;
import java.util.L... | that | java | elasticsearch |
package com.google.devtools.build.lib.skyframe.serialization;
import static com.google.devtools.build.lib.skyframe.serialization.MapHelpers.deserializeMapEntries;
import static com.google.devtools.build.lib.skyframe.serialization.MapHelpers.serializeMapEntries;
import com.google.common.collect.ImmutableClassToInstanceM... | codedOut | java | bazel |
package org.springframework.context.event;
import java.util.function.Consumer;
import org.springframework.context.ApplicationEvent;
import org.springframework.core.ResolvableType;
class GenericApplicationListenerDelegate<E extends ApplicationEvent> implements GenericApplicationListener {
private final Class<E> supporte... | eventType | java | spring-framework |
package org.springframework.boot.autoconfigure.diagnostics.[MASK];
import java.util.ArrayList;
import java.util.List;
import org.junit.jupiter.api.Test;
import org.springframework.beans.FatalBeanException;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.NoUniqueBeanDefinit... | analyzer | java | spring-boot |
package org.elasticsearch.gradle.internal.test;
import org.elasticsearch.gradle.internal.info.GlobalBuildInfoPlugin;
import org.gradle.api.Plugin;
import org.gradle.api.Project;
import org.gradle.api.file.RegularFile;
import org.gradle.api.provider.Provider;
import org.gradle.api.tasks.testing.Test;
import java.io.File... | additionalFilePaths | java | elasticsearch |
package com.google.devtools.build.lib.skyframe;
import static com.google.common.truth.Truth.assertThat;
import static org.mockito.Mockito.mock;
import com.google.common.collect.ImmutableMap;
import com.google.devtools.build.lib.actions.ActionLookupData;
import com.google.devtools.build.lib.actions.ActionLookupKey;
impo... | fileArtifacts | java | bazel |
package org.elasticsearch.xpack.core.security.authz.store;
import org.elasticsearch.action.ActionListener;
import org.elasticsearch.xpack.core.security.authz.store.RoleReference.ServiceAccountRoleReference;
public interface RoleReferenceResolver {
void resolveNamedRoleReference(RoleReference.NamedRoleReference namedRol... | apiKeyRoleReference | java | elasticsearch |
package com.nostra13.universalimageloader.core.assist;
import android.widget.ImageView;
import android.widget.ImageView.ScaleType;
public enum ViewScaleType {
FIT_INSIDE,
CROP;
public static ViewScaleType fromImageView(ImageView [MASK]) {
switch ([MASK].getScaleType()) {
case FIT_CENTER:
case FIT_XY:
case FIT_START:
ca... | imageView | java | Android-Universal-Image-Loader |
package org.springframework.web.reactive.result.method.annotation;
import java.lang.reflect.Method;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import reactor.core.publisher.Mono;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Ann... | paramSystemProperty | java | spring-framework |
package com.google.common.cache;
import static com.google.common.base.Preconditions.checkNotNull;
import static com.google.common.util.concurrent.Futures.immediateFuture;
import com.google.common.annotations.GwtCompatible;
import com.google.common.annotations.GwtIncompatible;
import com.google.common.annotations.J2ktIn... | computingSupplier | java | guava |
package org.elasticsearch.xpack.analytics.aggregations.metrics;
import org.HdrHistogram.DoubleHistogram;
import org.HdrHistogram.DoubleHistogramIterationValue;
import org.apache.lucene.document.BinaryDocValuesField;
import org.apache.lucene.document.Document;
import org.apache.lucene.index.IndexReader;
import org.apach... | doc | java | elasticsearch |
package java.util;
public class NoSuchElementException extends RuntimeException {
@java.io.Serial
private static final long [MASK] = 6769829250639411880L;
public NoSuchElementException() {
super();
}
public NoSuchElementException(String s, Throwable cause) {
super(s, cause);
}
public NoSuchElementException(Throwable ca... | serialVersionUID | java | j2objc |
package tests.support;
import junit.framework.TestCase;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Map;
import java.util.Set;
public class Support_UnmodifiableMapTest extends TestCase {
Map<String, Integer> map;
public Support_UnmodifiableMapTest(String p1) {
super(p1);
}
public Support_Unmod... | entrySet | java | j2objc |
package org.springframework.boot.autoconfigure.security.oauth2.server.servlet;
import java.time.Duration;
import java.util.List;
import org.junit.jupiter.api.Test;
import org.springframework.security.oauth2.core.AuthorizationGrantType;
import org.springframework.security.oauth2.core.ClientAuthenticationMethod;
import o... | oidc | java | spring-boot |
package org.springframework.boot.devtools.restart;
import org.springframework.beans.factory.ObjectFactory;
import org.springframework.beans.factory.config.Scope;
import org.springframework.context.ApplicationContextInitializer;
import org.springframework.context.ConfigurableApplicationContext;
public class RestartScope... | callback | java | spring-boot |
package org.elasticsearch.xpack.application.connector.syncjob.action;
import org.elasticsearch.action.ActionRequestValidationException;
import org.elasticsearch.action.ActionType;
import org.elasticsearch.common.Strings;
import org.elasticsearch.common.io.stream.StreamInput;
import org.elasticsearch.common.io.stream.St... | connectorSyncJobId | java | elasticsearch |
package org.springframework.boot.loader.tools;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
public class Library {
private final String name;
private final File file;
private final LibraryScope [MASK];
private final LibraryCoordinates coordinates;
private ... | scope | java | spring-boot |
package org.elasticsearch.http;
import org.elasticsearch.common.bytes.BytesReference;
import org.elasticsearch.rest.ChunkedRestResponseBodyPart;
import org.elasticsearch.rest.RestRequest;
import org.elasticsearch.rest.RestStatus;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util... | versionSupplier | java | elasticsearch |
package org.springframework.web.socket.config;
import java.io.InputStream;
import java.time.Duration;
import java.time.Instant;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ScheduledFuture;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.xml.XmlBeanDefinitionReade... | handlerClass | java | spring-framework |
package org.elasticsearch.xpack.inference.services.amazonbedrock.action;
import org.elasticsearch.ElasticsearchException;
import org.elasticsearch.action.support.PlainActionFuture;
import org.elasticsearch.core.TimeValue;
import org.elasticsearch.inference.InferenceServiceResults;
import org.elasticsearch.test.ESTestCa... | serviceComponents | java | elasticsearch |
package com.google.inject.internal.aop;
interface ClassDefiner {
Class<?> define(Class<?> hostClass, byte[] [MASK]) throws Exception;
} | bytecode | java | guice |
package com.google.common.net;
import static com.google.common.base.CharMatcher.ascii;
import static com.google.common.base.CharMatcher.javaIsoControl;
import static com.google.common.base.MoreObjects.firstNonNull;
import static com.google.common.base.Preconditions.checkArgument;
import static com.google.common.base.Pr... | knownTypes | java | guava |
package org.springframework.boot.ant;
import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.Project;
import org.apache.tools.ant.Task;
import org.springframework.util.StringUtils;
public class ShareAntlibLoader extends Task {
private String [MASK];
public ShareAntlibLoader(Project project) {
setProjec... | refid | java | spring-boot |
package org.springframework.boot.actuate.autoconfigure.metrics.export.elastic;
import io.micrometer.elastic.ElasticConfig;
import org.springframework.boot.actuate.autoconfigure.metrics.export.[MASK].StepRegistryPropertiesConfigAdapter;
class ElasticPropertiesConfigAdapter extends StepRegistryPropertiesConfigAdapter<Ela... | properties | java | spring-boot |
package io.reactivex.rxjava3.internal.operators.observable;
import java.util.Objects;
import java.util.concurrent.atomic.AtomicInteger;
import io.reactivex.rxjava3.annotations.Nullable;
import io.reactivex.rxjava3.core.*;
import io.reactivex.rxjava3.exceptions.Exceptions;
import io.reactivex.rxjava3.functions.*;
import... | mapper | java | RxJava |
package lib.layout;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.allOf;
import static org.hamcrest.Matchers.containsString;
import static org.hamcrest.Matchers.instanceOf;
import static org.hamcrest.Matchers.not;
import static org.junit.Assert.assertFalse;
import edu.umd.cs.f... | controlResult | java | jenkins |
package org.openrefine.wikibase.schema.exceptions;
import org.openrefine.wikibase.qa.QAWarning;
public class QAWarningException extends Exception {
private static final long [MASK] = 9108065465354881096L;
private QAWarning warning;
public QAWarningException(QAWarning warning) {
this.warning = warning;
}
public QAWarnin... | serialVersionUID | java | OpenRefine |
package org.springframework.web.servlet.config.annotation;
import java.util.Map;
import org.springframework.web.servlet.view.UrlBasedViewResolver;
public class UrlBasedViewResolverRegistration {
protected final UrlBasedViewResolver viewResolver;
public UrlBasedViewResolverRegistration(UrlBasedViewResolver viewResolver)... | viewNames | java | spring-framework |
package org.elasticsearch.xpack.esql.plan.physical;
import org.elasticsearch.common.io.stream.NamedWriteableRegistry;
import org.elasticsearch.common.io.stream.StreamInput;
import org.elasticsearch.common.io.stream.StreamOutput;
import org.elasticsearch.xpack.esql.core.expression.Attribute;
import org.elasticsearch.xpa... | out | java | elasticsearch |
package org.springframework.test.context.junit4.orm.repository;
import org.springframework.test.context.junit4.orm.domain.Person;
public interface PersonRepository {
Person findByName(String name);
Person save(Person [MASK]);
} | person | java | spring-framework |
package org.springframework.boot.gradle.tasks.aot;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
import org.gradle.api.file.FileCollection;
import org.gradle.api.file.FileTree;
import org.gradle.api.tasks.CacheableTask;
import org.gradle.api.tasks.IgnoreEmpt... | classpathRoots | java | spring-boot |
package java.util.concurrent;
import com.google.j2objc.ReflectionStrippedError;
import com.google.j2objc.annotations.AutoreleasePool;
import java.io.Serializable;
import java.lang.ref.ReferenceQueue;
import java.lang.ref.WeakReference;
import java.lang.reflect.Constructor;
import java.util.Collection;
import java.util.... | noArgCtor | java | j2objc |
package org.springframework.web.filter;
import java.io.IOException;
import jakarta.servlet.FilterChain;
import jakarta.servlet.ServletException;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.springframework.http.HttpStatus;
import org.springframework.http.Ht... | filterChain | java | spring-framework |
package org.elasticsearch.index.fielddata;
import java.io.IOException;
final class SingletonSortedNumericDoubleValues extends SortedNumericDoubleValues {
private final NumericDoubleValues in;
SingletonSortedNumericDoubleValues(NumericDoubleValues in) {
this.in = in;
}
public NumericDoubleValues getNumericDoubleValues()... | target | java | elasticsearch |
package org.elasticsearch.gradle.internal.test;
import org.elasticsearch.gradle.LoggedExec;
import org.gradle.api.DefaultTask;
import org.gradle.api.file.ConfigurableFileCollection;
import org.gradle.api.file.FileCollection;
import org.gradle.api.file.RegularFileProperty;
import org.gradle.api.tasks.CacheableTask;
impo... | execOperations | java | elasticsearch |
package org.elasticsearch.example.painlesswhitelist;
public class ExampleWhitelistedInstance {
private final int value;
public ExampleWhitelistedInstance(int value) {
this.value = value;
}
public int addValue(int [MASK]) {
return this.value + [MASK];
}
public int getValue() {
return value;
}
} | valueToAdd | java | elasticsearch |
package org.greenrobot.greendao.test;
import org.greenrobot.greendao.AbstractDao;
public abstract class AbstractDaoTestStringPk<D extends AbstractDao<T, String>, T> extends
AbstractDaoTestSinglePk<D, T, String> {
public AbstractDaoTestStringPk(Class<D> [MASK]) {
super([MASK]);
}
@Override
protected String createRandomP... | daoClass | java | greenDAO |
package org.elasticsearch.multiproject;
import org.elasticsearch.cluster.metadata.Metadata;
import org.elasticsearch.cluster.metadata.ProjectId;
import org.elasticsearch.cluster.project.AbstractProjectResolver;
import org.elasticsearch.cluster.project.ProjectResolver;
import org.elasticsearch.common.util.concurrent.Thr... | threadPool | java | elasticsearch |
package com.google.devtools.build.lib.exec.local;
import static com.google.common.truth.Truth.assertThat;
import static com.google.devtools.build.lib.testing.common.DirectoryListingHelper.file;
import static java.nio.charset.StandardCharsets.UTF_8;
import static org.junit.Assert.assertThrows;
import static org.junit.As... | localExecutionOptions | java | bazel |
package org.elasticsearch.xpack.ml.action;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.elasticsearch.ResourceNotFoundException;
import org.elasticsearch.action.ActionListener;
import org.elasticsearch.action.admin.cluster.node.tasks.get.GetTaskRequest;
import org.elast... | jobState | java | elasticsearch |
package org.elasticsearch.example.stable.client;
import com.carrotsearch.randomizedtesting.annotations.Name;
import com.carrotsearch.randomizedtesting.annotations.ParametersFactory;
import org.elasticsearch.test.rest.yaml.ClientYamlTestCandidate;
import org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase;
public... | testCandidate | java | elasticsearch |
package org.springframework.boot.test.web.client;
import java.io.IOException;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpClient.Redirect;
import java.util.Base64;
import java.util.stream.Stream;
import org.apache.hc.... | errorHandler | java | spring-boot |
package org.elasticsearch.xpack.esql.optimizer;
import org.elasticsearch.xpack.esql.plan.physical.PhysicalPlan;
import java.util.List;
public class TestLocalPhysicalPlanOptimizer extends LocalPhysicalPlanOptimizer {
private final boolean [MASK];
public TestLocalPhysicalPlanOptimizer(LocalPhysicalOptimizerContext contex... | esRules | java | elasticsearch |
package io.reactivex.rxjava3.internal.operators.maybe;
import static org.junit.Assert.*;
import org.junit.Test;
import io.reactivex.rxjava3.core.*;
import io.reactivex.rxjava3.exceptions.TestException;
import io.reactivex.rxjava3.processors.PublishProcessor;
import io.reactivex.rxjava3.subjects.MaybeSubject;
import io.... | ms1 | java | RxJava |
package com.bumptech.glide.test;
import android.content.res.Resources;
import android.graphics.Bitmap;
import android.graphics.drawable.Drawable;
import androidx.annotation.CheckResult;
import androidx.annotation.DrawableRes;
import androidx.annotation.FloatRange;
import androidx.annotation.IntRange;
import androidx.an... | theme | java | glide |
package org.springframework.test.context.support;
import java.util.Arrays;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.aot.hint.RuntimeHints;
import org.springframework.beans.factory.support.BeanDefinitionReader;
import org.springframework.beans.factor... | runtimeHints | java | spring-framework |
package org.springframework.boot.autoconfigure.security.saml2;
import java.util.Collections;
import java.util.Map;
import org.junit.jupiter.api.Test;
import org.springframework.boot.context.properties.bind.Bindable;
import org.springframework.boot.context.properties.bind.Binder;
import org.springframework.boot.context.... | source | java | spring-boot |
package com.google.devtools.build.lib.skyframe;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.Iterables;
import com.google.devtools.build.lib.actions.PackageRoots;
import com.google.devtools.build.lib.cmdline.PackageIdentifier;
import com.google.devtools.build.lib.vfs.Root;
import java... | onlyRoot | java | bazel |
package com.google.android.exoplayer2.transformer;
import static java.lang.Math.floor;
import static java.lang.Math.max;
import static java.lang.Math.round;
import android.media.CamcorderProfile;
import android.media.MediaCodec;
import android.media.MediaCodecInfo;
import android.media.MediaCodecList;
import android.me... | isDecoder | java | ExoPlayer |
package org.elasticsearch.indices.store;
import org.apache.logging.log4j.Logger;
import org.elasticsearch.action.ActionListener;
import org.elasticsearch.action.admin.cluster.health.ClusterHealthResponse;
import org.elasticsearch.action.admin.cluster.reroute.ClusterRerouteUtils;
import org.elasticsearch.action.admin.cl... | nonMasterNode | java | elasticsearch |
package org.elasticsearch.xpack.security.action.role;
import org.elasticsearch.action.ActionListener;
import org.elasticsearch.action.support.ActionFilters;
import org.elasticsearch.action.support.TransportAction;
import org.elasticsearch.common.util.concurrent.EsExecutors;
import org.elasticsearch.injection.guice.Inje... | requestedRoles | java | elasticsearch |
package io.reactivex.rxjava3.internal.subscriptions;
import java.util.Objects;
import java.util.concurrent.atomic.*;
import org.reactivestreams.Subscription;
import io.reactivex.rxjava3.exceptions.ProtocolViolationException;
import io.reactivex.rxjava3.internal.util.BackpressureHelper;
import io.reactivex.rxjava3.plugi... | requested | java | RxJava |
package org.elasticsearch.common.util.concurrent;
import org.elasticsearch.common.Priority;
import java.util.concurrent.Callable;
public abstract class PrioritizedCallable<T> implements Callable<T>, Comparable<PrioritizedCallable<T>> {
private final Priority priority;
public static <T> PrioritizedCallable<T> wrap(Calla... | callable | java | elasticsearch |
package org.mockito.stubbing;
import org.mockito.CheckReturnValue;
import org.mockito.Mockito;
import org.mockito.NotExtensible;
@CheckReturnValue
@SuppressWarnings("unchecked")
@NotExtensible
public interface Stubber extends BaseStubber {
<T> T when(T [MASK]);
} | mock | java | mockito |
package com.google.common.math;
import static com.google.common.base.Preconditions.checkArgument;
import static com.google.common.base.Preconditions.checkNotNull;
import static com.google.common.base.Preconditions.checkState;
import static java.lang.Double.NaN;
import static java.lang.Double.doubleToLongBits;
import st... | ySumOfSquaresOfDeltas | java | guava |
package org.elasticsearch.analysis.common;
import org.apache.lucene.analysis.TokenStream;
import org.apache.lucene.analysis.en.KStemFilter;
import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.env.Environment;
import org.elasticsearch.index.IndexSettings;
import org.elasticsearch.index.analysis.A... | tokenStream | java | elasticsearch |
package org.junit.runners.parameterized;
import static java.util.Collections.unmodifiableList;
import static org.junit.internal.Checks.notNull;
import java.util.ArrayList;
import java.util.List;
import org.junit.runners.model.TestClass;
public class TestWithParameters {
private final String name;
private final TestClas... | parameters | java | junit4 |
package com.github.scribejava.apis.microsoftazureactivedirectory;
import com.github.scribejava.core.model.OAuthRequest;
import com.github.scribejava.core.oauth2.bearersignature.BearerSignatureAuthorizationRequestHeaderField;
public abstract class BaseMicrosoftAzureActiveDirectoryBearerSignature
extends BearerSignatureA... | acceptedFormat | java | scribejava |
package org.elasticsearch.xpack.sql.expression.function.scalar.string;
import org.elasticsearch.common.io.stream.StreamInput;
import org.elasticsearch.xpack.ql.expression.gen.processor.FunctionalEnumBinaryProcessor;
import org.elasticsearch.xpack.ql.expression.gen.processor.Processor;
import org.elasticsearch.xpack.sql... | left | java | elasticsearch |
package com.google.common.collect;
import com.google.caliper.BeforeExperiment;
import com.google.caliper.Benchmark;
import com.google.caliper.Param;
import com.google.common.base.Optional;
import com.google.common.primitives.Ints;
import java.util.List;
import java.util.Random;
import org.jspecify.annotations.NullUnmar... | view | java | guava |
package org.apache.xpath.axes;
import org.apache.xml.dtm.Axis;
import org.apache.xml.dtm.DTM;
import org.apache.xml.dtm.DTMAxisTraverser;
import org.apache.xml.dtm.DTMIterator;
import org.apache.xpath.XPathContext;
import org.apache.xpath.compiler.Compiler;
import org.apache.xpath.compiler.OpMap;
import org.apache.xpat... | opPos | java | j2objc |
package org.elasticsearch.xpack.esql.querydsl.query;
import org.elasticsearch.common.unit.Fuzziness;
import org.elasticsearch.core.Booleans;
import org.elasticsearch.index.query.MultiMatchQueryBuilder;
import org.elasticsearch.index.query.Operator;
import org.elasticsearch.index.query.QueryBuilder;
import org.elasticse... | predicate | java | elasticsearch |
package org.springframework.test.context.aot.samples.basic;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextInitializer;
import org.spring... | applicationContext | java | spring-framework |
package org.elasticsearch.xpack.core.ml.inference.trainedmodel;
import org.elasticsearch.TransportVersion;
import org.elasticsearch.TransportVersions;
import org.elasticsearch.common.io.stream.Writeable;
import org.elasticsearch.core.Tuple;
import org.elasticsearch.xcontent.XContentParser;
import java.io.IOException;
i... | instance | java | elasticsearch |
package org.elasticsearch.xpack.core.ml.dataframe.evaluation.regression;
import org.elasticsearch.common.Strings;
import org.elasticsearch.common.io.stream.Writeable;
import org.elasticsearch.search.aggregations.InternalAggregations;
import org.elasticsearch.test.AbstractXContentSerializingTestCase;
import org.elastics... | instance | java | elasticsearch |
package org.springframework.boot.docker.compose.core;
import java.util.Collections;
import java.util.List;
import org.junit.jupiter.api.Test;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.entry;
class DockerEnvTests {
@Test
void createWhenEnvIsNullReturnsEmpty()... | env | java | spring-boot |
package org.elasticsearch.plugin.analysis.ukrainian;
import org.apache.lucene.analysis.Analyzer;
import org.apache.lucene.analysis.TokenStream;
import org.apache.lucene.analysis.tokenattributes.CharTermAttribute;
import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.index.Index;
import org.elastic... | analyzer | java | elasticsearch |
package com.google.j2objc;
import static java.lang.Thread.State;
import junit.framework.TestCase;
public class ThreadTest extends TestCase {
public void testThreadStateWaiting() {
final long shortDelay = 100;
Object obj = new Object();
Thread t = new Thread() {
public final void run() {
synchronized (obj) {
try {
obj.w... | longDelay | java | j2objc |
package org.elasticsearch.xpack.esql.expression.function.scalar.convert;
import java.lang.Override;
import java.lang.String;
import org.apache.lucene.util.BytesRef;
import org.elasticsearch.compute.data.Block;
import org.elasticsearch.compute.data.BytesRefBlock;
import org.elasticsearch.compute.data.LongBlock;
import o... | valuesAppended | java | elasticsearch |
package org.junit.internal.runners;
import java.util.Arrays;
import java.util.List;
@Deprecated
public class InitializationError extends Exception {
private static final long serialVersionUID = 1L;
private final List<Throwable> fErrors;
public InitializationError(List<Throwable> [MASK]) {
this.fErrors = [MASK];
}
publi... | errors | java | junit4 |
package org.greenrobot.greendao.rxexample;
import android.app.Application;
import android.content.Context;
import org.greenrobot.greendao.database.Database;
public class App extends Application {
private DaoSession [MASK];
@Override
public void onCreate() {
super.onCreate();
ExampleOpenHelper helper = new ExampleOpenHe... | daoSession | java | greenDAO |
package io.reactivex.rxjava3.internal.operators.completable;
import java.util.concurrent.atomic.*;
import org.reactivestreams.*;
import io.reactivex.rxjava3.core.*;
import io.reactivex.rxjava3.disposables.*;
import io.reactivex.rxjava3.internal.disposables.DisposableHelper;
import io.reactivex.rxjava3.internal.subscrip... | inner | java | RxJava |
package proguard.shrink;
import proguard.classfile.*;
import proguard.classfile.attribute.Attribute;
import proguard.classfile.attribute.annotation.*;
import proguard.classfile.attribute.annotation.visitor.*;
import proguard.classfile.attribute.visitor.AttributeVisitor;
import proguard.classfile.constant.*;
import prog... | arrayElementValue | java | bazel |
package com.google.android.exoplayer2.mediacodec;
import static com.google.android.exoplayer2.testutil.TestUtil.createByteArray;
import static com.google.common.truth.Truth.assertThat;
import androidx.test.ext.junit.runners.AndroidJUnit4;
import com.google.android.exoplayer2.Format;
import com.google.android.exoplayer2... | buffer | java | ExoPlayer |
package in.uncod.android.bypass.style;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.text.style.ReplacementSpan;
public class HorizontalLineSpan extends ReplacementSpan {
private Paint mPaint;
private int mLineHeight;
private int mTopBottomPadding;
public HorizontalLineSpan(int color, in... | halfLineHeight | java | plaid |
package hudson.model.queue;
import static java.lang.Math.max;
import com.google.common.collect.Iterables;
import hudson.model.Computer;
import hudson.model.Executor;
import hudson.model.Label;
import hudson.model.LoadBalancer;
import hudson.model.Node;
import hudson.model.Queue;
import hudson.model.Queue.BuildableItem;... | lastBuiltOn | java | jenkins |
package org.springframework.test.context.junit4.orm.domain;
public class DriversLicense {
private Long id;
private Long [MASK];
public DriversLicense() {
}
public DriversLicense(Long [MASK]) {
this(null, [MASK]);
}
public DriversLicense(Long id, Long [MASK]) {
this.id = id;
this.[MASK] = [MASK];
}
public Long getId() {... | number | java | spring-framework |
package com.bumptech.glide.annotation.compiler;
import com.bumptech.glide.annotation.GlideModule;
import com.squareup.javapoet.TypeSpec;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import javax.annotation.processing.ProcessingEnvironme... | requestManagerFactoryGenerator | java | glide |
package org.junit.runner;
import org.junit.runner.notification.RunNotifier;
public abstract class Runner implements Describable {
public abstract Description getDescription();
public abstract void run(RunNotifier [MASK]);
public int testCount() {
return getDescription().testCount();
}
} | notifier | java | junit4 |
package com.google.android.exoplayer2.decoder;
import com.google.android.exoplayer2.C;
@Deprecated
public abstract class Buffer {
private @C.BufferFlags int [MASK];
public void clear() {
[MASK] = 0;
}
public final boolean isDecodeOnly() {
return getFlag(C.BUFFER_FLAG_DECODE_ONLY);
}
public final boolean isFirstSample()... | flags | java | ExoPlayer |
package com.bumptech.glide.load.[MASK].drawable;
import static com.bumptech.glide.RobolectricConstants.ROBOLECTRIC_SDK;
import static com.google.common.truth.Truth.assertThat;
import static org.junit.Assert.assertNotEquals;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.verify;
import static ... | resource | java | glide |
package org.springframework.boot.testcontainers.service.connection.kafka;
import java.util.List;
import org.testcontainers.kafka.ConfluentKafkaContainer;
import org.springframework.boot.autoconfigure.kafka.KafkaConnectionDetails;
import org.springframework.boot.ssl.SslBundle;
import org.springframework.boot.testcontain... | source | java | spring-boot |
package org.elasticsearch.xpack.core.ilm;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.elasticsearch.cluster.ClusterState;
import org.elasticsearch.cluster.metadata.DataStream;
import org.elasticsearch.cluster.metadata.IndexAbstraction;
import org.elasticsearch.cluster.... | dataStream | java | elasticsearch |
package io.reactivex.rxjava3.internal.operators.completable;
import java.util.*;
import java.util.concurrent.atomic.AtomicInteger;
import org.junit.Test;
import io.reactivex.rxjava3.core.*;
import io.reactivex.rxjava3.disposables.CompositeDisposable;
import io.reactivex.rxjava3.exceptions.TestException;
import io.react... | ps2 | java | RxJava |
package org.elasticsearch.xpack.sql.action;
import org.elasticsearch.common.Strings;
import org.elasticsearch.common.bytes.BytesReference;
import org.elasticsearch.common.io.stream.Writeable;
import org.elasticsearch.common.xcontent.XContentHelper;
import org.elasticsearch.test.AbstractXContentSerializingTestCase;
impo... | columnar | java | elasticsearch |
package com.google.android.exoplayer2.util;
import static com.google.android.exoplayer2.util.Util.SDK_INT;
import android.annotation.SuppressLint;
import android.media.AudioFormat;
import android.media.MediaFormat;
import androidx.annotation.Nullable;
import com.google.android.exoplayer2.C;
import com.google.android.ex... | pixelAspectRatioWidth | java | ExoPlayer |
package org.elasticsearch.xpack.sql.expression.function.scalar.math;
import org.elasticsearch.xpack.ql.expression.Expression;
import org.elasticsearch.xpack.ql.tree.NodeInfo;
import org.elasticsearch.xpack.ql.tree.Source;
import org.elasticsearch.xpack.sql.expression.function.scalar.math.MathProcessor.MathOperation;
pu... | field | java | elasticsearch |
package org.elasticsearch.example.customsettings;
import org.elasticsearch.ElasticsearchException;
import org.elasticsearch.common.settings.SecureSetting;
import org.elasticsearch.common.settings.SecureString;
import org.elasticsearch.common.settings.Setting;
import org.elasticsearch.common.settings.Setting.Property;
i... | filtered | java | elasticsearch |
package org.elasticsearch.xpack.core.transform.transforms;
import org.elasticsearch.common.io.stream.StreamInput;
import org.elasticsearch.common.io.stream.StreamOutput;
import org.elasticsearch.common.io.stream.Writeable;
import java.io.IOException;
import java.util.Locale;
public enum TransformTaskState implements Wr... | out | java | elasticsearch |
package com.google.android.exoplayer2.text.cea;
import android.graphics.Color;
import android.graphics.Typeface;
import android.text.Layout.Alignment;
import android.text.SpannableString;
import android.text.SpannableStringBuilder;
import android.text.Spanned;
import android.text.style.BackgroundColorSpan;
import andro... | penStyle | java | ExoPlayer |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.