Unnamed: 0 int64 0 6.45k | func stringlengths 37 143k | target class label 2
classes | project stringlengths 33 157 |
|---|---|---|---|
231 | @Documented
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface OId {
} | 0true | core_src_main_java_com_orientechnologies_orient_core_annotation_OId.java |
3,228 | public abstract class ScriptDocValues {
public static final ScriptDocValues EMPTY = new Empty();
public static final Strings EMPTY_STRINGS = new Strings(BytesValues.EMPTY);
protected int docId;
protected boolean listLoaded = false;
public void setNextDocId(int docId) {
this.docId = docId;
... | 1no label | src_main_java_org_elasticsearch_index_fielddata_ScriptDocValues.java |
1,772 | public abstract class BasePolygonBuilder<E extends BasePolygonBuilder<E>> extends ShapeBuilder {
public static final GeoShapeType TYPE = GeoShapeType.POLYGON;
// Linear ring defining the shell of the polygon
protected Ring<E> shell;
// List of linear rings defining the holes of the polygon
prot... | 1no label | src_main_java_org_elasticsearch_common_geo_builders_BasePolygonBuilder.java |
1,542 | public static class Map extends Mapper<NullWritable, FaunusVertex, NullWritable, Text> {
private boolean isVertex;
private final Text textWritable = new Text();
private SafeMapperOutputs outputs;
@Override
public void setup(final Mapper.Context context) throws IOException, ... | 1no label | titan-hadoop-parent_titan-hadoop-core_src_main_java_com_thinkaurelius_titan_hadoop_mapreduce_transform_PathMap.java |
2,151 | public class TransactionalMapProxy extends TransactionalMapProxySupport implements TransactionalMap {
private final Map<Object, TxnValueWrapper> txMap = new HashMap<Object, TxnValueWrapper>();
public TransactionalMapProxy(String name, MapService mapService, NodeEngine nodeEngine, TransactionSupport transactio... | 1no label | hazelcast_src_main_java_com_hazelcast_map_tx_TransactionalMapProxy.java |
125 | public interface OProfilerMBean extends OService {
public enum METRIC_TYPE {
CHRONO, COUNTER, STAT, SIZE, ENABLED, TEXT
}
public void updateCounter(String iStatName, String iDescription, long iPlus);
public void updateCounter(String iStatName, String iDescription, long iPlus, String iDictionary);
publ... | 0true | commons_src_main_java_com_orientechnologies_common_profiler_OProfilerMBean.java |
2,889 | public final class Predicates {
//we don't want instances.
private Predicates() {
}
public static Predicate instanceOf(final Class klass) {
return new InstanceOfPredicate(klass);
}
private static Comparable readAttribute(Map.Entry entry, String attribute) {
QueryableEntry quer... | 1no label | hazelcast_src_main_java_com_hazelcast_query_Predicates.java |
5,075 | class Reaper implements Runnable {
@Override
public void run() {
long time = threadPool.estimatedTimeInMillis();
for (SearchContext context : activeContexts.values()) {
if (context.lastAccessTime() == -1) { // its being processed or timeout is disabled
... | 1no label | src_main_java_org_elasticsearch_search_SearchService.java |
874 | public class TransportSearchQueryThenFetchAction extends TransportSearchTypeAction {
@Inject
public TransportSearchQueryThenFetchAction(Settings settings, ThreadPool threadPool, ClusterService clusterService,
SearchServiceTransportAction searchService, SearchPhase... | 1no label | src_main_java_org_elasticsearch_action_search_type_TransportSearchQueryThenFetchAction.java |
4,497 | public class StartRecoveryRequest extends TransportRequest {
private static final AtomicLong recoveryIdGenerator = new AtomicLong();
private long recoveryId;
private ShardId shardId;
private DiscoveryNode sourceNode;
private DiscoveryNode targetNode;
private boolean markAsRelocated;
p... | 1no label | src_main_java_org_elasticsearch_indices_recovery_StartRecoveryRequest.java |
230 | @Documented
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface ODocumentInstance {
} | 0true | core_src_main_java_com_orientechnologies_orient_core_annotation_ODocumentInstance.java |
1,653 | public class PersistencePackageRequest {
protected Type type;
protected String ceilingEntityClassname;
protected String configKey;
protected AdornedTargetList adornedList;
protected MapStructure mapStructure;
protected Entity entity;
protected ForeignKey foreignKey;
protected Integer st... | 1no label | admin_broadleaf-open-admin-platform_src_main_java_org_broadleafcommerce_openadmin_server_domain_PersistencePackageRequest.java |
3,256 | abstract class LongValuesComparatorBase<T extends Number> extends NumberComparatorBase<T> {
protected final IndexNumericFieldData<?> indexFieldData;
protected final long missingValue;
protected long bottom;
protected LongValues readerValues;
protected final SortMode sortMode;
public LongValue... | 1no label | src_main_java_org_elasticsearch_index_fielddata_fieldcomparator_LongValuesComparatorBase.java |
509 | public class DeleteIndexRequest extends MasterNodeOperationRequest<DeleteIndexRequest> {
private String[] indices;
// Delete index should work by default on both open and closed indices.
private IndicesOptions indicesOptions = IndicesOptions.fromOptions(false, true, true, true);
private TimeValue timeo... | 0true | src_main_java_org_elasticsearch_action_admin_indices_delete_DeleteIndexRequest.java |
144 | @Test
public class IntegerSerializerTest {
private static final int FIELD_SIZE = 4;
private static final Integer OBJECT = 1;
private OIntegerSerializer integerSerializer;
byte[] stream = new byte[FIELD_SIZE];
@BeforeClass
public void beforeClass() {
integerSerializer... | 0true | commons_src_test_java_com_orientechnologies_common_serialization_types_IntegerSerializerTest.java |
875 | public class KryoSerializer {
public static final int DEFAULT_MAX_OUTPUT_SIZE = 10 * 1024 * 1024; // 10 MB in bytes
public static final int KRYO_ID_OFFSET = 50;
private final boolean registerRequired;
private final ThreadLocal<Kryo> kryos;
private final Map<Integer,TypeRegistration> registrations;... | 1no label | titan-core_src_main_java_com_thinkaurelius_titan_graphdb_database_serialize_kryo_KryoSerializer.java |
8 | private class OutgoingMessageHolder implements MessageHolder
{
private Deque<Message<? extends MessageType>> outgoingMessages = new ArrayDeque<Message<? extends MessageType>>();
@Override
public synchronized void offer( Message<? extends MessageType> message )
{
outg... | 1no label | enterprise_cluster_src_main_java_org_neo4j_cluster_StateMachines.java |
1,270 | @SuppressWarnings("unchecked")
public class InternalTransportClusterAdminClient extends AbstractClusterAdminClient implements InternalClusterAdminClient {
private final TransportClientNodesService nodesService;
private final ThreadPool threadPool;
private final ImmutableMap<ClusterAction, TransportAction... | 1no label | src_main_java_org_elasticsearch_client_transport_support_InternalTransportClusterAdminClient.java |
516 | public class IndicesExistsRequestBuilder extends MasterNodeReadOperationRequestBuilder<IndicesExistsRequest, IndicesExistsResponse, IndicesExistsRequestBuilder> {
public IndicesExistsRequestBuilder(IndicesAdminClient indicesClient, String... indices) {
super((InternalIndicesAdminClient) indicesClient, new ... | 0true | src_main_java_org_elasticsearch_action_admin_indices_exists_indices_IndicesExistsRequestBuilder.java |
31 | final class NestedLiteralCompletionProposal implements ICompletionProposal,
ICompletionProposalExtension2 {
private final int loc;
private final int index;
private final String value;
NestedLiteralCompletionProposal(String value, int loc,
... | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_complete_InvocationCompletionProposal.java |
1,532 | public class EdgesVerticesMap {
public static final String DIRECTION = Tokens.makeNamespace(EdgesVerticesMap.class) + ".direction";
public enum Counters {
IN_EDGES_PROCESSED,
OUT_EDGES_PROCESSED
}
public static Configuration createConfiguration(final Direction direction) {
fin... | 1no label | titan-hadoop-parent_titan-hadoop-core_src_main_java_com_thinkaurelius_titan_hadoop_mapreduce_transform_EdgesVerticesMap.java |
2,933 | public class MultiResultSet extends AbstractSet<QueryableEntry> {
private Set<Object> index;
private final List<ConcurrentMap<Data, QueryableEntry>> resultSets
= new ArrayList<ConcurrentMap<Data, QueryableEntry>>();
public MultiResultSet() {
}
public void addResultSet(ConcurrentMap<Dat... | 1no label | hazelcast_src_main_java_com_hazelcast_query_impl_MultiResultSet.java |
36 | public class TitanGraphQueryTestSuite extends GraphQueryTestSuite {
public TitanGraphQueryTestSuite(final GraphTest graphTest) {
super(graphTest);
}
@Override
public void testGraphQueryForVertices() {
TitanGraph g = (TitanGraph) graphTest.generateGraph();
if (g.getRelationType... | 0true | titan-test_src_main_java_com_thinkaurelius_titan_blueprints_TitanGraphQueryTestSuite.java |
730 | public class TransportShardDeleteAction extends TransportShardReplicationOperationAction<ShardDeleteRequest, ShardDeleteRequest, ShardDeleteResponse> {
@Inject
public TransportShardDeleteAction(Settings settings, TransportService transportService,
ClusterService clusterSer... | 0true | src_main_java_org_elasticsearch_action_delete_index_TransportShardDeleteAction.java |
2,155 | public class AndDocIdSet extends DocIdSet {
private final DocIdSet[] sets;
public AndDocIdSet(DocIdSet[] sets) {
this.sets = sets;
}
@Override
public boolean isCacheable() {
for (DocIdSet set : sets) {
if (!set.isCacheable()) {
return false;
... | 1no label | src_main_java_org_elasticsearch_common_lucene_docset_AndDocIdSet.java |
269 | public interface OCommandOutputListener {
public void onMessage(String iText);
} | 0true | core_src_main_java_com_orientechnologies_orient_core_command_OCommandOutputListener.java |
5,760 | public class FetchPhase implements SearchPhase {
private final FetchSubPhase[] fetchSubPhases;
@Inject
public FetchPhase(HighlightPhase highlightPhase, ScriptFieldsFetchSubPhase scriptFieldsPhase, PartialFieldsFetchSubPhase partialFieldsPhase,
MatchedQueriesFetchSubPhase matchedQueri... | 1no label | src_main_java_org_elasticsearch_search_fetch_FetchPhase.java |
2,236 | static class PRNG {
private static final long multiplier = 0x5DEECE66DL;
private static final long addend = 0xBL;
private static final long mask = (1L << 48) - 1;
final long originalSeed;
long seed;
PRNG(long seed) {
this.originalSeed = seed;
... | 1no label | src_main_java_org_elasticsearch_common_lucene_search_function_RandomScoreFunction.java |
378 | @RunWith(HazelcastParallelClassRunner.class)
@Category(NightlyTest.class)
public class ClientMultiMapListenerStressTest {
static final int MAX_SECONDS = 60 * 10;
static final String MAP_NAME = randomString();
static final int NUMBER_OF_CLIENTS = 8;
static final int THREADS_PER_CLIENT = 8;
static H... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_multimap_ClientMultiMapListenerStressTest.java |
240 | public class ModuleConfigurationType implements BroadleafEnumerationType, Serializable {
private static final long serialVersionUID = 1L;
private static final Map<String, ModuleConfigurationType> TYPES = new LinkedHashMap<String, ModuleConfigurationType>();
public static final ModuleConfigurationType FUL... | 1no label | common_src_main_java_org_broadleafcommerce_common_config_service_type_ModuleConfigurationType.java |
662 | class ShardValidateQueryResponse extends BroadcastShardOperationResponse {
private boolean valid;
private String explanation;
private String error;
ShardValidateQueryResponse() {
}
public ShardValidateQueryResponse(String index, int shardId, boolean valid, String explanation, Strin... | 0true | src_main_java_org_elasticsearch_action_admin_indices_validate_query_ShardValidateQueryResponse.java |
698 | public class BulkRequestTests extends ElasticsearchTestCase {
@Test
public void testSimpleBulk1() throws Exception {
String bulkAction = copyToStringFromClasspath("/org/elasticsearch/action/bulk/simple-bulk.json");
// translate Windows line endings (\r\n) to standard ones (\n)
if (Const... | 0true | src_test_java_org_elasticsearch_action_bulk_BulkRequestTests.java |
161 | @Service("blStructuredContentService")
public class StructuredContentServiceImpl extends AbstractContentService implements StructuredContentService {
protected static final Log LOG = LogFactory.getLog(StructuredContentServiceImpl.class);
protected static String AND = " && ";
@Resource(name="blStructuredCo... | 0true | admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_structure_service_StructuredContentServiceImpl.java |
1,152 | public class OSQLMethodRemove extends OAbstractSQLMethod {
public static final String NAME = "remove";
public OSQLMethodRemove() {
super(NAME, 1, -1);
}
@Override
public Object execute(final OIdentifiable iCurrentRecord, final OCommandContext iContext, Object ioResult, Object[] iMethodParams) {
if ... | 1no label | core_src_main_java_com_orientechnologies_orient_core_sql_method_misc_OSQLMethodRemove.java |
367 | public static class TestReducerFactory
implements ReducerFactory<String, Integer, Integer> {
public TestReducerFactory() {
}
@Override
public Reducer<String, Integer, Integer> newReducer(String key) {
return new TestReducer();
}
} | 0true | hazelcast-client_src_test_java_com_hazelcast_client_mapreduce_ClientMapReduceTest.java |
348 | transportService.sendRequest(node, NodeShutdownRequestHandler.ACTION, new NodeShutdownRequest(request), new EmptyTransportResponseHandler(ThreadPool.Names.SAME) {
@Override
public void handleResponse(TransportResponse.Empty resp... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_node_shutdown_TransportNodesShutdownAction.java |
1,091 | public final class ODefaultSQLFunctionFactory implements OSQLFunctionFactory {
private static final Map<String, Object> FUNCTIONS = new HashMap<String, Object>();
static {
// MISC FUNCTIONS
FUNCTIONS.put(OSQLFunctionCoalesce.NAME.toUpperCase(Locale.ENGLISH), new OSQLFunctionCoalesce());
FUNCTIONS.put(O... | 1no label | core_src_main_java_com_orientechnologies_orient_core_sql_functions_ODefaultSQLFunctionFactory.java |
3,367 | public final class BasicOperationScheduler {
public static final int TERMINATION_TIMEOUT_SECONDS = 3;
private final ILogger logger;
private final Node node;
private final ExecutionService executionService;
private final BasicOperationProcessor processor;
//the generic workqueues are shared b... | 1no label | hazelcast_src_main_java_com_hazelcast_spi_impl_BasicOperationScheduler.java |
23 | {
@Override
public boolean matchesSafely( LogEntry.Done done )
{
return done != null && done.getIdentifier() == identifier;
}
@Override
public void describeTo( Description description )
{
descri... | 1no label | community_kernel_src_test_java_org_neo4j_kernel_impl_transaction_xaframework_LogMatchers.java |
4,655 | public class PercolateContext extends SearchContext {
public boolean limit;
public int size;
public boolean doSort;
public byte percolatorTypeId;
private boolean trackScores;
private final PercolateShardRequest request;
private final SearchShardTarget searchShardTarget;
private final I... | 1no label | src_main_java_org_elasticsearch_percolator_PercolateContext.java |
3,705 | public class VersionFieldMapper extends AbstractFieldMapper<Long> implements InternalMapper, RootMapper {
public static final String NAME = "_version";
public static final String CONTENT_TYPE = "_version";
public static class Defaults {
public static final String NAME = VersionFieldMapper.NAME;
... | 1no label | src_main_java_org_elasticsearch_index_mapper_internal_VersionFieldMapper.java |
164 | private class CallbackImpl implements Callback<Object> {
private final ClientEndpoint endpoint;
public CallbackImpl(ClientEndpoint endpoint) {
this.endpoint = endpoint;
}
@Override
public void notify(Object object) {
endpoint.sendResponse(filter(obje... | 1no label | hazelcast_src_main_java_com_hazelcast_client_PartitionClientRequest.java |
3,701 | public class UidFieldMapper extends AbstractFieldMapper<Uid> implements InternalMapper, RootMapper {
public static final String NAME = "_uid";
public static final String CONTENT_TYPE = "_uid";
public static class Defaults extends AbstractFieldMapper.Defaults {
public static final String NAME = Ui... | 1no label | src_main_java_org_elasticsearch_index_mapper_internal_UidFieldMapper.java |
1,498 | public class AllocationService extends AbstractComponent {
private final AllocationDeciders allocationDeciders;
private final ClusterInfoService clusterInfoService;
private final ShardsAllocators shardsAllocators;
@Inject
public AllocationService(Settings settings, AllocationDeciders allocationDec... | 1no label | src_main_java_org_elasticsearch_cluster_routing_allocation_AllocationService.java |
1,540 | @Service("blUpdateCartService")
public class UpdateCartServiceImpl implements UpdateCartService {
protected static final Log LOG = LogFactory.getLog(UpdateCartServiceImpl.class);
protected static BroadleafCurrency savedCurrency;
@Resource(name="blOrderService")
protected OrderService orderService;
... | 1no label | core_broadleaf-framework-web_src_main_java_org_broadleafcommerce_core_web_service_UpdateCartServiceImpl.java |
259 | @RunWith(HazelcastSerialClassRunner.class)
@Category(QuickTest.class)
public class ExecutionDelayTest extends HazelcastTestSupport {
private static final int NODES = 3;
private final List<HazelcastInstance> hzs = new ArrayList<HazelcastInstance>(NODES);
static final AtomicInteger counter = new AtomicIntege... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_executor_ExecutionDelayTest.java |
281 | public class OCommandFunction extends OCommandRequestTextAbstract {
private static final long serialVersionUID = 1L;
public OCommandFunction() {
}
public OCommandFunction(final String iName) {
super(iName);
}
public boolean isIdempotent() {
return false;
}
@Override
public String toString(... | 0true | core_src_main_java_com_orientechnologies_orient_core_command_script_OCommandFunction.java |
304 | public abstract class ClusterAction<Request extends ActionRequest, Response extends ActionResponse, RequestBuilder extends ActionRequestBuilder<Request, Response, RequestBuilder>>
extends GenericAction<Request, Response> {
protected ClusterAction(String name) {
super(name);
}
public abstra... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_ClusterAction.java |
99 | @SuppressWarnings("serial")
static final class SearchValuesTask<K,V,U>
extends BulkTask<K,V,U> {
final Fun<? super V, ? extends U> searchFunction;
final AtomicReference<U> result;
SearchValuesTask
(BulkTask<K,V,?> p, int b, int i, int f, Node<K,V>[] t,
Fu... | 0true | src_main_java_jsr166e_ConcurrentHashMapV8.java |
84 | protected enum RESULT {
OK, ERROR, EXIT
}; | 0true | commons_src_main_java_com_orientechnologies_common_console_OConsoleApplication.java |
2,596 | private static class MasterPingRequest extends TransportRequest {
private String nodeId;
private String masterNodeId;
private MasterPingRequest() {
}
private MasterPingRequest(String nodeId, String masterNodeId) {
this.nodeId = nodeId;
this.masterN... | 1no label | src_main_java_org_elasticsearch_discovery_zen_fd_MasterFaultDetection.java |
1,624 | public class TimedMemberStateFactory {
private final HazelcastInstanceImpl instance;
private final int maxVisibleInstanceCount;
public TimedMemberStateFactory(HazelcastInstanceImpl instance) {
this.instance = instance;
maxVisibleInstanceCount = instance.node.groupProperties.MC_MAX_INSTANCE... | 1no label | hazelcast_src_main_java_com_hazelcast_management_TimedMemberStateFactory.java |
45 | public class OByteArrayComparator implements Comparator<byte[]> {
public static final OByteArrayComparator INSTANCE = new OByteArrayComparator();
public int compare(final byte[] arrayOne, final byte[] arrayTwo) {
final int lenDiff = arrayOne.length - arrayTwo.length;
if (lenDiff != 0)
return lenDiff... | 0true | commons_src_main_java_com_orientechnologies_common_comparator_OByteArrayComparator.java |
56 | @SuppressWarnings("serial")
static final class ForEachTransformedEntryTask<K,V,U>
extends BulkTask<K,V,Void> {
final Fun<Map.Entry<K,V>, ? extends U> transformer;
final Action<? super U> action;
ForEachTransformedEntryTask
(BulkTask<K,V,?> p, int b, int i, int f, Node... | 0true | src_main_java_jsr166e_ConcurrentHashMapV8.java |
553 | public class WeightUnitOfMeasureType implements Serializable, BroadleafEnumerationType {
private static final long serialVersionUID = 1L;
private static final Map<String, WeightUnitOfMeasureType> TYPES = new LinkedHashMap<String, WeightUnitOfMeasureType>();
public static final WeightUnitOfMeasureType POU... | 1no label | common_src_main_java_org_broadleafcommerce_common_util_WeightUnitOfMeasureType.java |
4,676 | abstract class QueryCollector extends Collector {
final IndexFieldData<?> idFieldData;
final IndexSearcher searcher;
final ConcurrentMap<HashedBytesRef, Query> queries;
final ESLogger logger;
final Lucene.ExistsCollector collector = new Lucene.ExistsCollector();
final HashedBytesRef spare = ne... | 1no label | src_main_java_org_elasticsearch_percolator_QueryCollector.java |
3,259 | public class MapPermission extends InstancePermission {
private static final int PUT = 0x4;
private static final int REMOVE = 0x8;
private static final int READ = 0x16;
private static final int LISTEN = 0x32;
private static final int LOCK = 0x64;
private static final int INDEX = 0x128;
priv... | 1no label | hazelcast_src_main_java_com_hazelcast_security_permission_MapPermission.java |
1,483 | public class JavaSearch {
public static SearchPattern createSearchPattern(
Declaration declaration, int limitTo) {
String pattern;
try {
pattern = getJavaNameOfDeclaration(declaration);
}
catch (IllegalArgumentException iae) {
return null;
... | 1no label | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_util_JavaSearch.java |
5,824 | public class PlainHighlighter implements Highlighter {
private static final String CACHE_KEY = "highlight-plain";
@Override
public String[] names() {
return new String[] { "plain", "highlighter" };
}
public HighlightField highlight(HighlighterContext highlighterContext) {
SearchCo... | 1no label | src_main_java_org_elasticsearch_search_highlight_PlainHighlighter.java |
1,455 | public class OCommandExecutorSQLCreateEdge extends OCommandExecutorSQLSetAware {
public static final String NAME = "CREATE EDGE";
private String from;
private String to;
private OClass clazz;
private String ... | 1no label | graphdb_src_main_java_com_orientechnologies_orient_graph_sql_OCommandExecutorSQLCreateEdge.java |
428 | public class ClusterStateRequestBuilder extends MasterNodeReadOperationRequestBuilder<ClusterStateRequest, ClusterStateResponse, ClusterStateRequestBuilder> {
public ClusterStateRequestBuilder(ClusterAdminClient clusterClient) {
super((InternalClusterAdminClient) clusterClient, new ClusterStateRequest());
... | 1no label | src_main_java_org_elasticsearch_action_admin_cluster_state_ClusterStateRequestBuilder.java |
586 | public class RefreshResponse extends BroadcastOperationResponse {
RefreshResponse() {
}
RefreshResponse(int totalShards, int successfulShards, int failedShards, List<ShardOperationFailedException> shardFailures) {
super(totalShards, successfulShards, failedShards, shardFailures);
}
@Over... | 0true | src_main_java_org_elasticsearch_action_admin_indices_refresh_RefreshResponse.java |
581 | executionService.scheduleWithFixedDelay(executorName, new Runnable() {
public void run() {
sendMasterConfirmation();
}
}, masterConfirmationInterval, masterConfirmationInterval, TimeUnit.SECONDS); | 1no label | hazelcast_src_main_java_com_hazelcast_cluster_ClusterServiceImpl.java |
132 | public abstract class RecursiveAction extends ForkJoinTask<Void> {
private static final long serialVersionUID = 5232453952276485070L;
/**
* The main computation performed by this task.
*/
protected abstract void compute();
/**
* Always returns {@code null}.
*
* @return {@code ... | 0true | src_main_java_jsr166e_RecursiveAction.java |
3,549 | public class BinaryFieldMapper extends AbstractFieldMapper<BytesReference> {
public static final String CONTENT_TYPE = "binary";
public static class Defaults extends AbstractFieldMapper.Defaults {
public static final long COMPRESS_THRESHOLD = -1;
public static final FieldType FIELD_TYPE = new ... | 1no label | src_main_java_org_elasticsearch_index_mapper_core_BinaryFieldMapper.java |
2,627 | public final class BinaryClassDefinitionProxy extends BinaryClassDefinition implements ClassDefinition {
public BinaryClassDefinitionProxy(int factoryId, int classId, int version, byte[] binary) {
this.classId = classId;
this.version = version;
this.factoryId = factoryId;
setBinary(... | 1no label | hazelcast_src_main_java_com_hazelcast_nio_serialization_BinaryClassDefinitionProxy.java |
69 | public interface TitanRelation extends TitanElement {
/**
* Establishes a unidirectional edge between this relation and the given vertex for the specified label.
* The label must be defined {@link EdgeLabel#isUnidirected()}.
*
* @param label
* @param vertex
*/
public void setPrope... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_core_TitanRelation.java |
90 | public interface StaticAssetStorageService {
StaticAssetStorage findStaticAssetStorageById(Long id);
/**
* @deprecated Use createStaticAssetStorageFromFile instead.
* @return
*/
StaticAssetStorage create();
StaticAssetStorage readStaticAssetStorageByStaticAssetId(Long id);
Stati... | 0true | admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_file_service_StaticAssetStorageService.java |
1,564 | public class VerticesMap {
public static final String PROCESS_EDGES = Tokens.makeNamespace(VerticesMap.class) + ".processEdges";
public enum Counters {
VERTICES_PROCESSED,
EDGES_PROCESSED
}
public static Configuration createConfiguration(final boolean processEdges) {
final Con... | 1no label | titan-hadoop-parent_titan-hadoop-core_src_main_java_com_thinkaurelius_titan_hadoop_mapreduce_transform_VerticesMap.java |
374 | public static class TestCombiner
extends Combiner<String, Integer, Integer> {
private transient int sum;
@Override
public void combine(String key, Integer value) {
sum += value;
}
@Override
public Integer finalizeChunk() {
int v ... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_mapreduce_DistributedMapperClientMapReduceTest.java |
2,599 | private class MasterPinger implements Runnable {
private volatile boolean running = true;
public void stop() {
this.running = false;
}
@Override
public void run() {
if (!running) {
// return and don't spawn...
return;... | 1no label | src_main_java_org_elasticsearch_discovery_zen_fd_MasterFaultDetection.java |
161 | private static final class SingleTargetCallback implements Callback<Object> {
final Address target;
final MultiTargetCallback parent;
private SingleTargetCallback(Address target, MultiTargetCallback parent) {
this.target = target;
this.parent = parent;
}
... | 0true | hazelcast_src_main_java_com_hazelcast_client_MultiTargetClientRequest.java |
916 | public class LockProxy extends AbstractDistributedObject<LockServiceImpl> implements ILock {
private final String name;
private final LockProxySupport lockSupport;
private final Data key;
private final int partitionId;
public LockProxy(NodeEngine nodeEngine, LockServiceImpl lockService, String nam... | 1no label | hazelcast_src_main_java_com_hazelcast_concurrent_lock_LockProxy.java |
14 | static final class AsyncRun extends Async {
final Runnable fn;
final CompletableFuture<Void> dst;
AsyncRun(Runnable fn, CompletableFuture<Void> dst) {
this.fn = fn; this.dst = dst;
}
public final boolean exec() {
CompletableFuture<Void> d; Throwable ex... | 0true | src_main_java_jsr166e_CompletableFuture.java |
323 | @RunWith(HazelcastParallelClassRunner.class)
@Category(QuickTest.class)
public class ClientMapTest {
static HazelcastInstance client;
static HazelcastInstance server;
static TestMapStore flushMapStore = new TestMapStore();
static TestMapStore transientMapStore = new TestMapStore();
@BeforeClass
... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_map_ClientMapTest.java |
5,841 | public class DocIdSetCollector extends XCollector {
private final DocSetCache docSetCache;
private final Collector collector;
private final List<ContextDocIdSet> docSets;
private boolean currentHasDocs;
private ContextDocIdSet currentContext;
private FixedBitSet currentSet;
public DocIdSe... | 1no label | src_main_java_org_elasticsearch_search_internal_DocIdSetCollector.java |
1,126 | public class OSQLFunctionSysdate extends OSQLFunctionAbstract {
public static final String NAME = "sysdate";
private final Date now;
private SimpleDateFormat format;
/**
* Get the date at construction to have the same date for all the iteration.
*/
public OSQLFunctionSysdate() {
super(NA... | 1no label | core_src_main_java_com_orientechnologies_orient_core_sql_functions_misc_OSQLFunctionSysdate.java |
43 | public interface BiFun<A,B,T> { T apply(A a, B b); } | 0true | src_main_java_jsr166e_ConcurrentHashMapV8.java |
1,220 | final class CompileErrorReporter implements
DiagnosticListener<JavaFileObject> {
private IProject project;
private boolean errorReported;
private List<IFolder> sourceDirectories;
public CompileErrorReporter(IProject project) {
this.project = project;
sourceDirectories = Cey... | 1no label | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_core_builder_CompileErrorReporter.java |
2,610 | class PingRequestHandler extends BaseTransportRequestHandler<PingRequest> {
public static final String ACTION = "discovery/zen/fd/ping";
@Override
public PingRequest newInstance() {
return new PingRequest();
}
@Override
public void messageReceived(PingR... | 1no label | src_main_java_org_elasticsearch_discovery_zen_fd_NodesFaultDetection.java |
92 | @SuppressWarnings("serial")
static final class ReduceEntriesTask<K,V>
extends BulkTask<K,V,Map.Entry<K,V>> {
final BiFun<Map.Entry<K,V>, Map.Entry<K,V>, ? extends Map.Entry<K,V>> reducer;
Map.Entry<K,V> result;
ReduceEntriesTask<K,V> rights, nextRight;
ReduceEntriesTask
... | 0true | src_main_java_jsr166e_ConcurrentHashMapV8.java |
357 | public class NodesStatsRequest extends NodesOperationRequest<NodesStatsRequest> {
private CommonStatsFlags indices = new CommonStatsFlags();
private boolean os;
private boolean process;
private boolean jvm;
private boolean threadPool;
private boolean network;
private boolean fs;
private... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_node_stats_NodesStatsRequest.java |
346 | public class TransportNodesShutdownAction extends TransportMasterNodeOperationAction<NodesShutdownRequest, NodesShutdownResponse> {
private final Node node;
private final ClusterName clusterName;
private final boolean disabled;
private final TimeValue delay;
@Inject
public TransportNodesShutdo... | 1no label | src_main_java_org_elasticsearch_action_admin_cluster_node_shutdown_TransportNodesShutdownAction.java |
1,596 | public class ThrottlingAllocationDecider extends AllocationDecider {
public static final String CLUSTER_ROUTING_ALLOCATION_NODE_INITIAL_PRIMARIES_RECOVERIES = "cluster.routing.allocation.node_initial_primaries_recoveries";
public static final String CLUSTER_ROUTING_ALLOCATION_NODE_CONCURRENT_RECOVERIES = "clus... | 1no label | src_main_java_org_elasticsearch_cluster_routing_allocation_decider_ThrottlingAllocationDecider.java |
189 | public class ThreadLocalRandom extends Random {
// same constants as Random, but must be redeclared because private
private static final long multiplier = 0x5DEECE66DL;
private static final long addend = 0xBL;
private static final long mask = (1L << 48) - 1;
/**
* The random seed. We can't use... | 0true | src_main_java_jsr166y_ThreadLocalRandom.java |
317 | new Thread() {
public void run() {
map.lock(key);
lockedLatch.countDown();
}
}.start(); | 0true | hazelcast-client_src_test_java_com_hazelcast_client_map_ClientMapLockTest.java |
651 | public class GetIndexTemplatesRequestBuilder extends MasterNodeReadOperationRequestBuilder<GetIndexTemplatesRequest, GetIndexTemplatesResponse, GetIndexTemplatesRequestBuilder> {
public GetIndexTemplatesRequestBuilder(IndicesAdminClient indicesClient) {
super((InternalIndicesAdminClient) indicesClient, new... | 0true | src_main_java_org_elasticsearch_action_admin_indices_template_get_GetIndexTemplatesRequestBuilder.java |
284 | public abstract class ActionRequestBuilder<Request extends ActionRequest, Response extends ActionResponse, RequestBuilder extends ActionRequestBuilder> {
protected final Request request;
protected final InternalGenericClient client;
protected ActionRequestBuilder(InternalGenericClient client, Request req... | 0true | src_main_java_org_elasticsearch_action_ActionRequestBuilder.java |
6,018 | public final class Correction {
public static final Correction[] EMPTY = new Correction[0];
public double score;
public final Candidate[] candidates;
public Correction(double score, Candidate[] candidates) {
this.score = score;
this.candidates = candidates;
}
@Override
pub... | 1no label | src_main_java_org_elasticsearch_search_suggest_phrase_Correction.java |
282 | @RunWith(HazelcastParallelClassRunner.class)
@Category(QuickTest.class)
public class ClientRandomLBTest {
@AfterClass
public static void destroy() {
HazelcastClient.shutdownAll();
Hazelcast.shutdownAll();
}
@Test
public void testRandomLB_withoutMembers() {
RandomLB lb = new... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_loadBalancer_ClientRandomLBTest.java |
123 | client.getLifecycleService().addLifecycleListener(new LifecycleListener() {
@Override
public void stateChanged(LifecycleEvent event) {
connectedLatch.countDown();
}
}); | 0true | hazelcast-client_src_test_java_com_hazelcast_client_ClientReconnectTest.java |
668 | public class DeleteWarmerAction extends IndicesAction<DeleteWarmerRequest, DeleteWarmerResponse, DeleteWarmerRequestBuilder> {
public static final DeleteWarmerAction INSTANCE = new DeleteWarmerAction();
public static final String NAME = "indices/warmer/delete";
private DeleteWarmerAction() {
super... | 0true | src_main_java_org_elasticsearch_action_admin_indices_warmer_delete_DeleteWarmerAction.java |
595 | public class IndicesSegmentsRequest extends BroadcastOperationRequest<IndicesSegmentsRequest> {
public IndicesSegmentsRequest() {
this(Strings.EMPTY_ARRAY);
}
public IndicesSegmentsRequest(String... indices) {
super(indices);
indicesOptions(IndicesOptions.fromOptions(false, false, ... | 0true | src_main_java_org_elasticsearch_action_admin_indices_segments_IndicesSegmentsRequest.java |
692 | client.bulk(bulkRequest, new ActionListener<BulkResponse>() {
@Override
public void onResponse(BulkResponse response) {
try {
listener.afterBulk(executionId, bulkRequest, response);
} fina... | 0true | src_main_java_org_elasticsearch_action_bulk_BulkProcessor.java |
56 | public class AddAnnotionProposal extends CorrectionProposal {
private static final List<String> ANNOTATIONS_ORDER =
asList("doc", "throws", "see", "tagged", "shared", "abstract",
"actual", "formal", "default", "variable");
private static final List<String> ANNOTATIONS_ON_S... | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_correct_AddAnnotionProposal.java |
474 | public abstract class ClientProxy implements DistributedObject {
protected final String instanceName;
private final String serviceName;
private final String objectName;
private volatile ClientContext context;
protected ClientProxy(String instanceName, String serviceName, String objectName) {
... | 1no label | hazelcast-client_src_main_java_com_hazelcast_client_spi_ClientProxy.java |
9 | static final class AsyncAccept<T> extends Async {
final T arg;
final Action<? super T> fn;
final CompletableFuture<Void> dst;
AsyncAccept(T arg, Action<? super T> fn,
CompletableFuture<Void> dst) {
this.arg = arg; this.fn = fn; this.dst = dst;
... | 0true | src_main_java_jsr166e_CompletableFuture.java |
83 | public static class Order {
public static final int File_Details = 2000;
public static final int Advanced = 3000;
} | 0true | admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_file_domain_StaticAssetImpl.java |
49 | @edu.umd.cs.findbugs.annotations.SuppressWarnings({ "EI_EXPOSE_REP", "MS_MUTABLE_ARRAY", "MS_PKGPROTECT" })
public abstract class HttpCommand extends AbstractTextCommand {
public static final String HEADER_CONTENT_TYPE = "content-type: ";
public static final String HEADER_CONTENT_LENGTH = "content-length: ";
... | 0true | hazelcast_src_main_java_com_hazelcast_ascii_rest_HttpCommand.java |
341 | protected static class NodeRestartRequest extends NodeOperationRequest {
TimeValue delay;
private NodeRestartRequest() {
}
private NodeRestartRequest(String nodeId, NodesRestartRequest request) {
super(request, nodeId);
this.delay = request.delay;
}... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_node_restart_TransportNodesRestartAction.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.