Unnamed: 0 int64 0 6.45k | func stringlengths 29 253k | target class label 2
classes | project stringlengths 36 167 |
|---|---|---|---|
3,087 | static class GetResult {
private final boolean exists;
private final long version;
private final Translog.Source source;
private final Versions.DocIdAndVersion docIdAndVersion;
private final Searcher searcher;
public static final GetResult NOT_EXISTS = new GetResult(... | 0true | src_main_java_org_elasticsearch_index_engine_Engine.java |
3,521 | public class ParseContext {
/** Fork of {@link org.apache.lucene.document.Document} with additional functionality. */
public static class Document implements Iterable<IndexableField> {
private final List<IndexableField> fields;
private ObjectObjectMap<Object, IndexableField> keyedFields;
... | 1no label | src_main_java_org_elasticsearch_index_mapper_ParseContext.java |
459 | private static class TreeKeyIterator implements Iterator<OIdentifiable> {
private final boolean autoConvertToRecord;
private OSBTreeMapEntryIterator<OIdentifiable, Boolean> entryIterator;
public TreeKeyIterator(OTreeInternal<OIdentifiable, Boolean> tree, boolean autoConv... | 0true | core_src_main_java_com_orientechnologies_orient_core_db_record_ridset_sbtree_OSBTreeRIDSet.java |
514 | public class KillMemberThread extends TestThread {
@Override
public void doRun() throws Exception {
while (!stopTest) {
try {
Thread.sleep(TimeUnit.SECONDS.toMillis(KILL_DELAY_SECONDS));
} catch (InterruptedException e) {
... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_stress_StressTestSupport.java |
1,743 | public class LZFCompressedStreamInput extends CompressedStreamInput<LZFCompressorContext> {
private final BufferRecycler recycler;
private final ChunkDecoder decoder;
// scratch area buffer
private byte[] inputBuffer;
public LZFCompressedStreamInput(StreamInput in, ChunkDecoder decoder) throws I... | 0true | src_main_java_org_elasticsearch_common_compress_lzf_LZFCompressedStreamInput.java |
230 | assertTrueEventually(new AssertTask() {
public void run() throws Exception {
assertTrue(map.containsKey(targetUuid));
}
}); | 0true | hazelcast-client_src_test_java_com_hazelcast_client_executor_ClientExecutorServiceExecuteTest.java |
898 | public interface PromotableOrderItem extends Serializable {
/**
* Adds the item to the rule variables map.
* @param ruleVars
*/
void updateRuleVariables(Map<String, Object> ruleVars);
/**
* Called by pricing engine to reset the state of this item.
*/
void resetPriceDet... | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_offer_service_discount_domain_PromotableOrderItem.java |
1,575 | ItemListener itemListener = new ItemListener() {
public void itemAdded(ItemEvent item) {
totalAddedItemCount.incrementAndGet();
}
public void itemRemoved(ItemEvent item) {
totalRemovedItemCount.incrementAndGet();
}
}; | 0true | hazelcast_src_main_java_com_hazelcast_jmx_SetMBean.java |
90 | class ConvertStringProposal extends CorrectionProposal {
private ConvertStringProposal(String name, Change change) {
super(name, change, null);
}
static void addConvertToVerbatimProposal(Collection<ICompletionProposal> proposals,
IFile file, Tree.CompilationUnit cu, Node node, IDocumen... | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_correct_ConvertStringProposal.java |
188 | public class UserTransactionImpl extends BaseSpringTransactionImpl implements UserTransaction
{
public UserTransactionImpl( GraphDatabaseAPI neo4j)
{
super( neo4j );
}
} | 0true | community_kernel_src_main_java_org_neo4j_kernel_impl_transaction_UserTransactionImpl.java |
734 | public class CollectionContainsRequest extends CollectionRequest {
private Set<Data> valueSet;
public CollectionContainsRequest() {
}
public CollectionContainsRequest(String name, Set<Data> valueSet) {
super(name);
this.valueSet = valueSet;
}
public CollectionContainsRequest(... | 0true | hazelcast_src_main_java_com_hazelcast_collection_client_CollectionContainsRequest.java |
530 | public class TransportFlushAction extends TransportBroadcastOperationAction<FlushRequest, FlushResponse, ShardFlushRequest, ShardFlushResponse> {
private final IndicesService indicesService;
@Inject
public TransportFlushAction(Settings settings, ThreadPool threadPool, ClusterService clusterService, Transp... | 1no label | src_main_java_org_elasticsearch_action_admin_indices_flush_TransportFlushAction.java |
3,191 | public abstract class XFieldComparatorSource extends FieldComparatorSource {
/** UTF-8 term containing a single code point: {@link Character#MAX_CODE_POINT} which will compare greater than all other index terms
* since {@link Character#MAX_CODE_POINT} is a noncharacter and thus shouldn't appear i... | 0true | src_main_java_org_elasticsearch_index_fielddata_IndexFieldData.java |
39 | public class SimpleCommandParser extends TypeAwareCommandParser {
public SimpleCommandParser(TextCommandConstants.TextCommandType type) {
super(type);
}
public TextCommand parser(SocketTextReader socketTextReader, String cmd, int space) {
if (type == QUIT) {
return new SimpleCom... | 0true | hazelcast_src_main_java_com_hazelcast_ascii_memcache_SimpleCommandParser.java |
541 | public interface ORecordHook {
public enum DISTRIBUTED_EXECUTION_MODE {
TARGET_NODE, SOURCE_NODE, BOTH
}
public enum HOOK_POSITION {
FIRST, EARLY, REGULAR, LATE, LAST
}
public enum TYPE {
ANY, BEFORE_CREATE, BEFORE_READ, BEFORE_UPDATE, BEFORE_DELETE, AFTER_CREATE, AFTER_READ, AFTER_UPDATE, AFTER... | 0true | core_src_main_java_com_orientechnologies_orient_core_hook_ORecordHook.java |
315 | public interface Configuration {
public boolean has(ConfigOption option, String... umbrellaElements);
public<O> O get(ConfigOption<O> option, String... umbrellaElements);
public Set<String> getContainedNamespaces(ConfigNamespace umbrella, String... umbrellaElements);
public Map<String,Object> getSub... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_diskstorage_configuration_Configuration.java |
1,581 | pMap = BLCMapUtils.keyedMap(properties, new TypedClosure<String, Property>() {
@Override
public String getKey(Property value) {
return value.getName();
}
}); | 0true | admin_broadleaf-open-admin-platform_src_main_java_org_broadleafcommerce_openadmin_dto_ClassMetadata.java |
937 | public class OfferTimeZoneType implements Serializable, BroadleafEnumerationType {
private static final long serialVersionUID = 1L;
private static final Map<String, OfferTimeZoneType> TYPES = new LinkedHashMap<String, OfferTimeZoneType>();
public static final OfferTimeZoneType SERVER = new OfferTimeZ... | 1no label | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_offer_service_type_OfferTimeZoneType.java |
3,496 | public class FieldMappersLookup implements Iterable<FieldMapper> {
private volatile ImmutableList<FieldMapper> mappers;
private volatile ImmutableOpenMap<String, FieldMappers> name;
private volatile ImmutableOpenMap<String, FieldMappers> indexName;
private volatile ImmutableOpenMap<String, FieldMappers... | 0true | src_main_java_org_elasticsearch_index_mapper_FieldMappersLookup.java |
1,495 | public class AllocationExplanation implements Streamable {
public static final AllocationExplanation EMPTY = new AllocationExplanation();
/**
* Instances of this class keep messages and informations about nodes of an allocation
*/
public static class NodeExplanation {
private final Disco... | 0true | src_main_java_org_elasticsearch_cluster_routing_allocation_AllocationExplanation.java |
1,751 | private static class PartitionAwareTestEntryProcessor implements EntryProcessor<Object, Object>, HazelcastInstanceAware {
private String name;
private transient HazelcastInstance hz;
private PartitionAwareTestEntryProcessor(String name) {
this.name = name;
}
@O... | 0true | hazelcast_src_test_java_com_hazelcast_map_EntryProcessorTest.java |
1,411 | @XmlRootElement(name = "productOptionAllowedValue")
@XmlAccessorType(value = XmlAccessType.FIELD)
public class ProductOptionValueWrapper extends BaseWrapper implements
APIWrapper<ProductOptionValue> {
@XmlElement
protected String attributeValue;
@XmlElement
protected Money priceAdjustm... | 0true | core_broadleaf-framework-web_src_main_java_org_broadleafcommerce_core_web_api_wrapper_ProductOptionValueWrapper.java |
5,426 | static class BytesValues extends org.elasticsearch.index.fielddata.BytesValues {
private final FieldDataSource source;
private final SearchScript script;
private final BytesRef scratch;
public BytesValues(FieldDataSource source, SearchScript script) {
... | 1no label | src_main_java_org_elasticsearch_search_aggregations_support_FieldDataSource.java |
3,393 | static final class SortedSetOrdinals implements Ordinals {
// We don't store SortedSetDocValues as a member because Ordinals must be thread-safe
private final AtomicReader reader;
private final String field;
private final long numOrds;
public SortedSetOrdinals(AtomicReader ... | 0true | src_main_java_org_elasticsearch_index_fielddata_plain_SortedSetDVAtomicFieldData.java |
204 | public static class TwoPhaseCommit extends Commit
{
TwoPhaseCommit( int identifier, long txId, long timeWritten )
{
super( identifier, txId, timeWritten, "2PC" );
}
} | 0true | community_kernel_src_main_java_org_neo4j_kernel_impl_transaction_xaframework_LogEntry.java |
115 | static final class EmptyTask extends ForkJoinTask<Void> {
private static final long serialVersionUID = -7721805057305804111L;
EmptyTask() { status = ForkJoinTask.NORMAL; } // force done
public final Void getRawResult() { return null; }
public final void setRawResult(Void x) {}
... | 0true | src_main_java_jsr166e_ForkJoinPool.java |
1,033 | @Entity
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "BLC_ORDER_ITEM")
@Cache(usage=CacheConcurrencyStrategy.NONSTRICT_READ_WRITE, region="blOrderElements")
@AdminPresentationMergeOverrides(
{
@AdminPresentationMergeOverride(name = "", mergeEntries =
@AdminPresentationMergeEntry... | 1no label | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_order_domain_OrderItemImpl.java |
1,524 | public class RoutingNodesIntegrityTests extends ElasticsearchAllocationTestCase {
private final ESLogger logger = Loggers.getLogger(IndexBalanceTests.class);
@Test
public void testBalanceAllNodesStarted() {
AllocationService strategy = createAllocationService(settingsBuilder()
.put... | 0true | src_test_java_org_elasticsearch_cluster_routing_allocation_RoutingNodesIntegrityTests.java |
10 | private class MessageReceiver
extends SimpleChannelHandler
{
@Override
public void channelOpen( ChannelHandlerContext ctx, ChannelStateEvent e ) throws Exception
{
Channel ctxChannel = ctx.getChannel();
openedChannel( getURI( (InetSocketAddress) ctxCha... | 1no label | enterprise_cluster_src_main_java_org_neo4j_cluster_com_NetworkReceiver.java |
670 | constructors[COLLECTION_TXN_REMOVE] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {
public IdentifiedDataSerializable createNew(Integer arg) {
return new CollectionTxnRemoveOperation();
}
}; | 0true | hazelcast_src_main_java_com_hazelcast_collection_CollectionDataSerializerHook.java |
578 | public abstract class OIndexAbstract<T> extends OSharedResourceAdaptiveExternal implements OIndexInternal<T> {
protected final OModificationLock modificationLock = new OModificationLock();
protected static final String CONFIG_MAP_RID = "mapRid";
protected static final String CONFIG_CLUSTERS =... | 1no label | core_src_main_java_com_orientechnologies_orient_core_index_OIndexAbstract.java |
3,430 | public class IndexShardGatewaySnapshotNotAllowedException extends IndexShardGatewayException {
public IndexShardGatewaySnapshotNotAllowedException(ShardId shardId, String msg) {
super(shardId, msg);
}
} | 0true | src_main_java_org_elasticsearch_index_gateway_IndexShardGatewaySnapshotNotAllowedException.java |
1,206 | public final class PartitionAwareKey<K,P> implements PartitionAware<Object>, DataSerializable {
private K key;
private P partitionKey;
/**
* Creates a new PartitionAwareKey.
*
* @param key the key
* @param partitionKey the partitionKey
* @throws IllegalArgumentException if key or ... | 0true | hazelcast_src_main_java_com_hazelcast_core_PartitionAwareKey.java |
2,379 | KILO {
@Override
public long toSingles(long size) {
return x(size, C1 / C0, MAX / (C1 / C0));
}
@Override
public long toKilo(long size) {
return size;
}
@Override
public long toMega(long size) {
return size / (C2 /... | 0true | src_main_java_org_elasticsearch_common_unit_SizeUnit.java |
1,680 | runnable = new Runnable() { public void run() { map.putAsync(null, "value", 1, TimeUnit.SECONDS); } }; | 0true | hazelcast_src_test_java_com_hazelcast_map_BasicMapTest.java |
218 | Collections.sort(orderedColumns, new Comparator<Map.Entry<String, Integer>>() {
public int compare(Map.Entry<String, Integer> o1, Map.Entry<String, Integer> o2) {
return o1.getValue().compareTo(o2.getValue());
}
}); | 0true | tools_src_main_java_com_orientechnologies_orient_console_OTableFormatter.java |
97 | final Thread thread = new Thread() {
public void run() {
try {
Thread.sleep(100);
} catch (InterruptedException e) {
e.printStackTrace();
}
hz1.getLifecycleService().terminate();
}
... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_ClientIssueTest.java |
1,030 | public class Config {
private URL configurationUrl;
private File configurationFile;
private ClassLoader classLoader;
private Properties properties = new Properties();
private String instanceName = null;
private GroupConfig groupConfig = new GroupConfig();
private NetworkConfig network... | 1no label | hazelcast_src_main_java_com_hazelcast_config_Config.java |
36 | public class SetCommandParser extends TypeAwareCommandParser {
public SetCommandParser(TextCommandConstants.TextCommandType type) {
super(type);
}
public TextCommand parser(SocketTextReader socketTextReader, String cmd, int space) {
StringTokenizer st = new StringTokenizer(cmd);
st.... | 0true | hazelcast_src_main_java_com_hazelcast_ascii_memcache_SetCommandParser.java |
1,321 | public interface SearchRedirectDao {
public SearchRedirect findSearchRedirectBySearchTerm(String uri);
} | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_search_redirect_dao_SearchRedirectDao.java |
797 | public static class Match implements Streamable {
private Text index;
private Text id;
private float score;
private Map<String, HighlightField> hl;
public Match(Text index, Text id, float score, Map<String, HighlightField> hl) {
this.id = id;
this.sc... | 0true | src_main_java_org_elasticsearch_action_percolate_PercolateResponse.java |
416 | @Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD})
public @interface AdminPresentationMap {
/**
* <p>Optional - field name will be used if not specified</p>
*
* <p>The friendly name to present to a user for this field in a GUI. If supporting i18N,
* the friendly name may be a key ... | 0true | common_src_main_java_org_broadleafcommerce_common_presentation_AdminPresentationMap.java |
1,586 | public abstract class LoggerFactorySupport implements LoggerFactory {
final ConcurrentMap<String, ILogger> mapLoggers = new ConcurrentHashMap<String, ILogger>(100);
final ConstructorFunction<String, ILogger> loggerConstructor
= new ConstructorFunction<String, ILogger>() {
public ILogger cr... | 0true | hazelcast_src_main_java_com_hazelcast_logging_LoggerFactorySupport.java |
3,153 | public interface PerValueEstimator {
/**
* @return the number of bytes for the given term
*/
public long bytesPerValue(BytesRef term);
/**
* Execute any pre-loading estimations for the terms. May also
* optionally wrap a {@link TermsEnum} in a
*... | 0true | src_main_java_org_elasticsearch_index_fielddata_AbstractIndexFieldData.java |
5,877 | public class QueryParseElement implements SearchParseElement {
@Override
public void parse(XContentParser parser, SearchContext context) throws Exception {
context.parsedQuery(context.queryParserService().parse(parser));
}
} | 1no label | src_main_java_org_elasticsearch_search_query_QueryParseElement.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 |
1,429 | public abstract class DynamicSkuPricingInterceptor implements WebRequestInterceptor {
@Resource(name = "blDynamicSkuPricingService")
protected DynamicSkuPricingService skuPricingService;
@Override
public void preHandle(WebRequest request) throws Exception {
SkuPricingConsiderationContext.setSk... | 0true | core_broadleaf-framework-web_src_main_java_org_broadleafcommerce_core_web_catalog_DynamicSkuPricingInterceptor.java |
1,173 | public class OQueryOperatorContains extends OQueryOperatorEqualityNotNulls {
public OQueryOperatorContains() {
super("CONTAINS", 5, false);
}
@Override
@SuppressWarnings("unchecked")
protected boolean evaluateExpression(final OIdentifiable iRecord, final OSQLFilterCondition iCondition, final Object iLef... | 1no label | core_src_main_java_com_orientechnologies_orient_core_sql_operator_OQueryOperatorContains.java |
1,321 | awaitBusy(new Predicate<Object>() {
public boolean apply(Object obj) {
ClusterState state = client().admin().cluster().prepareState().setLocal(true).execute().actionGet().getState();
return state.blocks().hasGlobalBlock(Discovery.NO_MASTER_BLOCK);
}
... | 0true | src_test_java_org_elasticsearch_cluster_MinimumMasterNodesTests.java |
566 | private class SqlFileFilter implements FilenameFilter {
@Override
public boolean accept(File dir, String name) {
return name.endsWith(".sql");
}
} | 0true | common_src_main_java_org_broadleafcommerce_common_util_sql_HibernateToolTask.java |
1,660 | ex.execute(new Runnable() {
public void run() {
for (int j = (n * chunk); j < (n + 1) * chunk; j++) {
map.remove(j);
try {
Thread.sleep(1);
} catch (InterruptedException ig... | 0true | hazelcast_src_test_java_com_hazelcast_map_BackupTest.java |
226 | public class SystemPropertyRuntimeEnvironmentKeyResolver implements RuntimeEnvironmentKeyResolver {
protected String environmentKey = "runtime.environment";
public SystemPropertyRuntimeEnvironmentKeyResolver() {
// EMPTY
}
public String resolveRuntimeEnvironmentKey() {
return System.g... | 0true | common_src_main_java_org_broadleafcommerce_common_config_SystemPropertyRuntimeEnvironmentKeyResolver.java |
470 | public class SandBoxType implements Serializable, BroadleafEnumerationType {
private static final long serialVersionUID = 1L;
private static final Map<String, SandBoxType> TYPES = new LinkedHashMap<String, SandBoxType>();
public static final SandBoxType USER = new SandBoxType("USER", "User");
public ... | 1no label | common_src_main_java_org_broadleafcommerce_common_sandbox_domain_SandBoxType.java |
52 | public class ClusterManager
extends LifecycleAdapter
{
public static class Builder
{
private final File root;
private final Provider provider = clusterOfSize( 3 );
private final Map<String, String> commonConfig = emptyMap();
private final Map<Integer, Map<String,String>> ... | 1no label | enterprise_ha_src_test_java_org_neo4j_test_ha_ClusterManager.java |
2,999 | public interface IdCache extends IndexComponent, CloseableComponent {
// we need to "inject" the index service to not create cyclic dep
void setIndexService(IndexService indexService);
void clear();
void clear(Object coreCacheKey);
void refresh(List<AtomicReaderContext> readers) throws IOExcepti... | 0true | src_main_java_org_elasticsearch_index_cache_id_IdCache.java |
1,010 | protected class ShardSingleOperationRequest extends TransportRequest {
private Request request;
private int shardId;
ShardSingleOperationRequest() {
}
public ShardSingleOperationRequest(Request request, int shardId) {
super(request);
this.request = ... | 0true | src_main_java_org_elasticsearch_action_support_single_custom_TransportSingleCustomOperationAction.java |
500 | indexStateService.closeIndex(updateRequest, new ClusterStateUpdateListener() {
@Override
public void onResponse(ClusterStateUpdateResponse response) {
listener.onResponse(new CloseIndexResponse(response.isAcknowledged()));
}
@Override
... | 1no label | src_main_java_org_elasticsearch_action_admin_indices_close_TransportCloseIndexAction.java |
444 | trackedSet.addChangeListener(new OMultiValueChangeListener<String, String>() {
public void onAfterRecordChanged(final OMultiValueChangeEvent<String, String> event) {
changed.value = true;
}
}); | 0true | core_src_test_java_com_orientechnologies_orient_core_db_record_TrackedSetTest.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 |
1,269 | @Deprecated
public class TaxActivity extends BaseActivity<PricingContext> {
protected TaxModule taxModule;
protected TaxService taxService;
@Override
public PricingContext execute(PricingContext context) throws Exception {
Order order = context.getSeedData();
if (taxService != null) ... | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_pricing_service_workflow_TaxActivity.java |
1,769 | public class ShapesAvailability {
public static final boolean SPATIAL4J_AVAILABLE;
public static final boolean JTS_AVAILABLE;
static {
boolean xSPATIAL4J_AVAILABLE;
try {
Classes.getDefaultClassLoader().loadClass("com.spatial4j.core.shape.impl.PointImpl");
xSPATIAL4... | 0true | src_main_java_org_elasticsearch_common_geo_ShapesAvailability.java |
368 | public static class TimeConsumingMapper
implements Mapper<Integer, Integer, String, Integer> {
@Override
public void map(Integer key, Integer value, Context<String, Integer> collector) {
try {
Thread.sleep(1000);
} catch (Exception ignore) {
... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_mapreduce_ClientMapReduceTest.java |
1,394 | public interface RegionCache {
Object get(final Object key);
boolean put(final Object key, final Object value, final Object currentVersion);
boolean update(final Object key, final Object value,
final Object currentVersion, final Object previousVersion,
final SoftLock lock)... | 0true | hazelcast-hibernate_hazelcast-hibernate4_src_main_java_com_hazelcast_hibernate_RegionCache.java |
3,479 | rootObjectMapper.traverse(new ObjectMapperListener() {
@Override
public void objectMapper(ObjectMapper objectMapper) {
objectMappers.put(objectMapper.fullPath(), objectMapper);
}
}); | 0true | src_main_java_org_elasticsearch_index_mapper_DocumentMapper.java |
399 | public class ORecordOperation implements OSerializableStream {
private static final long serialVersionUID = 1L;
public static final byte LOADED = 0;
public static final byte UPDATED = 1;
public static final byte DELETED = 2;
public static final byte CREATED = 3;
p... | 0true | core_src_main_java_com_orientechnologies_orient_core_db_record_ORecordOperation.java |
1,199 | public interface SecurePaymentInfoService {
public Referenced findSecurePaymentInfo(String referenceNumber, PaymentInfoType paymentInfoType) throws WorkflowException;
public Referenced save(Referenced securePaymentInfo);
public Referenced create(PaymentInfoType paymentInfoType);
public void remove(R... | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_payment_service_SecurePaymentInfoService.java |
658 | public class OMemoryHashMapIndexEngine<V> implements OIndexEngine<V> {
private final ConcurrentMap<Object, V> concurrentHashMap = new ConcurrentHashMap<Object, V>();
private volatile ORID identity;
@Override
public void init() {
}
@Override
public void flush() {
}
@Override
publi... | 1no label | core_src_main_java_com_orientechnologies_orient_core_index_engine_OMemoryHashMapIndexEngine.java |
348 | static class TestComparator implements Comparator<Map.Entry>, Serializable {
int ascending = 1;
IterationType iterationType = IterationType.ENTRY;
TestComparator() {
}
TestComparator(boolean ascending, IterationType iterationType) {
this.ascending = ascending ... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_map_ClientSortLimitTest.java |
318 | public class OStorageDataConfiguration extends OStorageSegmentConfiguration {
private static final long serialVersionUID = 1L;
public OStorageDataHoleConfiguration holeFile;
private static final String START_SIZE = "1Mb";
private static final String INCREMENT_SIZE = "100%";
public OStorageDa... | 0true | core_src_main_java_com_orientechnologies_orient_core_config_OStorageDataConfiguration.java |
93 | interface ClientExceptionConverter {
Object convert(Throwable t);
} | 0true | hazelcast_src_main_java_com_hazelcast_client_ClientExceptionConverter.java |
1,401 | clusterService.submitStateUpdateTask("delete-index [" + request.index + "]", Priority.URGENT, new TimeoutClusterStateUpdateTask() {
@Override
public TimeValue timeout() {
return request.masterTimeout;
}
@Override
public void onFailure... | 0true | src_main_java_org_elasticsearch_cluster_metadata_MetaDataDeleteIndexService.java |
5,128 | aggregators[i] = new Aggregator(first.name(), BucketAggregationMode.MULTI_BUCKETS, AggregatorFactories.EMPTY, 1, first.context(), first.parent()) {
ObjectArray<Aggregator> aggregators;
{
aggregators = BigArrays.newObjectArray(estimatedBucketsCount, conte... | 1no label | src_main_java_org_elasticsearch_search_aggregations_AggregatorFactories.java |
3,089 | static interface IndexingOperation extends Operation {
ParsedDocument parsedDoc();
List<Document> docs();
DocumentMapper docMapper();
} | 0true | src_main_java_org_elasticsearch_index_engine_Engine.java |
1,344 | public interface OWALRecord {
int toStream(byte[] content, int offset);
int fromStream(byte[] content, int offset);
int serializedSize();
boolean isUpdateMasterRecord();
OLogSequenceNumber getLsn();
void setLsn(OLogSequenceNumber lsn);
} | 0true | core_src_main_java_com_orientechnologies_orient_core_storage_impl_local_paginated_wal_OWALRecord.java |
3,244 | private static class InnerSource extends IndexFieldData.XFieldComparatorSource {
private final SearchScript script;
private InnerSource(SearchScript script) {
this.script = script;
}
@Override
public FieldComparator<? extends Number> newComparator(String fieldn... | 0true | src_main_java_org_elasticsearch_index_fielddata_fieldcomparator_DoubleScriptDataComparator.java |
409 | trackedList.addChangeListener(new OMultiValueChangeListener<Integer, String>() {
public void onAfterRecordChanged(final OMultiValueChangeEvent<Integer, String> event) {
Assert.assertEquals(event.getChangeType(), OMultiValueChangeEvent.OChangeType.REMOVE);
Assert.assertEquals(event.getOldValue(... | 0true | core_src_test_java_com_orientechnologies_orient_core_db_record_TrackedListTest.java |
1,403 | listener.future = threadPool.schedule(request.timeout, ThreadPool.Names.SAME, new Runnable() {
@Override
public void run() {
listener.onResponse(new Response(false));
nodeIndexDeletedAction.remove(nodeIndexDeleteList... | 0true | src_main_java_org_elasticsearch_cluster_metadata_MetaDataDeleteIndexService.java |
2,566 | private class ClusterGroup {
private Queue<LocalDiscovery> members = ConcurrentCollections.newQueue();
Queue<LocalDiscovery> members() {
return members;
}
} | 0true | src_main_java_org_elasticsearch_discovery_local_LocalDiscovery.java |
623 | final class SplitBrainHandler implements Runnable {
final Node node;
final AtomicBoolean inProgress = new AtomicBoolean(false);
public SplitBrainHandler(Node node) {
this.node = node;
}
@Override
public void run() {
if (node.isMaster() && node.joined() && node.isActive() && !n... | 0true | hazelcast_src_main_java_com_hazelcast_cluster_SplitBrainHandler.java |
1,674 | public interface ImmutableBlobContainer extends BlobContainer {
interface WriterListener {
void onCompleted();
void onFailure(Throwable t);
}
void writeBlob(String blobName, InputStream is, long sizeInBytes, WriterListener listener);
void writeBlob(String blobName, InputStream is, lo... | 0true | src_main_java_org_elasticsearch_common_blobstore_ImmutableBlobContainer.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 |
369 | public class GetRepositoriesRequest extends MasterNodeReadOperationRequest<GetRepositoriesRequest> {
private String[] repositories = Strings.EMPTY_ARRAY;
GetRepositoriesRequest() {
}
/**
* Constructs a new get repositories request with a list of repositories.
* <p/>
* If the list of re... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_repositories_get_GetRepositoriesRequest.java |
104 | CONTAINS_REGEX {
@Override
public boolean evaluate(Object value, Object condition) {
this.preevaluate(value,condition);
if (value == null) return false;
return evaluateRaw(value.toString(),(String)condition);
}
@Override
public boolean eva... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_core_attribute_Text.java |
1,247 | addOperation(operations, new Runnable() {
public void run() {
IMap map = hazelcast.getMap("myMap");
map.get(random.nextInt(SIZE));
}
}, 100); | 0true | hazelcast_src_main_java_com_hazelcast_examples_AllTest.java |
419 | public class RestoreSnapshotRequest extends MasterNodeOperationRequest<RestoreSnapshotRequest> {
private String snapshot;
private String repository;
private String[] indices = Strings.EMPTY_ARRAY;
private IndicesOptions indicesOptions = IndicesOptions.strict();
private String renamePattern;
... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_snapshots_restore_RestoreSnapshotRequest.java |
1,142 | public class ChildSearchAndIndexingBenchmark {
static int PARENT_COUNT = (int) SizeValue.parseSizeValue("1m").singles();
static int NUM_CHILDREN_PER_PARENT = 12;
static int QUERY_VALUE_RATIO_PER_PARENT = 3;
static int QUERY_COUNT = 50;
static String indexName = "test";
static Random random = ne... | 0true | src_test_java_org_elasticsearch_benchmark_search_child_ChildSearchAndIndexingBenchmark.java |
849 | public class ContainsRequest extends ReadRequest {
private Data expected;
public ContainsRequest() {
}
public ContainsRequest(String name, Data expected) {
super(name);
this.expected = expected;
}
@Override
protected Operation prepareOperation() {
return new Conta... | 0true | hazelcast_src_main_java_com_hazelcast_concurrent_atomicreference_client_ContainsRequest.java |
1,408 | public class MetaDataIndexAliasesService extends AbstractComponent {
private final ClusterService clusterService;
private final IndicesService indicesService;
@Inject
public MetaDataIndexAliasesService(Settings settings, ClusterService clusterService, IndicesService indicesService) {
super(se... | 1no label | src_main_java_org_elasticsearch_cluster_metadata_MetaDataIndexAliasesService.java |
332 | public class TransportNodesInfoAction extends TransportNodesOperationAction<NodesInfoRequest, NodesInfoResponse, TransportNodesInfoAction.NodeInfoRequest, NodeInfo> {
private final NodeService nodeService;
@Inject
public TransportNodesInfoAction(Settings settings, ClusterName clusterName, ThreadPool threa... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_node_info_TransportNodesInfoAction.java |
964 | public class LockPortableHook implements PortableHook {
public static final int FACTORY_ID = FactoryIdHelper.getFactoryId(FactoryIdHelper.LOCK_PORTABLE_FACTORY, -15);
public static final int LOCK = 1;
public static final int UNLOCK = 2;
public static final int IS_LOCKED = 3;
public static final in... | 0true | hazelcast_src_main_java_com_hazelcast_concurrent_lock_client_LockPortableHook.java |
1,998 | assertTrueEventually(new AssertTask() {
@Override
public void run() throws Exception {
assertEquals(TestEventBasedMapStore.STORE_EVENTS.LOAD, testMapStore.getEvents().poll());
}
}); | 0true | hazelcast_src_test_java_com_hazelcast_map_mapstore_MapStoreTest.java |
757 | private static final class PagePathItemUnit {
private final OBonsaiBucketPointer bucketPointer;
private final int itemIndex;
private PagePathItemUnit(OBonsaiBucketPointer bucketPointer, int itemIndex) {
this.bucketPointer = bucketPointer;
this.itemIndex = itemIndex;
}
} | 0true | core_src_main_java_com_orientechnologies_orient_core_index_sbtreebonsai_local_OSBTreeBonsai.java |
1,942 | public class MapGetEntryViewRequest extends KeyBasedClientRequest implements Portable, RetryableRequest, SecureRequest {
private String name;
private Data key;
public MapGetEntryViewRequest() {
}
public MapGetEntryViewRequest(String name, Data key) {
this.name = name;
this.key = k... | 0true | hazelcast_src_main_java_com_hazelcast_map_client_MapGetEntryViewRequest.java |
1,822 | @Component("blRuleFieldPersistenceProvider")
@Scope("prototype")
public class RuleFieldPersistenceProvider extends FieldPersistenceProviderAdapter {
protected boolean canHandlePersistence(PopulateValueRequest populateValueRequest, Serializable instance) {
return populateValueRequest.getMetadata().getFieldT... | 1no label | admin_broadleaf-open-admin-platform_src_main_java_org_broadleafcommerce_openadmin_server_service_persistence_module_provider_RuleFieldPersistenceProvider.java |
1,671 | @Repository("blAdminRoleDao")
public class AdminRoleDaoImpl implements AdminRoleDao {
@PersistenceContext(unitName = "blPU")
protected EntityManager em;
@Resource(name="blEntityConfiguration")
protected EntityConfiguration entityConfiguration;
public void deleteAdminRole(AdminRole role) {
... | 0true | admin_broadleaf-open-admin-platform_src_main_java_org_broadleafcommerce_openadmin_server_security_dao_AdminRoleDaoImpl.java |
1,462 | @Test
public class SQLCreateVertexAndEdgeTest {
private OGraphDatabase database;
private String url;
public SQLCreateVertexAndEdgeTest() {
this("memory:testgraph");
}
public SQLCreateVertexAndEdgeTest(String iURL) {
url = iURL;
database = new OGraphDatabase(iURL);
}
@BeforeMethod
... | 0true | graphdb_src_test_java_com_orientechnologies_orient_graph_sql_SQLCreateVertexAndEdgeTest.java |
375 | public class ODatabaseFlat extends ODatabaseRecordTx {
public ODatabaseFlat(String iURL) {
super(iURL, ORecordFlat.RECORD_TYPE);
}
@SuppressWarnings("unchecked")
@Override
public ORecordIteratorCluster<ORecordFlat> browseCluster(final String iClusterName) {
return super.browseCluster(iClusterName, O... | 1no label | core_src_main_java_com_orientechnologies_orient_core_db_record_ODatabaseFlat.java |
817 | getDatabase().getStorage().callInLock(new Callable<Object>() {
@Override
public Object call() throws Exception {
// READ CURRENT SCHEMA VERSION
final Integer schemaVersion = (Integer) document.field("schemaVersion");
if (schemaVersion == null) {
OLogManager
... | 0true | core_src_main_java_com_orientechnologies_orient_core_metadata_schema_OSchemaShared.java |
448 | trackedSet.addChangeListener(new OMultiValueChangeListener<String, String>() {
public void onAfterRecordChanged(final OMultiValueChangeEvent<String, String> event) {
changed.value = true;
}
}); | 0true | core_src_test_java_com_orientechnologies_orient_core_db_record_TrackedSetTest.java |
1,845 | return new Provider<T>() {
public T get() {
final Errors errors = new Errors(dependency);
try {
T t = callInContext(new ContextualCallable<T>() {
public T call(InternalContext context) throws ErrorsException {
... | 0true | src_main_java_org_elasticsearch_common_inject_InjectorImpl.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.