Unnamed: 0
int64
0
6.45k
func
stringlengths
29
253k
target
class label
2 classes
project
stringlengths
36
167
1,705
return new Iterable<T>() { @Override public Iterator<T> iterator() { return intersection; } };
0true
src_main_java_org_elasticsearch_common_collect_HppcMaps.java
150
{ public long generate( XaDataSource dataSource, int identifier ) throws XAException { return dataSource.getLastCommittedTxId() + 1; } public int getCurrentMasterId() { return XaLogicalLog.MASTER_ID_REPRESENTING_NO_MASTER; } ...
0true
community_kernel_src_main_java_org_neo4j_kernel_impl_transaction_xaframework_TxIdGenerator.java
1,008
public static class FieldOrder { public static final int NAME = 1000; public static final int DESCRIPTION = 2000; public static final int FLATRATES = 9000; }
0true
core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_order_domain_FulfillmentOptionImpl.java
506
public class TransportCreateIndexAction extends TransportMasterNodeOperationAction<CreateIndexRequest, CreateIndexResponse> { private final MetaDataCreateIndexService createIndexService; @Inject public TransportCreateIndexAction(Settings settings, TransportService transportService, ClusterService clusterS...
1no label
src_main_java_org_elasticsearch_action_admin_indices_create_TransportCreateIndexAction.java
392
static class UnLockThread extends Thread{ public Exception exception=null; public MultiMap mm=null; public Object key=null; public UnLockThread(MultiMap mm, Object key){ this.mm = mm; this.key = key; } public void run() { try{ ...
0true
hazelcast-client_src_test_java_com_hazelcast_client_multimap_ClientMultiMapLockTest.java
1,186
public class MapStoreAdapter<K, V> implements MapStore<K, V> { /** * {@inheritDoc} */ public void delete(final K key) { } /** * {@inheritDoc} */ public void store(final K key, final V value) { } /** * {@inheritDoc} */ public void storeAll(final Map<K, V> ...
0true
hazelcast_src_main_java_com_hazelcast_core_MapStoreAdapter.java
1,312
public class DistributedExecutorService implements ManagedService, RemoteService, ExecutionTracingService { public static final String SERVICE_NAME = "hz:impl:executorService"; //Updates the CallableProcessor.responseFlag field. An AtomicBoolean is simpler, but creates another unwanted //object. Using thi...
0true
hazelcast_src_main_java_com_hazelcast_executor_DistributedExecutorService.java
1,603
public interface OReplicationConflictResolver { public void startup(final OServer iServer, ODistributedServerManager iCluster, String iStorageName); public void shutdown(); public ODocument getAllConflicts(); public void handleUpdateConflict(String iRemoteNodeId, ORecordId iCurrentRID, ORecordVersion iCurren...
0true
server_src_main_java_com_orientechnologies_orient_server_distributed_conflict_OReplicationConflictResolver.java
2,015
class RealElement implements Element { private static final AtomicInteger nextUniqueId = new AtomicInteger(1); private final int uniqueId; private final String setName; RealElement(String setName) { uniqueId = nextUniqueId.getAndIncrement(); this.setName = setName; } public St...
0true
src_main_java_org_elasticsearch_common_inject_multibindings_RealElement.java
762
@Test public class OSBTreeBonsaiNonLeafBucketTest { public void testInitialization() throws Exception { ODirectMemoryPointer pointer = new ODirectMemoryPointer(OGlobalConfiguration.DISK_CACHE_PAGE_SIZE.getValueAsInteger() * 1024); OSBTreeBonsaiBucket<Long, OIdentifiable> treeBucket = new OSBTreeBonsaiBucket<...
0true
core_src_test_java_com_orientechnologies_orient_core_index_sbtreebonsai_local_OSBTreeBonsaiNonLeafBucketTest.java
2,243
public class ThreadSafeInputStreamIndexInput extends InputStreamIndexInput { public ThreadSafeInputStreamIndexInput(IndexInput indexInput, long limit) { super(indexInput, limit); } @Override public synchronized int read(byte[] b, int off, int len) throws IOException { return super.read...
0true
src_main_java_org_elasticsearch_common_lucene_store_ThreadSafeInputStreamIndexInput.java
1,392
@RunWith(HazelcastSerialClassRunner.class) @Category(SlowTest.class) public class LocalRegionFactoryDefaultTest extends RegionFactoryDefaultTest { protected Properties getCacheProperties() { Properties props = new Properties(); props.setProperty(Environment.CACHE_REGION_FACTORY, HazelcastLocalCache...
0true
hazelcast-hibernate_hazelcast-hibernate4_src_test_java_com_hazelcast_hibernate_LocalRegionFactoryDefaultTest.java
1,374
doWithBindings(new ActionOnMethodBinding() { @Override public void doWithBinding(IType declaringClassModel, ReferenceBinding declaringClass, MethodBinding method) { if (CharOperation.equals(declaringClass.re...
1no label
plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_core_model_mirror_JDTMethod.java
311
public class ToggleBreakpointAdapter implements IToggleBreakpointsTarget { private static final String JDT_DEBUG_PLUGIN_ID= "org.eclipse.jdt.debug"; public ToggleBreakpointAdapter() { } public void toggleLineBreakpoints(IWorkbenchPart part, ISelection selection) throws CoreException { if (sel...
1no label
plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_editor_ToggleBreakpointAdapter.java
252
public final class RateLimitedFSDirectory extends FilterDirectory{ private final StoreRateLimiting.Provider rateLimitingProvider; private final StoreRateLimiting.Listener rateListener; public RateLimitedFSDirectory(FSDirectory wrapped, StoreRateLimiting.Provider rateLimitingProvider, ...
1no label
src_main_java_org_apache_lucene_store_RateLimitedFSDirectory.java
1,329
PhasedUnit phasedUnit = new CeylonSourceParser<PhasedUnit>() { @Override protected String getCharset() { try { //TODO: is this correct? does this file actually // live in the project, or is it external? ...
1no label
plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_core_model_JDTModuleManager.java
808
public interface OProperty extends Comparable<OProperty> { public static enum ATTRIBUTES { LINKEDTYPE, LINKEDCLASS, MIN, MAX, MANDATORY, NAME, NOTNULL, REGEXP, TYPE, CUSTOM, READONLY, COLLATE } public String getName(); /** * Returns the full name as <class>.<property> */ public String getFullName...
0true
core_src_main_java_com_orientechnologies_orient_core_metadata_schema_OProperty.java
841
public class ReferenceWrapper { private Data value; public Data get() { return value; } public void set(Data value) { this.value = value; } public boolean compareAndSet(Data expect, Data value) { if (!contains(expect)) { return false; } thi...
0true
hazelcast_src_main_java_com_hazelcast_concurrent_atomicreference_ReferenceWrapper.java
557
public final class AddressHelper { private static final int MAX_PORT_TRIES = 3; private static final int INITIAL_FIRST_PORT = 5701; private AddressHelper() { } public static Collection<InetSocketAddress> getSocketAddresses(String address) { final AddressHolder addressHolder = AddressUtil....
0true
hazelcast-client_src_main_java_com_hazelcast_client_util_AddressHelper.java
1,853
static class Builder { private final List<Element> elements = Lists.newArrayList(); private final List<Module> modules = Lists.newArrayList(); /** * lazily constructed */ private State state; private InjectorImpl parent; private Stage stage; ...
0true
src_main_java_org_elasticsearch_common_inject_InjectorShell.java
1,296
@Repository("blSearchSynonymDao") public class SearchSynonymDaoImpl implements SearchSynonymDao { @PersistenceContext(unitName = "blPU") protected EntityManager em; @SuppressWarnings("unchecked") public List<SearchSynonym> getAllSynonyms() { Query query = em.createNamedQuery("BC_READ_SEARCH_SY...
0true
core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_search_dao_SearchSynonymDaoImpl.java
649
public class StatusExposingServletResponse extends HttpServletResponseWrapper { private int httpStatus=200; public StatusExposingServletResponse(HttpServletResponse response) { super(response); } @Override public void sendError(int sc) throws IOException { httpStatus = sc; ...
0true
common_src_main_java_org_broadleafcommerce_common_web_util_StatusExposingServletResponse.java
1,666
private static final class FindSuccessorNodeCall extends NodeCall<Long> { private long keyId; public FindSuccessorNodeCall() { } private FindSuccessorNodeCall(long nodeId, String memberUUID, long keyId) { super(nodeId, memberUUID); this.keyId = keyId; } @Override protected ...
0true
distributed_src_main_java_com_orientechnologies_orient_server_hazelcast_oldsharding_hazelcast_OHazelcastDHTNodeProxy.java
632
public class IndexStatus implements Iterable<IndexShardStatus> { private final String index; private final Map<Integer, IndexShardStatus> indexShards; IndexStatus(String index, ShardStatus[] shards) { this.index = index; Map<Integer, List<ShardStatus>> tmpIndexShards = Maps.newHashMap();...
0true
src_main_java_org_elasticsearch_action_admin_indices_status_IndexStatus.java
67
public class FieldType implements Serializable { private static final long serialVersionUID = 1L; private static final Map<String, FieldType> TYPES = new HashMap<String, FieldType>(); public static final FieldType BOOLEAN = new FieldType("BOOLEAN", "Boolean"); public static final FieldType DATE = new...
1no label
admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_field_type_FieldType.java
986
indexAction.execute(indexRequest, new ActionListener<IndexResponse>() { @Override public void onResponse(IndexResponse result) { indexResponses.set(indexCounter.getAndIncrement(), result); if (completionCounter.decre...
0true
src_main_java_org_elasticsearch_action_support_replication_TransportIndicesReplicationOperationAction.java
2,245
public static class DocIdAndVersion { public final int docId; public final long version; public final AtomicReaderContext context; public DocIdAndVersion(int docId, long version, AtomicReaderContext context) { this.docId = docId; this.version = version; ...
0true
src_main_java_org_elasticsearch_common_lucene_uid_Versions.java
1,597
class ApplySettings implements NodeSettingsService.Listener { @Override public void onRefreshSettings(Settings settings) { int primariesInitialRecoveries = settings.getAsInt(CLUSTER_ROUTING_ALLOCATION_NODE_INITIAL_PRIMARIES_RECOVERIES, ThrottlingAllocationDecider.this.primariesInitialRec...
0true
src_main_java_org_elasticsearch_cluster_routing_allocation_decider_ThrottlingAllocationDecider.java
2,153
public class AllDocIdSet extends DocIdSet { private final int maxDoc; public AllDocIdSet(int maxDoc) { this.maxDoc = maxDoc; } /** * Does not go to the reader and ask for data, so can be cached. */ @Override public boolean isCacheable() { return true; } @Ove...
0true
src_main_java_org_elasticsearch_common_lucene_docset_AllDocIdSet.java
248
@Service("blCurrencyService") public class BroadleafCurrencyServiceImpl implements BroadleafCurrencyService { @Resource(name="blCurrencyDao") protected BroadleafCurrencyDao currencyDao; /** * Returns the default Broadleaf currency * @return The default currency */ @Override public B...
0true
common_src_main_java_org_broadleafcommerce_common_currency_service_BroadleafCurrencyServiceImpl.java
1,622
static class ThreadCpuInfo { final Thread thread; long lastSet = 0; long lastValue = 0; ThreadCpuInfo(Thread thread) { this.thread = thread; } public double setNewValue(long newValue, long now) { double diff = newValue - lastValue; ...
0true
hazelcast_src_main_java_com_hazelcast_management_ThreadMonitoringService.java
1,665
map.addEntryListener(new EntryAdapter<String, String>() { public void entryEvicted(EntryEvent<String, String> event) { latch.countDown(); } }, true);
0true
hazelcast_src_test_java_com_hazelcast_map_BasicMapTest.java
16
final class DescendingEntrySetView extends EntrySetView { @Override public Iterator<Map.Entry<K, V>> iterator() { return new DescendingSubMapEntryIterator(absHighest(), absLowFence()); } }
0true
commons_src_main_java_com_orientechnologies_common_collection_OMVRBTree.java
3,506
public class MapperParsingException extends MapperException { public MapperParsingException(String message) { super(message); } public MapperParsingException(String message, Throwable cause) { super(message, cause); } @Override public RestStatus status() { return Rest...
0true
src_main_java_org_elasticsearch_index_mapper_MapperParsingException.java
353
public static class Connection { private final Node node; private final Client client; public Connection(Node node, Client client) { this.node = node; this.client = client; Preconditions.checkNotNull(this.client, "Unable to instantiate Elasticsearch Clie...
0true
titan-es_src_main_java_com_thinkaurelius_titan_diskstorage_es_ElasticSearchSetup.java
11
@edu.umd.cs.findbugs.annotations.SuppressWarnings("MS_OOI_PKGPROTECT") public interface TextCommandConstants { int MONTH_SECONDS = 60 * 60 * 24 * 30; byte[] SPACE = stringToBytes(" "); byte[] RETURN = stringToBytes("\r\n"); byte[] FLAG_ZERO = stringToBytes(" 0 "); byte[] VALUE_SPACE = stringToBytes...
0true
hazelcast_src_main_java_com_hazelcast_ascii_TextCommandConstants.java
1,689
public class ONetworkProtocolBinary extends OBinaryNetworkProtocolAbstract { protected OClientConnection connection; protected OUser account; private String dbType; public ONetworkProtocolBinary() { super("OrientDB <- BinaryClient/?"); } public ONetworkProtocolBinary(final St...
1no label
server_src_main_java_com_orientechnologies_orient_server_network_protocol_binary_ONetworkProtocolBinary.java
2,178
static class NotDeleteBits implements Bits { private final Bits bits; private final Bits liveDocs; NotDeleteBits(Bits bits, Bits liveDocs) { this.bits = bits; this.liveDocs = liveDocs; } @Override public boolean get(int index) { ...
0true
src_main_java_org_elasticsearch_common_lucene_search_ApplyAcceptedDocsFilter.java
988
new Thread() { public void run() { for (int j = 0; j < loopCount; j++) { try { semaphore.acquire(); sleepMillis((int) (Math.random() * 3)); counter.inc(); ...
0true
hazelcast_src_test_java_com_hazelcast_concurrent_semaphore_AdvancedSemaphoreTest.java
1,174
public interface InitialMembershipListener extends MembershipListener { /** * Is called when this listener is registered. * * @param event the MembershipInitializeEvent */ void init(InitialMembershipEvent event); }
0true
hazelcast_src_main_java_com_hazelcast_core_InitialMembershipListener.java
1,526
public class ConnectionFactoryImpl implements HazelcastConnectionFactory { /** * identity generator */ private static final AtomicInteger ID_GEN = new AtomicInteger(); /** * class LOGGER */ private static final ILogger LOGGER = Logger.getLogger("com.hazelcast.jca"); /** * th...
0true
hazelcast-ra_hazelcast-jca_src_main_java_com_hazelcast_jca_ConnectionFactoryImpl.java
3,585
public class IntegerFieldMapper extends NumberFieldMapper<Integer> { public static final String CONTENT_TYPE = "integer"; public static class Defaults extends NumberFieldMapper.Defaults { public static final FieldType FIELD_TYPE = new FieldType(NumberFieldMapper.Defaults.FIELD_TYPE); static {...
0true
src_main_java_org_elasticsearch_index_mapper_core_IntegerFieldMapper.java
888
public interface PromotableFulfillmentGroupAdjustment extends Serializable { /** * Returns the associated promotableFulfillmentGroup * @return */ public PromotableFulfillmentGroup getPromotableFulfillmentGroup(); /** * Returns the associated promotableCandidateOrderOffer * @return...
0true
core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_offer_service_discount_domain_PromotableFulfillmentGroupAdjustment.java
1,407
public static class Response { private final boolean acknowledged; public Response(boolean acknowledged) { this.acknowledged = acknowledged; } public boolean acknowledged() { return acknowledged; } }
0true
src_main_java_org_elasticsearch_cluster_metadata_MetaDataDeleteIndexService.java
719
public interface SkuAttribute extends Searchable<String> { /** * Gets the id. * * @return the id */ public Long getId(); /** * Sets the id. * * @param id the new id */ public void setId(Long id); /** * Gets the sku. * * @return the sku *...
0true
core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_catalog_domain_SkuAttribute.java
1,627
public interface EJB3ConfigurationDao { public abstract Ejb3Configuration getConfiguration(); }
0true
admin_broadleaf-open-admin-platform_src_main_java_org_broadleafcommerce_openadmin_server_dao_EJB3ConfigurationDao.java
1,041
public class MultiTermVectorsItemResponse implements Streamable { private TermVectorResponse response; private MultiTermVectorsResponse.Failure failure; MultiTermVectorsItemResponse() { } public MultiTermVectorsItemResponse(TermVectorResponse response, MultiTermVectorsResponse.Failure failure) {...
0true
src_main_java_org_elasticsearch_action_termvector_MultiTermVectorsItemResponse.java
1,213
public class RuntimeInterruptedException extends HazelcastException { public RuntimeInterruptedException() { } public RuntimeInterruptedException(String message) { super(message); } }
0true
hazelcast_src_main_java_com_hazelcast_core_RuntimeInterruptedException.java
30
{ @Override public int getServerId() { return config.get( ClusterSettings.server_id ); } @Override public List<HostnamePort> getInitialHosts() { return config.get( ClusterSettings.initial_hosts )...
1no label
enterprise_cluster_src_main_java_org_neo4j_cluster_client_ClusterClient.java
1,626
public class GetMapConfigOperation extends Operation { private String mapName; private MapConfig mapConfig; public GetMapConfigOperation() { } public GetMapConfigOperation(String mapName) { this.mapName = mapName; } @Override public void beforeRun() throws Exception { } ...
0true
hazelcast_src_main_java_com_hazelcast_management_operation_GetMapConfigOperation.java
843
class TransportHandler extends BaseTransportRequestHandler<ClearScrollRequest> { @Override public ClearScrollRequest newInstance() { return new ClearScrollRequest(); } @Override public void messageReceived(final ClearScrollRequest request, final TransportChannel...
0true
src_main_java_org_elasticsearch_action_search_TransportClearScrollAction.java
2,319
static class TimeTimeZoneRoundingFloor extends TimeZoneRounding { static final byte ID = 1; private DateTimeUnit unit; private DateTimeZone preTz; private DateTimeZone postTz; TimeTimeZoneRoundingFloor() { // for serialization } TimeTimeZoneRoundingFloor(D...
0true
src_main_java_org_elasticsearch_common_rounding_TimeZoneRounding.java
881
public interface PromotableCandidateFulfillmentGroupOffer { public HashMap<OfferItemCriteria, List<PromotableOrderItem>> getCandidateQualifiersMap(); public void setCandidateQualifiersMap(HashMap<OfferItemCriteria, List<PromotableOrderItem>> candidateItemsMap); public Money computeDiscountedAmount(); ...
0true
core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_offer_service_discount_domain_PromotableCandidateFulfillmentGroupOffer.java
271
public class NullEmailInfo extends EmailInfo { private static final long serialVersionUID = 1L; public NullEmailInfo() throws IOException { super(); } }
0true
common_src_main_java_org_broadleafcommerce_common_email_service_info_NullEmailInfo.java
644
public class DeleteIndexTemplateRequest extends MasterNodeOperationRequest<DeleteIndexTemplateRequest> { private String name; DeleteIndexTemplateRequest() { } /** * Constructs a new delete index request for the specified name. */ public DeleteIndexTemplateRequest(String name) { ...
0true
src_main_java_org_elasticsearch_action_admin_indices_template_delete_DeleteIndexTemplateRequest.java
3,210
DOUBLE(64, true, SortField.Type.DOUBLE, Double.NEGATIVE_INFINITY, Double.POSITIVE_INFINITY) { @Override public double toDouble(BytesRef indexForm) { return NumericUtils.sortableLongToDouble(NumericUtils.prefixCodedToLong(indexForm)); } @Override ...
0true
src_main_java_org_elasticsearch_index_fielddata_IndexNumericFieldData.java
353
public class OScenarioThreadLocal extends ThreadLocal<RUN_MODE> { public static OScenarioThreadLocal INSTANCE = new OScenarioThreadLocal(); public enum RUN_MODE { DEFAULT, RUNNING_DISTRIBUTED } public OScenarioThreadLocal() { set(RUN_MODE.DEFAULT); } @Override public void set(final RUN_MODE val...
0true
core_src_main_java_com_orientechnologies_orient_core_db_OScenarioThreadLocal.java
289
list.getTable().addMouseListener(new MouseListener() { @Override public void mouseUp(MouseEvent e) { go(); } @Override public void mouseDown(MouseEvent e) {} @Override public void mouseDoubleClick(MouseEvent e) {...
0true
plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_editor_RecentFilesPopup.java
3,473
public static class SlowLogParsedDocumentPrinter { private final ParsedDocument doc; private final long tookInNanos; private final boolean reformat; public SlowLogParsedDocumentPrinter(ParsedDocument doc, long tookInNanos, boolean reformat) { this.doc = doc; ...
0true
src_main_java_org_elasticsearch_index_indexing_slowlog_ShardSlowLogIndexingService.java
3,434
private static class RemoteInvocationResponseHandler implements ResponseHandler { private final NodeEngine nodeEngine; private final Operation op; private final AtomicBoolean sent = new AtomicBoolean(false); private RemoteInvocationResponseHandler(NodeEngine nodeEngine, Operation o...
1no label
hazelcast_src_main_java_com_hazelcast_spi_impl_ResponseHandlerFactory.java
2,126
public class Log4jESLoggerFactory extends ESLoggerFactory { @Override protected ESLogger rootLogger() { return new Log4jESLogger(null, Logger.getRootLogger()); } @Override protected ESLogger newInstance(String prefix, String name) { final org.apache.log4j.Logger logger = org.apache...
0true
src_main_java_org_elasticsearch_common_logging_log4j_Log4jESLoggerFactory.java
2,297
return new FilterRecycler<T>() { SoftReference<Recycler<T>> ref; { ref = new SoftReference<Recycler<T>>(null); } @Override protected Recycler<T> getDelegate() { Recycler<T> recycler = ref.get(); if (re...
0true
src_main_java_org_elasticsearch_common_recycler_Recyclers.java
1,684
public interface AdminRole extends Serializable { public void setId(Long id); public Long getId(); public String getName(); public void setName(String name); public String getDescription(); public void setDescription(String description); public Set<AdminPermission> getAllPermissions(); ...
0true
admin_broadleaf-open-admin-platform_src_main_java_org_broadleafcommerce_openadmin_server_security_domain_AdminRole.java
3,471
public class ShardSlowLogIndexingService extends AbstractIndexShardComponent { private boolean reformat; private long indexWarnThreshold; private long indexInfoThreshold; private long indexDebugThreshold; private long indexTraceThreshold; private String level; private final ESLogger inde...
0true
src_main_java_org_elasticsearch_index_indexing_slowlog_ShardSlowLogIndexingService.java
968
public final class UnlockRequest extends AbstractUnlockRequest { public UnlockRequest() { } public UnlockRequest(Data key, long threadId) { super(key, threadId); } public UnlockRequest(Data key, long threadId, boolean force) { super(key, threadId, force); } @Override ...
0true
hazelcast_src_main_java_com_hazelcast_concurrent_lock_client_UnlockRequest.java
934
if (makeDbCall(iOtherDb, new ODbRelatedCall<Boolean>() { public Boolean call() { return !otherMap.containsKey(myKey); } }))
0true
core_src_main_java_com_orientechnologies_orient_core_record_impl_ODocumentHelper.java
936
final Thread thread = new Thread() { public void run() { result.set(lock.isLockedByCurrentThread()); } };
0true
hazelcast_src_test_java_com_hazelcast_concurrent_lock_LockTest.java
1,715
runnable = new Runnable() { public void run() { map.putAll(mapWithNullValue); } };
0true
hazelcast_src_test_java_com_hazelcast_map_BasicMapTest.java
706
public static class Order { public static final int General = 1000; public static final int Price = 2000; public static final int ActiveDateRange = 3000; public static final int Advanced = 1000; public static final int Inventory...
0true
core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_catalog_domain_ProductImpl.java
1,413
private static final class OSimpleVersionSerializer implements ORecordVersionSerializer { private static final OSimpleVersionSerializer INSTANCE = new OSimpleVersionSerializer(); @Override public void writeTo(DataOutput out, ORecordVersion version) throws IOException { final OSimpleVersion simpleVe...
0true
core_src_main_java_com_orientechnologies_orient_core_version_OSimpleVersion.java
2,496
EntryListener listener = new EntryAdapter() { @Override public void onEntryEvent(EntryEvent event) { send(event); } private void send(EntryEvent event) { if (endpoint.live()) { Data key = clientEngine.toData(eve...
1no label
hazelcast_src_main_java_com_hazelcast_multimap_operations_client_AddEntryListenerRequest.java
205
public static class Start extends LogEntry { private final Xid xid; private final int masterId; private final int myId; private final long timeWritten; private final long lastCommittedTxWhenTransactionStarted; private long startPosition; Start...
0true
community_kernel_src_main_java_org_neo4j_kernel_impl_transaction_xaframework_LogEntry.java
527
public class FlushResponse extends BroadcastOperationResponse { FlushResponse() { } FlushResponse(int totalShards, int successfulShards, int failedShards, List<ShardOperationFailedException> shardFailures) { super(totalShards, successfulShards, failedShards, shardFailures); } @Override ...
0true
src_main_java_org_elasticsearch_action_admin_indices_flush_FlushResponse.java
229
public interface SystemPropertiesDao { public SystemProperty saveSystemProperty(SystemProperty systemProperty); public void deleteSystemProperty(SystemProperty systemProperty); public List<SystemProperty> readAllSystemProperties(); public SystemProperty readSystemPropertyByName(String name); pu...
0true
common_src_main_java_org_broadleafcommerce_common_config_dao_SystemPropertiesDao.java
700
constructors[LIST_SUB] = new ConstructorFunction<Integer, Portable>() { public Portable createNew(Integer arg) { return new ListSubRequest(); } };
0true
hazelcast_src_main_java_com_hazelcast_collection_CollectionPortableHook.java
1,566
@ManagedDescription("HazelcastInstance.OperationService") public class OperationServiceMBean extends HazelcastMBean<OperationService> { public OperationServiceMBean(HazelcastInstance hazelcastInstance, OperationService operationService, ManagementService service) { super(op...
0true
hazelcast_src_main_java_com_hazelcast_jmx_OperationServiceMBean.java
233
assertTrueEventually(new AssertTask() { public void run() throws Exception { assertTrue(map.isEmpty()); } });
0true
hazelcast-client_src_test_java_com_hazelcast_client_executor_ClientExecutorServiceExecuteTest.java
3,005
public interface IdReaderTypeCache { /** * @param docId The Lucene docId of the child document to return the parent _uid for. * @return The parent _uid for the specified docId (which is a child document) */ HashedBytesArray parentIdByDoc(int docId); /** * @param uid The uid of the docu...
0true
src_main_java_org_elasticsearch_index_cache_id_IdReaderTypeCache.java
1,437
public class RepositoriesMetaData implements MetaData.Custom { public static final String TYPE = "repositories"; public static final Factory FACTORY = new Factory(); private final ImmutableList<RepositoryMetaData> repositories; /** * Constructs new repository metadata * * @param repos...
0true
src_main_java_org_elasticsearch_cluster_metadata_RepositoriesMetaData.java
1,139
public interface DistributedObjectListener extends EventListener { /** * Invoked when a DistributedObject is created. * * @param event event */ void distributedObjectCreated(DistributedObjectEvent event); /** * Invoked when a DistributedObject is destroyed. * * @param ev...
0true
hazelcast_src_main_java_com_hazelcast_core_DistributedObjectListener.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
114
public class OLogManager { private boolean debug = true; private boolean info = true; private boolean warn = true; private boolean error = true; private Level minimumLevel = Level.SEVERE; pri...
0true
commons_src_main_java_com_orientechnologies_common_log_OLogManager.java
228
@Documented @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.METHOD) /** * Tells to OrientDB to call the method BEFORE the record is read and unmarshalled from database. * Applies only to the entity Objects reachable by the OrientDB engine after have registered them. */ public @interface OBeforeDeserializatio...
0true
core_src_main_java_com_orientechnologies_orient_core_annotation_OBeforeDeserialization.java
1,211
public class OPhysicalPosition implements OSerializableStream, Comparable<OPhysicalPosition>, Externalizable { // POSITION IN THE CLUSTER public OClusterPosition clusterPosition; // ID OF DATA SEGMENT public int dataSegmentId; // POSITION OF CHUNK EXPRESSES AS OFFSET IN BYTES INSIDE THE DATA SEGM...
0true
core_src_main_java_com_orientechnologies_orient_core_storage_OPhysicalPosition.java
747
public class GetAction extends Action<GetRequest, GetResponse, GetRequestBuilder> { public static final GetAction INSTANCE = new GetAction(); public static final String NAME = "get"; private GetAction() { super(NAME); } @Override public GetResponse newResponse() { return new G...
0true
src_main_java_org_elasticsearch_action_get_GetAction.java
4,679
final static class MatchAndScore extends QueryCollector { final PercolateContext context; final HighlightPhase highlightPhase; final List<BytesRef> matches = new ArrayList<BytesRef>(); final List<Map<String, HighlightField>> hls = new ArrayList<Map<String, HighlightField>>(); ...
1no label
src_main_java_org_elasticsearch_percolator_QueryCollector.java
290
@Entity @Inheritance(strategy = InheritanceType.JOINED) @Table(name="BLC_DATA_DRVN_ENUM") @Cache(usage = CacheConcurrencyStrategy.READ_WRITE, region="blStandardElements") @AdminPresentationClass(populateToOneFields = PopulateToOneFieldsEnum.TRUE, friendlyName = "DataDrivenEnumerationImpl_friendyName") public class Data...
0true
common_src_main_java_org_broadleafcommerce_common_enumeration_domain_DataDrivenEnumerationImpl.java
3,186
private static final class Empty extends GeoPointValues { protected Empty() { super(false); } @Override public int setDocument(int docId) { return 0; } @Override public GeoPoint nextValue() { throw new ElasticsearchIllegal...
0true
src_main_java_org_elasticsearch_index_fielddata_GeoPointValues.java
3,007
public class ShardIdCacheModule extends AbstractModule { @Override protected void configure() { bind(ShardIdCache.class).asEagerSingleton(); } }
0true
src_main_java_org_elasticsearch_index_cache_id_ShardIdCacheModule.java
639
@Test public class OPropertyIndexDefinitionTest { private OPropertyIndexDefinition propertyIndex; @BeforeMethod public void beforeMethod() { propertyIndex = new OPropertyIndexDefinition("testClass", "fOne", OType.INTEGER); } @Test public void testCreateValueSingleParameter() { final Object result ...
0true
core_src_test_java_com_orientechnologies_orient_core_index_OPropertyIndexDefinitionTest.java
43
public class MultiPaxosServerFactory implements ProtocolServerFactory { private final ClusterConfiguration initialConfig; private final Logging logging; public MultiPaxosServerFactory( ClusterConfiguration initialConfig, Logging logging ) { this.initialConfig = initialConfig; th...
1no label
enterprise_cluster_src_main_java_org_neo4j_cluster_MultiPaxosServerFactory.java
600
public class GetSettingsAction extends IndicesAction<GetSettingsRequest, GetSettingsResponse, GetSettingsRequestBuilder> { public static final GetSettingsAction INSTANCE = new GetSettingsAction(); public static final String NAME = "indices/settings/get"; public GetSettingsAction() { super(NAME); ...
0true
src_main_java_org_elasticsearch_action_admin_indices_settings_get_GetSettingsAction.java
3,347
public static class SingleFixedSet extends GeoPointCompressedAtomicFieldData { private final GeoPointFieldMapper.Encoding encoding; private final PagedMutable lon, lat; private final FixedBitSet set; private final long numOrds; public SingleFixedSet(GeoPointFieldMapper.Enco...
0true
src_main_java_org_elasticsearch_index_fielddata_plain_GeoPointCompressedAtomicFieldData.java
80
public static class FieldOrder { // General Fields public static final int NAME = 1000; public static final int URL = 2000; public static final int TITLE = 3000; public static final int ALT_TEXT = 4000; public static final int MIME_TYPE =...
0true
admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_file_domain_StaticAssetImpl.java
3,130
static class VersionValue { private final long version; private final boolean delete; private final long time; private final Translog.Location translogLocation; VersionValue(long version, boolean delete, long time, Translog.Location translogLocation) { this.versi...
0true
src_main_java_org_elasticsearch_index_engine_internal_InternalEngine.java
140
public abstract class LocalProposal extends AbstractLinkedMode implements ICompletionProposal, ICompletionProposalExtension6 { protected int offset; protected int exitPos; protected ProducedType type; protected String initialName; protected String[] nameProposals; protected final int cu...
0true
plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_correct_LocalProposal.java
196
public class UniqueTokenFilter extends TokenFilter { private final CharTermAttribute termAttribute = addAttribute(CharTermAttribute.class); private final PositionIncrementAttribute posIncAttribute = addAttribute(PositionIncrementAttribute.class); // use a fixed version, as we don't care about case sensiti...
0true
src_main_java_org_apache_lucene_analysis_miscellaneous_UniqueTokenFilter.java
697
public class BulkRequestBuilder extends ActionRequestBuilder<BulkRequest, BulkResponse, BulkRequestBuilder> { public BulkRequestBuilder(Client client) { super((InternalClient) client, new BulkRequest()); } /** * Adds an {@link IndexRequest} to the list of actions to execute. Follows the same ...
0true
src_main_java_org_elasticsearch_action_bulk_BulkRequestBuilder.java
2,715
public class LocalAllocateDangledIndices extends AbstractComponent { private final TransportService transportService; private final ClusterService clusterService; private final AllocationService allocationService; @Inject public LocalAllocateDangledIndices(Settings settings, TransportService tra...
0true
src_main_java_org_elasticsearch_gateway_local_state_meta_LocalAllocateDangledIndices.java
9
Runtime.getRuntime().addShutdownHook(new Thread() { public void run() { shutdownHBase(stat); } });
0true
titan-hbase-parent_titan-hbase-core_src_test_java_com_thinkaurelius_titan_HBaseStorageSetup.java