Unnamed: 0
int64
0
6.45k
func
stringlengths
29
253k
target
class label
2 classes
project
stringlengths
36
167
1,422
@XmlRootElement(name = "state") @XmlAccessorType(value = XmlAccessType.FIELD) public class StateWrapper extends BaseWrapper implements APIWrapper<State>, APIUnwrapper<State> { @XmlElement protected String name; @XmlElement protected String abbreviation; @Override public void wrapDetails(State...
0true
core_broadleaf-framework-web_src_main_java_org_broadleafcommerce_core_web_api_wrapper_StateWrapper.java
1,065
@RunWith(HazelcastParallelClassRunner.class) @Category(QuickTest.class) public class MapConfigTest { /** * Test method for {@link com.hazelcast.config.MapConfig#getName()}. */ @Test public void testGetName() { assertNull(new MapConfig().getName()); } /** * Test method for {@...
0true
hazelcast_src_test_java_com_hazelcast_config_MapConfigTest.java
420
public class RestoreSnapshotRequestBuilder extends MasterNodeOperationRequestBuilder<RestoreSnapshotRequest, RestoreSnapshotResponse, RestoreSnapshotRequestBuilder> { /** * Constructs new restore snapshot request builder * * @param clusterAdminClient cluster admin client */ public RestoreSn...
0true
src_main_java_org_elasticsearch_action_admin_cluster_snapshots_restore_RestoreSnapshotRequestBuilder.java
393
public interface IndexProvider extends IndexInformation { /** * This method registers a new key for the specified index store with the given data type. This allows the IndexProvider * to prepare the index if necessary. * * It is expected that this method is first called with each new key to inf...
0true
titan-core_src_main_java_com_thinkaurelius_titan_diskstorage_indexing_IndexProvider.java
380
public class AnnotationIterator implements Iterator<Annotation> { private Iterator<Annotation> iterator; private Annotation nextAnnotation; private boolean includeRefinementAnnotations; /** * Returns a new JavaAnnotationIterator. * @param parent the parent iterator to iterate over annota...
1no label
plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_hover_AnnotationIterator.java
537
@Deprecated public class TransportGatewaySnapshotAction extends TransportBroadcastOperationAction<GatewaySnapshotRequest, GatewaySnapshotResponse, ShardGatewaySnapshotRequest, ShardGatewaySnapshotResponse> { private final IndicesService indicesService; @Inject public TransportGatewaySnapshotAction(Setting...
0true
src_main_java_org_elasticsearch_action_admin_indices_gateway_snapshot_TransportGatewaySnapshotAction.java
1,235
public class OMMapBufferEntry implements Comparable<OMMapBufferEntry> { private static final OProfilerMBean PROFILER = Orient.instance().getProfiler(); private static final int FORCE_DELAY; private static final int FORCE_RETRY; static Method cleanerMethod; Lock ...
0true
core_src_main_java_com_orientechnologies_orient_core_storage_fs_OMMapBufferEntry.java
1,383
public static class Builder { private static final Set<String> VALID_FIELDS = Sets.newHashSet("template", "order", "mappings", "settings"); static { VALID_FIELDS.addAll(IndexMetaData.customFactories.keySet()); } private String name; private int order; ...
1no label
src_main_java_org_elasticsearch_cluster_metadata_IndexTemplateMetaData.java
367
this.rows = Iterators.filter(rows.iterator(), new Predicate<Result>() { @Override public boolean apply(@Nullable Result result) { if (result == null) return false; try { StaticBuffer id =...
0true
titan-hbase-parent_titan-hbase-core_src_main_java_com_thinkaurelius_titan_diskstorage_hbase_HBaseKeyColumnValueStore.java
1,589
int index = Arrays.binarySearch(properties, searchProperty, new Comparator<Property>() { @Override public int compare(Property o1, Property o2) { if (o1 == null && o2 == null) { return 0; } else if (o1 == null) { ret...
0true
admin_broadleaf-open-admin-platform_src_main_java_org_broadleafcommerce_openadmin_dto_Entity.java
3,150
public abstract class AbstractFieldDataImplTests extends AbstractFieldDataTests { protected String one() { return "1"; } protected String two() { return "2"; } protected String three() { return "3"; } protected String four() { return "4"; } protec...
0true
src_test_java_org_elasticsearch_index_fielddata_AbstractFieldDataImplTests.java
1,187
public interface MapStoreFactory<K, V> { /** * Produces a MapLoader or a MapStore for the given map name and properties. * * @param mapName name of the distributed map that the produced MapLoader or MapStore will serve * @param properties the properties of the MapStoreConfig for the produced...
0true
hazelcast_src_main_java_com_hazelcast_core_MapStoreFactory.java
206
public class CacheFactoryException extends Exception { private static final long serialVersionUID = 1L; public CacheFactoryException() { super(); } public CacheFactoryException(String message, Throwable cause) { super(message, cause); } public CacheFactoryException(String mes...
0true
common_src_main_java_org_broadleafcommerce_common_cache_engine_CacheFactoryException.java
1,045
public enum InMemoryFormat { BINARY, OBJECT, OFFHEAP }
0true
hazelcast_src_main_java_com_hazelcast_config_InMemoryFormat.java
857
@SuppressWarnings("unchecked") public class ORole extends ODocumentWrapper { private static final long serialVersionUID = 1L; public static final String ADMIN = "admin"; public static final String CLASS_NAME = "ORole"; public enum ALLOW_MODES { DENY_ALL_BUT, ALLOW_ALL_BUT } // CRUD ...
1no label
core_src_main_java_com_orientechnologies_orient_core_metadata_security_ORole.java
2,005
private static class Returns extends AbstractMatcher<Method> implements Serializable { private final Matcher<? super Class<?>> returnType; public Returns(Matcher<? super Class<?>> returnType) { this.returnType = checkNotNull(returnType, "return type matcher"); } public ...
0true
src_main_java_org_elasticsearch_common_inject_matcher_Matchers.java
23
final class DescendingSubMapEntryIterator extends SubMapIterator<Map.Entry<K, V>> { DescendingSubMapEntryIterator(final OMVRBTreeEntryPosition<K, V> last, final OMVRBTreeEntryPosition<K, V> fence) { super(last, fence); } public Map.Entry<K, V> next() { final Map.Entry<K, V> e = OM...
0true
commons_src_main_java_com_orientechnologies_common_collection_OMVRBTree.java
3,407
public class CommitPoint { public static final CommitPoint NULL = new CommitPoint(-1, "_null_", Type.GENERATED, ImmutableList.<CommitPoint.FileInfo>of(), ImmutableList.<CommitPoint.FileInfo>of()); public static class FileInfo { private final String name; private final String physicalName; ...
0true
src_main_java_org_elasticsearch_index_gateway_CommitPoint.java
883
public interface PromotableCandidateItemOffer extends Serializable { public HashMap<OfferItemCriteria, List<PromotableOrderItem>> getCandidateQualifiersMap(); public void setCandidateQualifiersMap(HashMap<OfferItemCriteria, List<PromotableOrderItem>> candidateItemsMap); public HashMap<OfferItemCriteria, ...
0true
core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_offer_service_discount_domain_PromotableCandidateItemOffer.java
2,292
public static interface V<T> extends Releasable { /** Reference to the value. */ T v(); /** Whether this instance has been recycled (true) or newly allocated (false). */ boolean isRecycled(); }
0true
src_main_java_org_elasticsearch_common_recycler_Recycler.java
296
new Thread() { public void run() { try { if (!l.tryLock(2, TimeUnit.SECONDS)) { latch.countDown(); } } catch (InterruptedException e) { e.printStackTrace(); } ...
0true
hazelcast-client_src_test_java_com_hazelcast_client_lock_ClientLockTest.java
1,962
public class MapTryRemoveRequest extends KeyBasedClientRequest implements Portable, SecureRequest { protected String name; protected Data key; protected long threadId; protected long timeout; public MapTryRemoveRequest() { } public MapTryRemoveRequest(String name, Data key, long threadId,...
0true
hazelcast_src_main_java_com_hazelcast_map_client_MapTryRemoveRequest.java
542
public class RecoverAllTransactionsRequest extends InvocationClientRequest { public RecoverAllTransactionsRequest() { } @Override public void invoke() { ClientEngine clientEngine = getClientEngine(); ClusterService clusterService = clientEngine.getClusterService(); Collection<M...
0true
hazelcast_src_main_java_com_hazelcast_client_txn_RecoverAllTransactionsRequest.java
2,354
public class NetworkExceptionHelper { public static boolean isConnectException(Throwable e) { if (e instanceof ConnectException) { return true; } return false; } public static boolean isCloseConnectionException(Throwable e) { if (e instanceof ClosedChannelExcept...
0true
src_main_java_org_elasticsearch_common_transport_NetworkExceptionHelper.java
37
@Component("blFulfillmentTypeOptionsExtensionListener") public class FulfillmentTypeEnumOptionsExtensionListener extends AbstractRuleBuilderEnumOptionsExtensionListener { @Override protected Map<String, Class<? extends BroadleafEnumerationType>> getValuesToGenerate() { Map<String, Class<? extends Broad...
0true
admin_broadleaf-admin-module_src_main_java_org_broadleafcommerce_admin_web_rulebuilder_service_options_FulfillmentTypeEnumOptionsExtensionListener.java
2,203
public class TermsFilterTests extends ElasticsearchTestCase { @Test public void testTermFilter() throws Exception { String fieldName = "field1"; Directory rd = new RAMDirectory(); IndexWriter w = new IndexWriter(rd, new IndexWriterConfig(Lucene.VERSION, new KeywordAnalyzer())); ...
0true
src_test_java_org_elasticsearch_common_lucene_search_TermsFilterTests.java
1,064
public class OCommandSQLParsingException extends OException { private String text; private int position; private static final long serialVersionUID = -7430575036316163711L; public OCommandSQLParsingException(String iMessage) { super(iMessage, null); } public OCommandSQLParsingException(String iMe...
0true
core_src_main_java_com_orientechnologies_orient_core_sql_OCommandSQLParsingException.java
1,070
@Test public class OOQueryOperatorTest { @Test public void testOperatorOrder() { //check operator are the correct order final OQueryOperator[] operators = OSQLEngine.INSTANCE.getRecordOperators(); int i=0; Assert.assertTrue(operators[i++] instanceof OQueryOpera...
0true
core_src_test_java_com_orientechnologies_orient_core_sql_OOQueryOperatorTest.java
621
public class NullBroadleafTemplateResolver implements ITemplateResolver { @Override public String getName() { return "NullBroadleafTemplateResolver"; } @Override public Integer getOrder() { return 9999; } @Override public TemplateResolution resolveTemplate(TemplateProc...
0true
common_src_main_java_org_broadleafcommerce_common_web_NullBroadleafTemplateResolver.java
3,425
SnapshotStatus snapshotStatus = indexShard.snapshot(new Engine.SnapshotHandler<SnapshotStatus>() { @Override public SnapshotStatus snapshot(SnapshotIndexCommit snapshotIndexCommit, Translog.Snapshot translogSnapshot) throws EngineException { if (lastIndexV...
0true
src_main_java_org_elasticsearch_index_gateway_IndexShardGatewayService.java
395
public interface ORecordLazyMultiValue extends ODetachable, OSizeable { public Iterator<OIdentifiable> rawIterator(); /** * Browse all the set to convert all the items into records. */ public void convertLinks2Records(); /** * Browse all the set to convert all the items into links. * * @return...
0true
core_src_main_java_com_orientechnologies_orient_core_db_record_ORecordLazyMultiValue.java
3,472
public class CacheMapLoader implements MapStore, MapLoaderLifecycleSupport { private String type; public void init(final HazelcastInstance hazelcastInstance, final Properties properties, final String mapName) { type = mapName; } public void destroy() { } public O...
1no label
hazelcast-spring_src_test_java_com_hazelcast_spring_cache_CacheMapLoader.java
155
public abstract class TransactionInterceptorProvider extends Service { private final String name; public TransactionInterceptorProvider( String name ) { super( name ); this.name = name; } /** * Returns the name of this provider * * @return The name of this provider ...
0true
community_kernel_src_main_java_org_neo4j_kernel_impl_transaction_xaframework_TransactionInterceptorProvider.java
73
public interface ImageStaticAsset extends StaticAsset { public Integer getWidth(); public void setWidth(Integer width); public Integer getHeight(); public void setHeight(Integer height); }
0true
admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_file_domain_ImageStaticAsset.java
671
constructors[COLLECTION_TXN_REMOVE_BACKUP] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() { public IdentifiedDataSerializable createNew(Integer arg) { return new CollectionTxnRemoveBackupOperation(); } };
0true
hazelcast_src_main_java_com_hazelcast_collection_CollectionDataSerializerHook.java
0
public interface AdminCatalogService { /** * Clear out any Skus that are already attached to the Product * if there were any there and generate a new set of Skus based * on the permutations of ProductOptions attached to this Product * * @param productId - the Product to generate Skus ...
0true
admin_broadleaf-admin-module_src_main_java_org_broadleafcommerce_admin_server_service_AdminCatalogService.java
2,814
public final class CheckReplicaVersion extends Operation implements PartitionAwareOperation, MigrationCycleOperation { private long version; private boolean returnResponse; private boolean response; public CheckReplicaVersion() { } public CheckReplicaVersion(long version, boolean returnRespon...
1no label
hazelcast_src_main_java_com_hazelcast_partition_impl_CheckReplicaVersion.java
1,407
public class ReadWriteAccessDelegate<T extends HazelcastRegion> extends AbstractAccessDelegate<T> { public ReadWriteAccessDelegate(T hazelcastRegion, final Properties props) { super(hazelcastRegion, props); } public boolean afterInsert(final Object key, final Object value, final Object version) t...
0true
hazelcast-hibernate_hazelcast-hibernate3_src_main_java_com_hazelcast_hibernate_access_ReadWriteAccessDelegate.java
1,540
public class PathMap { public static final String CLASS = Tokens.makeNamespace(PathMap.class) + ".class"; public enum Counters { VERTICES_PROCESSED, OUT_EDGES_PROCESSED } public static Configuration createConfiguration(final Class<? extends Element> klass) { final Configuratio...
1no label
titan-hadoop-parent_titan-hadoop-core_src_main_java_com_thinkaurelius_titan_hadoop_mapreduce_transform_PathMap.java
864
public class CandidateOrderOfferAnswer implements IAnswer<CandidateOrderOffer> { @Override public CandidateOrderOffer answer() throws Throwable { return new CandidateOrderOfferImpl(); } }
0true
core_broadleaf-framework_src_test_java_org_broadleafcommerce_core_offer_service_OfferServiceTest.java
601
public class GetSettingsRequest extends MasterNodeReadOperationRequest<GetSettingsRequest> { private String[] indices = Strings.EMPTY_ARRAY; private IndicesOptions indicesOptions = IndicesOptions.fromOptions(false, true, true, true); private String[] names = Strings.EMPTY_ARRAY; public GetSettingsRequ...
0true
src_main_java_org_elasticsearch_action_admin_indices_settings_get_GetSettingsRequest.java
76
public class ClientCreateRequest extends CallableClientRequest implements Portable, RetryableRequest, SecureRequest { private String name; private String serviceName; public ClientCreateRequest() { } public ClientCreateRequest(String name, String serviceName) { this.name = name; ...
0true
hazelcast_src_main_java_com_hazelcast_client_ClientCreateRequest.java
1,420
@XmlRootElement(name = "skuBundleItem") @XmlAccessorType(value = XmlAccessType.FIELD) public class SkuBundleItemWrapper extends BaseWrapper implements APIWrapper<SkuBundleItem> { @XmlElement protected Long id; @XmlElement protected Integer quantity; @XmlElement protected Money sal...
0true
core_broadleaf-framework-web_src_main_java_org_broadleafcommerce_core_web_api_wrapper_SkuBundleItemWrapper.java
1,237
public class UnitDependencyVisitor extends Visitor { private final PhasedUnit phasedUnit; private Set<Declaration> alreadyDone; public UnitDependencyVisitor(PhasedUnit phasedUnit) { this.phasedUnit = phasedUnit; alreadyDone = new HashSet<Declaration>(); } private void ...
1no label
plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_core_builder_UnitDependencyVisitor.java
1,650
public class LateStageAddMetadataRequest { private final String fieldName; private final Class<?> parentClass; private final Class<?> targetClass; private final DynamicEntityDao dynamicEntityDao; private final String prefix; public LateStageAddMetadataRequest(String fieldName, Class<?> parentC...
0true
admin_broadleaf-open-admin-platform_src_main_java_org_broadleafcommerce_openadmin_server_dao_provider_metadata_request_LateStageAddMetadataRequest.java
1,304
public class DataUpdateTask implements Callable<Void> { private ODatabaseDocumentTx baseDB; private ODatabaseDocumentTx testDB; public DataUpdateTask(ODatabaseDocumentTx baseDB, ODatabaseDocumentTx testDocumentTx) { this.baseDB = new ODatabaseDocumentTx(baseDB.getURL()); this.testDB = new ODa...
0true
server_src_test_java_com_orientechnologies_orient_core_storage_impl_local_paginated_LocalPaginatedStorageUpdateCrashRestore.java
1,353
completableFuture.andThen(new ExecutionCallback() { @Override public void onResponse(Object response) { reference2.set(response); latch2.countDown(); } @Override public void onFailure(Throwable t) { refe...
0true
hazelcast_src_test_java_com_hazelcast_executor_ExecutorServiceTest.java
1,252
public class NoNodeAvailableException extends ElasticsearchException { public NoNodeAvailableException() { super("No node available"); } @Override public RestStatus status() { return RestStatus.SERVICE_UNAVAILABLE; } }
0true
src_main_java_org_elasticsearch_client_transport_NoNodeAvailableException.java
919
public class OrderItemAdjustmentAnswer implements IAnswer<OrderItemAdjustment> { @Override public OrderItemAdjustment answer() throws Throwable { return new OrderItemAdjustmentImpl(); } }
0true
core_broadleaf-framework_src_test_java_org_broadleafcommerce_core_offer_service_processor_FulfillmentGroupOfferProcessorTest.java
185
{ @Override public boolean accept( XaDataSource item ) { return item.getName().equals( NeoStoreXaDataSource.DEFAULT_DATA_SOURCE_NAME ); } } );
0true
community_kernel_src_main_java_org_neo4j_kernel_impl_transaction_XaDataSourceManager.java
1,127
public class ODefaultSQLMethodFactory implements OSQLMethodFactory { private final Map<String, Object> methods = new HashMap<String, Object>(); public ODefaultSQLMethodFactory() { methods.put(OSQLMethodAppend.NAME, new OSQLMethodAppend()); methods.put(OSQLMethodAsBoolean.NAME, new OSQLMethodAsBoolean()); ...
1no label
core_src_main_java_com_orientechnologies_orient_core_sql_method_ODefaultSQLMethodFactory.java
541
public class PrepareTransactionRequest extends BaseTransactionRequest { public PrepareTransactionRequest() { } @Override protected Object innerCall() throws Exception { ClientEndpoint endpoint = getEndpoint(); TransactionContext transactionContext = endpoint.getTransactionContext(txnId...
0true
hazelcast_src_main_java_com_hazelcast_client_txn_PrepareTransactionRequest.java
1,906
convertToClass(Character.class, new TypeConverter() { public Object convert(String value, TypeLiteral<?> toType) { value = value.trim(); if (value.length() != 1) { throw new RuntimeException("Length != 1."); ...
0true
src_main_java_org_elasticsearch_common_inject_TypeConverterBindingProcessor.java
77
private class State { private final GraphDatabaseService graphDb; private Transaction tx; public State( GraphDatabaseService graphDb ) { this.graphDb = graphDb; } }
0true
community_kernel_src_test_java_org_neo4j_kernel_impl_transaction_TestManualAcquireLock.java
268
public class ElasticsearchIllegalArgumentException extends ElasticsearchException { public ElasticsearchIllegalArgumentException() { super(null); } public ElasticsearchIllegalArgumentException(String msg) { super(msg); } public ElasticsearchIllegalArgumentException(String msg, Thr...
0true
src_main_java_org_elasticsearch_ElasticsearchIllegalArgumentException.java
953
class ConsumerThread extends TestThread { private final ILock lock; private final ICondition condition; ConsumerThread(int id, ILock lock, ICondition condition) { super("ConsumerThread-" + id); this.lock = lock; this.condition = condition; } ...
0true
hazelcast_src_test_java_com_hazelcast_concurrent_lock_ProducerConsumerConditionStressTest.java
730
loadEntriesBetween(keyFrom, fromInclusive, keyTo, toInclusive, new RangeResultListener<K, V>() { @Override public boolean addResult(Map.Entry<K, V> entry) { result.add(entry.getValue()); if (maxValuesToFetch > 0 && result.size() >= maxValuesToFetch) return false; retur...
0true
core_src_main_java_com_orientechnologies_orient_core_index_sbtree_local_OSBTree.java
2,390
public enum BigArrays { ; /** Page size in bytes: 16KB */ public static final int PAGE_SIZE_IN_BYTES = 1 << 14; public static final int BYTE_PAGE_SIZE = BigArrays.PAGE_SIZE_IN_BYTES / RamUsageEstimator.NUM_BYTES_BYTE; public static final int INT_PAGE_SIZE = BigArrays.PAGE_SIZE_IN_BYTES / RamUsageEs...
0true
src_main_java_org_elasticsearch_common_util_BigArrays.java
1,543
static final class NodeSorter extends IntroSorter { final ModelNode[] modelNodes; /* the nodes weights with respect to the current weight function / index */ final float[] weights; private final WeightFunction function; private String index; private final Balancer ba...
0true
src_main_java_org_elasticsearch_cluster_routing_allocation_allocator_BalancedShardsAllocator.java
1,627
public class ScriptExecutorOperation extends Operation { private String engineName; private String script; private Map<String, Object> bindings; private Object result; public ScriptExecutorOperation() { } public ScriptExecutorOperation(String engineName, String script, Map<String, Object>...
0true
hazelcast_src_main_java_com_hazelcast_management_operation_ScriptExecutorOperation.java
458
executor.execute(new Runnable() { @Override public void run() { for (int i = 0; i < operations; i++) { map2.remove("foo-" + i); } } }, 60, EntryEventType.REMOVED, operations, 0.75, map1, map2);
0true
hazelcast-client_src_test_java_com_hazelcast_client_replicatedmap_ClientReplicatedMapTest.java
1,841
public interface MapMaxSizePolicy { boolean overCapacity(); MaxSizeConfig getMaxSizeConfig(); }
0true
hazelcast_src_main_java_com_hazelcast_map_MapMaxSizePolicy.java
981
public static class Presentation { public static class Tab { public static class Name { public static final String OrderItems = "OrderImpl_Order_Items_Tab"; } public static class Order { public static final int OrderItems = 2000; ...
0true
core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_order_domain_DiscreteOrderItemImpl.java
3,045
class WrappedTermsConsumer extends TermsConsumer { private TermsConsumer delegateTermsConsumer; private BloomFilter bloomFilter; public WrappedTermsConsumer(TermsConsumer termsConsumer, BloomFilter bloomFilter) { this.delegateTermsConsumer = termsConsumer; this.bloom...
0true
src_main_java_org_elasticsearch_index_codec_postingsformat_BloomFilterPostingsFormat.java
289
public class CassandraHelper { public static List<ByteBuffer> convert(List<StaticBuffer> keys) { List<ByteBuffer> requestKeys = new ArrayList<ByteBuffer>(keys.size()); for (int i = 0; i < keys.size(); i++) { requestKeys.add(keys.get(i).asByteBuffer()); } return requestKe...
0true
titan-cassandra_src_main_java_com_thinkaurelius_titan_diskstorage_cassandra_utils_CassandraHelper.java
309
static final class Fields { static final XContentBuilderString CLUSTER_NAME = new XContentBuilderString("cluster_name"); static final XContentBuilderString STATUS = new XContentBuilderString("status"); static final XContentBuilderString TIMED_OUT = new XContentBuilderString("timed_out"); ...
0true
src_main_java_org_elasticsearch_action_admin_cluster_health_ClusterHealthResponse.java
1,569
class ApplySettings implements NodeSettingsService.Listener { @Override public void onRefreshSettings(Settings settings) { int clusterConcurrentRebalance = settings.getAsInt(CLUSTER_ROUTING_ALLOCATION_CLUSTER_CONCURRENT_REBALANCE, ConcurrentRebalanceAllocationDecider.this.clusterConcurre...
0true
src_main_java_org_elasticsearch_cluster_routing_allocation_decider_ConcurrentRebalanceAllocationDecider.java
3,592
public static class CustomLongNumericField extends CustomNumericField { private final long number; private final NumberFieldMapper mapper; public CustomLongNumericField(NumberFieldMapper mapper, long number, FieldType fieldType) { super(mapper, number, fieldType); ...
0true
src_main_java_org_elasticsearch_index_mapper_core_LongFieldMapper.java
48
{ @Override public void masterIsElected( HighAvailabilityMemberChangeEvent event ) { } @Override public void masterIsAvailable( HighAvailabilityMemberChangeEvent event ) { if ( event.getOldState().equals( HighAv...
1no label
enterprise_ha_src_main_java_org_neo4j_kernel_ha_HighlyAvailableGraphDatabase.java
2,146
public static class Entry { private final String name; private final FastStringReader reader; private final int startOffset; private final float boost; public Entry(String name, FastStringReader reader, int startOffset, float boost) { this.name = name; ...
0true
src_main_java_org_elasticsearch_common_lucene_all_AllEntries.java
116
public static interface ForkJoinWorkerThreadFactory { /** * Returns a new worker thread operating in the given pool. * * @param pool the pool this thread works in * @return the new worker thread * @throws NullPointerException if the pool is null */ ...
0true
src_main_java_jsr166e_ForkJoinPool.java
232
public interface ModuleConfiguration extends Serializable { public Long getId(); public void setId(Long id); public String getModuleName(); public void setModuleName(String name); public void setActiveStartDate(Date startDate); public Date getActiveStartDate(); public void setActiveEn...
0true
common_src_main_java_org_broadleafcommerce_common_config_domain_ModuleConfiguration.java
1,007
public class OStreamSerializerRecord implements OStreamSerializer { public static final String NAME = "l"; public static final OStreamSerializerRecord INSTANCE = new OStreamSerializerRecord(); public String getName() { return NAME; } /** * Re-Create any object if the class has a public constructor ...
0true
core_src_main_java_com_orientechnologies_orient_core_serialization_serializer_stream_OStreamSerializerRecord.java
1,508
@Component("blCartStateFilter") /** * <p> * This filter should be configured after the BroadleafCommerce CustomerStateFilter listener from Spring Security. * Retrieves the cart for the current BroadleafCommerce Customer based using the authenticated user OR creates an empty non-modifiable cart and * stores it in th...
1no label
core_broadleaf-framework-web_src_main_java_org_broadleafcommerce_core_web_order_security_CartStateFilter.java
719
public class DeleteRequest extends ShardReplicationOperationRequest<DeleteRequest> { private String type; private String id; @Nullable private String routing; private boolean refresh; private long version; private VersionType versionType = VersionType.INTERNAL; /** * Constructs a ...
1no label
src_main_java_org_elasticsearch_action_delete_DeleteRequest.java
155
archiveStructuredContentTemplate.send(archiveStructuredContentDestination, new MessageCreator() { public Message createMessage(Session session) throws JMSException { HashMap<String, String> objectMap = new HashMap<String,String>(2); objectMap.put("nameKey", baseNameKe...
0true
admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_structure_message_jms_JMSArchivedStructuredContentPublisher.java
1,269
@SuppressWarnings("serial") public class OStorageConfigurationSegment extends OStorageConfiguration { private static final int START_SIZE = 10000; private OSingleFileSegment segment; public OStorageConfigurationSegment(final OStorageLocalAbstract iStorage) throws IOException { super(iStorage); segment ...
0true
core_src_main_java_com_orientechnologies_orient_core_storage_impl_local_OStorageConfigurationSegment.java
898
public interface ORecordListener { public enum EVENT { CLEAR, RESET, MARSHALL, UNMARSHALL, UNLOAD, IDENTITY_CHANGED } public void onEvent(ORecord<?> iDocument, EVENT iEvent); }
0true
core_src_main_java_com_orientechnologies_orient_core_record_ORecordListener.java
1,454
public static enum OpType { AND, OR }
0true
src_main_java_org_elasticsearch_cluster_node_DiscoveryNodeFilters.java
499
public interface Site extends Serializable { /** * Unique/internal id for a site. * @return */ public Long getId(); /** * Sets the internal id for a site. * @param id */ public void setId(Long id); /** * The display name for a site. * @return */ pu...
0true
common_src_main_java_org_broadleafcommerce_common_site_domain_Site.java
1,390
public abstract class HibernateTestSupport { private final ILogger logger = Logger.getLogger(getClass()); @BeforeClass @AfterClass public static void tearUpAndDown() { Hazelcast.shutdownAll(); } @After public final void cleanup() { Hazelcast.shutdownAll(); } prot...
0true
hazelcast-hibernate_hazelcast-hibernate4_src_test_java_com_hazelcast_hibernate_HibernateTestSupport.java
2,823
public class BulgarianAnalyzerProvider extends AbstractIndexAnalyzerProvider<BulgarianAnalyzer> { private final BulgarianAnalyzer analyzer; @Inject public BulgarianAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, Environment env, @Assisted String name, @Assisted Settings settings) { ...
0true
src_main_java_org_elasticsearch_index_analysis_BulgarianAnalyzerProvider.java
2,959
public class SortedIndexStore implements IndexStore { private static final float LOAD_FACTOR = 0.75f; private final ConcurrentMap<Comparable, ConcurrentMap<Data, QueryableEntry>> mapRecords = new ConcurrentHashMap<Comparable, ConcurrentMap<Data, QueryableEntry>>(1000); private final NavigableSet...
1no label
hazelcast_src_main_java_com_hazelcast_query_impl_SortedIndexStore.java
1,068
public class TransportSingleShardMultiTermsVectorAction extends TransportShardSingleOperationAction<MultiTermVectorsShardRequest, MultiTermVectorsShardResponse> { private final IndicesService indicesService; @Inject public TransportSingleShardMultiTermsVectorAction(Settings settings, ClusterService cluste...
0true
src_main_java_org_elasticsearch_action_termvector_TransportSingleShardMultiTermsVectorAction.java
912
threadPool.generic().execute(new Runnable() { @Override public void run() { ActionListener<T> lst = (ActionListener<T>) listener; try { lst.onResponse(actionGet()); ...
0true
src_main_java_org_elasticsearch_action_support_AbstractListenableActionFuture.java
2,924
public class PreBuiltCharFilterFactoryFactoryTests { @Test public void testThatDifferentVersionsCanBeLoaded() { PreBuiltCharFilterFactoryFactory factory = new PreBuiltCharFilterFactoryFactory(PreBuiltCharFilters.HTML_STRIP.getCharFilterFactory(Version.CURRENT)); CharFilterFactory emptySettings...
0true
src_test_java_org_elasticsearch_index_analysis_PreBuiltCharFilterFactoryFactoryTests.java
1,346
public class OWriteAheadLog { private static final long ONE_KB = 1024L; public static final String MASTER_RECORD_EXTENSION = ".wmr"; public static final String WAL_SEGMENT_EXTENSION = ".wal"; private OLogSequenceNumber lastCheckpoint; private final Ob...
1no label
core_src_main_java_com_orientechnologies_orient_core_storage_impl_local_paginated_wal_OWriteAheadLog.java
8
setInput(new BrowserInput(null) { @Override public String getHtml() { return content; } @Override public String getInputName() { return ""; } });
0true
plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_browser_BrowserInformationControl.java
2,084
public class PartitionWideEntryWithPredicateOperationFactory implements OperationFactory { private String name; private EntryProcessor entryProcessor; private Predicate predicate; public PartitionWideEntryWithPredicateOperationFactory() { } public PartitionWideEntryWithPredicateOperationFactor...
0true
hazelcast_src_main_java_com_hazelcast_map_operation_PartitionWideEntryWithPredicateOperationFactory.java
130
@Entity @Table(name = "BLC_QUAL_CRIT_SC_XREF") @Inheritance(strategy=InheritanceType.JOINED) public class CriteriaStructuredContentXref { /** The Constant serialVersionUID. */ private static final long serialVersionUID = 1L; /** The category id. */ @EmbeddedId CriteriaStructuredContentXrefPK crite...
1no label
admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_structure_domain_CriteriaStructuredContentXref.java
2,752
public class HttpException extends ElasticsearchException { public HttpException(String message) { super(message); } public HttpException(String message, Throwable cause) { super(message, cause); } }
0true
src_main_java_org_elasticsearch_http_HttpException.java
951
ois = new java.io.ObjectInputStream(bais) { @Override public Class<?> resolveClass(java.io.ObjectStreamClass streamClass) throws java.io.IOException, ClassNotFoundException { Class<?> c = Class.forName(streamClass.getName(), false, loader); if (c == null) { return super.resolveClass(str...
0true
core_src_main_java_com_orientechnologies_orient_core_serialization_OBase64Utils.java
729
loadEntriesMajor(key, inclusive, new RangeResultListener<K, V>() { @Override public boolean addResult(Map.Entry<K, V> entry) { result.add(entry.getValue()); if (maxValuesToFetch > -1 && result.size() >= maxValuesToFetch) return false; return true; } });
1no label
core_src_main_java_com_orientechnologies_orient_core_index_sbtree_local_OSBTree.java
3,027
public interface Factory { DocValuesFormatProvider create(String name, Settings settings); }
0true
src_main_java_org_elasticsearch_index_codec_docvaluesformat_DocValuesFormatProvider.java
61
public class AWSClient { private String endpoint; private final AwsConfig awsConfig; public AWSClient(AwsConfig awsConfig) { if (awsConfig == null) { throw new IllegalArgumentException("AwsConfig is required!"); } if (awsConfig.getAccessKey() == null) { thro...
0true
hazelcast-cloud_src_main_java_com_hazelcast_aws_AWSClient.java
1,516
@Component("blHeadProcessor") public class HeadProcessor extends AbstractFragmentHandlingElementProcessor { @Resource(name = "blHeadProcessorExtensionManager") protected HeadProcessorExtensionListener extensionManager; public static final String FRAGMENT_ATTR_NAME = StandardFragmentAttrProcessor.ATTR_NAME...
0true
core_broadleaf-framework-web_src_main_java_org_broadleafcommerce_core_web_processor_HeadProcessor.java
1,111
public class OSQLFunctionDistance extends OSQLFunctionAbstract { public static final String NAME = "distance"; private final static double EARTH_RADIUS = 6371; public OSQLFunctionDistance() { super(NAME, 4, 5); } public Object execute(final OIdentifiable iCurrentRecord, Object iCurrentResult, final Object...
1no label
core_src_main_java_com_orientechnologies_orient_core_sql_functions_geo_OSQLFunctionDistance.java
3,626
public class SimpleDateMappingTests extends ElasticsearchTestCase { @Test public void testAutomaticDateParser() throws Exception { String mapping = XContentFactory.jsonBuilder().startObject().startObject("type") .startObject("properties").endObject() .endObject().endObje...
0true
src_test_java_org_elasticsearch_index_mapper_date_SimpleDateMappingTests.java
4,417
public class IndicesFilterCache extends AbstractComponent implements RemovalListener<WeightedFilterCache.FilterCacheKey, DocIdSet> { private final ThreadPool threadPool; private final CacheRecycler cacheRecycler; private Cache<WeightedFilterCache.FilterCacheKey, DocIdSet> cache; private volatile Stri...
1no label
src_main_java_org_elasticsearch_indices_cache_filter_IndicesFilterCache.java
2,833
public final class MigrationRequestOperation extends BaseMigrationOperation { public static final int TRY_PAUSE_MILLIS = 1000; private boolean returnResponse = true; public MigrationRequestOperation() { } public MigrationRequestOperation(MigrationInfo migrationInfo) { super(migrationInfo)...
1no label
hazelcast_src_main_java_com_hazelcast_partition_impl_MigrationRequestOperation.java