Unnamed: 0
int64
0
6.45k
func
stringlengths
29
253k
target
class label
2 classes
project
stringlengths
36
167
195
Analyzer analyzer = new Analyzer() { @Override protected TokenStreamComponents createComponents(String fieldName, Reader reader) { Tokenizer t = new WhitespaceTokenizer(Lucene.VERSION, reader); r...
0true
src_test_java_org_apache_lucene_analysis_miscellaneous_TruncateTokenFilterTests.java
941
Runnable lockRunnable = new Runnable() { public void run() { lock.lock(); } };
0true
hazelcast_src_test_java_com_hazelcast_concurrent_lock_LockTest.java
132
public class ReadPastEndException extends Exception { public ReadPastEndException() { super(); } }
0true
community_kernel_src_main_java_org_neo4j_kernel_impl_transaction_xaframework_ReadPastEndException.java
85
public class ConvertGetterToMethodProposal extends CorrectionProposal { public static void addConvertGetterToMethodProposal(Collection<ICompletionProposal> proposals, CeylonEditor editor, IFile file, Node node) { Value getter = null; Tree.Type type = null; if (node instanceof ...
0true
plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_correct_ConvertGetterToMethodProposal.java
1,377
public class IndexMetaData { public interface Custom { String type(); interface Factory<T extends Custom> { String type(); T readFrom(StreamInput in) throws IOException; void writeTo(T customIndexMetaData, StreamOutput out) throws IOException; ...
1no label
src_main_java_org_elasticsearch_cluster_metadata_IndexMetaData.java
241
private static class CommandFactory extends XaCommandFactory { private final NeoStore neoStore; private final IndexingService indexingService; CommandFactory( NeoStore neoStore, IndexingService indexingService ) { this.neoStore = neoStore; this.indexingSe...
0true
community_kernel_src_main_java_org_neo4j_kernel_impl_nioneo_xa_NeoStoreXaDataSource.java
1,620
threadPool.generic().execute(new Runnable() { @Override public void run() { for (DiscoveryNode node : nodesDelta.removedNodes()) { transportService.disconnectFromNode(node); ...
0true
src_main_java_org_elasticsearch_cluster_service_InternalClusterService.java
923
registerLockStoreConstructor(SERVICE_NAME, new ConstructorFunction<ObjectNamespace, LockStoreInfo>() { public LockStoreInfo createNew(ObjectNamespace key) { return new LockStoreInfo() { @Override public int getBackupCount() { ...
0true
hazelcast_src_main_java_com_hazelcast_concurrent_lock_LockServiceImpl.java
3,211
constructors[REPL_CLEAR_MESSAGE] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() { public IdentifiedDataSerializable createNew(Integer arg) { return new VectorClock(); } };
1no label
hazelcast_src_main_java_com_hazelcast_replicatedmap_operation_ReplicatedMapDataSerializerHook.java
1,865
boolean b = h1.executeTransaction(options, new TransactionalTask<Boolean>() { public Boolean execute(TransactionalTaskContext context) throws TransactionException { final TransactionalMap<Object, Object> txMap = context.getMap("default"); txMap.put("3", "3"); ...
0true
hazelcast_src_test_java_com_hazelcast_map_MapTransactionTest.java
3,072
public class CloseEngineException extends EngineException { public CloseEngineException(ShardId shardId, String msg) { super(shardId, msg); } public CloseEngineException(ShardId shardId, String msg, Throwable cause) { super(shardId, msg, cause); } }
0true
src_main_java_org_elasticsearch_index_engine_CloseEngineException.java
218
private static final ThreadLocal<ThreadLocalManager> THREAD_LOCAL_MANAGER = new ThreadLocal<ThreadLocalManager>() { @Override protected ThreadLocalManager initialValue() { return new ThreadLocalManager(); } };
0true
common_src_main_java_org_broadleafcommerce_common_classloader_release_ThreadLocalManager.java
1,961
@Repository("blRoleDao") public class RoleDaoImpl implements RoleDao { @PersistenceContext(unitName = "blPU") protected EntityManager em; @Resource(name = "blEntityConfiguration") protected EntityConfiguration entityConfiguration; public Address readAddressById(Long id) { return (Address)...
1no label
core_broadleaf-profile_src_main_java_org_broadleafcommerce_profile_core_dao_RoleDaoImpl.java
160
private final class MultiTargetCallback { final Collection<Address> targets; final ConcurrentMap<Address, Object> results; private MultiTargetCallback(Collection<Address> targets) { this.targets = synchronizedSet(new HashSet<Address>(targets)); this.results = new Co...
0true
hazelcast_src_main_java_com_hazelcast_client_MultiTargetClientRequest.java
150
public final class LifecycleServiceImpl implements LifecycleService { private final HazelcastClient client; private final ConcurrentMap<String, LifecycleListener> lifecycleListeners = new ConcurrentHashMap<String, LifecycleListener>(); private final AtomicBoolean active = new AtomicBoolean(fals...
0true
hazelcast-client_src_main_java_com_hazelcast_client_LifecycleServiceImpl.java
430
public interface IndexRetriever { /** * Returns the {@link KeyInformation} for a particular key in a given store. * * @param store * @param key * @return */ public KeyInformation get(String store, String key); /** * Returns a {...
0true
titan-core_src_main_java_com_thinkaurelius_titan_diskstorage_indexing_KeyInformation.java
1,011
public static class Order { }
0true
core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_order_domain_FulfillmentOptionImpl.java
1,808
private static class ChangeStateEntryProcessor implements EntryProcessor, EntryBackupProcessor { ChangeStateEntryProcessor() { } public Object process(Map.Entry entry) { SampleObjects.Employee value = (SampleObjects.Employee) entry.getValue(); value.setState(SampleO...
0true
hazelcast_src_test_java_com_hazelcast_map_MapClientRequestTest.java
4,890
public class RestNodesAction extends AbstractCatAction { @Inject public RestNodesAction(Settings settings, Client client, RestController controller) { super(settings, client); controller.registerHandler(GET, "/_cat/nodes", this); } @Override void documentation(StringBuilder sb) { ...
1no label
src_main_java_org_elasticsearch_rest_action_cat_RestNodesAction.java
288
public class CassandraDaemonWrapper { private static final Logger log = LoggerFactory.getLogger(CassandraDaemonWrapper.class); private static String activeConfig; private static boolean started; public static synchronized void start(String config) { if (started) { if...
0true
titan-cassandra_src_main_java_com_thinkaurelius_titan_diskstorage_cassandra_utils_CassandraDaemonWrapper.java
2,842
public class ChineseAnalyzerProvider extends AbstractIndexAnalyzerProvider<ChineseAnalyzer> { private final ChineseAnalyzer analyzer; @Inject public ChineseAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, @Assisted String name, @Assisted Settings settings) { super(index, indexS...
0true
src_main_java_org_elasticsearch_index_analysis_ChineseAnalyzerProvider.java
2,096
static class Entry { final HandlesStreamInput handles; Entry(HandlesStreamInput handles) { this.handles = handles; } }
0true
src_main_java_org_elasticsearch_common_io_stream_CachedStreamInput.java
3,749
public class TTLMappingTests extends ElasticsearchTestCase { @Test public void testSimpleDisabled() throws Exception { String mapping = XContentFactory.jsonBuilder().startObject().startObject("type").endObject().string(); DocumentMapper docMapper = MapperTestUtils.newParser().parse(mapping); ...
0true
src_test_java_org_elasticsearch_index_mapper_ttl_TTLMappingTests.java
1,576
public class DiskThresholdDecider extends AllocationDecider { private volatile Double freeDiskThresholdLow; private volatile Double freeDiskThresholdHigh; private volatile ByteSizeValue freeBytesThresholdLow; private volatile ByteSizeValue freeBytesThresholdHigh; private volatile boolean enabled; ...
0true
src_main_java_org_elasticsearch_cluster_routing_allocation_decider_DiskThresholdDecider.java
527
public class DependencyLicenseCopy extends Copy { protected File licenseDir = null; protected Vector<ResourceCollection> rcs = new Vector<ResourceCollection>(); @SuppressWarnings("unchecked") public void execute() throws BuildException { super.execute(); try { for (int ...
0true
common_src_main_java_org_broadleafcommerce_common_util_DependencyLicenseCopy.java
233
public interface SystemProperty extends Serializable { public Long getId(); public void setId(Long id); public String getName(); public void setName(String name); public String getValue(); public void setValue(String value); }
0true
common_src_main_java_org_broadleafcommerce_common_config_domain_SystemProperty.java
193
@Embeddable public class Auditable implements Serializable { private static final long serialVersionUID = 1L; @Column(name = "DATE_CREATED", updatable = false) @Temporal(TemporalType.TIMESTAMP) @AdminPresentation(friendlyName = "Auditable_Date_Created", order = 1000, tab = Presentation.Tab...
1no label
common_src_main_java_org_broadleafcommerce_common_audit_Auditable.java
352
NODE { @Override public Connection connect(Configuration config) throws IOException { log.debug("Configuring Node Client"); ImmutableSettings.Builder settingsBuilder = settingsBuilder(config); if (config.has(ElasticSearchIndex.TTL_INTERVAL)) { S...
0true
titan-es_src_main_java_com_thinkaurelius_titan_diskstorage_es_ElasticSearchSetup.java
780
public class CollectionTxnRemoveBackupOperation extends CollectionOperation implements BackupOperation { private long itemId; public CollectionTxnRemoveBackupOperation() { } public CollectionTxnRemoveBackupOperation(String name, long itemId) { super(name); this.itemId = itemId; } ...
0true
hazelcast_src_main_java_com_hazelcast_collection_txn_CollectionTxnRemoveBackupOperation.java
207
private class ClientPacketProcessor implements Runnable { final ClientPacket packet; ClientPacketProcessor(ClientPacket packet) { this.packet = packet; } @Override public void run() { final ClientConnection conn = (ClientConnection) packet.getConn()...
1no label
hazelcast-client_src_main_java_com_hazelcast_client_connection_nio_ClientConnectionManagerImpl.java
1,226
public static enum Type { SOFT_THREAD_LOCAL { @Override <T> Recycler<T> build(Recycler.C<T> c, int limit, int estimatedThreadPoolSize, int availableProcessors) { return threadLocal(softFactory(dequeFactory(c, limit / estimatedThreadPoolSize))); } }...
0true
src_main_java_org_elasticsearch_cache_recycler_PageCacheRecycler.java
3,043
public static final class BloomFilteredTerms extends FilterAtomicReader.FilterTerms { private BloomFilter filter; public BloomFilteredTerms(Terms terms, BloomFilter filter) { super(terms); this.filter = filter; } public BloomFilter getFilter() { ...
0true
src_main_java_org_elasticsearch_index_codec_postingsformat_BloomFilterPostingsFormat.java
787
return new DataSerializableFactory() { @Override public IdentifiedDataSerializable create(int typeId) { switch (typeId) { case ADD_BACKUP: return new AddBackupOperation(); case ADD_AND_GET: ...
0true
hazelcast_src_main_java_com_hazelcast_concurrent_atomiclong_AtomicLongDataSerializerHook.java
1,726
@edu.umd.cs.findbugs.annotations.SuppressWarnings("SE_BAD_FIELD") public class DataAwareEntryEvent extends EntryEvent { private final static long serialVersionUID = 1; protected final Data dataKey; protected final Data dataNewValue; protected final Data dataOldValue; private final transient Ser...
1no label
hazelcast_src_main_java_com_hazelcast_map_DataAwareEntryEvent.java
1,192
public class PaymentContextImpl implements PaymentContext { protected Money originalPaymentAmount; protected Money remainingPaymentAmount; protected Money transactionAmount; protected Money remainingTransactionAmount; protected PaymentInfo paymentInfo; protected Referenced referencedPaymentInfo...
0true
core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_payment_service_PaymentContextImpl.java
873
public class FulfillmentGroupOfferPotential { protected Offer offer; protected Money totalSavings = new Money(BankersRounding.zeroAmount()); protected int priority; public Offer getOffer() { return offer; } public void setOffer(Offer offer) { this.offer = offer; ...
1no label
core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_offer_service_discount_FulfillmentGroupOfferPotential.java
1,922
Module assistedModule = new AbstractModule() { @SuppressWarnings("unchecked") // raw keys are necessary for the args array and return value protected void configure() { Binder binder = binder().withSource(method); int p = 0; for (Key<?> pa...
0true
src_main_java_org_elasticsearch_common_inject_assistedinject_FactoryProvider2.java
1,246
public class NodeClusterAdminClient extends AbstractClusterAdminClient implements InternalClusterAdminClient { private final ThreadPool threadPool; private final ImmutableMap<ClusterAction, TransportAction> actions; @Inject public NodeClusterAdminClient(Settings settings, ThreadPool threadPool, Map<G...
0true
src_main_java_org_elasticsearch_client_node_NodeClusterAdminClient.java
621
static final class Fields { static final XContentBuilderString INDICES = new XContentBuilderString("indices"); static final XContentBuilderString SHARDS = new XContentBuilderString("shards"); }
0true
src_main_java_org_elasticsearch_action_admin_indices_stats_IndicesStatsResponse.java
3,228
public abstract class ScriptDocValues { public static final ScriptDocValues EMPTY = new Empty(); public static final Strings EMPTY_STRINGS = new Strings(BytesValues.EMPTY); protected int docId; protected boolean listLoaded = false; public void setNextDocId(int docId) { this.docId = docId; ...
1no label
src_main_java_org_elasticsearch_index_fielddata_ScriptDocValues.java
1,153
public class StandardTransactionBuilder implements TransactionConfiguration, TransactionBuilder { private boolean isReadOnly = false; private boolean hasEnabledBatchLoading = false; private boolean assignIDsImmediately = false; private DefaultSchemaMaker defaultSchemaMaker; private boolean veri...
1no label
titan-core_src_main_java_com_thinkaurelius_titan_graphdb_transaction_StandardTransactionBuilder.java
322
public class JavaElementImageProvider { /** * Flags for the JavaImageLabelProvider: * Generate images with overlays. */ public final static int OVERLAY_ICONS= 0x1; /** * Generate small sized images. */ public final static int SMALL_ICONS= 0x2; /** * Use the 'light' s...
0true
plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_explorer_JavaElementImageProvider.java
379
public interface Locale extends Serializable { String getLocaleCode(); void setLocaleCode(String localeCode); public String getFriendlyName(); public void setFriendlyName(String friendlyName); public void setDefaultFlag(Boolean defaultFlag); public Boolean getDefaultFlag(); public Bro...
0true
common_src_main_java_org_broadleafcommerce_common_locale_domain_Locale.java
1,358
new ClusterStateUpdateTask() { @Override public ClusterState execute(ClusterState currentState) { List<ShardRoutingEntry> shardRoutingEntries = new ArrayList<ShardRoutingEntry>(); startedShardsQueue.drainTo(shardRou...
0true
src_main_java_org_elasticsearch_cluster_action_shard_ShardStateAction.java
1,773
public static class Ring<P extends ShapeBuilder> extends BaseLineStringBuilder<Ring<P>> { private final P parent; protected Ring(P parent) { this(parent, new ArrayList<Coordinate>()); } protected Ring(P parent, ArrayList<Coordinate> points) { super(points);...
0true
src_main_java_org_elasticsearch_common_geo_builders_BasePolygonBuilder.java
1,586
public class EnableAllocationTests extends ElasticsearchAllocationTestCase { private final ESLogger logger = Loggers.getLogger(EnableAllocationTests.class); @Test public void testClusterEnableNone() { AllocationService strategy = createAllocationService(settingsBuilder() .put(CLUST...
0true
src_test_java_org_elasticsearch_cluster_routing_allocation_decider_EnableAllocationTests.java
2,577
transportService.sendRequest(newState.nodes().masterNode(), RejoinClusterRequestHandler.ACTION, new RejoinClusterRequest(currentState.nodes().localNodeId()), new EmptyTransportResponseHandler(ThreadPool.Names.SAME) { @Override public void h...
0true
src_main_java_org_elasticsearch_discovery_zen_ZenDiscovery.java
1,414
private static final SoftLock LOCK_FAILURE = new SoftLock() {};
0true
hazelcast-hibernate_hazelcast-hibernate4_src_main_java_com_hazelcast_hibernate_distributed_IMapRegionCache.java
3,584
public static class TypeParser implements Mapper.TypeParser { @Override public Mapper.Builder parse(String name, Map<String, Object> node, ParserContext parserContext) throws MapperParsingException { FloatFieldMapper.Builder builder = floatField(name); parseNumberField(builde...
0true
src_main_java_org_elasticsearch_index_mapper_core_FloatFieldMapper.java
1,472
public class PlainShardsIterator implements ShardsIterator { private final List<ShardRouting> shards; private final int size; private final int index; private final int limit; private volatile int counter; public PlainShardsIterator(List<ShardRouting> shards) { this(shards, 0); ...
1no label
src_main_java_org_elasticsearch_cluster_routing_PlainShardsIterator.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
207
public static final Factory<StaticBuffer> STATIC_FACTORY = new Factory<StaticBuffer>() { @Override public StaticBuffer get(byte[] array, int offset, int limit) { return new StaticArrayBuffer(array, offset, limit); } };
0true
titan-core_src_main_java_com_thinkaurelius_titan_diskstorage_StaticBuffer.java
496
public class CloseIndexRequest extends AcknowledgedRequest<CloseIndexRequest> { private String[] indices; private IndicesOptions indicesOptions = IndicesOptions.fromOptions(false, false, true, false); CloseIndexRequest() { } /** * Constructs a new close index request for the specified index....
0true
src_main_java_org_elasticsearch_action_admin_indices_close_CloseIndexRequest.java
1,381
public interface OTxListener { public enum EVENT { BEFORE_COMMIT, AFTER_COMMIT, BEFORE_ROLLBACK, AFTER_ROLLBACK } public void onEvent(ORecordOperation iTxEntry, EVENT iEvent); }
0true
core_src_main_java_com_orientechnologies_orient_core_tx_OTxListener.java
1,320
public class FieldType implements Serializable, BroadleafEnumerationType { private static final long serialVersionUID = 1L; private static final Map<String, FieldType> TYPES = new LinkedHashMap<String, FieldType>(); public static final FieldType ID = new FieldType("id", "ID"); public static final Fie...
1no label
core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_search_domain_solr_FieldType.java
627
public abstract class AbstractModelVariableModifierProcessor extends AbstractElementProcessor { public AbstractModelVariableModifierProcessor(String elementName) { super(elementName); } /** * This method will handle calling the modifyModelAttributes abstract method and return * an "O...
0true
common_src_main_java_org_broadleafcommerce_common_web_dialect_AbstractModelVariableModifierProcessor.java
388
new Thread(){ public void run() { try { if(mm.tryLock(key, 10, TimeUnit.SECONDS)){ tryLockReturnsTrue.countDown(); } } catch (InterruptedException e) { e.printStackTrace(); ...
0true
hazelcast-client_src_test_java_com_hazelcast_client_multimap_ClientMultiMapLockTest.java
556
public class GetMappingsResponse extends ActionResponse { private ImmutableOpenMap<String, ImmutableOpenMap<String, MappingMetaData>> mappings = ImmutableOpenMap.of(); GetMappingsResponse(ImmutableOpenMap<String, ImmutableOpenMap<String, MappingMetaData>> mappings) { this.mappings = mappings; } ...
0true
src_main_java_org_elasticsearch_action_admin_indices_mapping_get_GetMappingsResponse.java
1,002
public class ReduceRequest extends SemaphoreRequest { public ReduceRequest() { } public ReduceRequest(String name, int permitCount) { super(name, permitCount); } @Override protected Operation prepareOperation() { return new ReduceOperation(name, permitCount); } @Overr...
0true
hazelcast_src_main_java_com_hazelcast_concurrent_semaphore_client_ReduceRequest.java
1,083
public class MyServiceConfigParser extends AbstractXmlConfigHelper implements ServiceConfigurationParser<MyServiceConfig> { public MyServiceConfig parse(Element element) { MyServiceConfig config = new MyServiceConfig(); for (org.w3c.dom.Node configNode : new AbstractXmlConfigHelper.IterableNodeList...
0true
hazelcast_src_test_java_com_hazelcast_config_MyServiceConfigParser.java
233
public class NioNeoDbPersistenceSource extends LifecycleAdapter implements PersistenceSource, EntityIdGenerator { private final String dataSourceName = null; private final XaDataSourceManager xaDataSourceManager; public NioNeoDbPersistenceSource(XaDataSourceManager xaDataSourceManager) { assert...
0true
community_kernel_src_main_java_org_neo4j_kernel_impl_nioneo_xa_NioNeoDbPersistenceSource.java
2,179
static class NotDeletedDocIdSet extends DocIdSet { private final DocIdSet innerSet; private final Bits liveDocs; NotDeletedDocIdSet(DocIdSet innerSet, Bits liveDocs) { this.innerSet = innerSet; this.liveDocs = liveDocs; } @Override public bo...
0true
src_main_java_org_elasticsearch_common_lucene_search_ApplyAcceptedDocsFilter.java
1,166
public interface PaymentInfo extends Serializable { public Long getId(); public void setId(Long id); public Order getOrder(); public void setOrder(Order order); public Address getAddress(); public void setAddress(Address address); public Phone getPhone(); public void setPhone(Pho...
0true
core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_payment_domain_PaymentInfo.java
1,909
new TypeConverter() { @SuppressWarnings("unchecked") public Object convert(String value, TypeLiteral<?> toType) { try { return Class.forName(value); } catch (ClassN...
0true
src_main_java_org_elasticsearch_common_inject_TypeConverterBindingProcessor.java
1,455
public class ShippingInfoForm implements Serializable { private static final long serialVersionUID = -7895489234675056031L; protected Address address = new AddressImpl(); protected String addressName; protected FulfillmentOption fulfillmentOption; protected Long fulfillmentOptionId; protected Persona...
0true
core_broadleaf-framework-web_src_main_java_org_broadleafcommerce_core_web_checkout_model_ShippingInfoForm.java
3,163
private final static class Empty extends BytesValues { Empty() { super(false); } @Override public int setDocument(int docId) { return 0; } @Override public BytesRef nextValue() { throw new ElasticsearchIllegalStateExcepti...
0true
src_main_java_org_elasticsearch_index_fielddata_BytesValues.java
3,700
public static class TypeParser implements Mapper.TypeParser { @Override public Mapper.Builder parse(String name, Map<String, Object> node, ParserContext parserContext) throws MapperParsingException { TypeFieldMapper.Builder builder = type(); parseField(builder, builder.name, ...
0true
src_main_java_org_elasticsearch_index_mapper_internal_TypeFieldMapper.java
679
public class PutWarmerAction extends IndicesAction<PutWarmerRequest, PutWarmerResponse, PutWarmerRequestBuilder> { public static final PutWarmerAction INSTANCE = new PutWarmerAction(); public static final String NAME = "indices/warmer/put"; private PutWarmerAction() { super(NAME); } @Over...
0true
src_main_java_org_elasticsearch_action_admin_indices_warmer_put_PutWarmerAction.java
1,181
public interface OQueryOperatorFactory { /** * @return set of operators */ Set<OQueryOperator> getOperators(); }
0true
core_src_main_java_com_orientechnologies_orient_core_sql_operator_OQueryOperatorFactory.java
495
return scheduledExecutor.schedule(new Runnable() { public void run() { executeInternal(command); } }, delay, unit);
1no label
hazelcast-client_src_main_java_com_hazelcast_client_spi_impl_ClientExecutionServiceImpl.java
1,435
public class CategoryLinkTag extends AbstractCatalogTag { private static final long serialVersionUID = 1L; private Category category; @Override public void doTag() throws JspException, IOException { JspWriter out = getJspContext().getOut(); if (category != null) out.println(getUrl(ca...
0true
core_broadleaf-framework-web_src_main_java_org_broadleafcommerce_core_web_catalog_taglib_CategoryLinkTag.java
2,831
@edu.umd.cs.findbugs.annotations.SuppressWarnings("EI_EXPOSE_REP") public final class MigrationOperation extends BaseMigrationOperation { private static final ResponseHandler ERROR_RESPONSE_HANDLER = new ResponseHandler() { @Override public void sendResponse(Object obj) { throw new Haze...
1no label
hazelcast_src_main_java_com_hazelcast_partition_impl_MigrationOperation.java
85
static class Node<K,V> implements Map.Entry<K,V> { final int hash; final K key; volatile V val; volatile Node<K,V> next; Node(int hash, K key, V val, Node<K,V> next) { this.hash = hash; this.key = key; this.val = val; this.next...
0true
src_main_java_jsr166e_ConcurrentHashMapV8.java
3,001
public static final class IdCacheSettings { public static final String ID_CACHE_TYPE = "index.cache.id.type"; }
0true
src_main_java_org_elasticsearch_index_cache_id_IdCacheModule.java
1,957
public final class Join { private Join() { } /** * Returns a string containing the {@code tokens}, converted to strings if * necessary, separated by {@code delimiter}. If {@code tokens} is empty, it * returns an empty string. * <p/> * <p>Each token will be converted to a {@link Cha...
0true
src_main_java_org_elasticsearch_common_inject_internal_Join.java
1,454
public class OServerCommandGetGephi extends OServerCommandAuthenticatedDbAbstract { private static final String[] NAMES = { "GET|gephi/*" }; public OServerCommandGetGephi() { } public OServerCommandGetGephi(final OServerCommandConfiguration iConfig) { } @Override public boolean execute(final OHttpReque...
1no label
graphdb_src_main_java_com_orientechnologies_orient_graph_server_command_OServerCommandGetGephi.java
3,693
public class TimestampFieldMapper extends DateFieldMapper implements InternalMapper, RootMapper { public static final String NAME = "_timestamp"; public static final String CONTENT_TYPE = "_timestamp"; public static final String DEFAULT_DATE_TIME_FORMAT = "dateOptionalTime"; public static class Defaul...
1no label
src_main_java_org_elasticsearch_index_mapper_internal_TimestampFieldMapper.java
2,097
public class QueryPartitionOperation extends AbstractMapOperation implements PartitionAwareOperation { private Predicate predicate; private QueryResult result; public QueryPartitionOperation(String mapName, Predicate predicate) { super(mapName); this.predicate = predicate; } publi...
1no label
hazelcast_src_main_java_com_hazelcast_map_operation_QueryPartitionOperation.java
629
public class PlotView implements PlotAbstraction { private final static Logger logger = LoggerFactory.getLogger(PlotView.class); private static final Timer timer = new Timer(); // Manifestation holding this plot private PlotViewManifestation plotUser; // Used in time synchronization line mode. private S...
1no label
fastPlotViews_src_main_java_gov_nasa_arc_mct_fastplot_bridge_PlotView.java
621
public class PrepareMergeOperation extends AbstractClusterOperation { private Address newTargetAddress; public PrepareMergeOperation() { } public PrepareMergeOperation(Address newTargetAddress) { this.newTargetAddress = newTargetAddress; } @Override public void run() { fi...
0true
hazelcast_src_main_java_com_hazelcast_cluster_PrepareMergeOperation.java
851
public class GetAndSetRequest extends ModifyRequest { public GetAndSetRequest() { } public GetAndSetRequest(String name, Data update) { super(name, update); } @Override protected Operation prepareOperation() { return new GetAndSetOperation(name, update); } @Override ...
0true
hazelcast_src_main_java_com_hazelcast_concurrent_atomicreference_client_GetAndSetRequest.java
1,538
public static class Map extends Mapper<NullWritable, FaunusVertex, WritableComparable, Text> { private String key; private boolean isVertex; private WritableHandler handler; private String elementKey; private SafeMapperOutputs outputs; @Override public void...
1no label
titan-hadoop-parent_titan-hadoop-core_src_main_java_com_thinkaurelius_titan_hadoop_mapreduce_transform_OrderMapReduce.java
1,131
public interface Client extends Endpoint { /** * Returns unique uuid for this client * * @return unique uuid for this client */ String getUuid(); /** * Returns socket address of this client * * @return socket address of this client */ InetSocketAddress getSocket...
0true
hazelcast_src_main_java_com_hazelcast_core_Client.java
1,548
public interface GatewayAllocator { /** * Apply all shards * @param allocation */ void applyStartedShards(StartedRerouteAllocation allocation); void applyFailedShards(FailedRerouteAllocation allocation); boolean allocateUnassigned(RoutingAllocation allocation); }
0true
src_main_java_org_elasticsearch_cluster_routing_allocation_allocator_GatewayAllocator.java
176
public strictfp class MersenneTwister extends java.util.Random implements Serializable, Cloneable { // Serialization private static final long serialVersionUID = -4035832775130174188L; // locked as of Version 15 // Period parameters private static final int N = 624; private static final int M = 397; private sta...
0true
commons_src_main_java_com_orientechnologies_common_util_MersenneTwister.java
110
private class TxHook implements javax.transaction.Synchronization { boolean gotBefore = false; boolean gotAfter = false; int statusBefore = -1; int statusAfter = -1; Transaction txBefore = null; Transaction txAfter = null; public void beforeCompletion() ...
0true
community_kernel_src_test_java_org_neo4j_kernel_impl_transaction_TestJtaCompliance.java
113
{ @Override public Object doWork( Void state ) { try { tm.begin(); tm.getTransaction().registerSynchronization( hook ); return null; } catch ( Exception...
0true
community_kernel_src_test_java_org_neo4j_kernel_impl_transaction_TestJtaCompliance.java
1,664
public interface PersistencePackageFactory { /** * Creates a persistence package for the given request. Different request types require different combinations * of attributes, which are generally self explanatory. * * @param request * @return the persistence package * * @see Pe...
0true
admin_broadleaf-open-admin-platform_src_main_java_org_broadleafcommerce_openadmin_server_factory_PersistencePackageFactory.java
1,933
public class AsynchronousComputationException extends ComputationException { public AsynchronousComputationException(Throwable cause) { super(cause); } }
0true
src_main_java_org_elasticsearch_common_inject_internal_AsynchronousComputationException.java
127
public class ForkJoinWorkerThread extends Thread { /* * ForkJoinWorkerThreads are managed by ForkJoinPools and perform * ForkJoinTasks. For explanation, see the internal documentation * of class ForkJoinPool. * * This class just maintains links to its pool and WorkQueue. The * pool fi...
0true
src_main_java_jsr166e_ForkJoinWorkerThread.java
151
public interface LoadBalancer { /** * Initializes the LoadBalancer. * * @param cluster the Cluster this LoadBalancer uses to select members from. * @param config the ClientConfig. */ void init(Cluster cluster, ClientConfig config); /** * Returns the next member to route to. ...
0true
hazelcast-client_src_main_java_com_hazelcast_client_LoadBalancer.java
170
public static interface ManagedBlocker { /** * Possibly blocks the current thread, for example waiting for * a lock or condition. * * @return {@code true} if no additional blocking is necessary * (i.e., if isReleasable would return true) * @throws Interr...
0true
src_main_java_jsr166y_ForkJoinPool.java
586
public interface FulfillmentPriceExceptionResponse extends Serializable { public boolean isErrorDetected(); public void setErrorDetected(boolean isErrorDetected); public String getErrorCode(); public void setErrorCode(String errorCode); public String getErrorText(); public void setErrorTex...
0true
common_src_main_java_org_broadleafcommerce_common_vendor_service_message_FulfillmentPriceExceptionResponse.java
260
public interface EmailTrackingOpens extends Serializable { /** * @return the id */ public abstract Long getId(); /** * @param id the id to set */ public abstract void setId(Long id); /** * @return the dateOpened */ public abstract Date getDateOpened(); /** ...
0true
common_src_main_java_org_broadleafcommerce_common_email_domain_EmailTrackingOpens.java
840
LINKSET("LinkSet", 15, new Class<?>[] { Set.class }, new Class<?>[] { Set.class }) { },
0true
core_src_main_java_com_orientechnologies_orient_core_metadata_schema_OType.java
3,220
public abstract class LongValues { /** * An empty {@link LongValues instance} */ public static final LongValues EMPTY = new Empty(); private final boolean multiValued; protected int docId; /** * Creates a new {@link LongValues} instance * @param multiValued <code>true</code> ...
0true
src_main_java_org_elasticsearch_index_fielddata_LongValues.java
3,115
public class RollbackFailedEngineException extends EngineException { public RollbackFailedEngineException(ShardId shardId, Throwable t) { super(shardId, "Rollback failed", t); } }
0true
src_main_java_org_elasticsearch_index_engine_RollbackFailedEngineException.java
3,023
public abstract class AbstractDocValuesFormatProvider implements DocValuesFormatProvider { private final String name; protected AbstractDocValuesFormatProvider(String name) { this.name = name; } public String name() { return name; } }
0true
src_main_java_org_elasticsearch_index_codec_docvaluesformat_AbstractDocValuesFormatProvider.java
1,304
interface Factory<T extends Custom> { String type(); T readFrom(StreamInput in) throws IOException; void writeTo(T customState, StreamOutput out) throws IOException; void toXContent(T customState, XContentBuilder builder, ToXContent.Params params); }
0true
src_main_java_org_elasticsearch_cluster_ClusterState.java
1,202
public class PaymentException extends Exception { private static final long serialVersionUID = 1L; public PaymentException() { super(); } public PaymentException(String message, Throwable cause) { super(message, cause); } public PaymentException(String message) { supe...
0true
core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_payment_service_exception_PaymentException.java