Unnamed: 0
int64
0
6.45k
func
stringlengths
37
161k
target
class label
2 classes
project
stringlengths
33
167
486
class ExecutionCallbackNode { final ExecutionCallback callback; final Executor executor; ExecutionCallbackNode(ExecutionCallback callback, Executor executor) { this.callback = callback; this.executor = executor; } }
0true
hazelcast-client_src_main_java_com_hazelcast_client_spi_impl_ClientCallFuture.java
416
trackedList.addChangeListener(new OMultiValueChangeListener<Integer, String>() { public void onAfterRecordChanged(final OMultiValueChangeEvent<Integer, String> event) { firedEvents.add(event); } });
0true
core_src_test_java_com_orientechnologies_orient_core_db_record_TrackedListTest.java
19
@Component("blAdminProductTranslationExtensionListener") public class AdminProductTranslationExtensionListener implements AdminTranslationControllerExtensionListener { @Resource(name = "blCatalogService") protected CatalogService catalogService; /** * If we are trying to translate a field on ...
1no label
admin_broadleaf-admin-module_src_main_java_org_broadleafcommerce_admin_web_controller_AdminProductTranslationExtensionListener.java
365
public class TranslatedEntity implements Serializable, BroadleafEnumerationType { private static final long serialVersionUID = 1L; private static final Map<String, TranslatedEntity> TYPES = new LinkedHashMap<String, TranslatedEntity>(); public static final TranslatedEntity PRODUCT = new TranslatedEntity(...
1no label
common_src_main_java_org_broadleafcommerce_common_i18n_domain_TranslatedEntity.java
916
public final class DestructiveOperations implements NodeSettingsService.Listener { /** * Setting which controls whether wildcard usage (*, prefix*, _all) is allowed. */ public static final String REQUIRES_NAME = "action.destructive_requires_name"; private final ESLogger logger; private volat...
0true
src_main_java_org_elasticsearch_action_support_DestructiveOperations.java
193
public class ClientSecurityConfig { private Credentials credentials; private String credentialsClassname; public Credentials getCredentials() { return credentials; } public void setCredentials(Credentials credentials) { this.credentials = credentials; } public String get...
1no label
hazelcast-client_src_main_java_com_hazelcast_client_config_ClientSecurityConfig.java
2,367
public class ReducerTask<Key, Chunk> implements Runnable { private final AtomicBoolean cancelled = new AtomicBoolean(); private final JobSupervisor supervisor; private final Queue<ReducerChunk<Key, Chunk>> reducerQueue; private final String name; private final String jobId; private At...
1no label
hazelcast_src_main_java_com_hazelcast_mapreduce_impl_task_ReducerTask.java
4,518
public class IndicesTTLService extends AbstractLifecycleComponent<IndicesTTLService> { public static final String INDICES_TTL_INTERVAL = "indices.ttl.interval"; public static final String INDEX_TTL_DISABLE_PURGE = "index.ttl.disable_purge"; private final ClusterService clusterService; private final In...
1no label
src_main_java_org_elasticsearch_indices_ttl_IndicesTTLService.java
15
static final class AsyncSupply<U> extends Async { final Generator<U> fn; final CompletableFuture<U> dst; AsyncSupply(Generator<U> fn, CompletableFuture<U> dst) { this.fn = fn; this.dst = dst; } public final boolean exec() { CompletableFuture<U> d; U u;...
0true
src_main_java_jsr166e_CompletableFuture.java
1,229
QUEUE { @Override <T> Recycler<T> build(Recycler.C<T> c, int limit, int estimatedThreadPoolSize, int availableProcessors) { return concurrentDeque(c, limit); } },
0true
src_main_java_org_elasticsearch_cache_recycler_PageCacheRecycler.java
172
public abstract class OSoftThread extends Thread implements OService { private volatile boolean shutdownFlag; public OSoftThread() { } public OSoftThread(final ThreadGroup iThreadGroup) { super(iThreadGroup, OSoftThread.class.getSimpleName()); setDaemon(true); } public OSoftThread(final String na...
0true
commons_src_main_java_com_orientechnologies_common_thread_OSoftThread.java
740
public class ProductBundlePricingModelType implements Serializable, BroadleafEnumerationType { private static final long serialVersionUID = 1L; private static final Map<String, ProductBundlePricingModelType> TYPES = new LinkedHashMap<String, ProductBundlePricingModelType>(); public static final ProductBu...
1no label
core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_catalog_service_type_ProductBundlePricingModelType.java
599
interface ValuesTransformer<V> { Collection<OIdentifiable> transformFromValue(V value); V transformToValue(Collection<OIdentifiable> collection); }
0true
core_src_main_java_com_orientechnologies_orient_core_index_OIndexEngine.java
2,047
public class DeleteOperation extends BaseRemoveOperation { boolean success = false; public DeleteOperation(String name, Data dataKey) { super(name, dataKey); } public DeleteOperation() { } public void run() { success = recordStore.remove(dataKey) != null; } @Override ...
1no label
hazelcast_src_main_java_com_hazelcast_map_operation_DeleteOperation.java
1,079
public class CacheProperty extends AbstractProperty { public CacheProperty(long id, PropertyKey key, InternalVertex start, Object value, Entry data) { super(id, key, start.it(), value); this.data = data; } //############## Similar code as CacheEdge but be careful when copying #############...
1no label
titan-core_src_main_java_com_thinkaurelius_titan_graphdb_relations_CacheProperty.java
388
public class ClusterUpdateSettingsResponse extends AcknowledgedResponse { Settings transientSettings; Settings persistentSettings; ClusterUpdateSettingsResponse() { this.persistentSettings = ImmutableSettings.EMPTY; this.transientSettings = ImmutableSettings.EMPTY; } ClusterUpdate...
0true
src_main_java_org_elasticsearch_action_admin_cluster_settings_ClusterUpdateSettingsResponse.java
657
public interface CategoryXrefDao { /** * Retrieve all the category relationships for which the passed in * {@code Category} primary key is a parent * * @param categoryId the parent {@code Category} primary key * @return the list of child category relationships for the parent primary key ...
0true
core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_catalog_dao_CategoryXrefDao.java
767
public class IndexAction extends Action<IndexRequest, IndexResponse, IndexRequestBuilder> { public static final IndexAction INSTANCE = new IndexAction(); public static final String NAME = "index"; private IndexAction() { super(NAME); } @Override public IndexResponse newResponse() { ...
0true
src_main_java_org_elasticsearch_action_index_IndexAction.java
533
@RunWith(HazelcastParallelClassRunner.class) @Category(QuickTest.class) public class ClientTxnSetTest { static HazelcastInstance client; static HazelcastInstance server1; static HazelcastInstance server2; @BeforeClass public static void init(){ server1 = Hazelcast.newHazelcastInstance(); ...
0true
hazelcast-client_src_test_java_com_hazelcast_client_txn_ClientTxnSetTest.java
1,996
@Entity @EntityListeners(value = { TemporalTimestampListener.class }) @Inheritance(strategy = InheritanceType.JOINED) @Table(name = "BLC_ROLE") public class RoleImpl implements Role { private static final long serialVersionUID = 1L; @Id @GeneratedValue(generator = "RoleId") @GenericGenerator( ...
1no label
core_broadleaf-profile_src_main_java_org_broadleafcommerce_profile_core_domain_RoleImpl.java
158
public class TestUpgradeOneDotFourToFiveIT { private static final File PATH = new File( "target/test-data/upgrade-1.4-5" ); @BeforeClass public static void doBefore() throws Exception { deleteRecursively( PATH ); } @Test( expected=IllegalLogFormatException.class ) public void canno...
0true
community_kernel_src_test_java_org_neo4j_kernel_impl_transaction_xaframework_TestUpgradeOneDotFourToFiveIT.java
5,838
public class ContextIndexSearcher extends IndexSearcher { public static enum Stage { NA, MAIN_QUERY } /** The wrapped {@link IndexSearcher}. The reason why we sometimes prefer delegating to this searcher instead of <tt>super</tt> is that * this instance may have more assertions, for ...
1no label
src_main_java_org_elasticsearch_search_internal_ContextIndexSearcher.java
342
static class TestMapStore extends MapStoreAdapter<Long, String> { public volatile CountDownLatch latch; @Override public void store(Long key, String value) { if (latch != null) { latch.countDown(); } } @Override public void s...
0true
hazelcast-client_src_test_java_com_hazelcast_client_map_ClientMapTest.java
45
public enum Multiplicity { /** * The given edge label specifies a multi-graph, meaning that the multiplicity is not constrained and that * there may be multiple edges of this label between any given pair of vertices. * * @link http://en.wikipedia.org/wiki/Multigraph */ MULTI, /** ...
0true
titan-core_src_main_java_com_thinkaurelius_titan_core_Multiplicity.java
64
class TransactionImpl implements Transaction { private static final int RS_ENLISTED = 0; private static final int RS_SUSPENDED = 1; private static final int RS_DELISTED = 2; private static final int RS_READONLY = 3; // set in prepare private final byte globalId[]; private boolean globalStartRec...
0true
community_kernel_src_main_java_org_neo4j_kernel_impl_transaction_TransactionImpl.java
62
@Entity @Inheritance(strategy = InheritanceType.JOINED) @Table(name = "BLC_FLD_ENUM") @Cache(usage= CacheConcurrencyStrategy.NONSTRICT_READ_WRITE, region="blCMSElements") public class FieldEnumerationImpl implements FieldEnumeration { private static final long serialVersionUID = 1L; @Id @GeneratedValue(ge...
0true
admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_field_domain_FieldEnumerationImpl.java
830
@Entity @Inheritance(strategy = InheritanceType.JOINED) @Table(name = "BLC_ORDER_ITEM_ADJUSTMENT") @Cache(usage=CacheConcurrencyStrategy.NONSTRICT_READ_WRITE, region="blOrderElements") @AdminPresentationMergeOverrides( { @AdminPresentationMergeOverride(name = "", mergeEntries = @AdminPresentatio...
1no label
core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_offer_domain_OrderItemAdjustmentImpl.java
1,639
new Thread(new Runnable() { @Override public void run() { while (!Thread.interrupted()) { String senderNode = null; ODistributedResponse message = null; try { message = nodeResponseQueue.take(); if (message != null) { senderNod...
1no label
distributed_src_main_java_com_orientechnologies_orient_server_hazelcast_OHazelcastDistributedMessageService.java
3,726
public class DynamicTemplate { public static enum MatchType { SIMPLE, REGEX; public static MatchType fromString(String value) { if ("simple".equals(value)) { return SIMPLE; } else if ("regex".equals(value)) { return REGEX; ...
1no label
src_main_java_org_elasticsearch_index_mapper_object_DynamicTemplate.java
349
public interface ODatabaseSchemaAware<T extends Object> extends ODatabaseComplex<T> { /** * Creates a new entity instance. Each database implementation will return the right type. * * @return The new instance. */ public <RET extends Object> RET newInstance(String iClassName); /** * Counts the entities co...
0true
core_src_main_java_com_orientechnologies_orient_core_db_ODatabaseSchemaAware.java
3,746
public class SessionListener implements HttpSessionListener { public void sessionCreated(HttpSessionEvent httpSessionEvent) { } public void sessionDestroyed(HttpSessionEvent httpSessionEvent) { WebFilter.destroyOriginalSession(httpSessionEvent.getSession()); } }
1no label
hazelcast-wm_src_main_java_com_hazelcast_web_SessionListener.java
150
public class OCharSerializer implements OBinarySerializer<Character> { private static final OBinaryConverter BINARY_CONVERTER = OBinaryConverterFactory.getConverter(); /** * size of char value in bytes */ public static final int CHAR_SIZE = 2; public static OCharSerializer INSTANCE = new OCharSerializer...
0true
commons_src_main_java_com_orientechnologies_common_serialization_types_OCharSerializer.java
173
public interface Entry extends StaticBuffer, MetaAnnotated { public int getValuePosition(); public boolean hasValue(); public StaticBuffer getColumn(); public<T> T getColumnAs(Factory<T> factory); public StaticBuffer getValue(); public<T> T getValueAs(Factory<T> factory); /** * R...
0true
titan-core_src_main_java_com_thinkaurelius_titan_diskstorage_Entry.java
561
public class PutMappingAction extends IndicesAction<PutMappingRequest, PutMappingResponse, PutMappingRequestBuilder> { public static final PutMappingAction INSTANCE = new PutMappingAction(); public static final String NAME = "indices/mapping/put"; private PutMappingAction() { super(NAME); } ...
0true
src_main_java_org_elasticsearch_action_admin_indices_mapping_put_PutMappingAction.java
700
public class BulkShardRequest extends ShardReplicationOperationRequest<BulkShardRequest> { private int shardId; private BulkItemRequest[] items; private boolean refresh; BulkShardRequest() { } BulkShardRequest(String index, int shardId, boolean refresh, BulkItemRequest[] items) { th...
0true
src_main_java_org_elasticsearch_action_bulk_BulkShardRequest.java
334
public class NodesRestartAction extends ClusterAction<NodesRestartRequest, NodesRestartResponse, NodesRestartRequestBuilder> { public static final NodesRestartAction INSTANCE = new NodesRestartAction(); public static final String NAME = "cluster/nodes/restart"; private NodesRestartAction() { super...
0true
src_main_java_org_elasticsearch_action_admin_cluster_node_restart_NodesRestartAction.java
4
public interface Action<A> { void accept(A a); }
0true
src_main_java_jsr166e_CompletableFuture.java
1,049
public class ItemListenerConfig extends ListenerConfig { private boolean includeValue = true; private ItemListenerConfigReadOnly readOnly; public ItemListenerConfig() { super(); } public ItemListenerConfig(String className, boolean includeValue) { super(className); this.i...
1no label
hazelcast_src_main_java_com_hazelcast_config_ItemListenerConfig.java
52
static final class EntrySpliterator<K,V> extends Traverser<K,V> implements ConcurrentHashMapSpliterator<Map.Entry<K,V>> { final ConcurrentHashMapV8<K,V> map; // To export MapEntry long est; // size estimate EntrySpliterator(Node<K,V>[] tab, int size, int index, int limi...
0true
src_main_java_jsr166e_ConcurrentHashMapV8.java
3,374
final class BasicOperationService implements InternalOperationService { private final AtomicLong executedOperationsCount = new AtomicLong(); private final NodeEngineImpl nodeEngine; private final Node node; private final ILogger logger; private final AtomicLong callIdGen = new AtomicLong(1); ...
1no label
hazelcast_src_main_java_com_hazelcast_spi_impl_BasicOperationService.java
772
public class CollectionPrepareOperation extends CollectionBackupAwareOperation { boolean removeOperation; String transactionId; private long itemId = -1; public CollectionPrepareOperation() { } public CollectionPrepareOperation(String name, long itemId, String transactionId, boolean removeOp...
0true
hazelcast_src_main_java_com_hazelcast_collection_txn_CollectionPrepareOperation.java
100
{ @Override public void beforeCompletion() { throw firstException; } @Override public void afterCompletion( int status ) { } };
0true
community_kernel_src_test_java_org_neo4j_kernel_impl_transaction_TestTransactionImpl.java
624
indexEngine.getEntriesMajor(iRangeFrom, isInclusive, null, new OIndexEngine.EntriesResultListener() { @Override public boolean addResult(ODocument entry) { return entriesResultListener.addResult(entry); } });
1no label
core_src_main_java_com_orientechnologies_orient_core_index_OIndexOneValue.java
54
public class TypeArgumentListCompletions { public static void addTypeArgumentListProposal(final int offset, final CeylonParseController cpc, final Node node, final Scope scope, final IDocument document, final List<ICompletionProposal> result) { final Integer startInd...
0true
plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_complete_TypeArgumentListCompletions.java
369
@RunWith(HazelcastSerialClassRunner.class) @Category(NightlyTest.class) @SuppressWarnings("unused") public class DistributedMapperClientMapReduceTest extends AbstractClientMapReduceJobTest { private static final String MAP_NAME = "default"; @After public void shutdown() { HazelcastClient.shutdownA...
0true
hazelcast-client_src_test_java_com_hazelcast_client_mapreduce_DistributedMapperClientMapReduceTest.java
437
public final class PartitionServiceProxy implements PartitionService { private final ClientPartitionService partitionService; private final Random random = new Random(); public PartitionServiceProxy(ClientPartitionService partitionService) { this.partitionService = partitionService; } @Ov...
0true
hazelcast-client_src_main_java_com_hazelcast_client_proxy_PartitionServiceProxy.java
840
private class Async { final DiscoveryNodes nodes; final CountDown expectedOps; final ClearScrollRequest request; final List<Tuple<String, Long>[]> contexts = new ArrayList<Tuple<String, Long>[]>(); final AtomicReference<Throwable> expHolder; final ActionListener<Clea...
1no label
src_main_java_org_elasticsearch_action_search_TransportClearScrollAction.java
3,256
public abstract class InstancePermission extends ClusterPermission { protected static final int NONE = 0x0; protected static final int CREATE = 0x1; protected static final int DESTROY = 0x2; protected final int mask; protected final String actions; public InstancePermission(String name, Strin...
1no label
hazelcast_src_main_java_com_hazelcast_security_permission_InstancePermission.java
116
public interface Gather<S,M> { /** * Gathers the adjacent vertex's state and the connecting edge's properties into a single object * to be combined by a corresponding {@link Combiner} as configured in {@link OLAPQueryBuilder#edges(Gather, Combiner)}. * * @param state State of the adjacent verte...
0true
titan-core_src_main_java_com_thinkaurelius_titan_core_olap_Gather.java
10
@SuppressWarnings("serial") public class OLimitedMap<K, V> extends LinkedHashMap<K, V> { protected final int limit; public OLimitedMap(final int initialCapacity, final float loadFactor, final int limit) { super(initialCapacity, loadFactor, true); this.limit = limit; } @Override protected boolean rem...
0true
commons_src_main_java_com_orientechnologies_common_collection_OLimitedMap.java
3,262
public class QueuePermission extends InstancePermission { private static final int ADD = 0x4; private static final int READ = 0x8; private static final int REMOVE = 0x16; private static final int LISTEN = 0x32; private static final int ALL = ADD | REMOVE | READ | CREATE | DESTROY | LISTEN; pub...
1no label
hazelcast_src_main_java_com_hazelcast_security_permission_QueuePermission.java
1,186
public class OQueryOperatorMajor extends OQueryOperatorEqualityNotNulls { public OQueryOperatorMajor() { super(">", 5, false); } @Override @SuppressWarnings("unchecked") protected boolean evaluateExpression(final OIdentifiable iRecord, final OSQLFilterCondition iCondition, final Object iLeft, fina...
1no label
core_src_main_java_com_orientechnologies_orient_core_sql_operator_OQueryOperatorMajor.java
79
EQUAL { @Override public boolean isValidValueType(Class<?> clazz) { return true; } @Override public boolean isValidCondition(Object condition) { return true; } @Override public boolean evaluate(Object value, Object condition)...
0true
titan-core_src_main_java_com_thinkaurelius_titan_core_attribute_Cmp.java
467
@Repository("blSandBoxDao") public class SandBoxDaoImpl implements SandBoxDao { @PersistenceContext(unitName = "blPU") protected EntityManager sandBoxEntityManager; @Resource(name = "blTransactionManager") JpaTransactionManager transactionManager; @Override public SandBox retrieve(Long id...
0true
common_src_main_java_org_broadleafcommerce_common_sandbox_dao_SandBoxDaoImpl.java
380
@Entity @Inheritance(strategy = InheritanceType.JOINED) @Table(name = "BLC_LOCALE") @Cache(usage= CacheConcurrencyStrategy.NONSTRICT_READ_WRITE, region="blCMSElements") @AdminPresentationClass(friendlyName = "LocaleImpl_baseLocale") public class LocaleImpl implements Locale { private static final long serialVersio...
1no label
common_src_main_java_org_broadleafcommerce_common_locale_domain_LocaleImpl.java
41
public interface EdgeLabel extends RelationType { /** * Checks whether this labels is defined as directed. * * @return true, if this label is directed, else false. */ public boolean isDirected(); /** * Checks whether this labels is defined as unidirected. * * @return tru...
0true
titan-core_src_main_java_com_thinkaurelius_titan_core_EdgeLabel.java
884
public class PromotableCandidateItemOfferImpl extends AbstractPromotionRounding implements PromotableCandidateItemOffer, OfferHolder { private static final long serialVersionUID = 1L; protected Offer offer; protected PromotableOrder promotableOrder; protected Money potentialSavings; protected i...
1no label
core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_offer_service_discount_domain_PromotableCandidateItemOfferImpl.java
311
new Thread() { public void run() { beforeLock.countDown(); map.lock(key); afterLock.countDown(); } }.start();
0true
hazelcast-client_src_test_java_com_hazelcast_client_map_ClientMapLockTest.java
552
public static class FieldMappingMetaData implements ToXContent { public static final FieldMappingMetaData NULL = new FieldMappingMetaData("", BytesArray.EMPTY); private String fullName; private BytesReference source; public FieldMappingMetaData(String fullName, BytesReference sourc...
1no label
src_main_java_org_elasticsearch_action_admin_indices_mapping_get_GetFieldMappingsResponse.java
195
public class MemoryLocker { /** * This method disables to using JNA installed in system. Instead of locally installed bundled JNA will be used. */ private static void disableUsingSystemJNA() { if (System.getProperty("jna.nosys") == null || !System.getProperty("jna.nosys").equals("true")) { System.s...
0true
nativeos_src_main_java_com_orientechnologies_nio_MemoryLocker.java
89
RenameRefactoring refactoring = new RenameRefactoring(editor) { @Override public String getName() { return "Convert method to getter"; }; @Override protected void renameNode(TextChange tfc, Node node, Tree.Co...
0true
plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_correct_ConvertMethodToGetterProposal.java
2,588
public class ZenDiscoveryModule extends AbstractModule { private final List<Class<? extends UnicastHostsProvider>> unicastHostProviders = Lists.newArrayList(); /** * Adds a custom unicast hosts provider to build a dynamic list of unicast hosts list when doing unicast discovery. */ public ZenDisc...
1no label
src_main_java_org_elasticsearch_discovery_zen_ZenDiscoveryModule.java
442
static final class Fields { static final XContentBuilderString VERSIONS = new XContentBuilderString("versions"); static final XContentBuilderString VERSION = new XContentBuilderString("version"); static final XContentBuilderString VM_NAME = new XContentBuilderString("vm_name"...
0true
src_main_java_org_elasticsearch_action_admin_cluster_stats_ClusterStatsNodes.java
55
public class TitanConfigurationException extends TitanException { private static final long serialVersionUID = 4056436257763972423L; /** * @param msg Exception message */ public TitanConfigurationException(String msg) { super(msg); } /** * @param msg Exception message ...
0true
titan-core_src_main_java_com_thinkaurelius_titan_core_TitanConfigurationException.java
3,717
public final class EntryTaskSchedulerFactory { private EntryTaskSchedulerFactory() { } /** * Creates a new EntryTaskScheduler that will run all second operations in bulk. * Imagine a write-behind map where dirty entries will be stored in bulk. * Note that each key can be only once; meaning ...
1no label
hazelcast_src_main_java_com_hazelcast_util_scheduler_EntryTaskSchedulerFactory.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
820
public class MultiSearchRequest extends ActionRequest<MultiSearchRequest> { private List<SearchRequest> requests = Lists.newArrayList(); private IndicesOptions indicesOptions = IndicesOptions.strict(); /** * Add a search request to execute. Note, the order is important, the search response will be r...
1no label
src_main_java_org_elasticsearch_action_search_MultiSearchRequest.java
448
public class ClusterStatsRequest extends NodesOperationRequest<ClusterStatsRequest> { /** * Get stats from nodes based on the nodes ids specified. If none are passed, stats * based on all nodes will be returned. */ public ClusterStatsRequest(String... nodesIds) { super(nodesIds); } ...
0true
src_main_java_org_elasticsearch_action_admin_cluster_stats_ClusterStatsRequest.java
128
public interface StructuredContentDao { /** * Returns the <code>StructuredContent</code> item that matches * the passed in Id. * @param contentId * @return the found item or null if it does not exist */ public StructuredContent findStructuredContentById(Long contentId); /** * ...
0true
admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_structure_dao_StructuredContentDao.java
98
final Thread thread = new Thread() { public void run() { try { Thread.sleep(10); } catch (InterruptedException e) { e.printStackTrace(); } hz1.getLifecycleService().terminate(); } ...
0true
hazelcast-client_src_test_java_com_hazelcast_client_ClientIssueTest.java
117
public class ExportModuleImportProposal implements ICompletionProposal, ICompletionProposalExtension6 { private final IProject project; private final Unit unit; private final String name; ExportModuleImportProposal(IProject project, Unit unit, String name) { this.project = pr...
0true
plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_correct_ExportModuleImportProposal.java
371
@Service("blTranslationService") public class TranslationServiceImpl implements TranslationService { protected static final Log LOG = LogFactory.getLog(TranslationServiceImpl.class); @Resource(name = "blTranslationDao") protected TranslationDao dao; protected Cache cache; @Override ...
0true
common_src_main_java_org_broadleafcommerce_common_i18n_service_TranslationServiceImpl.java
1,271
return nodesService.execute(new TransportClientNodesService.NodeCallback<ActionFuture<Response>>() { @Override public ActionFuture<Response> doWithNode(DiscoveryNode node) throws ElasticsearchException { return proxy.execute(node, request); } });
1no label
src_main_java_org_elasticsearch_client_transport_support_InternalTransportClusterAdminClient.java
296
public class NoPossibleResultsException extends RuntimeException { private static final long serialVersionUID = 2422275745139590462L; // for serialization purposes protected NoPossibleResultsException() { super(); } public NoPossibleResultsException(String message, Throwable cause...
0true
common_src_main_java_org_broadleafcommerce_common_exception_NoPossibleResultsException.java
1,392
public static class Builder { private String uuid; private long version; private Settings transientSettings = ImmutableSettings.Builder.EMPTY_SETTINGS; private Settings persistentSettings = ImmutableSettings.Builder.EMPTY_SETTINGS; private final ImmutableOpenMap.Builder<St...
1no label
src_main_java_org_elasticsearch_cluster_metadata_MetaData.java
376
public interface ODatabaseRecord extends ODatabaseComplex<ORecordInternal<?>> { /** * Browses all the records of the specified cluster. * * @param iClusterName * Cluster name to iterate * @return Iterator of ODocument instances */ public <REC extends ORecordInternal<?>> ORecordIteratorC...
0true
core_src_main_java_com_orientechnologies_orient_core_db_record_ODatabaseRecord.java
596
public class IndicesSegmentsRequestBuilder extends BroadcastOperationRequestBuilder<IndicesSegmentsRequest, IndicesSegmentResponse, IndicesSegmentsRequestBuilder> { public IndicesSegmentsRequestBuilder(IndicesAdminClient indicesClient) { super((InternalIndicesAdminClient) indicesClient, new IndicesSegments...
0true
src_main_java_org_elasticsearch_action_admin_indices_segments_IndicesSegmentsRequestBuilder.java
597
@RunWith(HazelcastSerialClassRunner.class) @Category(NightlyTest.class) public class JoinStressTest extends HazelcastTestSupport { @Test public void testTCPIPJoinWithManyNodes() throws UnknownHostException, InterruptedException { final int count = 20; final CountDownLatch latch = new CountDownL...
0true
hazelcast_src_test_java_com_hazelcast_cluster_JoinStressTest.java
384
static class CountDownValueNullListener extends MyEntryListener { public CountDownValueNullListener(int latchCount){ super(latchCount); } public CountDownValueNullListener(int addlatchCount, int removeLatchCount){ super(addlatchCount, removeLatchCount); } ...
0true
hazelcast-client_src_test_java_com_hazelcast_client_multimap_ClientMultiMapListenersTest.java
151
public class ItemCriteriaDTO implements Serializable { private static final long serialVersionUID = 1L; protected Integer qty; protected String matchRule; public Integer getQty() { return qty; } public void setQty(Integer qty) { this.qty = qty; } public String getMat...
0true
admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_structure_dto_ItemCriteriaDTO.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,198
public static class FileInfo { private final String name; private final String physicalName; private final long length; private final String checksum; private final ByteSizeValue partSize; private final long partBytes; private final long numberOfParts; ...
1no label
src_main_java_org_elasticsearch_index_snapshots_blobstore_BlobStoreIndexShardSnapshot.java
273
public class EmailServiceMDP implements MessageListener { @Resource(name = "blMessageCreator") private MessageCreator messageCreator; /* * (non-Javadoc) * @see javax.jms.MessageListener#onMessage(javax.jms.Message) */ @SuppressWarnings("unchecked") public void onMessage(Message mess...
0true
common_src_main_java_org_broadleafcommerce_common_email_service_jms_EmailServiceMDP.java
674
constructors[COLLECTION_PREPARE_BACKUP] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() { public IdentifiedDataSerializable createNew(Integer arg) { return new CollectionPrepareBackupOperation(); } };
0true
hazelcast_src_main_java_com_hazelcast_collection_CollectionDataSerializerHook.java
692
public class CollectionPortableHook implements PortableHook { public static final int F_ID = FactoryIdHelper.getFactoryId(FactoryIdHelper.COLLECTION_PORTABLE_FACTORY, -20); public static final int COLLECTION_SIZE = 1; public static final int COLLECTION_CONTAINS = 2; public static final int COLLECTION_...
0true
hazelcast_src_main_java_com_hazelcast_collection_CollectionPortableHook.java
359
public class Filter { String name; String condition; String entityImplementationClassName; List<String> indexColumnNames; public String getCondition() { return condition; } public void setCondition(String condition) { this.condition = condition; } public String ge...
0true
common_src_main_java_org_broadleafcommerce_common_filter_Filter.java
3,241
class PerSegmentComparator extends NestedWrappableComparator<BytesRef> { final Ordinals.Docs readerOrds; final BytesValues.WithOrdinals termsIndex; public PerSegmentComparator(BytesValues.WithOrdinals termsIndex) { this.readerOrds = termsIndex.ordinals(); this.termsI...
1no label
src_main_java_org_elasticsearch_index_fielddata_fieldcomparator_BytesRefOrdValComparator.java
73
public abstract class OSharedResourceAbstract { protected final ReadWriteLock lock = new ReentrantReadWriteLock(); protected void acquireSharedLock() { lock.readLock().lock(); } protected void releaseSharedLock() { lock.readLock().unlock(); } protected void acquireExclusiveLock() { lock.writeLock().lock(...
0true
commons_src_main_java_com_orientechnologies_common_concur_resource_OSharedResourceAbstract.java
953
clusterService.add(request.masterNodeTimeout(), new TimeoutClusterStateListener() { @Override public void postAdded() { ClusterState clusterStateV2 = clusterService.state(); if...
1no label
src_main_java_org_elasticsearch_action_support_master_TransportMasterNodeOperationAction.java
3,411
public class NodeEngineImpl implements NodeEngine { private final Node node; private final ILogger logger; private final ServiceManager serviceManager; private final TransactionManagerServiceImpl transactionManagerService; private final ProxyServiceImpl proxyService; private final WanR...
1no label
hazelcast_src_main_java_com_hazelcast_spi_impl_NodeEngineImpl.java
145
final class HazelcastClientManagedContext implements ManagedContext { private final HazelcastInstance instance; private final ManagedContext externalContext; private final boolean hasExternalContext; public HazelcastClientManagedContext(final HazelcastInstance instance, final ManagedContext externalCo...
0true
hazelcast-client_src_main_java_com_hazelcast_client_HazelcastClientManagedContext.java
204
public abstract class AbstractHydratedCacheManager implements CacheEventListener, HydratedCacheManager, HydratedAnnotationManager { private static final Log LOG = LogFactory.getLog(AbstractHydratedCacheManager.class); private Map<String, HydrationDescriptor> hydrationDescriptors = Collections.synchronizedMap(...
0true
common_src_main_java_org_broadleafcommerce_common_cache_engine_AbstractHydratedCacheManager.java
238
XPostingsHighlighter highlighter = new XPostingsHighlighter() { Iterator<String> valuesIterator = Arrays.asList(firstValue, secondValue, thirdValue).iterator(); Iterator<Integer> offsetsIterator = Arrays.asList(0, firstValue.length() + 1, secondValue.length() + 1).iterator(); ...
0true
src_test_java_org_apache_lucene_search_postingshighlight_XPostingsHighlighterTests.java
471
public interface ClientExecutionService { void executeInternal(Runnable command); <T> ICompletableFuture<T> submitInternal(Callable<T> command); void execute(Runnable command); ICompletableFuture<?> submit(Runnable task); <T> ICompletableFuture<T> submit(Callable<T> task); ScheduledFuture<...
0true
hazelcast-client_src_main_java_com_hazelcast_client_spi_ClientExecutionService.java
41
static class BaseIterator<K,V> extends Traverser<K,V> { final ConcurrentHashMapV8<K,V> map; Node<K,V> lastReturned; BaseIterator(Node<K,V>[] tab, int size, int index, int limit, ConcurrentHashMapV8<K,V> map) { super(tab, size, index, limit); this.m...
0true
src_main_java_jsr166e_ConcurrentHashMapV8.java
619
public class NodeMulticastListener implements MulticastListener { final Node node; final Set<String> trustedInterfaces; final ILogger logger; public NodeMulticastListener(Node node) { this.node = node; this.trustedInterfaces = node.getConfig().getNetworkConfig() .getJoi...
1no label
hazelcast_src_main_java_com_hazelcast_cluster_NodeMulticastListener.java
116
public class TestJtaCompliance extends AbstractNeo4jTestCase { public class SimpleTxHook implements Synchronization { private volatile boolean gotBefore, gotAfter; @Override public void beforeCompletion() { gotBefore = true; } @Override publi...
0true
community_kernel_src_test_java_org_neo4j_kernel_impl_transaction_TestJtaCompliance.java
1,476
public abstract class OSQLFunctionMove extends OSQLFunctionConfigurableAbstract { public static final String NAME = "move"; public OSQLFunctionMove() { super(NAME, 1, 2); } public OSQLFunctionMove(final String iName, final int iMin, final int iMax) { super(iName, iMin, iMax); } protected abstract...
1no label
graphdb_src_main_java_com_orientechnologies_orient_graph_sql_functions_OSQLFunctionMove.java
430
public class TransportClusterStateAction extends TransportMasterNodeReadOperationAction<ClusterStateRequest, ClusterStateResponse> { private final ClusterName clusterName; @Inject public TransportClusterStateAction(Settings settings, TransportService transportService, ClusterService clusterService, Thread...
0true
src_main_java_org_elasticsearch_action_admin_cluster_state_TransportClusterStateAction.java
776
public class MoreLikeThisRequest extends ActionRequest<MoreLikeThisRequest> { private static final XContentType contentType = Requests.CONTENT_TYPE; private String index; private String type; private String id; private String routing; private String[] fields; private float percentTerm...
0true
src_main_java_org_elasticsearch_action_mlt_MoreLikeThisRequest.java