Unnamed: 0 int64 0 6.45k | func stringlengths 29 253k | target class label 2
classes | project stringlengths 36 167 |
|---|---|---|---|
1,218 | public interface TransactionalSet<E> extends TransactionalObject {
/**
* Add new item to transactional set
* @param e item
* @return true if item is added successfully
*/
boolean add(E e);
/**
* Add item from transactional set
* @param e item
* @return true if item is re... | 0true | hazelcast_src_main_java_com_hazelcast_core_TransactionalSet.java |
1,648 | public class AddMetadataFromMappingDataRequest {
private final List<Property> componentProperties;
private final SupportedFieldType type;
private final SupportedFieldType secondaryType;
private final Type requestedEntityType;
private final String propertyName;
private final MergedPropertyType m... | 0true | admin_broadleaf-open-admin-platform_src_main_java_org_broadleafcommerce_openadmin_server_dao_provider_metadata_request_AddMetadataFromMappingDataRequest.java |
1,698 | runnable = new Runnable() { public void run() { map.replace("key", null); } }; | 0true | hazelcast_src_test_java_com_hazelcast_map_BasicMapTest.java |
1,992 | Runnable runnable = new Runnable() {
public void run() {
HazelcastInstance instance2 = nodeFactory.newHazelcastInstance(cfg);
final IMap<Object, Object> map = instance2.getMap("testInitialLoadModeEagerMultipleThread");
assertEquals(size, map.size());
... | 0true | hazelcast_src_test_java_com_hazelcast_map_mapstore_MapStoreTest.java |
2,678 | public class FuzzyLikeThisActionTests extends ElasticsearchIntegrationTest {
@Test
// See issue https://github.com/elasticsearch/elasticsearch/issues/3252
public void testNumericField() throws Exception {
assertAcked(prepareCreate("test")
.setSettings(settingsBuilder()
... | 0true | src_test_java_org_elasticsearch_flt_FuzzyLikeThisActionTests.java |
241 | private static class AstyanaxGetter implements StaticArrayEntry.GetColVal<Column<ByteBuffer>,ByteBuffer> {
private final EntryMetaData[] schema;
private AstyanaxGetter(EntryMetaData[] schema) {
this.schema = schema;
}
@Override
public ByteBuffer getColumn(Colu... | 0true | titan-cassandra_src_main_java_com_thinkaurelius_titan_diskstorage_cassandra_astyanax_AstyanaxKeyColumnValueStore.java |
2,371 | public static class Distance implements Comparable<Distance> {
public final double value;
public final DistanceUnit unit;
public Distance(double value, DistanceUnit unit) {
super();
this.value = value;
this.unit = unit;
}
/**
* C... | 0true | src_main_java_org_elasticsearch_common_unit_DistanceUnit.java |
5,129 | public static class Builder {
private List<AggregatorFactory> factories = new ArrayList<AggregatorFactory>();
public Builder add(AggregatorFactory factory) {
factories.add(factory);
return this;
}
public AggregatorFactories build() {
if (factori... | 1no label | src_main_java_org_elasticsearch_search_aggregations_AggregatorFactories.java |
1,532 | public interface HazelcastTransaction extends javax.resource.cci.LocalTransaction, javax.resource.spi.LocalTransaction {
} | 0true | hazelcast-ra_hazelcast-jca_src_main_java_com_hazelcast_jca_HazelcastTransaction.java |
1,638 | public class AdvancedCollectionFieldMetadataProvider extends FieldMetadataProviderAdapter {
protected boolean canHandleFieldForTypeMetadata(AddMetadataFromFieldTypeRequest addMetadataFromFieldTypeRequest, Map<String, FieldMetadata> metadata) {
AdminPresentationMap map = addMetadataFromFieldTypeRequest.getR... | 1no label | admin_broadleaf-open-admin-platform_src_main_java_org_broadleafcommerce_openadmin_server_dao_provider_metadata_AdvancedCollectionFieldMetadataProvider.java |
606 | updateSettingsService.updateSettings(clusterStateUpdateRequest, new ClusterStateUpdateListener() {
@Override
public void onResponse(ClusterStateUpdateResponse response) {
listener.onResponse(new UpdateSettingsResponse(response.isAcknowledged()));
}
... | 1no label | src_main_java_org_elasticsearch_action_admin_indices_settings_put_TransportUpdateSettingsAction.java |
451 | trackedSet.addChangeListener(new OMultiValueChangeListener<String, String>() {
public void onAfterRecordChanged(final OMultiValueChangeEvent<String, String> event) {
firedEvents.add(event);
}
}); | 0true | core_src_test_java_com_orientechnologies_orient_core_db_record_TrackedSetTest.java |
739 | public class OSBTreeValuePage extends ODurablePage {
private static final int FREE_LIST_NEXT_PAGE_OFFSET = NEXT_FREE_POSITION;
private static final int WHOLE_VALUE_SIZE_OFFSET = FREE_LIST_NEXT_PAGE_OFFSET + OLongSerializer.LONG_SIZE;
private static final int PAGE_VALUE_SIZE_OFFSET = WHOLE_VALUE_SIZE_OFFSET... | 0true | core_src_main_java_com_orientechnologies_orient_core_index_sbtree_local_OSBTreeValuePage.java |
1,642 | public interface FieldMetadataProvider extends Ordered {
//standard ordering constants for BLC providers
public static final int BASIC = Integer.MAX_VALUE;
public static final int COLLECTION = 20000;
public static final int ADORNED_TARGET = 30000;
public static final int MAP = 40000;
public sta... | 0true | admin_broadleaf-open-admin-platform_src_main_java_org_broadleafcommerce_openadmin_server_dao_provider_metadata_FieldMetadataProvider.java |
766 | public class TransportShardMultiGetAction extends TransportShardSingleOperationAction<MultiGetShardRequest, MultiGetShardResponse> {
private final IndicesService indicesService;
private final boolean realtime;
@Inject
public TransportShardMultiGetAction(Settings settings, ClusterService clusterServic... | 1no label | src_main_java_org_elasticsearch_action_get_TransportShardMultiGetAction.java |
3,422 | public class IndexShardGatewayRecoveryException extends IndexShardGatewayException {
public IndexShardGatewayRecoveryException(ShardId shardId, String msg) {
super(shardId, msg);
}
public IndexShardGatewayRecoveryException(ShardId shardId, String msg, Throwable cause) {
super(shardId, msg,... | 0true | src_main_java_org_elasticsearch_index_gateway_IndexShardGatewayRecoveryException.java |
26 | final class SubMapEntryIterator extends SubMapIterator<Map.Entry<K, V>> {
SubMapEntryIterator(final OMVRBTreeEntryPosition<K, V> first, final OMVRBTreeEntryPosition<K, V> fence) {
super(first, fence);
}
public Map.Entry<K, V> next() {
final Map.Entry<K, V> e = OMVRBTree.exportEntr... | 0true | commons_src_main_java_com_orientechnologies_common_collection_OMVRBTree.java |
1,656 | public class ParseField {
private final String camelCaseName;
private final String underscoreName;
private final String[] deprecatedNames;
public static final EnumSet<Flag> EMPTY_FLAGS = EnumSet.noneOf(Flag.class);
public static enum Flag {
STRICT
}
public ParseField(String value,... | 0true | src_main_java_org_elasticsearch_common_ParseField.java |
856 | public class TransportSearchCountAction extends TransportSearchTypeAction {
@Inject
public TransportSearchCountAction(Settings settings, ThreadPool threadPool, ClusterService clusterService,
SearchServiceTransportAction searchService, SearchPhaseController searchPhaseContr... | 0true | src_main_java_org_elasticsearch_action_search_type_TransportSearchCountAction.java |
3,349 | static class WithOrdinals extends GeoPointCompressedAtomicFieldData {
private final GeoPointFieldMapper.Encoding encoding;
private final PagedMutable lon, lat;
private final Ordinals ordinals;
public WithOrdinals(GeoPointFieldMapper.Encoding encoding, PagedMutable lon, PagedMutable... | 0true | src_main_java_org_elasticsearch_index_fielddata_plain_GeoPointCompressedAtomicFieldData.java |
2,416 | public interface DoubleArray extends BigArray {
/**
* Get an element given its index.
*/
public abstract double get(long index);
/**
* Set a value at the given index and return the previous value.
*/
public abstract double set(long index, double value);
/**
* Increment va... | 0true | src_main_java_org_elasticsearch_common_util_DoubleArray.java |
1,501 | public static class GroupProperty {
private final String name;
private final String value;
GroupProperty(Config config, String name) {
this(config, name, (String) null);
}
GroupProperty(Config config, String name, GroupProperty defaultValue) {
this(... | 0true | hazelcast_src_main_java_com_hazelcast_instance_GroupProperties.java |
3,183 | public class FilterLongValues extends LongValues {
protected final LongValues delegate;
protected FilterLongValues(LongValues delegate) {
super(delegate.isMultiValued());
this.delegate = delegate;
}
@Override
public int setDocument(int docId) {
return delegate.setDocument(... | 0true | src_main_java_org_elasticsearch_index_fielddata_FilterLongValues.java |
176 | @RunWith(HazelcastSerialClassRunner.class)
@Category(QuickTest.class)
public class ClientAtomicLongTest {
static final String name = "test1";
static HazelcastInstance client;
static HazelcastInstance server;
static IAtomicLong l;
@BeforeClass
public static void init(){
server = Hazelca... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_atomiclong_ClientAtomicLongTest.java |
1,135 | public interface Cluster {
/**
* Adds MembershipListener to listen for membership updates.
*
* If the MembershipListener implements the {@link InitialMembershipListener} interface, it will also receive
* the {@link InitialMembershipEvent}.
*
* @param listener membership listener
... | 0true | hazelcast_src_main_java_com_hazelcast_core_Cluster.java |
111 | public class DoubleMaxUpdater extends Striped64 implements Serializable {
private static final long serialVersionUID = 7249069246863182397L;
/**
* Long representation of negative infinity. See class Double
* internal documentation for explanation.
*/
private static final long MIN_AS_LONG = 0x... | 0true | src_main_java_jsr166e_DoubleMaxUpdater.java |
1,197 | public class MigrationEvent implements DataSerializable {
private int partitionId;
private Member oldOwner;
private Member newOwner;
private MigrationStatus status;
public MigrationEvent() {
}
public MigrationEvent(int partitionId, Member oldOwner, Member newOwner, MigrationStatus status)... | 0true | hazelcast_src_main_java_com_hazelcast_core_MigrationEvent.java |
1,323 | public class OStorageTransaction {
private final OTransaction clientTx;
private final OOperationUnitId operationUnitId;
private OLogSequenceNumber startLSN;
public OStorageTransaction(OTransaction clientTx, OOperationUnitId operationUnitId) {
this.clientTx = clientTx;
this.operationUnitId = op... | 0true | core_src_main_java_com_orientechnologies_orient_core_storage_impl_local_paginated_OStorageTransaction.java |
893 | private class AsyncAction {
private final SearchScrollRequest request;
private final ActionListener<SearchResponse> listener;
private final ParsedScrollId scrollId;
private final DiscoveryNodes nodes;
private volatile AtomicArray<ShardSearchFailure> shardFailures;
... | 0true | src_main_java_org_elasticsearch_action_search_type_TransportSearchScrollScanAction.java |
430 | EventHandler<PortableItemEvent> eventHandler = new EventHandler<PortableItemEvent>() {
public void handle(PortableItemEvent portableItemEvent) {
E item = includeValue ? (E) getContext().getSerializationService().toObject(portableItemEvent.getItem()) : null;
Member mem... | 1no label | hazelcast-client_src_main_java_com_hazelcast_client_proxy_ClientQueueProxy.java |
1,982 | public class SourceProvider {
/**
* Indicates that the source is unknown.
*/
public static final Object UNKNOWN_SOURCE = "[unknown source]";
private final ImmutableSet<String> classNamesToSkip;
public SourceProvider() {
this.classNamesToSkip = ImmutableSet.of(SourceProvider.class.ge... | 0true | src_main_java_org_elasticsearch_common_inject_internal_SourceProvider.java |
692 | @Entity
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "BLC_PRODUCT_FEATURED")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE, region="blStandardElements")
public class FeaturedProductImpl implements FeaturedProduct {
private static final long serialVersionUID = 1L;
/** The id. */
@Id
... | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_catalog_domain_FeaturedProductImpl.java |
1,128 | public interface BaseMap<K, V> extends DistributedObject {
/**
* Returns {@code true} if this map contains an entry for the specified
* key.
*
* @param key key
* @return {@code true} if this map contains an entry for the specified key
*/
boolean containsKey(Object key);
/**
... | 0true | hazelcast_src_main_java_com_hazelcast_core_BaseMap.java |
1,658 | public class ParseFieldTests extends ElasticsearchTestCase {
public void testParse() {
String[] values = new String[]{"foo_bar", "fooBar"};
ParseField field = new ParseField(randomFrom(values));
String[] deprecated = new String[]{"barFoo", "bar_foo"};
ParseField withDepredcations = ... | 0true | src_test_java_org_elasticsearch_common_ParseFieldTests.java |
186 | public class OPair<K extends Comparable<K>, V> implements Entry<K, V>, Comparable<OPair<K, V>> {
public K key;
public V value;
public OPair() {
}
public OPair(final K iKey, final V iValue) {
key = iKey;
value = iValue;
}
public OPair(final Entry<K, V> iSource) {
key = iSource.getKey();
value = iSource... | 0true | commons_src_main_java_com_orientechnologies_common_util_OPair.java |
1,372 | @Scope("singleton")
@Provider
public class BroadleafRestExceptionMapper implements ExceptionMapper<Throwable>, MessageSourceAware {
private static final Log LOG = LogFactory.getLog(BroadleafRestExceptionMapper.class);
protected MessageSource messageSource;
@Override
public Response toResponse(Throwab... | 0true | core_broadleaf-framework-web_src_main_java_org_broadleafcommerce_core_web_api_BroadleafRestExceptionMapper.java |
1,424 | public final class HazelcastInstanceFactory {
private final static String HZ_CLIENT_LOADER_CLASSNAME = "com.hazelcast.hibernate.instance.HazelcastClientLoader";
private final static String HZ_INSTANCE_LOADER_CLASSNAME = "com.hazelcast.hibernate.instance.HazelcastInstanceLoader";
private HazelcastInstanceF... | 0true | hazelcast-hibernate_hazelcast-hibernate4_src_main_java_com_hazelcast_hibernate_instance_HazelcastInstanceFactory.java |
2,151 | public final class AllTokenStream extends TokenFilter {
public static TokenStream allTokenStream(String allFieldName, AllEntries allEntries, Analyzer analyzer) throws IOException {
return new AllTokenStream(analyzer.tokenStream(allFieldName, allEntries), allEntries);
}
private final BytesRef p... | 0true | src_main_java_org_elasticsearch_common_lucene_all_AllTokenStream.java |
2,459 | @SuppressWarnings("serial")
private final static class KeyLock extends ReentrantLock {
private final AtomicInteger count = new AtomicInteger(1);
} | 0true | src_main_java_org_elasticsearch_common_util_concurrent_KeyedLock.java |
82 | @SuppressWarnings("serial")
static final class MapReduceValuesToDoubleTask<K,V>
extends BulkTask<K,V,Double> {
final ObjectToDouble<? super V> transformer;
final DoubleByDoubleToDouble reducer;
final double basis;
double result;
MapReduceValuesToDoubleTask<K,V> ri... | 0true | src_main_java_jsr166e_ConcurrentHashMapV8.java |
724 | preFetchedValues.add(new Map.Entry<K, V>() {
@Override
public K getKey() {
return entry.getKey();
}
@Override
public V getValue() {
return resultValue;
}
@Override
public V setValue(V v) {
throw... | 0true | core_src_main_java_com_orientechnologies_orient_core_index_sbtree_OSBTreeMapEntryIterator.java |
545 | deleteByQueryAction.execute(Requests.deleteByQueryRequest(request.indices()).source(querySourceBuilder), new ActionListener<DeleteByQueryResponse>() {
@Override
public void onResponse(DeleteByQueryResponse deleteByQueryResponse) {
refreshAc... | 1no label | src_main_java_org_elasticsearch_action_admin_indices_mapping_delete_TransportDeleteMappingAction.java |
2,052 | return new Provider<T>() {
public T get() {
checkState(delegate != null,
"This Provider cannot be used until the Injector has been created.");
return delegate.get();
}
@Override
public String toString() {
... | 0true | src_main_java_org_elasticsearch_common_inject_spi_ProviderLookup.java |
1,327 | @Service("blSearchService")
public class DatabaseSearchServiceImpl implements SearchService {
@Resource(name = "blCatalogService")
protected CatalogService catalogService;
@Resource(name = "blSearchFacetDao")
protected SearchFacetDao searchFacetDao;
@Resource(name = "blFieldDao")
... | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_search_service_DatabaseSearchServiceImpl.java |
931 | while (makeDbCall(iMyDb, new ODbRelatedCall<Boolean>() {
public Boolean call() {
return myEntryIterator.hasNext();
}
})) { | 0true | core_src_main_java_com_orientechnologies_orient_core_record_impl_ODocumentHelper.java |
443 | class NotSerializableDocument extends ODocument {
private static final long serialVersionUID = 1L;
private void writeObject(ObjectOutputStream oos) throws IOException {
throw new NotSerializableException();
}
} | 0true | core_src_test_java_com_orientechnologies_orient_core_db_record_TrackedSetTest.java |
208 | private class ClusterAuthenticator implements Authenticator {
@Override
public void auth(ClientConnection connection) throws AuthenticationException, IOException {
authenticate(connection, credentials, principal, false, false);
}
} | 1no label | hazelcast-client_src_main_java_com_hazelcast_client_connection_nio_ClientConnectionManagerImpl.java |
438 | map.addChangeListener(new OMultiValueChangeListener<Object, String>() {
public void onAfterRecordChanged(final OMultiValueChangeEvent<Object, String> event) {
changed.value = true;
}
}); | 0true | core_src_test_java_com_orientechnologies_orient_core_db_record_TrackedMapTest.java |
1,072 | public class CartTest extends OrderBaseTest {
@Resource(name="blMergeCartService")
private MergeCartService mergeCartService;
protected boolean cartContainsOnlyTheseItems(Order cart, List<OrderItem> orderItems) {
List<OrderItem> cartOrderItems = new ArrayList<OrderItem>(cart.getOrderItems(... | 0true | integration_src_test_java_org_broadleafcommerce_core_order_service_CartTest.java |
2,980 | public class SimpleDocSetCache extends AbstractIndexComponent implements DocSetCache, SegmentReader.CoreClosedListener {
private final ConcurrentMap<Object, Queue<FixedBitSet>> cache;
@Inject
public SimpleDocSetCache(Index index, @IndexSettings Settings indexSettings) {
super(index, indexSettings)... | 0true | src_main_java_org_elasticsearch_index_cache_docset_simple_SimpleDocSetCache.java |
330 | Iterables.filter(config.getKeys(prefix),new Predicate<String>() {
@Override
public boolean apply(@Nullable String s) {
return !writtenValues.containsKey(s);
}
})); | 0true | titan-core_src_main_java_com_thinkaurelius_titan_diskstorage_configuration_TransactionalConfiguration.java |
614 | public class BroadleafThymeleafMessageResolver extends AbstractMessageResolver {
protected static final Log LOG = LogFactory.getLog(BroadleafThymeleafMessageResolver.class);
protected static final String I18N_VALUE_KEY = "translate";
@Resource(name = "blTranslationService")
protected TranslationSer... | 0true | common_src_main_java_org_broadleafcommerce_common_web_BroadleafThymeleafMessageResolver.java |
1,274 | private static class ChatMessage implements Serializable {
private String username;
private String message;
public ChatMessage(String username, String message) {
this.username = username;
this.message = message;
}
public String toString() {
... | 0true | hazelcast_src_main_java_com_hazelcast_examples_ChatApplication.java |
958 | public abstract class AbstractUnlockRequest extends KeyBasedClientRequest
implements Portable, SecureRequest {
protected Data key;
private long threadId;
private boolean force;
public AbstractUnlockRequest() {
}
public AbstractUnlockRequest(Data key, long threadId) {
this.key ... | 0true | hazelcast_src_main_java_com_hazelcast_concurrent_lock_client_AbstractUnlockRequest.java |
762 | public class TransportMultiGetAction extends TransportAction<MultiGetRequest, MultiGetResponse> {
private final ClusterService clusterService;
private final TransportShardMultiGetAction shardAction;
@Inject
public TransportMultiGetAction(Settings settings, ThreadPool threadPool, TransportService tran... | 1no label | src_main_java_org_elasticsearch_action_get_TransportMultiGetAction.java |
239 | public interface OCacheLevelOneLocator {
public OCache threadLocalCache();
} | 0true | core_src_main_java_com_orientechnologies_orient_core_cache_OCacheLevelOneLocator.java |
285 | public class ActionRequestValidationException extends ElasticsearchException {
private final List<String> validationErrors = new ArrayList<String>();
public ActionRequestValidationException() {
super(null);
}
public void addValidationError(String error) {
validationErrors.add(error);
... | 0true | src_main_java_org_elasticsearch_action_ActionRequestValidationException.java |
207 | public static class Done extends LogEntry
{
Done( int identifier )
{
super( identifier );
}
@Override
public String toString()
{
return "Done[" + getIdentifier() + "]";
}
} | 0true | community_kernel_src_main_java_org_neo4j_kernel_impl_transaction_xaframework_LogEntry.java |
831 | public class SearchRequestBuilder extends ActionRequestBuilder<SearchRequest, SearchResponse, SearchRequestBuilder> {
private SearchSourceBuilder sourceBuilder;
public SearchRequestBuilder(Client client) {
super((InternalClient) client, new SearchRequest());
}
/**
* Sets the indices the ... | 1no label | src_main_java_org_elasticsearch_action_search_SearchRequestBuilder.java |
885 | public interface PromotableCandidateOrderOffer extends Serializable {
PromotableOrder getPromotableOrder();
Offer getOffer();
Money getPotentialSavings();
HashMap<OfferItemCriteria, List<PromotableOrderItem>> getCandidateQualifiersMap();
boolean isTotalitarian();
boolean isCombinable()... | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_offer_service_discount_domain_PromotableCandidateOrderOffer.java |
2,280 | public class ConcurrentRecyclerTests extends AbstractRecyclerTests {
@Override
protected Recycler<byte[]> newRecycler() {
return Recyclers.concurrent(Recyclers.dequeFactory(RECYCLER_C, randomIntBetween(5, 10)), randomIntBetween(1,5));
}
} | 0true | src_test_java_org_elasticsearch_common_recycler_ConcurrentRecyclerTests.java |
1,431 | public class MetaDataService extends AbstractComponent {
private final Semaphore[] indexMdLocks;
@Inject
public MetaDataService(Settings settings) {
super(settings);
indexMdLocks = new Semaphore[500];
for (int i = 0; i < indexMdLocks.length; i++) {
indexMdLocks[i] = new... | 0true | src_main_java_org_elasticsearch_cluster_metadata_MetaDataService.java |
79 | public static class Presentation {
public static class Tab {
public static class Name {
public static final String File_Details = "StaticAssetImpl_FileDetails_Tab";
public static final String Advanced = "StaticAssetImpl_Advanced_Tab";
}
... | 0true | admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_file_domain_StaticAssetImpl.java |
1,042 | public class GlobalSerializerConfig {
private String className;
private Serializer implementation;
public GlobalSerializerConfig() {
super();
}
public String getClassName() {
return className;
}
public GlobalSerializerConfig setClassName(final String className) {
... | 0true | hazelcast_src_main_java_com_hazelcast_config_GlobalSerializerConfig.java |
2,111 | abstract class MapProxySupport extends AbstractDistributedObject<MapService> implements InitializingObject {
protected static final String NULL_KEY_IS_NOT_ALLOWED = "Null key is not allowed!";
protected static final String NULL_VALUE_IS_NOT_ALLOWED = "Null value is not allowed!";
protected final String na... | 1no label | hazelcast_src_main_java_com_hazelcast_map_proxy_MapProxySupport.java |
405 | add(store, "expiring-doc4", new HashMap<String, Object>() {{
put(NAME, "fourth");
put(TIME, 3L);
put(WEIGHT, 7.7d);
}}, true, 7); // bigger ttl then one recycle interval, should still show up in the results | 0true | titan-test_src_main_java_com_thinkaurelius_titan_diskstorage_indexing_IndexProviderTest.java |
142 | public static class Tab {
public static class Name {
public static final String Rules = "StructuredContentImpl_Rules_Tab";
}
public static class Order {
public static final int Rules = 1000;
}
} | 0true | admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_structure_domain_StructuredContentImpl.java |
466 | final long indexTwoSize = makeDbCall(databaseDocumentTxTwo, new ODbRelatedCall<Long>() {
public Long call() {
return indexTwo.getSize();
}
}); | 0true | core_src_main_java_com_orientechnologies_orient_core_db_tool_ODatabaseCompare.java |
140 | public static class FileSizePruneStrategy extends AbstractPruneStrategy
{
private final int maxSize;
public FileSizePruneStrategy( FileSystemAbstraction fileystem, int maxSizeBytes )
{
super( fileystem );
this.maxSize = maxSizeBytes;
}
@Override
... | 0true | community_kernel_src_main_java_org_neo4j_kernel_impl_transaction_xaframework_LogPruneStrategies.java |
1,320 | private static final class AddEntryResult {
private final long pageIndex;
private final int pagePosition;
private final ORecordVersion recordVersion;
private final int recordsSizeDiff;
public AddEntryResult(long pageIndex, int pagePosition, ORecordVersion recordVe... | 0true | core_src_main_java_com_orientechnologies_orient_core_storage_impl_local_paginated_OPaginatedCluster.java |
1,856 | static class TxnIncrementor implements Runnable {
int count = 0;
HazelcastInstance instance;
final String key = "count";
final CountDownLatch latch;
TxnIncrementor(int count, HazelcastInstance instance, CountDownLatch latch) {
this.count = count;
thi... | 0true | hazelcast_src_test_java_com_hazelcast_map_MapTransactionStressTest.java |
880 | new Thread() {
public void run() {
try {
sleep(1000);
} catch (InterruptedException e) {
return;
}
latch.destroy();
}
}.start(); | 0true | hazelcast_src_test_java_com_hazelcast_concurrent_countdownlatch_CountDownLatchTest.java |
1,488 | public static class Map extends Mapper<NullWritable, FaunusVertex, NullWritable, FaunusVertex> {
private boolean isVertex;
private ElementChecker startChecker;
private ElementChecker endChecker;
@Override
public void setup(final Mapper.Context context) throws IOException, I... | 1no label | titan-hadoop-parent_titan-hadoop-core_src_main_java_com_thinkaurelius_titan_hadoop_mapreduce_filter_IntervalFilterMap.java |
1,949 | public class MapPutRequest extends KeyBasedClientRequest implements Portable, SecureRequest {
protected Data key;
protected Data value;
protected String name;
protected long threadId;
protected long ttl;
protected transient long startTime;
public MapPutRequest() {
}
public MapPutR... | 1no label | hazelcast_src_main_java_com_hazelcast_map_client_MapPutRequest.java |
5,124 | public abstract class Aggregator implements Releasable, ReaderContextAware {
/**
* Defines the nature of the aggregator's aggregation execution when nested in other aggregators and the buckets they create.
*/
public static enum BucketAggregationMode {
/**
* In this mode, a new aggre... | 1no label | src_main_java_org_elasticsearch_search_aggregations_Aggregator.java |
1,663 | public class SandBoxOperationType implements Serializable, BroadleafEnumerationType {
private static final long serialVersionUID = 1L;
private static final Map<String, SandBoxOperationType> TYPES = new LinkedHashMap<String, SandBoxOperationType>();
public static final SandBoxOperationType ADD = new S... | 0true | admin_broadleaf-open-admin-platform_src_main_java_org_broadleafcommerce_openadmin_server_domain_SandBoxOperationType.java |
2,526 | static interface MapFactory {
Map<String, Object> newMap();
} | 0true | src_main_java_org_elasticsearch_common_xcontent_support_AbstractXContentParser.java |
1,852 | nodeEngine.getExecutionService().submit("hz:map-merge", new Runnable() {
public void run() {
final SimpleEntryView entryView = createSimpleEntryView(record.getKey(), toData(record.getValue()), record);
MergeOperation ope... | 1no label | hazelcast_src_main_java_com_hazelcast_map_MapService.java |
1,224 | public class OStorageOperationResult<RET> implements Externalizable {
private RET result;
private boolean isMoved;
public OStorageOperationResult(RET result) {
this(result, false);
}
public OStorageOperationResult(RET result, boolean moved) {
this.result = result;
isMoved = moved;
}
pu... | 0true | core_src_main_java_com_orientechnologies_orient_core_storage_OStorageOperationResult.java |
1,172 | public interface IdGenerator extends DistributedObject {
/**
* Try to initialize this IdGenerator instance with given id. The first
* generated id will be 1 bigger than id.
*
* @return true if initialization success. If id is equal or smaller
* than 0, then false is returned.
*/
b... | 0true | hazelcast_src_main_java_com_hazelcast_core_IdGenerator.java |
666 | constructors[COLLECTION_RESERVE_ADD] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {
public IdentifiedDataSerializable createNew(Integer arg) {
return new CollectionReserveAddOperation();
}
}; | 0true | hazelcast_src_main_java_com_hazelcast_collection_CollectionDataSerializerHook.java |
3,499 | public static abstract class Builder<T extends Builder, Y extends Mapper> {
public String name;
protected T builder;
protected Builder(String name) {
this.name = name;
}
public String name() {
return this.name;
}
public abstract Y ... | 0true | src_main_java_org_elasticsearch_index_mapper_Mapper.java |
247 | class ResourceAcquisitionFailedException extends RuntimeException
{
ResourceAcquisitionFailedException( XAResource resource )
{
super( "Unable to enlist '" + resource + "' in " + "transaction" );
}
ResourceAcquisitionFailedException( RollbackException cause )
{
super( "The trans... | 0true | community_kernel_src_main_java_org_neo4j_kernel_impl_persistence_ResourceAcquisitionFailedException.java |
124 | public interface PageRuleProcessor {
/**
* Returns true if the passed in <code>Page</code> is valid according
* to this rule processor.
*
* @param page
* @return
*/
public boolean checkForMatch(PageDTO page, Map<String,Object> valueMap);
} | 0true | admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_page_service_PageRuleProcessor.java |
2,225 | MIN {
@Override
public float combine(double queryBoost, double queryScore, double funcScore, double maxBoost) {
return toFloat(queryBoost * Math.min(queryScore, Math.min(funcScore, maxBoost)));
}
@Override
public String getName() {
return "min";
... | 0true | src_main_java_org_elasticsearch_common_lucene_search_function_CombineFunction.java |
3,620 | public static class Defaults extends IntegerFieldMapper.Defaults {
} | 0true | src_main_java_org_elasticsearch_index_mapper_core_TokenCountFieldMapper.java |
3,115 | public class AddListenerRequest extends CallableClientRequest implements SecureRequest, RetryableRequest {
private String name;
private boolean includeValue;
public AddListenerRequest() {
}
public AddListenerRequest(String name, boolean includeValue) {
this.name = name;
this.inclu... | 1no label | hazelcast_src_main_java_com_hazelcast_queue_client_AddListenerRequest.java |
1,529 | @Component("blToggleFacetLinkProcessor")
public class ToggleFacetLinkProcessor extends AbstractAttributeModifierAttrProcessor {
@Resource(name = "blSearchFacetDTOService")
protected SearchFacetDTOService facetService;
/**
* Sets the name of this processor to be used in Thymeleaf template
*/
... | 0true | core_broadleaf-framework-web_src_main_java_org_broadleafcommerce_core_web_processor_ToggleFacetLinkProcessor.java |
309 | public class ConfigOption<O> extends ConfigElement {
public enum Type {
/**
* Once the database has been opened, these configuration options cannot
* be changed for the entire life of the database
*/
FIXED,
/**
* These options can only be changed for the ... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_diskstorage_configuration_ConfigOption.java |
3,549 | public class BinaryFieldMapper extends AbstractFieldMapper<BytesReference> {
public static final String CONTENT_TYPE = "binary";
public static class Defaults extends AbstractFieldMapper.Defaults {
public static final long COMPRESS_THRESHOLD = -1;
public static final FieldType FIELD_TYPE = new ... | 1no label | src_main_java_org_elasticsearch_index_mapper_core_BinaryFieldMapper.java |
771 | public abstract class OIdentifiableIterator<REC extends OIdentifiable> implements Iterator<REC>, Iterable<REC> {
protected final ODatabaseRecord database;
private final ODatabaseRecord lowLevelDatabase;
private final OStorage dbStorage;
protected boolean liveUpdated = fa... | 0true | core_src_main_java_com_orientechnologies_orient_core_iterator_OIdentifiableIterator.java |
972 | abstract class BaseSignalOperation extends BaseLockOperation {
protected boolean all;
protected String conditionId;
protected transient int awaitCount;
public BaseSignalOperation() {
}
public BaseSignalOperation(ObjectNamespace namespace, Data key, long threadId, String conditionId, boolean a... | 0true | hazelcast_src_main_java_com_hazelcast_concurrent_lock_operations_BaseSignalOperation.java |
52 | public interface RelationType extends TitanVertex, TitanSchemaType {
/**
* Checks if this relation type is a property key
*
* @return true, if this relation type is a property key, else false.
* @see PropertyKey
*/
public boolean isPropertyKey();
/**
* Checks if this relation... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_core_RelationType.java |
139 | public interface TitanSchemaElement extends Namifiable {
} | 0true | titan-core_src_main_java_com_thinkaurelius_titan_core_schema_TitanSchemaElement.java |
870 | public abstract class OAbstractBlock implements OProcessorBlock {
protected OProcessorBlock parentBlock;
protected abstract Object processBlock(OComposableProcessor iManager, OCommandContext iContext, ODocument iConfig,
ODocument iOutput, boolean iReadOnly);
@Override
public Object process(OComposablePr... | 0true | core_src_main_java_com_orientechnologies_orient_core_processor_block_OAbstractBlock.java |
198 | final class GetSelection implements Runnable {
ITextSelection selection;
@Override
public void run() {
ISelectionProvider sp =
CeylonEditor.this.getSelectionProvider();
selection = sp==null ?
nu... | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_editor_CeylonEditor.java |
106 | public class OFileUtils {
private static final int KILOBYTE = 1024;
private static final int MEGABYTE = 1048576;
private static final int GIGABYTE = 1073741824;
private static final long TERABYTE = 1099511627776L;
public static long getSizeAsNumber(final Object iSize) {
if (iSize == null)
throw ... | 1no label | commons_src_main_java_com_orientechnologies_common_io_OFileUtils.java |
1,686 | public interface AdminSection extends Serializable {
public Long getId();
public String getName();
public void setName(String name);
public String getSectionKey();
public void setSectionKey(String sectionKey);
public String getUrl();
public void setUrl(String url);
public List<Ad... | 0true | admin_broadleaf-open-admin-platform_src_main_java_org_broadleafcommerce_openadmin_server_security_domain_AdminSection.java |
417 | @Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD})
public @interface AdminPresentationMapField {
/**
* <p>Represents the field name for this field.</p>
*
* @return the name for this field
*/
String fieldName();
/**
* <p>Represents the metadata for this field. The <tt... | 0true | common_src_main_java_org_broadleafcommerce_common_presentation_AdminPresentationMapField.java |
455 | public static class AdminPresentationMap {
public static final String FRIENDLYNAME = "friendlyName";
public static final String SECURITYLEVEL = "securityLevel";
public static final String EXCLUDED = "excluded";
public static final String READONLY = "readOnly";
public static f... | 0true | common_src_main_java_org_broadleafcommerce_common_presentation_override_PropertyType.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.