Unnamed: 0 int64 0 6.45k | func stringlengths 37 161k | target class label 2
classes | project stringlengths 33 167 |
|---|---|---|---|
0 | public final class StandaloneRandomizedContext {
private StandaloneRandomizedContext() {
}
/**
* Creates a new {@link RandomizedContext} associated to the current thread
*/
public static void createRandomizedContext(Class<?> testClass, Randomness runnerRandomness) {
//the randomized... | 0true | src_test_java_com_carrotsearch_randomizedtesting_StandaloneRandomizedContext.java |
971 | public class OBinarySerializerFactory {
private final Map<Byte, OBinarySerializer<?>> serializerIdMap = new HashMap<Byte, OBinarySerializer<?>>();
private final Map<Byte, Class<? extends OBinarySerializer<?>>> serializerClassesIdMap = new HashMap<Byte, Class<? extends OBinarySerializer<?>>>... | 1no label | core_src_main_java_com_orientechnologies_orient_core_serialization_serializer_binary_OBinarySerializerFactory.java |
3,424 | threadPool.generic().execute(new Runnable() {
@Override
public void run() {
recoveryStatus = new RecoveryStatus();
recoveryStatus.updateStage(RecoveryStatus.Stage.INIT);
try {
if (indexShard.routingEntry().restoreSource... | 1no label | src_main_java_org_elasticsearch_index_gateway_IndexShardGatewayService.java |
392 | final Iterator<OIdentifiable> subIterator = new OLazyIterator<OIdentifiable>() {
private int pos = -1;
public boolean hasNext() {
return pos < size() - 1;
}
public OIdentifiable next() {
return ORecordLazyList.this.rawGet(++pos);
}
public void remove() {
... | 0true | core_src_main_java_com_orientechnologies_orient_core_db_record_ORecordLazyList.java |
740 | public class TransportIndexDeleteByQueryAction extends TransportIndexReplicationOperationAction<IndexDeleteByQueryRequest, IndexDeleteByQueryResponse, ShardDeleteByQueryRequest, ShardDeleteByQueryRequest, ShardDeleteByQueryResponse> {
@Inject
public TransportIndexDeleteByQueryAction(Settings settings, ClusterS... | 0true | src_main_java_org_elasticsearch_action_deletebyquery_TransportIndexDeleteByQueryAction.java |
529 | public class OTransactionBlockedException extends OTransactionException {
private static final long serialVersionUID = 2347493191705052402L;
public OTransactionBlockedException(String message, Throwable cause) {
super(message, cause);
}
public OTransactionBlockedException(String message) {
super(mess... | 0true | core_src_main_java_com_orientechnologies_orient_core_exception_OTransactionBlockedException.java |
1,248 | public abstract class AbstractClient implements InternalClient {
@Override
public <Request extends ActionRequest, Response extends ActionResponse, RequestBuilder extends ActionRequestBuilder<Request, Response, RequestBuilder>> RequestBuilder prepareExecute(final Action<Request, Response, RequestBuilder> action... | 1no label | src_main_java_org_elasticsearch_client_support_AbstractClient.java |
858 | public class TransportSearchDfsQueryAndFetchAction extends TransportSearchTypeAction {
@Inject
public TransportSearchDfsQueryAndFetchAction(Settings settings, ThreadPool threadPool, ClusterService clusterService,
SearchServiceTransportAction searchService, Searc... | 0true | src_main_java_org_elasticsearch_action_search_type_TransportSearchDfsQueryAndFetchAction.java |
156 | static final class Sync extends AbstractQueuedLongSynchronizer {
private static final long serialVersionUID = 2540673546047039555L;
/**
* The number of times to spin in lock() and awaitAvailability().
*/
final int spins;
/**
* The number of reentrant hold... | 0true | src_main_java_jsr166e_extra_SequenceLock.java |
457 | executor.execute(new Runnable() {
@Override
public void run() {
for (int i = 0; i < operations; i++) {
map1.put("foo-" + i, "bar");
}
}
}, 60, EntryEventType.ADDED, operations, 0.75, map1, map2); | 0true | hazelcast-client_src_test_java_com_hazelcast_client_replicatedmap_ClientReplicatedMapTest.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 |
841 | searchServiceTransportAction.sendClearAllScrollContexts(node, request, new ActionListener<Boolean>() {
@Override
public void onResponse(Boolean success) {
onFreedContext();
}
... | 1no label | src_main_java_org_elasticsearch_action_search_TransportClearScrollAction.java |
1,514 | public class PreferLocalPrimariesToRelocatingPrimariesTests extends ElasticsearchAllocationTestCase {
@Test
public void testPreferLocalPrimaryAllocationOverFiltered() {
int concurrentRecoveries = randomIntBetween(1, 10);
int primaryRecoveries = randomIntBetween(1, 10);
int numberOfShards... | 0true | src_test_java_org_elasticsearch_cluster_routing_allocation_PreferLocalPrimariesToRelocatingPrimariesTests.java |
90 | public interface Duration extends Comparable<Duration> {
/**
* Returns the length of this duration in the given {@link TimeUnit}.
*
* @param unit
* @return
*/
public long getLength(TimeUnit unit);
/**
* Whether this duration is of zero length.
* @return
*/
publi... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_core_attribute_Duration.java |
574 | ex.execute(new Runnable() {
public void run() {
factory.newHazelcastInstance(config);
nodeLatch.countDown();
}
}); | 0true | hazelcast_src_test_java_com_hazelcast_cluster_ClusterMembershipTest.java |
95 | public class ClientImpl implements Client {
private final String uuid;
private final InetSocketAddress socketAddress;
public ClientImpl(String uuid, InetSocketAddress socketAddress) {
this.uuid = uuid;
this.socketAddress = socketAddress;
}
@Override
public String getUuid() {
... | 0true | hazelcast-client_src_main_java_com_hazelcast_client_ClientImpl.java |
82 | removeListenerActions.add(new Runnable() {
@Override
public void run() {
EventService eventService = clientEngine.getEventService();
eventService.deregisterListener(service, topic, id);
}
}); | 0true | hazelcast_src_main_java_com_hazelcast_client_ClientEndpoint.java |
1,015 | public abstract class InstanceShardOperationRequestBuilder<Request extends InstanceShardOperationRequest<Request>, Response extends ActionResponse, RequestBuilder extends InstanceShardOperationRequestBuilder<Request, Response, RequestBuilder>>
extends ActionRequestBuilder<Request, Response, RequestBuilder> {
... | 0true | src_main_java_org_elasticsearch_action_support_single_instance_InstanceShardOperationRequestBuilder.java |
546 | public abstract class ORecordHookAbstract implements ORecordHook {
/**
* It's called just before to create the new iRecord.
*
* @param iiRecord
* The iRecord to create
* @return True if the iRecord has been modified and a new marshalling is required, otherwise false
*/
public RESULT onRe... | 0true | core_src_main_java_com_orientechnologies_orient_core_hook_ORecordHookAbstract.java |
123 | @Service("blPageDefaultRuleProcessor")
public class PageDefaultRuleProcessor extends AbstractPageRuleProcessor {
private static final Log LOG = LogFactory.getLog(PageDefaultRuleProcessor.class);
/**
* Returns true if all of the rules associated with the passed in <code>Page</code>
* item match based ... | 0true | admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_page_service_PageDefaultRuleProcessor.java |
143 | static final class HashCode {
static final Random rng = new Random();
int code;
HashCode() {
int h = rng.nextInt(); // Avoid zero to allow xorShift rehash
code = (h == 0) ? 1 : h;
}
} | 0true | src_main_java_jsr166e_Striped64.java |
17 | public interface BiAction<A,B> { void accept(A a, B b); } | 0true | src_main_java_jsr166e_CompletableFuture.java |
926 | public abstract class BroadcastOperationRequest<T extends BroadcastOperationRequest> extends ActionRequest<T> {
protected String[] indices;
private BroadcastOperationThreading operationThreading = BroadcastOperationThreading.THREAD_PER_SHARD;
private IndicesOptions indicesOptions = IndicesOptions.strict()... | 1no label | src_main_java_org_elasticsearch_action_support_broadcast_BroadcastOperationRequest.java |
2,799 | public class Analysis {
public static Version parseAnalysisVersion(@IndexSettings Settings indexSettings, Settings settings, ESLogger logger) {
// check for explicit version on the specific analyzer component
String sVersion = settings.get("version");
if (sVersion != null) {
ret... | 1no label | src_main_java_org_elasticsearch_index_analysis_Analysis.java |
1,079 | public class UpdateHelper extends AbstractComponent {
private final IndicesService indicesService;
private final ScriptService scriptService;
@Inject
public UpdateHelper(Settings settings, IndicesService indicesService, ScriptService scriptService) {
super(settings);
this.indicesServic... | 1no label | src_main_java_org_elasticsearch_action_update_UpdateHelper.java |
548 | public interface TypedClosure<K, V> {
public K getKey(V value);
} | 0true | common_src_main_java_org_broadleafcommerce_common_util_TypedClosure.java |
114 | public abstract class DefinitionGenerator {
abstract String generateShared(String indent, String delim);
abstract String generate(String indent, String delim);
abstract Set<Declaration> getImports();
abstract String getBrokenName();
abstract String getDescription();
abstract ProducedType ge... | 1no label | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_correct_DefinitionGenerator.java |
3,507 | public class MapperService extends AbstractIndexComponent implements Iterable<DocumentMapper> {
public static final String DEFAULT_MAPPING = "_default_";
private static ObjectOpenHashSet<String> META_FIELDS = ObjectOpenHashSet.from(
"_uid", "_id", "_type", "_all", "_analyzer", "_boost", "_parent", ... | 1no label | src_main_java_org_elasticsearch_index_mapper_MapperService.java |
1,273 | @SuppressWarnings("unchecked")
public class InternalTransportIndicesAdminClient extends AbstractIndicesAdminClient implements IndicesAdminClient {
private final TransportClientNodesService nodesService;
private final ThreadPool threadPool;
private final ImmutableMap<IndicesAction, TransportActionNodeProx... | 1no label | src_main_java_org_elasticsearch_client_transport_support_InternalTransportIndicesAdminClient.java |
168 | private class SliceQueryRunner implements Runnable {
final KeySliceQuery kq;
final CountDownLatch doneSignal;
final AtomicInteger failureCount;
final Object[] resultArray;
final int resultPosition;
private SliceQueryRunner(KeySliceQuery kq, CountDownLatch doneSignal... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_diskstorage_BackendTransaction.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,792 | public class RestrictionType implements Serializable, BroadleafEnumerationType {
private static final long serialVersionUID = 1L;
private static final Map<String, RestrictionType> TYPES = new LinkedHashMap<String, RestrictionType>();
public static final RestrictionType STRING_LIKE = new RestrictionType(... | 1no label | admin_broadleaf-open-admin-platform_src_main_java_org_broadleafcommerce_openadmin_server_service_persistence_module_criteria_RestrictionType.java |
82 | LESS_THAN_EQUAL {
@Override
public boolean isValidValueType(Class<?> clazz) {
Preconditions.checkNotNull(clazz);
return Comparable.class.isAssignableFrom(clazz);
}
@Override
public boolean isValidCondition(Object condition) {
return condi... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_core_attribute_Cmp.java |
1,464 | public class OGraphFunctionFactory implements OSQLFunctionFactory {
private static final Map<String, Object> FUNCTIONS = new HashMap<String, Object>();
static {
FUNCTIONS.put(OSQLFunctionGremlin.NAME.toUpperCase(Locale.ENGLISH), OSQLFunctionGremlin.class);
FUNCTIONS.put(OSQLFunctionLabel.NAME.toUpperCase(... | 1no label | graphdb_src_main_java_com_orientechnologies_orient_graph_sql_functions_OGraphFunctionFactory.java |
281 | @RunWith(HazelcastSerialClassRunner.class)
@Category(QuickTest.class)
public class ClientSocketInterceptorTest {
@Before
@After
public void cleanup() throws Exception {
HazelcastClient.shutdownAll();
Hazelcast.shutdownAll();
}
@Test(timeout = 120000)
public void testSuccessfulS... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_io_ClientSocketInterceptorTest.java |
1,276 | public interface AckedClusterStateUpdateTask extends TimeoutClusterStateUpdateTask {
/**
* Called to determine which nodes the acknowledgement is expected from
* @param discoveryNode a node
* @return true if the node is expected to send ack back, false otherwise
*/
boolean mustAck(Discovery... | 0true | src_main_java_org_elasticsearch_cluster_AckedClusterStateUpdateTask.java |
742 | public class ListGetRequest extends CollectionRequest {
int index = -1;
public ListGetRequest() {
}
public ListGetRequest(String name, int index) {
super(name);
this.index = index;
}
@Override
protected Operation prepareOperation() {
return new ListGetOperation(na... | 0true | hazelcast_src_main_java_com_hazelcast_collection_client_ListGetRequest.java |
1,327 | public class SimpleClusterStateTests extends ElasticsearchIntegrationTest {
@Before
public void indexData() throws Exception {
index("foo", "bar", "1", XContentFactory.jsonBuilder().startObject().field("foo", "foo").endObject());
index("fuu", "buu", "1", XContentFactory.jsonBuilder().startObjec... | 0true | src_test_java_org_elasticsearch_cluster_SimpleClusterStateTests.java |
27 | @Service("blCategoryFieldService")
public class CategoryFieldServiceImpl extends AbstractRuleBuilderFieldService {
@Override
public void init() {
fields.add(new FieldData.Builder()
.label("rule_categoryName")
.name("name")
.operators("blcOperators_Text")
... | 0true | admin_broadleaf-admin-module_src_main_java_org_broadleafcommerce_admin_web_rulebuilder_service_CategoryFieldServiceImpl.java |
2,544 | public final class Address implements IdentifiedDataSerializable {
public static final int ID = 1;
private static final byte IPV4 = 4;
private static final byte IPV6 = 6;
private int port = -1;
private String host;
private byte type;
private String scopeId;
private boolean hostSet;
... | 1no label | hazelcast_src_main_java_com_hazelcast_nio_Address.java |
1,591 | public abstract class FieldMetadata implements Serializable {
private static final long serialVersionUID = 1L;
private String inheritedFromType;
private String[] availableToTypes;
private Boolean excluded;
private String friendlyName;
private String securityLevel;
private Integer order... | 1no label | admin_broadleaf-open-admin-platform_src_main_java_org_broadleafcommerce_openadmin_dto_FieldMetadata.java |
2,453 | public class MultiMapService implements ManagedService, RemoteService,
MigrationAwareService, EventPublishingService<MultiMapEvent, EventListener>, TransactionalService {
public static final String SERVICE_NAME = "hz:impl:multiMapService";
private static final int STATS_MAP_INITIAL_CAPACITY = 1000;
... | 1no label | hazelcast_src_main_java_com_hazelcast_multimap_MultiMapService.java |
696 | constructors[LIST_SET] = new ConstructorFunction<Integer, Portable>() {
public Portable createNew(Integer arg) {
return new ListSetRequest();
}
}; | 0true | hazelcast_src_main_java_com_hazelcast_collection_CollectionPortableHook.java |
1,150 | public class OSQLMethodNormalize extends OAbstractSQLMethod {
public static final String NAME = "normalize";
public OSQLMethodNormalize() {
super(NAME, 0, 2);
}
@Override
public Object execute(OIdentifiable iCurrentRecord, OCommandContext iContext, Object ioResult, Object[] iMethodParams)... | 1no label | core_src_main_java_com_orientechnologies_orient_core_sql_method_misc_OSQLMethodNormalize.java |
6,371 | public class ConnectTransportException extends ActionTransportException {
private final DiscoveryNode node;
public ConnectTransportException(DiscoveryNode node, String msg) {
this(node, msg, null, null);
}
public ConnectTransportException(DiscoveryNode node, String msg, String action) {
... | 1no label | src_main_java_org_elasticsearch_transport_ConnectTransportException.java |
68 | static final class MapEntry<K,V> implements Map.Entry<K,V> {
final K key; // non-null
V val; // non-null
final ConcurrentHashMapV8<K,V> map;
MapEntry(K key, V val, ConcurrentHashMapV8<K,V> map) {
this.key = key;
this.val = val;
this.map = map... | 0true | src_main_java_jsr166e_ConcurrentHashMapV8.java |
229 | assertTrueEventually(new AssertTask() {
public void run() throws Exception {
assertEquals(1, map.size());
}
}); | 0true | hazelcast-client_src_test_java_com_hazelcast_client_executor_ClientExecutorServiceExecuteTest.java |
368 | public class GetRepositoriesAction extends ClusterAction<GetRepositoriesRequest, GetRepositoriesResponse, GetRepositoriesRequestBuilder> {
public static final GetRepositoriesAction INSTANCE = new GetRepositoriesAction();
public static final String NAME = "cluster/repository/get";
private GetRepositoriesAc... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_repositories_get_GetRepositoriesAction.java |
6,421 | targetTransport.threadPool().generic().execute(new Runnable() {
@Override
public void run() {
targetTransport.messageReceived(data, action, sourceTransport, version, null);
}
}); | 1no label | src_main_java_org_elasticsearch_transport_local_LocalTransportChannel.java |
807 | execute(request, new ActionListener<MultiPercolateResponse>() {
@Override
public void onResponse(MultiPercolateResponse response) {
try {
channel.sendResponse(response);
} catch (Throwable e) {
... | 0true | src_main_java_org_elasticsearch_action_percolate_TransportMultiPercolateAction.java |
194 | public class ProxyFactoryConfig {
private String service;
private String className;
public ProxyFactoryConfig() {
}
public ProxyFactoryConfig(String className, String service) {
this.className = className;
this.service = service;
}
public String getClassName() {
... | 1no label | hazelcast-client_src_main_java_com_hazelcast_client_config_ProxyFactoryConfig.java |
43 | @Component("blPageItemCriteriaCustomPersistenceHandler")
public class PageItemCriteriaCustomPersistenceHandler extends CustomPersistenceHandlerAdapter {
private final Log LOG = LogFactory.getLog(PageItemCriteriaCustomPersistenceHandler.class);
@Override
public Boolean canHandleAdd(PersistencePackage persi... | 0true | admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_admin_server_handler_PageItemCriteriaCustomPersistenceHandler.java |
6,018 | public final class Correction {
public static final Correction[] EMPTY = new Correction[0];
public double score;
public final Candidate[] candidates;
public Correction(double score, Candidate[] candidates) {
this.score = score;
this.candidates = candidates;
}
@Override
pub... | 1no label | src_main_java_org_elasticsearch_search_suggest_phrase_Correction.java |
53 | @SuppressWarnings("serial")
static final class ForEachEntryTask<K,V>
extends BulkTask<K,V,Void> {
final Action<? super Entry<K,V>> action;
ForEachEntryTask
(BulkTask<K,V,?> p, int b, int i, int f, Node<K,V>[] t,
Action<? super Entry<K,V>> action) {
su... | 0true | src_main_java_jsr166e_ConcurrentHashMapV8.java |
278 | public interface OCommandResultListener {
/**
* This method is called for each result.
*
* @param iRecord
* Current record
* @return True to continue the query, otherwise false
*/
public boolean result(Object iRecord);
/**
* Called at the end of processing. This is useful to clean-... | 0true | core_src_main_java_com_orientechnologies_orient_core_command_OCommandResultListener.java |
2,154 | public class TxnLockAndGetOperation extends LockAwareOperation {
private VersionedValue response;
private String ownerUuid;
public TxnLockAndGetOperation() {
}
public TxnLockAndGetOperation(String name, Data dataKey, long timeout, long ttl, String ownerUuid) {
super(name, dataKey, ttl);
... | 1no label | hazelcast_src_main_java_com_hazelcast_map_tx_TxnLockAndGetOperation.java |
339 | public class NodeReplace extends NodeReplaceInsert {
@Override
protected boolean checkNode(List<Node> usedNodes, Node[] primaryNodes, Node node) {
if (replaceNode(primaryNodes, node, usedNodes)) {
return true;
}
//check if this same node already exists
if (exactNodeE... | 0true | common_src_main_java_org_broadleafcommerce_common_extensibility_context_merge_handlers_NodeReplace.java |
289 | public interface ListenableActionFuture<T> extends ActionFuture<T> {
/**
* Add an action listener to be invoked when a response has received.
*/
void addListener(final ActionListener<T> listener);
/**
* Add an action listener (runnable) to be invoked when a response has received.
*/
... | 0true | src_main_java_org_elasticsearch_action_ListenableActionFuture.java |
6,302 | public class MockDirectoryHelper {
public static final String RANDOM_IO_EXCEPTION_RATE = "index.store.mock.random.io_exception_rate";
public static final String RANDOM_IO_EXCEPTION_RATE_ON_OPEN = "index.store.mock.random.io_exception_rate_on_open";
public static final String RANDOM_THROTTLE = "index.store.m... | 1no label | src_test_java_org_elasticsearch_test_store_MockDirectoryHelper.java |
328 | public class MergeManagerSetupException extends Exception {
private static final long serialVersionUID = 1L;
public MergeManagerSetupException() {
super();
}
public MergeManagerSetupException(String arg0, Throwable arg1) {
super(arg0, arg1);
}
public MergeManagerSetupExce... | 0true | common_src_main_java_org_broadleafcommerce_common_extensibility_context_merge_exceptions_MergeManagerSetupException.java |
1,524 | public class RoutingNodesIntegrityTests extends ElasticsearchAllocationTestCase {
private final ESLogger logger = Loggers.getLogger(IndexBalanceTests.class);
@Test
public void testBalanceAllNodesStarted() {
AllocationService strategy = createAllocationService(settingsBuilder()
.put... | 0true | src_test_java_org_elasticsearch_cluster_routing_allocation_RoutingNodesIntegrityTests.java |
1,772 | public abstract class BasePolygonBuilder<E extends BasePolygonBuilder<E>> extends ShapeBuilder {
public static final GeoShapeType TYPE = GeoShapeType.POLYGON;
// Linear ring defining the shell of the polygon
protected Ring<E> shell;
// List of linear rings defining the holes of the polygon
prot... | 1no label | src_main_java_org_elasticsearch_common_geo_builders_BasePolygonBuilder.java |
494 | public class GenericResponse {
private List<String> errorCodes = new ArrayList<String>();
/**
* Returns true if
* @return
*/
public boolean getHasErrors() {
return errorCodes.size() > 0;
}
public List<String> getErrorCodesList() {
return errorCodes;
}
p... | 0true | common_src_main_java_org_broadleafcommerce_common_service_GenericResponse.java |
149 | public class ReadMostlyVector<E>
implements List<E>, RandomAccess, Cloneable, java.io.Serializable {
private static final long serialVersionUID = 8673264195747942595L;
/*
* This class exists mainly as a vehicle to exercise various
* constructions using SequenceLocks. Read-only methods
* ... | 0true | src_main_java_jsr166e_extra_ReadMostlyVector.java |
4,444 | public static class FieldDataWeigher implements Weigher<Key, AtomicFieldData> {
@Override
public int weigh(Key key, AtomicFieldData fieldData) {
int weight = (int) Math.min(fieldData.getMemorySizeInBytes(), Integer.MAX_VALUE);
return weight == 0 ? 1 : weight;
}
} | 1no label | src_main_java_org_elasticsearch_indices_fielddata_cache_IndicesFieldDataCache.java |
193 | @Embeddable
public class Auditable implements Serializable {
private static final long serialVersionUID = 1L;
@Column(name = "DATE_CREATED", updatable = false)
@Temporal(TemporalType.TIMESTAMP)
@AdminPresentation(friendlyName = "Auditable_Date_Created", order = 1000,
tab = Presentation.Tab... | 1no label | common_src_main_java_org_broadleafcommerce_common_audit_Auditable.java |
1,013 | @Entity
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "BLC_GIFTWRAP_ORDER_ITEM")
@Cache(usage=CacheConcurrencyStrategy.NONSTRICT_READ_WRITE, region="blOrderElements")
@AdminPresentationClass(friendlyName = "GiftWrapOrderItemImpl_giftWrapOrderItem")
public class GiftWrapOrderItemImpl extends DiscreteOrde... | 1no label | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_order_domain_GiftWrapOrderItemImpl.java |
480 | public class ProtoSecureChannelProcessor extends SecureChannelProcessor {
@Override
public void decide(FilterInvocation invocation, Collection<ConfigAttribute> config) throws IOException, ServletException {
Assert.isTrue((invocation != null) && (config != null), "Nulls cannot be provided");
fo... | 0true | common_src_main_java_org_broadleafcommerce_common_security_channel_ProtoSecureChannelProcessor.java |
375 | public class ODatabaseFlat extends ODatabaseRecordTx {
public ODatabaseFlat(String iURL) {
super(iURL, ORecordFlat.RECORD_TYPE);
}
@SuppressWarnings("unchecked")
@Override
public ORecordIteratorCluster<ORecordFlat> browseCluster(final String iClusterName) {
return super.browseCluster(iClusterName, O... | 1no label | core_src_main_java_com_orientechnologies_orient_core_db_record_ODatabaseFlat.java |
4 | @Component("blCategoryCustomPersistenceHandler")
public class CategoryCustomPersistenceHandler extends CustomPersistenceHandlerAdapter {
private static final Log LOG = LogFactory.getLog(CategoryCustomPersistenceHandler.class);
@Override
public Boolean canHandleAdd(PersistencePackage persistencePackage... | 0true | admin_broadleaf-admin-module_src_main_java_org_broadleafcommerce_admin_server_service_handler_CategoryCustomPersistenceHandler.java |
158 | private final Function<String, Locker> ASTYANAX_RECIPE_LOCKER_CREATOR = new Function<String, Locker>() {
@Override
public Locker apply(String lockerName) {
String expectedManagerName = "com.thinkaurelius.titan.diskstorage.cassandra.astyanax.AstyanaxStoreManager";
String act... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_diskstorage_Backend.java |
583 | public class PaymentHostException extends PaymentException {
private static final long serialVersionUID = 1L;
public PaymentHostException() {
super();
}
public PaymentHostException(String message, Throwable cause) {
super(message, cause);
}
public PaymentHostException(String ... | 0true | common_src_main_java_org_broadleafcommerce_common_vendor_service_exception_PaymentHostException.java |
742 | public class ProductOptionValidationType implements Serializable, BroadleafEnumerationType {
private static final long serialVersionUID = 1L;
private static final Map<String, ProductOptionValidationType> TYPES = new LinkedHashMap<String, ProductOptionValidationType>();
public static final ProductOptionVa... | 1no label | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_catalog_service_type_ProductOptionValidationType.java |
2,608 | = new ConstructorFunction<Address, ConnectionMonitor>() {
public ConnectionMonitor createNew(Address endpoint) {
return new ConnectionMonitor(TcpIpConnectionManager.this, endpoint);
}
}; | 1no label | hazelcast_src_main_java_com_hazelcast_nio_TcpIpConnectionManager.java |
1,004 | public abstract class TransportSingleCustomOperationAction<Request extends SingleCustomOperationRequest, Response extends ActionResponse> extends TransportAction<Request, Response> {
protected final ClusterService clusterService;
protected final TransportService transportService;
final String transportAc... | 0true | src_main_java_org_elasticsearch_action_support_single_custom_TransportSingleCustomOperationAction.java |
379 | public class ClusterRerouteAction extends ClusterAction<ClusterRerouteRequest, ClusterRerouteResponse, ClusterRerouteRequestBuilder> {
public static final ClusterRerouteAction INSTANCE = new ClusterRerouteAction();
public static final String NAME = "cluster/reroute";
private ClusterRerouteAction() {
... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_reroute_ClusterRerouteAction.java |
368 | public class DynamicTranslationProvider {
/**
* If translations are enabled, this method will look for a translation for the specified field. If translations are
* disabled or if this particular field did not have a translation, it will return back the defaultValue.
*
* @param obj
* @... | 0true | common_src_main_java_org_broadleafcommerce_common_i18n_service_DynamicTranslationProvider.java |
587 | public interface PaymentResponse extends Serializable {
public boolean isErrorDetected();
public void setErrorDetected(boolean isErrorDetected);
public String getErrorCode();
public void setErrorCode(String errorCode);
public String getErrorText();
public void setErrorText(String errorText... | 0true | common_src_main_java_org_broadleafcommerce_common_vendor_service_message_PaymentResponse.java |
435 | static final class Fields {
static final XContentBuilderString SHARDS = new XContentBuilderString("shards");
static final XContentBuilderString TOTAL = new XContentBuilderString("total");
static final XContentBuilderString PRIMARIES = new XContentBuilderString("primaries");
... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_stats_ClusterStatsIndices.java |
1,208 | longIntMap = build(type, limit, smartSize, availableProcessors, new Recycler.C<LongIntOpenHashMap>() {
@Override
public LongIntOpenHashMap newInstance(int sizing) {
return new LongIntOpenHashMap(size(sizing));
}
@Override
public void c... | 0true | src_main_java_org_elasticsearch_cache_recycler_CacheRecycler.java |
4,922 | public class RestMultiGetAction extends BaseRestHandler {
private final boolean allowExplicitIndex;
@Inject
public RestMultiGetAction(Settings settings, Client client, RestController controller) {
super(settings, client);
controller.registerHandler(GET, "/_mget", this);
controller.... | 1no label | src_main_java_org_elasticsearch_rest_action_get_RestMultiGetAction.java |
2,080 | public class PartitionWideEntryOperation extends AbstractMapOperation
implements BackupAwareOperation, PartitionAwareOperation {
private static final EntryEventType __NO_NEED_TO_FIRE_EVENT = null;
EntryProcessor entryProcessor;
MapEntrySet response;
public PartitionWideEntryOperation(String na... | 1no label | hazelcast_src_main_java_com_hazelcast_map_operation_PartitionWideEntryOperation.java |
93 | interface ClientExceptionConverter {
Object convert(Throwable t);
} | 0true | hazelcast_src_main_java_com_hazelcast_client_ClientExceptionConverter.java |
324 | public class MergeXmlConfigResource {
private static final Log LOG = LogFactory.getLog(MergeXmlConfigResource.class);
public Resource getMergedConfigResource(ResourceInputStream[] sources) throws BeansException {
Resource configResource = null;
ResourceInputStream merged = null;
try {
... | 0true | common_src_main_java_org_broadleafcommerce_common_extensibility_context_merge_MergeXmlConfigResource.java |
338 | static class Deal implements Serializable {
Integer id;
Deal(Integer id) {
this.id = id;
}
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
} | 0true | hazelcast-client_src_test_java_com_hazelcast_client_map_ClientMapTest.java |
1,420 | public class TitanHBaseRecordReader extends RecordReader<NullWritable, FaunusVertex> {
private TableRecordReader reader;
private TitanHBaseHadoopGraph graph;
private FaunusVertexQueryFilter vertexQuery;
private Configuration configuration;
private FaunusVertex vertex;
private final byte[] edg... | 1no label | titan-hadoop-parent_titan-hadoop-core_src_main_java_com_thinkaurelius_titan_hadoop_formats_hbase_TitanHBaseRecordReader.java |
5,807 | private static class CustomWeightedSpanTermExtractor extends WeightedSpanTermExtractor {
public CustomWeightedSpanTermExtractor() {
super();
}
public CustomWeightedSpanTermExtractor(String defaultField) {
super(defaultField);
}
@Override
pro... | 1no label | src_main_java_org_elasticsearch_search_highlight_CustomQueryScorer.java |
465 | public interface SimpleRule extends Serializable {
/**
* The rule in the form of an MVEL expression
*
* @return the rule as an MVEL string
*/
@Nonnull
public String getMatchRule();
/**
* Sets the match rule used to test this item.
*
* @param matchRule the rule as an ... | 0true | common_src_main_java_org_broadleafcommerce_common_rule_SimpleRule.java |
707 | constructors[TXN_SET_SIZE] = new ConstructorFunction<Integer, Portable>() {
public Portable createNew(Integer arg) {
return new TxnSetSizeRequest();
}
}; | 0true | hazelcast_src_main_java_com_hazelcast_collection_CollectionPortableHook.java |
201 | public abstract class ClientAbstractIOSelector extends Thread implements IOSelector {
private static final int TIMEOUT = 3;
protected final ILogger logger;
protected final Queue<Runnable> selectorQueue = new ConcurrentLinkedQueue<Runnable>();
protected final int waitTime;
protected final Select... | 1no label | hazelcast-client_src_main_java_com_hazelcast_client_connection_nio_ClientAbstractIOSelector.java |
5,400 | @SuppressWarnings({"unchecked", "ForLoopReplaceableByForEach"})
public class AggregationContext implements ReaderContextAware, ScorerAware {
private final SearchContext searchContext;
private ObjectObjectOpenHashMap<String, FieldDataSource>[] perDepthFieldDataSources = new ObjectObjectOpenHashMap[4];
priv... | 1no label | src_main_java_org_elasticsearch_search_aggregations_support_AggregationContext.java |
419 | public final class ClientMapProxy<K, V> extends ClientProxy implements IMap<K, V> {
private final String name;
private volatile ClientNearCache<Data> nearCache;
private final AtomicBoolean nearCacheInitialized = new AtomicBoolean();
public ClientMapProxy(String instanceName, String serviceName, String... | 1no label | hazelcast-client_src_main_java_com_hazelcast_client_proxy_ClientMapProxy.java |
1,072 | indexAction.execute(upsertRequest, new ActionListener<IndexResponse>() {
@Override
public void onResponse(IndexResponse response) {
UpdateResponse update = new UpdateResponse(response.getIndex(), response.getType(), response.getId(), respon... | 1no label | src_main_java_org_elasticsearch_action_update_TransportUpdateAction.java |
402 | public class OomeOnClientAuthenticationMain {
private OomeOnClientAuthenticationMain() {
}
public static void main(String[] args) {
HazelcastInstance hz = Hazelcast.newHazelcastInstance();
ClientConfig clientConfig = new ClientConfig();
clientConfig.getGroupConfig().setPassword("fo... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_oome_OomeOnClientAuthenticationMain.java |
548 | public class GetFieldMappingsAction extends IndicesAction<GetFieldMappingsRequest, GetFieldMappingsResponse, GetFieldMappingsRequestBuilder> {
public static final GetFieldMappingsAction INSTANCE = new GetFieldMappingsAction();
public static final String NAME = "mappings/fields/get";
private GetFieldMappin... | 0true | src_main_java_org_elasticsearch_action_admin_indices_mapping_get_GetFieldMappingsAction.java |
88 | public class Decimal extends AbstractDecimal {
public static final int DECIMALS = 3;
public static final Decimal MIN_VALUE = new Decimal(minDoubleValue(DECIMALS));
public static final Decimal MAX_VALUE = new Decimal(maxDoubleValue(DECIMALS));
private Decimal() {}
public Decimal(double value) {
... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_core_attribute_Decimal.java |
1,071 | public class MaxSizeConfig {
private MaxSizeConfigReadOnly readOnly;
private int size = MapConfig.DEFAULT_MAX_SIZE;
private MaxSizePolicy maxSizePolicy = MaxSizePolicy.PER_NODE;
public MaxSizeConfig() {
}
public MaxSizeConfig(int size, MaxSizePolicy maxSizePolicy) {
this.size = size;... | 1no label | hazelcast_src_main_java_com_hazelcast_config_MaxSizeConfig.java |
1,696 | public class BytesArray implements BytesReference {
public static final BytesArray EMPTY = new BytesArray(BytesRef.EMPTY_BYTES, 0, 0);
private byte[] bytes;
private int offset;
private int length;
public BytesArray(String bytes) {
BytesRef bytesRef = new BytesRef();
UnicodeUtil.UT... | 1no label | src_main_java_org_elasticsearch_common_bytes_BytesArray.java |
1,317 | public interface LocalNodeMasterListener {
/**
* Called when local node is elected to be the master
*/
void onMaster();
/**
* Called when the local node used to be the master, a new master was elected and it's no longer the local node.
*/
void offMaster();
/**
* The name ... | 0true | src_main_java_org_elasticsearch_cluster_LocalNodeMasterListener.java |
510 | public class StressThread extends TestThread {
@Override
public void doRun() throws Exception {
while (!isStopped()) {
int key = random.nextInt(MAP_SIZE);
int value = map.get(key);
assertEquals("The value for the key was not consistent", k... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_stress_MapStableReadStressTest.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.