Unnamed: 0
int64
0
6.45k
func
stringlengths
29
253k
target
class label
2 classes
project
stringlengths
36
167
680
public class PutWarmerRequest extends AcknowledgedRequest<PutWarmerRequest> { private String name; private SearchRequest searchRequest; PutWarmerRequest() { } /** * Constructs a new warmer. * * @param name The name of the warmer. */ public PutWarmerRequest(String name) { ...
0true
src_main_java_org_elasticsearch_action_admin_indices_warmer_put_PutWarmerRequest.java
269
public interface OCommandOutputListener { public void onMessage(String iText); }
0true
core_src_main_java_com_orientechnologies_orient_core_command_OCommandOutputListener.java
28
public class FastDiskDataBufferHelper implements DataBufferHelper { public final PartitionDataBuffer newPartitionBuffer(int partitionNo) { return new PartitionFastDiskBuffer(partitionNo); } public final PartitionDataBuffer newPartitionBuffer(DataBufferEnv env) { assert env instanceof Fa...
0true
timeSequenceFeedAggregator_src_main_java_gov_nasa_arc_mct_buffer_disk_internal_FastDiskDataBufferHelper.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
826
return getDatabase().getStorage().callInLock(new Callable<OClass>() { @Override public OClass call() throws Exception { if (classes.containsKey(key)) throw new OSchemaException("Class " + iClassName + " already exists in current database"); final OClassImpl cls = new OClassImp...
0true
core_src_main_java_com_orientechnologies_orient_core_metadata_schema_OSchemaShared.java
893
declareRecordType(ODocument.RECORD_TYPE, "document", ODocument.class, new ORecordFactory() { public ORecord<?> newRecord() { return new ODocument(); } });
0true
core_src_main_java_com_orientechnologies_orient_core_record_ORecordFactoryManager.java
310
new OConfigurationChangeCallback() { public void change(final Object iCurrentValue, final Object iNewValue) { if ((Boolean) iNewValue) Orient.instance().getProfiler().startRecording(); else Orient.instance().getProfiler().stopRecording(); } }),
0true
core_src_main_java_com_orientechnologies_orient_core_config_OGlobalConfiguration.java
1,141
static class StatsResult { final String name; final long took; StatsResult(String name, long took) { this.name = name; this.took = took; } }
0true
src_test_java_org_elasticsearch_benchmark_search_aggregations_TermsAggregationSearchBenchmark.java
1,446
public class SnapshotMetaData implements MetaData.Custom { public static final String TYPE = "snapshots"; public static final Factory FACTORY = new Factory(); @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return fal...
1no label
src_main_java_org_elasticsearch_cluster_metadata_SnapshotMetaData.java
1,894
@RunWith(HazelcastSerialClassRunner.class) @Category(QuickTest.class) public class MigrationTest extends HazelcastTestSupport { @Test public void testMapMigration() throws InterruptedException { TestHazelcastInstanceFactory nodeFactory = createHazelcastInstanceFactory(3); Config cfg = new Confi...
0true
hazelcast_src_test_java_com_hazelcast_map_MigrationTest.java
763
shardAction.execute(shardRequest, new ActionListener<MultiGetShardResponse>() { @Override public void onResponse(MultiGetShardResponse response) { for (int i = 0; i < response.locations.size(); i++) { responses.set(response.location...
0true
src_main_java_org_elasticsearch_action_get_TransportMultiGetAction.java
568
public class OpenIndexAction extends IndicesAction<OpenIndexRequest, OpenIndexResponse, OpenIndexRequestBuilder> { public static final OpenIndexAction INSTANCE = new OpenIndexAction(); public static final String NAME = "indices/open"; private OpenIndexAction() { super(NAME); } @Override ...
0true
src_main_java_org_elasticsearch_action_admin_indices_open_OpenIndexAction.java
1,348
private class NodeIndexDeletedTransportHandler extends BaseTransportRequestHandler<NodeIndexDeletedMessage> { static final String ACTION = "cluster/nodeIndexDeleted"; @Override public NodeIndexDeletedMessage newInstance() { return new NodeIndexDeletedMessage(); } ...
0true
src_main_java_org_elasticsearch_cluster_action_index_NodeIndexDeletedAction.java
2,521
public class SmileXContentParser extends JsonXContentParser { public SmileXContentParser(JsonParser parser) { super(parser); } @Override public XContentType contentType() { return XContentType.SMILE; } }
0true
src_main_java_org_elasticsearch_common_xcontent_smile_SmileXContentParser.java
356
public class NodesStatsAction extends ClusterAction<NodesStatsRequest, NodesStatsResponse, NodesStatsRequestBuilder> { public static final NodesStatsAction INSTANCE = new NodesStatsAction(); public static final String NAME = "cluster/nodes/stats"; private NodesStatsAction() { super(NAME); } ...
0true
src_main_java_org_elasticsearch_action_admin_cluster_node_stats_NodesStatsAction.java
1,630
public class UpdateMapConfigOperation extends Operation { private String mapName; private MapConfig mapConfig; public UpdateMapConfigOperation() { } public UpdateMapConfigOperation(String mapName, MapConfig mapConfig) { this.mapName = mapName; this.mapConfig = mapConfig; } ...
0true
hazelcast_src_main_java_com_hazelcast_management_operation_UpdateMapConfigOperation.java
383
public class TransportClusterRerouteAction extends TransportMasterNodeOperationAction<ClusterRerouteRequest, ClusterRerouteResponse> { private final AllocationService allocationService; @Inject public TransportClusterRerouteAction(Settings settings, TransportService transportService, ClusterService cluste...
1no label
src_main_java_org_elasticsearch_action_admin_cluster_reroute_TransportClusterRerouteAction.java
656
new OProfiler.OProfilerHookValue() { public Object getValue() { return map != null ? map.getEntryPointSize() : "-"; } }, profilerMetadataPrefix + "items");
0true
core_src_main_java_com_orientechnologies_orient_core_index_engine_OMVRBTreeIndexEngine.java
6,452
clusterService.submitStateUpdateTask("cluster event from " + tribeName + ", " + event.source(), new ClusterStateUpdateTask() { @Override public ClusterState execute(ClusterState currentState) throws Exception { ClusterState tribeState = event.state(); ...
1no label
src_main_java_org_elasticsearch_tribe_TribeService.java
202
{ private final Map<Long, File> activeLogFiles = getActiveLogs( storeDir ); private final long highestLogVersion = max( getHighestHistoryLogVersion( fileSystem, storeDir, LOGICAL_LOG_DEFAULT_NAME ), maxKey( activeLogFiles ) ); @Override ...
0true
community_kernel_src_main_java_org_neo4j_kernel_impl_transaction_xaframework_LogExtractor.java
498
public class CloseIndexResponse extends AcknowledgedResponse { CloseIndexResponse() { } CloseIndexResponse(boolean acknowledged) { super(acknowledged); } @Override public void readFrom(StreamInput in) throws IOException { super.readFrom(in); readAcknowledged(in); }...
0true
src_main_java_org_elasticsearch_action_admin_indices_close_CloseIndexResponse.java
46
@Component("blRequestDTOCustomPersistenceHandler") public class RequestDTOCustomPersistenceHandler extends TimeDTOCustomPersistenceHandler { private static final Log LOG = LogFactory.getLog(RequestDTOCustomPersistenceHandler.class); @Override public Boolean canHandleInspect(PersistencePackage persistenceP...
0true
admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_admin_server_handler_RequestDTOCustomPersistenceHandler.java
1,487
@RunWith(HazelcastSerialClassRunner.class) @Category(QuickTest.class) public class HibernateSerializationHookAvailableTest { private static final Field ORIGINAL; private static final Field TYPE_MAP; static { try { ORIGINAL = HazelcastInstanceProxy.class.getDeclaredField("original"); ...
0true
hazelcast-hibernate_hazelcast-hibernate3_src_test_java_com_hazelcast_hibernate_serialization_HibernateSerializationHookAvailableTest.java
1,777
public class MultiLineStringBuilder extends ShapeBuilder { public static final GeoShapeType TYPE = GeoShapeType.MULTILINESTRING; private final ArrayList<BaseLineStringBuilder<?>> lines = new ArrayList<BaseLineStringBuilder<?>>(); public InternalLineStringBuilder linestring() { InternalLineStringB...
0true
src_main_java_org_elasticsearch_common_geo_builders_MultiLineStringBuilder.java
128
return new CorrectionProposal(description, change, null, IMPORT) { @Override public StyledString getStyledDisplayString() { return Highlights.styleProposal(getDisplayString(), true); } };
0true
plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_correct_ImportProposals.java
1,069
@Entity @Inheritance(strategy = InheritanceType.JOINED) @Table(name = "BLC_FULFILLMENT_WEIGHT_BAND") @Cache(usage = CacheConcurrencyStrategy.READ_WRITE, region = "blStandardElements") public class FulfillmentWeightBandImpl extends FulfillmentBandImpl implements FulfillmentWeightBand { private static final long ser...
0true
core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_order_fulfillment_domain_FulfillmentWeightBandImpl.java
1,956
public class MapReplaceIfSameRequest extends MapPutRequest { private Data testValue; public MapReplaceIfSameRequest() { } public MapReplaceIfSameRequest(String name, Data key, Data testValue, Data value, long threadId) { super(name, key, value, threadId); this.testValue = testValue; ...
0true
hazelcast_src_main_java_com_hazelcast_map_client_MapReplaceIfSameRequest.java
895
public interface PromotableOrderAdjustment extends Serializable { /** * Returns the associated promotableOrder * @return */ public PromotableOrder getPromotableOrder(); /** * Returns the associated promotableCandidateOrderOffer * @return */ public Offer getOffer(); /...
0true
core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_offer_service_discount_domain_PromotableOrderAdjustment.java
2,221
MULT { @Override public float combine(double queryBoost, double queryScore, double funcScore, double maxBoost) { return toFloat(queryBoost * queryScore * Math.min(funcScore, maxBoost)); } @Override public String getName() { return "multiply"; ...
0true
src_main_java_org_elasticsearch_common_lucene_search_function_CombineFunction.java
1,309
public class EmptyClusterInfoService extends AbstractComponent implements ClusterInfoService { private final static class Holder { private final static EmptyClusterInfoService instance = new EmptyClusterInfoService(); } private final ClusterInfo emptyClusterInfo; private EmptyClusterInfoServic...
0true
src_main_java_org_elasticsearch_cluster_EmptyClusterInfoService.java
1,665
@Service("blPersistencePackageFactory") public class PersistencePackageFactoryImpl implements PersistencePackageFactory { @Override public PersistencePackage create(PersistencePackageRequest request) { PersistencePerspective persistencePerspective = new PersistencePerspective(); persistenc...
1no label
admin_broadleaf-open-admin-platform_src_main_java_org_broadleafcommerce_openadmin_server_factory_PersistencePackageFactoryImpl.java
818
public abstract class AtomicLongBackupAwareOperation extends AtomicLongBaseOperation implements BackupAwareOperation { protected boolean shouldBackup = true; public AtomicLongBackupAwareOperation() { } public AtomicLongBackupAwareOperation(String name) { super(name); } @Overr...
0true
hazelcast_src_main_java_com_hazelcast_concurrent_atomiclong_operations_AtomicLongBackupAwareOperation.java
1,382
public class IndexTemplateMetaData { private final String name; private final int order; private final String template; private final Settings settings; // the mapping source should always include the type as top level private final ImmutableOpenMap<String, CompressedString> mappings; ...
1no label
src_main_java_org_elasticsearch_cluster_metadata_IndexTemplateMetaData.java
21
public class FastDiskBufferEnv implements DataBufferEnv, Cloneable { private static final Logger LOGGER = LoggerFactory.getLogger(FastDiskBufferEnv.class); private static final String META_DATABASE_PATH = "metaBuffer"; private static final String META_DATABASE_NAME = "meta"; private static enum ST...
0true
timeSequenceFeedAggregator_src_main_java_gov_nasa_arc_mct_buffer_config_FastDiskBufferEnv.java
636
public final class OIndexes { private static Set<OIndexFactory> FACTORIES = null; private static ClassLoader orientClassLoader = OIndexes.class.getClassLoader(); private OIndexes() { } /** * Cache a set of all factories. we do not use the service loader directly since it is not concurrent...
0true
core_src_main_java_com_orientechnologies_orient_core_index_OIndexes.java
1,833
public class MapKeySet implements IdentifiedDataSerializable { Set<Data> keySet; public MapKeySet(Set<Data> keySet) { this.keySet = keySet; } public MapKeySet() { } public Set<Data> getKeySet() { return keySet; } public void writeData(ObjectDataOutput out) throws IO...
0true
hazelcast_src_main_java_com_hazelcast_map_MapKeySet.java
409
public class ClientAtomicReferenceProxy<E> extends ClientProxy implements IAtomicReference<E> { private final String name; private volatile Data key; public ClientAtomicReferenceProxy(String instanceName, String serviceName, String objectId) { super(instanceName, serviceName, objectId); th...
1no label
hazelcast-client_src_main_java_com_hazelcast_client_proxy_ClientAtomicReferenceProxy.java
1,746
private static class FetchSerializedCount implements EntryProcessor<String, MyObject> { @Override public Object process(Map.Entry<String, MyObject> entry) { return entry.getValue().serializedCount; } @Override public EntryBackupProcessor<String, MyObject> getBac...
0true
hazelcast_src_test_java_com_hazelcast_map_EntryProcessorTest.java
751
public class TxnSetAddRequest extends TxnCollectionRequest { public TxnSetAddRequest() { } public TxnSetAddRequest(String name, Data value) { super(name, value); } @Override public Object innerCall() throws Exception { return getEndpoint().getTransactionContext(txnId).getSet(n...
0true
hazelcast_src_main_java_com_hazelcast_collection_client_TxnSetAddRequest.java
96
public static class GeoshapeSerializer implements AttributeSerializer<Geoshape> { @Override public void verifyAttribute(Geoshape value) { //All values of Geoshape are valid } @Override public Geoshape convert(Object value) { if (value.getClass().isAr...
0true
titan-core_src_main_java_com_thinkaurelius_titan_core_attribute_Geoshape.java
475
public class LocalRedirectStrategy implements RedirectStrategy { private boolean contextRelative = false; private Logger logger = Logger.getLogger(this.getClass()); private boolean enforcePortMatch = false; /* * (non-Javadoc) * * @see * org.springframework.security.web.RedirectStr...
0true
common_src_main_java_org_broadleafcommerce_common_security_LocalRedirectStrategy.java
1,593
public class ShardsLimitAllocationDecider extends AllocationDecider { /** * Controls the maximum number of shards per index on a single elastic * search node. Negative values are interpreted as unlimited. */ public static final String INDEX_TOTAL_SHARDS_PER_NODE = "index.routing.allocation.total...
0true
src_main_java_org_elasticsearch_cluster_routing_allocation_decider_ShardsLimitAllocationDecider.java
292
@Entity @Inheritance(strategy = InheritanceType.JOINED) @Table(name="BLC_DATA_DRVN_ENUM_VAL") @Cache(usage = CacheConcurrencyStrategy.READ_WRITE, region="blStandardElements") @AdminPresentationClass(friendlyName = "DataDrivenEnumerationValueImpl_friendyName") public class DataDrivenEnumerationValueImpl implements DataD...
0true
common_src_main_java_org_broadleafcommerce_common_enumeration_domain_DataDrivenEnumerationValueImpl.java
213
private class NavigateQuickAccessAction extends QuickMenuAction { public NavigateQuickAccessAction() { super(NAVIGATE_MENU_ID); } protected void fillMenu(IMenuManager menu) { IContributionItem[] cis = new NavigateMenuItems().getContributionItems(); for (IC...
0true
plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_editor_CeylonEditor.java
401
public enum ClientNearCacheType { /** * java.util.concurrent.ConcurrentMap implementation */ Map, /** * com.hazelcast.core.ReplicatedMap implementation */ ReplicatedMap }
0true
hazelcast-client_src_main_java_com_hazelcast_client_nearcache_ClientNearCacheType.java
274
public class PortableHelpersFactory implements PortableFactory { public static final int ID = 666; public Portable create(int classId) { if (classId == SimpleClientInterceptor.ID){ return new SimpleClientInterceptor(); } return null; } }
0true
hazelcast-client_src_test_java_com_hazelcast_client_helpers_PortableHelpersFactory.java
1,017
public class ReleaseBackupOperation extends SemaphoreBackupOperation implements IdentifiedDataSerializable { public ReleaseBackupOperation() { } public ReleaseBackupOperation(String name, int permitCount, String firstCaller) { super(name, permitCount, firstCaller); } @Override public ...
0true
hazelcast_src_main_java_com_hazelcast_concurrent_semaphore_operations_ReleaseBackupOperation.java
1,835
Runnable runnable = new Runnable() { public void run() { for (int i = 0; i < size; i++) { map1.lock(i); try { Thread.sleep(100); } catch (InterruptedException e) { } ...
0true
hazelcast_src_test_java_com_hazelcast_map_MapLockTest.java
259
class FindBodyVisitor extends Visitor { Node result; private void handle(Node that) { if (ts.getOffset()>=that.getStartIndex() && ts.getOffset()+ts.getLength()<=that.getStopIndex()+1) { result = that; } ...
0true
plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_editor_FormatBlockAction.java
1,135
public class HistogramAggregationSearchBenchmark { static final long COUNT = SizeValue.parseSizeValue("20m").singles(); static final int BATCH = 1000; static final int QUERY_WARMUP = 5; static final int QUERY_COUNT = 20; static final int NUMBER_OF_TERMS = 1000; public static void main(String[]...
0true
src_test_java_org_elasticsearch_benchmark_search_aggregations_HistogramAggregationSearchBenchmark.java
4,103
public class IncludeNestedDocsQuery extends Query { private final Filter parentFilter; private final Query parentQuery; // If we are rewritten, this is the original childQuery we // were passed; we use this for .equals() and // .hashCode(). This makes rewritten query equal the // original, so...
1no label
src_main_java_org_elasticsearch_index_search_nested_IncludeNestedDocsQuery.java
608
public class MemberInfoUpdateOperation extends AbstractClusterOperation implements JoinOperation { private Collection<MemberInfo> memberInfos; private long masterTime = Clock.currentTimeMillis(); private boolean sendResponse; public MemberInfoUpdateOperation() { memberInfos = new ArrayList<Mem...
0true
hazelcast_src_main_java_com_hazelcast_cluster_MemberInfoUpdateOperation.java
1,969
class IdleReachabilityHandler extends AbstractReachabilityHandler { private final long idleTimeOutInNanos; public IdleReachabilityHandler(long idleTimeOutInNanos) { assert idleTimeOutInNanos > 0L : String.format("Not valid idleTimeOutInNanos %d", idleTimeOutInNanos); this.idleTimeOutInNanos =...
0true
hazelcast_src_main_java_com_hazelcast_map_eviction_IdleReachabilityHandler.java
2,239
public class ChecksumIndexOutput extends IndexOutput { private final IndexOutput out; private final Checksum digest; public ChecksumIndexOutput(IndexOutput out, Checksum digest) { this.out = out; this.digest = digest; } public Checksum digest() { return digest; } ...
0true
src_main_java_org_elasticsearch_common_lucene_store_ChecksumIndexOutput.java
507
createIndexService.createIndex(updateRequest, new ClusterStateUpdateListener() { @Override public void onResponse(ClusterStateUpdateResponse response) { listener.onResponse(new CreateIndexResponse(response.isAcknowledged())); } @Override ...
0true
src_main_java_org_elasticsearch_action_admin_indices_create_TransportCreateIndexAction.java
2,032
new AssertTask() { @Override public void run() { assertEquals("Invalidation is not working on putAll()", 0, nearCache.size()); } }
0true
hazelcast_src_test_java_com_hazelcast_map_nearcache_NearCacheTest.java
218
new InPlaceMergeSorter() { @Override protected void swap(int i, int j) { String tmp = fields[i]; fields[i] = fields[j]; fields[j] = tmp; int tmp2 = maxPassages[i]; maxPassages[i] = maxPassages[j]; ...
0true
src_main_java_org_apache_lucene_search_postingshighlight_XPostingsHighlighter.java
717
@Test public class WOWCacheTest { private int systemOffset = 2 * (OIntegerSerializer.INT_SIZE + OLongSerializer.LONG_SIZE); private int pageSize = systemOffset + 8; private OLocalPaginatedStorage storageLocal; private String fileName; private OWriteA...
0true
core_src_test_java_com_orientechnologies_orient_core_index_hashindex_local_cache_WOWCacheTest.java
1,152
private class VertexConstructor implements Retriever<Long, InternalVertex> { private final boolean verifyExistence; private VertexConstructor(boolean verifyExistence) { this.verifyExistence = verifyExistence; } @Override public InternalVertex get(Long vertexid)...
1no label
titan-core_src_main_java_com_thinkaurelius_titan_graphdb_transaction_StandardTitanTx.java
1,123
public class OSQLFunctionFormat extends OSQLFunctionAbstract { public static final String NAME = "format"; public OSQLFunctionFormat() { super(NAME, 2, -1); } public Object execute(OIdentifiable iCurrentRecord, Object iCurrentResult, final Object[] iParameters, OCommandContext iContext) { final Object[] args ...
1no label
core_src_main_java_com_orientechnologies_orient_core_sql_functions_misc_OSQLFunctionFormat.java
36
private static final ThreadFactory tf = new ThreadFactory() { @Override public Thread newThread(Runnable r) { Thread t = Executors.defaultThreadFactory().newThread(r); t.setContextClassLoader(getClass().getClassLoader()); return t; } };
0true
timeSequenceFeedAggregator_src_main_java_gov_nasa_arc_mct_buffer_disk_internal_PartitionFastDiskBuffer.java
1,153
public interface PaymentInfoDao { public PaymentInfo readPaymentInfoById(Long paymentId); public PaymentInfo save(PaymentInfo paymentInfo); public PaymentResponseItem save(PaymentResponseItem paymentResponseItem); public PaymentLog save(PaymentLog log); public List<PaymentInfo> readPaymentInfos...
0true
core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_payment_dao_PaymentInfoDao.java
1,003
public class OStreamSerializerLiteral implements OStreamSerializer { public static final String NAME = "li"; public static final OStreamSerializerLiteral INSTANCE = new OStreamSerializerLiteral(); public String getName() { return NAME; } public Object fromStream(final byte[] iStream) throws IOExcep...
0true
core_src_main_java_com_orientechnologies_orient_core_serialization_serializer_stream_OStreamSerializerLiteral.java
539
public class DeleteMappingClusterStateUpdateRequest extends IndicesClusterStateUpdateRequest<DeleteMappingClusterStateUpdateRequest> { private String[] types; DeleteMappingClusterStateUpdateRequest() { } /** * Returns the type to be removed */ public String[] types() { return t...
0true
src_main_java_org_elasticsearch_action_admin_indices_mapping_delete_DeleteMappingClusterStateUpdateRequest.java
101
static final class TableStack<K,V> { int length; int index; Node<K,V>[] tab; TableStack<K,V> next; }
0true
src_main_java_jsr166e_ConcurrentHashMapV8.java
1,273
private class ChatCallback implements EntryListener { public ChatCallback() { } public void entryAdded(EntryEvent event) { if (!username.equals(event.getKey())) { System.out.println(event.getValue()); } } public void entryRemoved(Entr...
0true
hazelcast_src_main_java_com_hazelcast_examples_ChatApplication.java
253
private static abstract class PreferenceAction extends ResourceAction implements IUpdate { PreferenceAction(ResourceBundle bundle, String prefix, int style) { super(bundle, prefix, style); } }
0true
plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_editor_FoldingActionGroup.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
3,728
public class NullValueObjectMappingTests extends ElasticsearchTestCase { @Test public void testNullValueObject() throws IOException { String mapping = XContentFactory.jsonBuilder().startObject().startObject("type") .startObject("properties").startObject("obj1").field("type", "object").e...
0true
src_test_java_org_elasticsearch_index_mapper_object_NullValueObjectMappingTests.java
949
public class LockTestUtils { public static void lockByOtherThread(final ILock lock) { Thread t = new Thread() { public void run() { lock.lock(); } }; t.start(); try { t.join(); } catch (InterruptedException e) { ...
0true
hazelcast_src_test_java_com_hazelcast_concurrent_lock_LockTestUtils.java
735
public class IndexDeleteByQueryRequest extends IndexReplicationOperationRequest<IndexDeleteByQueryRequest> { private BytesReference source; private String[] types = Strings.EMPTY_ARRAY; @Nullable private Set<String> routing; @Nullable private String[] filteringAliases; IndexDeleteByQueryRe...
0true
src_main_java_org_elasticsearch_action_deletebyquery_IndexDeleteByQueryRequest.java
1,143
public class DuplicateInstanceNameException extends HazelcastException { public DuplicateInstanceNameException() { super(); } public DuplicateInstanceNameException(String message) { super(message); } }
0true
hazelcast_src_main_java_com_hazelcast_core_DuplicateInstanceNameException.java
1,085
@Service("blOrderMultishipOptionService") public class OrderMultishipOptionServiceImpl implements OrderMultishipOptionService { @Resource(name = "blOrderMultishipOptionDao") OrderMultishipOptionDao orderMultishipOptionDao; @Resource(name = "blAddressService") protected AddressService addressServic...
0true
core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_order_service_OrderMultishipOptionServiceImpl.java
114
{ @Override public Object doWork( Void state ) { try { tm.rollback(); } catch ( Exception e ) { throw new RuntimeException( e ); } ...
0true
community_kernel_src_test_java_org_neo4j_kernel_impl_transaction_TestJtaCompliance.java
1,478
public class RoutingNodesIterator implements Iterator<RoutingNode>, Iterable<MutableShardRouting> { private RoutingNode current; private final Iterator<RoutingNode> delegate; public RoutingNodesIterator(Iterator<RoutingNode> iterator) { delegate = iterator; } @O...
0true
src_main_java_org_elasticsearch_cluster_routing_RoutingNodes.java
1,447
static private class EvictionEntry implements Comparable<EvictionEntry> { final Object key; final Value value; private EvictionEntry(final Object key, final Value value) { this.key = key; this.value = value; } public int compareTo(final EvictionEntry...
1no label
hazelcast-hibernate_hazelcast-hibernate3_src_main_java_com_hazelcast_hibernate_local_LocalRegionCache.java
156
public static final Map<String,String> REGISTERED_LOG_MANAGERS = new HashMap<String, String>() {{ put("default","com.thinkaurelius.titan.diskstorage.log.kcvs.KCVSLogManager"); }};
0true
titan-core_src_main_java_com_thinkaurelius_titan_diskstorage_Backend.java
1,096
@RunWith(HazelcastParallelClassRunner.class) @Category(QuickTest.class) public class QueueConfigTest { /** * Test method for {@link com.hazelcast.config.QueueConfig#getName()}. */ @Test public void testGetName() { QueueConfig queueConfig = new QueueConfig(); assertNull(null, queue...
0true
hazelcast_src_test_java_com_hazelcast_config_QueueConfigTest.java
1,448
new OResourcePoolListener<ODatabaseDocumentTx, OrientBaseGraph>() { @Override public OrientGraph createNewResource(final ODatabaseDocumentTx iKey, final Object... iAdditionalArgs) { return new OrientGraph(iKey); } @Override public boolean reuseReso...
0true
graphdb_src_main_java_com_orientechnologies_orient_graph_gremlin_OGremlinHelper.java
1,847
lockService.registerLockStoreConstructor(SERVICE_NAME, new ConstructorFunction<ObjectNamespace, LockStoreInfo>() { public LockStoreInfo createNew(final ObjectNamespace key) { final MapContainer mapContainer = getMapContainer(key.getObjectName()); retur...
0true
hazelcast_src_main_java_com_hazelcast_map_MapService.java
161
@Test public class ShortSerializerTest { private static final int FIELD_SIZE = 2; private static final Short OBJECT = 1; private OShortSerializer shortSerializer; byte[] stream = new byte[FIELD_SIZE]; @BeforeClass public void beforeClass() { shortSerializer = new OShortS...
0true
commons_src_test_java_com_orientechnologies_common_serialization_types_ShortSerializerTest.java
553
public final class OClusterPositionNodeId extends OClusterPosition { private static final ONodeId INVALID_NODE_ID = ONodeId.valueOf(-1); private final ONodeId nodeId; public ONodeId getNodeId() { return nodeId; } public OClusterPositionNodeId(ONodeId nodeId) { this.nodeId = nodeId; } @Ov...
0true
core_src_main_java_com_orientechnologies_orient_core_id_OClusterPositionNodeId.java
1,788
public class FilterMapping { public static final String RANGE_SPECIFIER_REGEX = "->"; protected String fullPropertyName; protected List<String> filterValues = new ArrayList<String>(); protected List directFilterValues = new ArrayList(); protected SortDirection sortDirection; protected Restrict...
1no label
admin_broadleaf-open-admin-platform_src_main_java_org_broadleafcommerce_openadmin_server_service_persistence_module_criteria_FilterMapping.java
324
public class FakeXAResource implements XAResource { private String name = null; private int transactionTimeout = 0; private ArrayList<MethodCall> methodCalls = new ArrayList<MethodCall>(); public FakeXAResource( String name ) { this.name = name; } public String getName() { ...
0true
community_kernel_src_test_java_org_neo4j_kernel_impl_transaction_FakeXAResource.java
24
final class DescendingSubMapKeyIterator extends SubMapIterator<K> { DescendingSubMapKeyIterator(final OMVRBTreeEntryPosition<K, V> last, final OMVRBTreeEntryPosition<K, V> fence) { super(last, fence); } public K next() { return prevEntry().getKey(); } public void remo...
0true
commons_src_main_java_com_orientechnologies_common_collection_OMVRBTree.java
1,594
public class OSkippedOperationException extends OException { private static final long serialVersionUID = 1L; private final OAbstractRemoteTask task; public OSkippedOperationException(OAbstractRemoteTask iTask) { task = iTask; } public OAbstractRemoteTask getTask() { return task; } @Ove...
0true
server_src_main_java_com_orientechnologies_orient_server_distributed_OSkippedOperationException.java
1,969
public class Nullability { private Nullability() { } public static boolean allowsNull(Annotation[] annotations) { for (Annotation a : annotations) { if ("Nullable".equals(a.annotationType().getSimpleName())) { return true; } } return false; ...
0true
src_main_java_org_elasticsearch_common_inject_internal_Nullability.java
1,324
@RunWith(HazelcastParallelClassRunner.class) @Category(QuickTest.class) public class ExecutorServiceTest extends HazelcastTestSupport { public static final int simpleTestNodeCount = 3; public static final int COUNT = 1000; private IExecutorService createSingleNodeExecutorService(String name) { ret...
0true
hazelcast_src_test_java_com_hazelcast_executor_ExecutorServiceTest.java
2,381
GIGA { @Override public long toSingles(long size) { return x(size, C3 / C0, MAX / (C3 / C0)); } @Override public long toKilo(long size) { return x(size, C3 / C1, MAX / (C3 / C1)); } @Override public long toMega(long size) { ...
0true
src_main_java_org_elasticsearch_common_unit_SizeUnit.java
166
(new java.security.PrivilegedExceptionAction<sun.misc.Unsafe>() { public sun.misc.Unsafe run() throws Exception { Class<sun.misc.Unsafe> k = sun.misc.Unsafe.class; for (java.lang.reflect.Field f : k.getDeclaredFields()) { f.setA...
0true
src_main_java_jsr166y_ForkJoinPool.java
1,285
public class DataPropagationTask implements Callable<Void> { private ODatabaseDocumentTx baseDB; private ODatabaseDocumentTx testDB; public DataPropagationTask(ODatabaseDocumentTx baseDB, ODatabaseDocumentTx testDocumentTx) { this.baseDB = new ODatabaseDocumentTx(baseDB.getURL()); this.testDB...
0true
server_src_test_java_com_orientechnologies_orient_core_storage_impl_local_paginated_LocalPaginatedStorageCreateCrashRestore.java
1,326
public interface ProcessedClusterStateUpdateTask extends ClusterStateUpdateTask { /** * Called when the result of the {@link #execute(ClusterState)} have been processed * properly by all listeners. */ void clusterStateProcessed(String source, ClusterState oldState, ClusterState newState); }
0true
src_main_java_org_elasticsearch_cluster_ProcessedClusterStateUpdateTask.java
323
public class MixedConfiguration extends AbstractConfiguration { private final ReadConfiguration global; private final ReadConfiguration local; public MixedConfiguration(ConfigNamespace root, ReadConfiguration global, ReadConfiguration local) { super(root); Preconditions.checkNotNull(global...
0true
titan-core_src_main_java_com_thinkaurelius_titan_diskstorage_configuration_MixedConfiguration.java
1,234
addOperation(operations, new Runnable() { public void run() { IMap map = hazelcast.getMap("myMap"); int key = random.nextInt(SIZE); boolean locked = map.tryLock(key); if (locked) { try { Threa...
0true
hazelcast_src_main_java_com_hazelcast_examples_AllTest.java
2,905
public class NumericLongTokenizer extends NumericTokenizer { public NumericLongTokenizer(Reader reader, int precisionStep, char[] buffer) throws IOException { super(reader, new NumericTokenStream(precisionStep), buffer, null); } @Override protected void setValue(NumericTokenStream tokenStream,...
0true
src_main_java_org_elasticsearch_index_analysis_NumericLongTokenizer.java
631
public class IndexShardStatus implements Iterable<ShardStatus> { private final ShardId shardId; private final ShardStatus[] shards; IndexShardStatus(ShardId shardId, ShardStatus[] shards) { this.shardId = shardId; this.shards = shards; } public ShardId getShardId() { retu...
0true
src_main_java_org_elasticsearch_action_admin_indices_status_IndexShardStatus.java
1,149
public class GeoDistanceSearchBenchmark { public static void main(String[] args) throws Exception { Node node = NodeBuilder.nodeBuilder().clusterName(GeoDistanceSearchBenchmark.class.getSimpleName()).node(); Client client = node.client(); ClusterHealthResponse clusterHealthResponse = clie...
0true
src_test_java_org_elasticsearch_benchmark_search_geo_GeoDistanceSearchBenchmark.java
2,552
public static interface AckListener { void onNodeAck(DiscoveryNode node, @Nullable Throwable t); void onTimeout(); }
0true
src_main_java_org_elasticsearch_discovery_Discovery.java
307
public class ClusterHealthRequestBuilder extends MasterNodeReadOperationRequestBuilder<ClusterHealthRequest, ClusterHealthResponse, ClusterHealthRequestBuilder> { public ClusterHealthRequestBuilder(ClusterAdminClient clusterClient) { super((InternalClusterAdminClient) clusterClient, new ClusterHealthReques...
0true
src_main_java_org_elasticsearch_action_admin_cluster_health_ClusterHealthRequestBuilder.java
1,343
public interface UserConnection { UserConnectionImpl.UserConnectionPK getUserConnectionPK(); void setUserConnectionPK(UserConnectionImpl.UserConnectionPK userConnectionPK); Integer getRank(); void setRank(Integer rank); String getDisplayName(); void setDisplayName(String displayName); ...
0true
core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_social_domain_UserConnection.java