Unnamed: 0 int64 0 6.45k | func stringlengths 37 161k | target class label 2
classes | project stringlengths 33 167 |
|---|---|---|---|
1,591 | public class ODistributedStorage implements OStorage, OFreezableStorage {
protected final OServer serverInstance;
protected final ODistributedServerManager dManager;
protected final OStorageEmbedded wrapped;
public ODistributedStorage(final OServer iServer, final OStorageEmbedded wra... | 1no label | server_src_main_java_com_orientechnologies_orient_server_distributed_ODistributedStorage.java |
4,522 | private class ExpiredDocsCollector extends Collector {
private final MapperService mapperService;
private AtomicReaderContext context;
private List<DocToPurge> docsToPurge = new ArrayList<DocToPurge>();
public ExpiredDocsCollector(String index) {
mapperService = indicesS... | 1no label | src_main_java_org_elasticsearch_indices_ttl_IndicesTTLService.java |
154 | public class ODoubleSerializer implements OBinarySerializer<Double> {
private static final OBinaryConverter CONVERTER = OBinaryConverterFactory.getConverter();
public static ODoubleSerializer INSTANCE = new ODoubleSerializer();
public static final byte ID = 6;
/**
* size of double value in bytes
*/
pu... | 0true | commons_src_main_java_com_orientechnologies_common_serialization_types_ODoubleSerializer.java |
1,129 | public class FulfillmentGroupStatusType implements Serializable, BroadleafEnumerationType {
private static final long serialVersionUID = 1L;
private static final Map<String, FulfillmentGroupStatusType> TYPES = new LinkedHashMap<String, FulfillmentGroupStatusType>();
/**
* Use FULFILLED, PARTIALL... | 1no label | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_order_service_type_FulfillmentGroupStatusType.java |
128 | final class ClientServiceProxy implements ClientService {
private final ClientEngineImpl clientEngine;
ClientServiceProxy(ClientEngineImpl clientEngine) {
this.clientEngine = clientEngine;
}
@Override
public Collection<Client> getConnectedClients() {
return clientEngine.getClients... | 0true | hazelcast_src_main_java_com_hazelcast_client_ClientServiceProxy.java |
125 | public enum Mapping {
DEFAULT,
TEXT,
STRING,
TEXTSTRING;
/**
* Returns the mapping as a parameter so that it can be passed to {@link TitanManagement#addIndexKey(TitanGraphIndex, com.thinkaurelius.titan.core.PropertyKey, Parameter[])}
* @return
*/
public Parameter getParameter() ... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_core_schema_Mapping.java |
17 | final class EntryIterator extends AbstractEntryIterator<K, V, Map.Entry<K, V>> {
EntryIterator(final OMVRBTreeEntry<K, V> first) {
super(first);
}
public Map.Entry<K, V> next() {
return nextEntry();
}
} | 0true | commons_src_main_java_com_orientechnologies_common_collection_OMVRBTree.java |
5,361 | public class InternalMin extends MetricsAggregation.SingleValue implements Min {
public final static Type TYPE = new Type("min");
public final static AggregationStreams.Stream STREAM = new AggregationStreams.Stream() {
@Override
public InternalMin readResult(StreamInput in) throws IOException ... | 1no label | src_main_java_org_elasticsearch_search_aggregations_metrics_min_InternalMin.java |
1,132 | public class OrderStatus implements Serializable, BroadleafEnumerationType {
private static final long serialVersionUID = 1L;
private static final Map<String, OrderStatus> TYPES = new LinkedHashMap<String, OrderStatus>();
public static final OrderStatus NAMED = new OrderStatus("NAMED", "Named");
publ... | 1no label | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_order_service_type_OrderStatus.java |
5,313 | public class StringTermsAggregator extends BucketsAggregator {
private final ValuesSource valuesSource;
private final InternalOrder order;
private final int requiredSize;
private final int shardSize;
private final long minDocCount;
protected final BytesRefHash bucketOrds;
private final Incl... | 1no label | src_main_java_org_elasticsearch_search_aggregations_bucket_terms_StringTermsAggregator.java |
115 | public interface Combiner<M> {
/**
* Combines two state into a combined state.
*
* @param m1
* @param m2
* @return The combination of m1 and m2
*/
public M combine(M m1, M m2);
} | 0true | titan-core_src_main_java_com_thinkaurelius_titan_core_olap_Combiner.java |
526 | public class OSerializationException extends OException {
private static final long serialVersionUID = -3003977236233691448L;
public OSerializationException(String string) {
super(string);
}
public OSerializationException(String message, Throwable cause) {
super(message, cause);
}
} | 0true | core_src_main_java_com_orientechnologies_orient_core_exception_OSerializationException.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 |
729 | private static class FindInvocationsVisitor extends Visitor {
private Declaration declaration;
private final Set<Tree.PositionalArgumentList> posResults =
new HashSet<Tree.PositionalArgumentList>();
private final Set<Tree.NamedArgumentList> namedResults =
ne... | 1no label | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_refactor_ChangeParametersRefactoring.java |
1,121 | public class ScriptsScoreBenchmark extends BasicScriptBenchmark {
public static void main(String[] args) throws Exception {
int minTerms = 1;
int maxTerms = 50;
int maxIter = 100;
int warmerIter = 10;
boolean runMVEL = false;
init(maxTerms);
List<Results> a... | 0true | src_test_java_org_elasticsearch_benchmark_scripts_score_ScriptsScoreBenchmark.java |
1,378 | public static class Builder {
private String index;
private State state = State.OPEN;
private long version = 1;
private Settings settings = ImmutableSettings.Builder.EMPTY_SETTINGS;
private final ImmutableOpenMap.Builder<String, MappingMetaData> mappings;
private fin... | 1no label | src_main_java_org_elasticsearch_cluster_metadata_IndexMetaData.java |
324 | public class NodesInfoAction extends ClusterAction<NodesInfoRequest, NodesInfoResponse, NodesInfoRequestBuilder> {
public static final NodesInfoAction INSTANCE = new NodesInfoAction();
public static final String NAME = "cluster/nodes/info";
private NodesInfoAction() {
super(NAME);
}
@Over... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_node_info_NodesInfoAction.java |
36 | public class SetCommandParser extends TypeAwareCommandParser {
public SetCommandParser(TextCommandConstants.TextCommandType type) {
super(type);
}
public TextCommand parser(SocketTextReader socketTextReader, String cmd, int space) {
StringTokenizer st = new StringTokenizer(cmd);
st.... | 0true | hazelcast_src_main_java_com_hazelcast_ascii_memcache_SetCommandParser.java |
640 | public class ShardStatus extends BroadcastShardOperationResponse {
private ShardRouting shardRouting;
IndexShardState state;
ByteSizeValue storeSize;
long translogId = -1;
long translogOperations = -1;
DocsStatus docs;
MergeStats mergeStats;
RefreshStats refreshStats;
FlushS... | 0true | src_main_java_org_elasticsearch_action_admin_indices_status_ShardStatus.java |
161 | return executeRead(new Callable<EntryList>() {
@Override
public EntryList call() throws Exception {
return cacheEnabled?edgeStore.getSlice(query, storeTx):
edgeStore.getSliceNoCache(query,storeTx);
}
@Override
... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_diskstorage_BackendTransaction.java |
581 | getValuesMinor(toKey, isInclusive, new IndexValuesResultListener() {
@Override
public boolean addResult(OIdentifiable value) {
result.add(value);
return true;
}
}); | 0true | core_src_main_java_com_orientechnologies_orient_core_index_OIndexAbstract.java |
1,518 | public class RandomAllocationDeciderTests extends ElasticsearchAllocationTestCase {
/* This test will make random allocation decision on a growing and shrinking
* cluster leading to a random distribution of the shards. After a certain
* amount of iterations the test allows allocation unless the same shar... | 0true | src_test_java_org_elasticsearch_cluster_routing_allocation_RandomAllocationDeciderTests.java |
1,378 | private static class CassandraMapIterator implements Iterator<Entry> {
private final Iterator<Map.Entry<ByteBuffer, Column>> iterator;
public CassandraMapIterator(final Iterator<Map.Entry<ByteBuffer, Column>> iterator) {
this.iterator = iterator;
}
@Override
pu... | 1no label | titan-hadoop-parent_titan-hadoop-core_src_main_java_com_thinkaurelius_titan_hadoop_formats_cassandra_TitanCassandraHadoopGraph.java |
221 | public class ClientTestApp implements EntryListener, ItemListener, MessageListener {
private static final int ONE_KB = 1024;
private static final int ONE_THOUSAND = 1000;
private static final int ONE_HUNDRED = 100;
private static final int ONE_HOUR = 3600;
private IQueue<Object> queue;
privat... | 0true | hazelcast-client_src_main_java_com_hazelcast_client_examples_ClientTestApp.java |
63 | {
@Override
public TransactionState create( Transaction tx )
{
return new NoTransactionState()
{
@Override
@SuppressWarnings("deprecation")
public TxIdGenerator getTxIdGenerator()
{
re... | 0true | community_kernel_src_test_java_org_neo4j_kernel_impl_transaction_TestXaFramework.java |
1,190 | public class OQueryOperatorMinorEquals extends OQueryOperatorEqualityNotNulls {
public OQueryOperatorMinorEquals() {
super("<=", 5, false);
}
@Override
@SuppressWarnings("unchecked")
protected boolean evaluateExpression(final OIdentifiable iRecord, final OSQLFilterCondition iCondition, final Object iLef... | 1no label | core_src_main_java_com_orientechnologies_orient_core_sql_operator_OQueryOperatorMinorEquals.java |
44 | abstract static class BulkTask<K,V,R> extends CountedCompleter<R> {
Node<K,V>[] tab; // same as Traverser
Node<K,V> next;
int index;
int baseIndex;
int baseLimit;
final int baseSize;
int batch; // split control
BulkTask(BulkTask<K,... | 0true | src_main_java_jsr166e_ConcurrentHashMapV8.java |
320 | public class OStorageEHClusterConfiguration implements OStorageClusterConfiguration, Serializable {
public transient OStorageConfiguration root;
public int id;
public String name;
public String location;
public int ... | 0true | core_src_main_java_com_orientechnologies_orient_core_config_OStorageEHClusterConfiguration.java |
3,865 | public class IdsFilterParser implements FilterParser {
public static final String NAME = "ids";
@Inject
public IdsFilterParser() {
}
@Override
public String[] names() {
return new String[]{NAME};
}
@Override
public Filter parse(QueryParseContext parseContext) throws IOExc... | 1no label | src_main_java_org_elasticsearch_index_query_IdsFilterParser.java |
71 | public class AuthenticationException extends HazelcastException {
public AuthenticationException() {
super("Wrong group name and password.");
}
public AuthenticationException(String message) {
super(message);
}
} | 0true | hazelcast_src_main_java_com_hazelcast_client_AuthenticationException.java |
595 | public class PlotConstants {
/*
* Default Plot Properties.
*/
public static final int DEFAULT_NUMBER_OF_SUBPLOTS = 1;
public static final boolean LOCAL_CONTROLS_ENABLED_BY_DEFAULT = true;
public static final YAxisMaximumLocationSetting DEFAULT_Y_AXIS_MAX_LOCATION_SETTING = YAxisMaximumLocationSetting.MAXIMUM_A... | 1no label | fastPlotViews_src_main_java_gov_nasa_arc_mct_fastplot_bridge_PlotConstants.java |
495 | public interface SiteDao {
/**
* Finds a site by its id.
* @param id
* @return
*/
public Site retrieve(Long id);
/**
* Finds a site by its domain or domain prefix.
* @param domain
* @param prefix
* @return
*/
public Site retrieveSiteByDomainOrDomainPrefix(S... | 0true | common_src_main_java_org_broadleafcommerce_common_site_dao_SiteDao.java |
1,218 | public class MockPageCacheRecycler extends PageCacheRecycler {
private static final ConcurrentMap<Object, Throwable> ACQUIRED_PAGES = Maps.newConcurrentMap();
public static void ensureAllPagesAreReleased() {
if (ACQUIRED_PAGES.size() > 0) {
final Throwable t = ACQUIRED_PAGES.entrySet().ite... | 1no label | src_test_java_org_elasticsearch_cache_recycler_MockPageCacheRecycler.java |
649 | public class StatusExposingServletResponse extends HttpServletResponseWrapper {
private int httpStatus=200;
public StatusExposingServletResponse(HttpServletResponse response) {
super(response);
}
@Override
public void sendError(int sc) throws IOException {
httpStatus = sc;
... | 0true | common_src_main_java_org_broadleafcommerce_common_web_util_StatusExposingServletResponse.java |
5,470 | public static Comparator<AtomicArray.Entry<? extends QuerySearchResultProvider>> QUERY_RESULT_ORDERING = new Comparator<AtomicArray.Entry<? extends QuerySearchResultProvider>>() {
@Override
public int compare(AtomicArray.Entry<? extends QuerySearchResultProvider> o1, AtomicArray.Entry<? extends Quer... | 1no label | src_main_java_org_elasticsearch_search_controller_SearchPhaseController.java |
516 | public interface TimeSource {
long timeInMillis();
} | 0true | common_src_main_java_org_broadleafcommerce_common_time_TimeSource.java |
793 | public class PercolateRequest extends BroadcastOperationRequest<PercolateRequest> {
public static final XContentType contentType = Requests.CONTENT_TYPE;
private String documentType;
private String routing;
private String preference;
private GetRequest getRequest;
private boolean onlyCount;
... | 0true | src_main_java_org_elasticsearch_action_percolate_PercolateRequest.java |
528 | class ShardFlushRequest extends BroadcastShardOperationRequest {
private boolean full;
private boolean force;
ShardFlushRequest() {
}
public ShardFlushRequest(String index, int shardId, FlushRequest request) {
super(index, shardId, request);
this.full = request.full();
thi... | 0true | src_main_java_org_elasticsearch_action_admin_indices_flush_ShardFlushRequest.java |
1,091 | public final class ODefaultSQLFunctionFactory implements OSQLFunctionFactory {
private static final Map<String, Object> FUNCTIONS = new HashMap<String, Object>();
static {
// MISC FUNCTIONS
FUNCTIONS.put(OSQLFunctionCoalesce.NAME.toUpperCase(Locale.ENGLISH), new OSQLFunctionCoalesce());
FUNCTIONS.put(O... | 1no label | core_src_main_java_com_orientechnologies_orient_core_sql_functions_ODefaultSQLFunctionFactory.java |
57 | public class HttpPostCommand extends HttpCommand {
boolean nextLine;
boolean readyToReadData;
private ByteBuffer data;
private ByteBuffer line = ByteBuffer.allocate(500);
private String contentType;
private final SocketTextReader socketTextRequestReader;
private boolean chunked;
public... | 0true | hazelcast_src_main_java_com_hazelcast_ascii_rest_HttpPostCommand.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 |
335 | new Thread() {
public void run() {
if (!map.tryLock("key1")) {
latch.countDown();
}
try {
if (map.tryLock("key1", 5, TimeUnit.SECONDS)) {
latch.countDown();
}
... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_map_ClientMapTest.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 |
826 | public class SetBackupOperation extends AtomicLongBaseOperation implements BackupOperation {
private long newValue;
public SetBackupOperation() {
}
public SetBackupOperation(String name, long newValue) {
super(name);
this.newValue = newValue;
}
@Override
public void run()... | 0true | hazelcast_src_main_java_com_hazelcast_concurrent_atomiclong_operations_SetBackupOperation.java |
3,451 | public class LocalIndexShardGateway extends AbstractIndexShardComponent implements IndexShardGateway {
private final ThreadPool threadPool;
private final InternalIndexShard indexShard;
private final RecoveryStatus recoveryStatus = new RecoveryStatus();
private volatile ScheduledFuture flushScheduler... | 1no label | src_main_java_org_elasticsearch_index_gateway_local_LocalIndexShardGateway.java |
669 | constructors[COLLECTION_TXN_ADD_BACKUP] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {
public IdentifiedDataSerializable createNew(Integer arg) {
return new CollectionTxnAddBackupOperation();
}
}; | 0true | hazelcast_src_main_java_com_hazelcast_collection_CollectionDataSerializerHook.java |
68 | static class NodeHolder {
Node node;
public NodeHolder(Node node) {
this.node = node;
}
public NodeHolder getSub(String name) {
if (node != null) {
for (org.w3c.dom.Node node : new AbstractXmlConfigHelper.IterableNodeList(this.node.getChildNo... | 1no label | hazelcast-cloud_src_main_java_com_hazelcast_aws_utility_CloudyUtility.java |
52 | final class NestedCompletionProposal implements ICompletionProposal,
ICompletionProposalExtension2 {
private final Declaration dec;
private final int offset;
public NestedCompletionProposal(Declaration dec, int offset) {
super();
this.de... | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_complete_RefinementCompletionProposal.java |
49 | @Component("blStructuredContentTypeCustomPersistenceHandler")
public class StructuredContentTypeCustomPersistenceHandler extends CustomPersistenceHandlerAdapter {
private final Log LOG = LogFactory.getLog(StructuredContentTypeCustomPersistenceHandler.class);
@Resource(name="blStructuredContentService")
pr... | 1no label | admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_admin_server_handler_StructuredContentTypeCustomPersistenceHandler.java |
138 | @Test
public class CharSerializerTest {
private static final int FIELD_SIZE = 2;
private static final Character OBJECT = (char) (new Random()).nextInt();
private OCharSerializer charSerializer;
byte[] stream = new byte[FIELD_SIZE];
@BeforeClass
public void befor... | 0true | commons_src_test_java_com_orientechnologies_common_serialization_types_CharSerializerTest.java |
2,614 | private static class FastStringCreator implements UTFEncoderDecoder.StringCreator {
private final Constructor<String> constructor;
private final boolean useOldStringConstructor;
public FastStringCreator(Constructor<String> constructor) {
this.constructor = constructor;
... | 1no label | hazelcast_src_main_java_com_hazelcast_nio_UTFEncoderDecoder.java |
191 | public interface TransferQueue<E> extends BlockingQueue<E> {
/**
* Transfers the element to a waiting consumer immediately, if possible.
*
* <p>More precisely, transfers the specified element immediately
* if there exists a consumer already waiting to receive it (in
* {@link #take} or timed... | 0true | src_main_java_jsr166y_TransferQueue.java |
644 | @Component("blAuthenticationFailureRedirectStrategy")
public class BroadleafAuthenticationFailureRedirectStrategy implements RedirectStrategy {
private RedirectStrategy redirectStrategy = new DefaultRedirectStrategy();
@Override
public void sendRedirect(HttpServletRequest request, HttpServletResponse ... | 0true | core_broadleaf-framework-web_src_main_java_org_broadleafcommerce_common_web_security_BroadleafAuthenticationFailureRedirectStrategy.java |
1,011 | private class ShardTransportHandler extends BaseTransportRequestHandler<ShardSingleOperationRequest> {
@Override
public ShardSingleOperationRequest newInstance() {
return new ShardSingleOperationRequest();
}
@Override
public String executor() {
retur... | 0true | src_main_java_org_elasticsearch_action_support_single_custom_TransportSingleCustomOperationAction.java |
1,491 | public interface ShardsIterator {
/**
* Resets the iterator to its initial state.
*/
void reset();
/**
* The number of shard routing instances.
*
* @return number of shard routing instances in this iterator
*/
int size();
/**
* The number of active shard routing... | 0true | src_main_java_org_elasticsearch_cluster_routing_ShardsIterator.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 |
1,181 | threads[i] = new Thread(new Runnable() {
@Override
public void run() {
for (long i = 0; i < NUMBER_OF_ITERATIONS; i++) {
UUID.randomUUID().toString();
}
latch.countDown();
}
... | 0true | src_test_java_org_elasticsearch_benchmark_uuid_SimpleUuidBenchmark.java |
39 | @SuppressWarnings("unchecked")
public class OMVRBTreeSet<E> extends AbstractSet<E> implements ONavigableSet<E>, Cloneable, java.io.Serializable {
/**
* The backing map.
*/
private transient ONavigableMap<E, Object> m;
// Dummy value to associate with an Object in the backing Map
private static final Object ... | 0true | commons_src_main_java_com_orientechnologies_common_collection_OMVRBTreeSet.java |
2,934 | public static final class Factory implements TokenFilterFactory {
private final int maxShingleSize;
private final boolean outputUnigrams;
private final boolean outputUnigramsIfNoShingles;
private final String tokenSeparator;
private int minShingleSize;
pr... | 1no label | src_main_java_org_elasticsearch_index_analysis_ShingleTokenFilterFactory.java |
3,290 | abstract class AbstractGeoPointIndexFieldData extends AbstractIndexFieldData<AtomicGeoPointFieldData<ScriptDocValues>> implements IndexGeoPointFieldData<AtomicGeoPointFieldData<ScriptDocValues>> {
protected static class Empty extends AtomicGeoPointFieldData<ScriptDocValues> {
private final int numDocs;
... | 1no label | src_main_java_org_elasticsearch_index_fielddata_plain_AbstractGeoPointIndexFieldData.java |
1,215 | NONE {
@Override
<T> Recycler<T> build(Recycler.C<T> c, int limit, int availableProcessors) {
return none(c);
}
}; | 0true | src_main_java_org_elasticsearch_cache_recycler_CacheRecycler.java |
851 | public class GetAndSetRequest extends ModifyRequest {
public GetAndSetRequest() {
}
public GetAndSetRequest(String name, Data update) {
super(name, update);
}
@Override
protected Operation prepareOperation() {
return new GetAndSetOperation(name, update);
}
@Override
... | 0true | hazelcast_src_main_java_com_hazelcast_concurrent_atomicreference_client_GetAndSetRequest.java |
3,022 | public class QueueContainer implements IdentifiedDataSerializable {
private LinkedList<QueueItem> itemQueue;
private HashMap<Long, QueueItem> backupMap;
private final Map<Long, TxQueueItem> txMap = new HashMap<Long, TxQueueItem>();
private final HashMap<Long, Data> dataMap = new HashMap<Long, Data>();
... | 1no label | hazelcast_src_main_java_com_hazelcast_queue_QueueContainer.java |
495 | return scheduledExecutor.schedule(new Runnable() {
public void run() {
executeInternal(command);
}
}, delay, unit); | 1no label | hazelcast-client_src_main_java_com_hazelcast_client_spi_impl_ClientExecutionServiceImpl.java |
450 | trackedSet.addChangeListener(new OMultiValueChangeListener<String, String>() {
public void onAfterRecordChanged(final OMultiValueChangeEvent<String, String> event) {
changed.value = true;
}
}); | 0true | core_src_test_java_com_orientechnologies_orient_core_db_record_TrackedSetTest.java |
209 | @Deprecated
public class HydratedCache extends Hashtable<String, Object> {
private static final long serialVersionUID = 1L;
private String cacheName;
private String cacheRegion;
public HydratedCache(String cacheRegion, String cacheName) {
this.cacheRegion = cacheRegion;
this.cacheName... | 0true | common_src_main_java_org_broadleafcommerce_common_cache_engine_HydratedCache.java |
72 | public interface TitanVertexQuery<Q extends TitanVertexQuery<Q>> extends BaseVertexQuery<Q>, VertexQuery {
/* ---------------------------------------------------------------
* Query Specification (overwrite to merge BaseVertexQuery with Blueprint's VertexQuery)
* --------------------------------------------... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_core_TitanVertexQuery.java |
979 | public abstract class ShardReplicationOperationRequest<T extends ShardReplicationOperationRequest> extends ActionRequest<T> {
public static final TimeValue DEFAULT_TIMEOUT = new TimeValue(1, TimeUnit.MINUTES);
protected TimeValue timeout = DEFAULT_TIMEOUT;
protected String index;
private boolean thr... | 0true | src_main_java_org_elasticsearch_action_support_replication_ShardReplicationOperationRequest.java |
524 | public class OSecurityAccessException extends OSecurityException {
private static final long serialVersionUID = -8486291378415776372L;
private String databaseName;
public OSecurityAccessException(final String iDatabasename, final String message, final Throwable cause) {
super(message, cause);
databaseName... | 0true | core_src_main_java_com_orientechnologies_orient_core_exception_OSecurityAccessException.java |
456 | executor.execute(new Runnable() {
@Override
public void run() {
for (int i = 0; i < operations; i++) {
map2.put("foo-" + i, "bar2");
}
}
}, 60, EntryEventType.UPDATED, operations, 0.75, map1, map2); | 0true | hazelcast-client_src_test_java_com_hazelcast_client_replicatedmap_ClientReplicatedMapTest.java |
2,219 | public class BoostScoreFunction extends ScoreFunction {
private final float boost;
public BoostScoreFunction(float boost) {
super(CombineFunction.MULT);
this.boost = boost;
}
public float getBoost() {
return boost;
}
@Override
public void setNextReader(AtomicReade... | 1no label | src_main_java_org_elasticsearch_common_lucene_search_function_BoostScoreFunction.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 |
615 | new OIndexEngine.EntriesResultListener() {
@Override
public boolean addResult(ODocument entry) {
return entriesResultListener.addResult(entry);
}
}); | 1no label | core_src_main_java_com_orientechnologies_orient_core_index_OIndexMultiValues.java |
381 | public interface LocaleService {
/**
* @return the locale for the passed in code
*/
public Locale findLocaleByCode(String localeCode);
/**
* @return the default locale
*/
public Locale findDefaultLocale();
/**
* @return a list of all known locales
*/
public List<... | 0true | common_src_main_java_org_broadleafcommerce_common_locale_service_LocaleService.java |
183 | public class StaticAssetView implements View {
private static final Log LOG = LogFactory.getLog(StaticAssetView.class);
protected boolean browserAssetCachingEnabled = true;
protected long cacheSeconds = 60 * 60 * 24;
@Override
public String getContentType() {
return null;
}
@Over... | 0true | admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_web_file_StaticAssetView.java |
100 | clientConfig.addListenerConfig(new ListenerConfig().setImplementation(new InitialMembershipListener() {
public void init(InitialMembershipEvent event) {
for (int i = 0; i < event.getMembers().size(); i++) {
latch.countDown();
}
}
... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_ClientIssueTest.java |
271 | public class NullEmailInfo extends EmailInfo {
private static final long serialVersionUID = 1L;
public NullEmailInfo() throws IOException {
super();
}
} | 0true | common_src_main_java_org_broadleafcommerce_common_email_service_info_NullEmailInfo.java |
523 | public class BLCRequestUtils {
private static String OK_TO_USE_SESSION = "blOkToUseSession";
/**
* Broadleaf "Resolver" and "Filter" classes may need to know if they are allowed to utilize the session.
* BLC uses a pattern where we will store an attribute in the request indicating whether or... | 0true | common_src_main_java_org_broadleafcommerce_common_util_BLCRequestUtils.java |
3,424 | private static class DistributedObjectFuture {
volatile DistributedObject proxy;
DistributedObject get() {
if (proxy == null) {
boolean interrupted = false;
synchronized (this) {
while (proxy == null) {
try {
... | 1no label | hazelcast_src_main_java_com_hazelcast_spi_impl_ProxyServiceImpl.java |
3,741 | public class WanReplicationServiceImpl
implements WanReplicationService {
private final Node node;
private final ILogger logger;
private final Map<String, WanReplicationPublisherDelegate> wanReplications = initializeWanReplicationPublisherMapping();
public WanReplicationServiceImpl(Node node)... | 1no label | hazelcast_src_main_java_com_hazelcast_wan_impl_WanReplicationServiceImpl.java |
316 | public class NodeHotThreads extends NodeOperationResponse {
private String hotThreads;
NodeHotThreads() {
}
public NodeHotThreads(DiscoveryNode node, String hotThreads) {
super(node);
this.hotThreads = hotThreads;
}
public String getHotThreads() {
return this.hotThrea... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_node_hotthreads_NodeHotThreads.java |
80 | public class ClientDisconnectionOperation extends AbstractOperation implements UrgentSystemOperation {
private String clientUuid;
public ClientDisconnectionOperation() {
}
public ClientDisconnectionOperation(String clientUuid) {
this.clientUuid = clientUuid;
}
@Override
public vo... | 1no label | hazelcast_src_main_java_com_hazelcast_client_ClientDisconnectionOperation.java |
5,841 | public class DocIdSetCollector extends XCollector {
private final DocSetCache docSetCache;
private final Collector collector;
private final List<ContextDocIdSet> docSets;
private boolean currentHasDocs;
private ContextDocIdSet currentContext;
private FixedBitSet currentSet;
public DocIdSe... | 1no label | src_main_java_org_elasticsearch_search_internal_DocIdSetCollector.java |
3,368 | public abstract class PackedArrayAtomicFieldData extends AbstractAtomicNumericFieldData {
public static PackedArrayAtomicFieldData empty(int numDocs) {
return new Empty(numDocs);
}
private final int numDocs;
protected long size = -1;
public PackedArrayAtomicFieldData(int numDocs) {
... | 1no label | src_main_java_org_elasticsearch_index_fielddata_plain_PackedArrayAtomicFieldData.java |
4,738 | public abstract class BlobStoreRepository extends AbstractLifecycleComponent<Repository> implements Repository, RateLimiterListener {
private ImmutableBlobContainer snapshotsBlobContainer;
protected final String repositoryName;
private static final String SNAPSHOT_PREFIX = "snapshot-";
private stati... | 1no label | src_main_java_org_elasticsearch_repositories_blobstore_BlobStoreRepository.java |
576 | public interface IndexEntriesResultListener {
boolean addResult(ODocument entry);
} | 0true | core_src_main_java_com_orientechnologies_orient_core_index_OIndex.java |
5 | public class AbbreviationsManager {
/** A regular expression used to separate alternative abbreviations. (\s == any whitespace) */
private static final Pattern ABBREVIATION_SEPARATOR = Pattern.compile("\\s*\\|\\s*");
/** A regular expression used to separate words. */
private static final Pattern WORD_SEPARATOR... | 0true | tableViews_src_main_java_gov_nasa_arc_mct_abbreviation_impl_AbbreviationsManager.java |
978 | public enum ReplicationType {
/**
* Sync replication, wait till all replicas have performed the operation.
*/
SYNC((byte) 0),
/**
* Async replication. Will send the request to replicas, but will not wait for it
*/
ASYNC((byte) 1),
/**
* Use the default replication type confi... | 0true | src_main_java_org_elasticsearch_action_support_replication_ReplicationType.java |
519 | public class OGraphException extends OException {
private static final long serialVersionUID = -2655748565531836968L;
public OGraphException(String string) {
super(string);
}
public OGraphException(String message, Throwable cause) {
super(message, cause);
}
} | 0true | core_src_main_java_com_orientechnologies_orient_core_exception_OGraphException.java |
1,049 | public class MultiTermVectorsTests extends AbstractTermVectorTests {
@Test
public void testDuelESLucene() throws Exception {
AbstractTermVectorTests.TestFieldSetting[] testFieldSettings = getFieldSettings();
createIndexBasedOnFieldSettings(testFieldSettings, -1);
AbstractTermVectorTests... | 0true | src_test_java_org_elasticsearch_action_termvector_MultiTermVectorsTests.java |
2,768 | public class NettyHttpServerTransport extends AbstractLifecycleComponent<HttpServerTransport> implements HttpServerTransport {
static {
NettyStaticSetup.setup();
}
private final NetworkService networkService;
final ByteSizeValue maxContentLength;
final ByteSizeValue maxInitialLineLength;
... | 1no label | src_main_java_org_elasticsearch_http_netty_NettyHttpServerTransport.java |
1,147 | public class UpdateOrderMultishipOptionActivity extends BaseActivity<CartOperationContext> {
@Resource(name = "blOrderMultishipOptionService")
protected OrderMultishipOptionService orderMultishipOptionService;
@Resource(name = "blOrderItemService")
protected OrderItemService orderItemService;
... | 1no label | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_order_service_workflow_update_UpdateOrderMultishipOptionActivity.java |
4,276 | public class SimpleFsTranslogFile implements FsTranslogFile {
private final long id;
private final ShardId shardId;
private final RafReference raf;
private final AtomicInteger operationCounter = new AtomicInteger();
private final AtomicLong lastPosition = new AtomicLong(0);
private final Atom... | 1no label | src_main_java_org_elasticsearch_index_translog_fs_SimpleFsTranslogFile.java |
397 | public class ORecordMultiValueHelper {
public enum MULTIVALUE_CONTENT_TYPE {
EMPTY, ALL_RECORDS, ALL_RIDS, HYBRID
}
public static MULTIVALUE_CONTENT_TYPE updateContentType(final MULTIVALUE_CONTENT_TYPE iPreviousStatus, final Object iValue) {
if (iPreviousStatus == MULTIVALUE_CONTENT_TYPE.HYBRID) {
// DO NOTH... | 0true | core_src_main_java_com_orientechnologies_orient_core_db_record_ORecordMultiValueHelper.java |
133 | public enum SchemaStatus {
/**
* The index is installed in the system but not yet registered with all instances in the cluster
*/
INSTALLED,
/**
* The index is registered with all instances in the cluster but not (yet) enabled
*/
REGISTERED,
/**
* The index is enabled and... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_core_schema_SchemaStatus.java |
107 | static final class ValuesView<K,V> extends CollectionView<K,V,V>
implements Collection<V>, java.io.Serializable {
private static final long serialVersionUID = 2249069246763182397L;
ValuesView(ConcurrentHashMapV8<K,V> map) { super(map); }
public final boolean contains(Object o) {
... | 0true | src_main_java_jsr166e_ConcurrentHashMapV8.java |
528 | ex.execute(new Runnable() {
public void run() {
multiMap.put(key, "value");
final TransactionContext context = client.newTransactionContext();
try {
context.beginTransaction();
final ... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_txn_ClientTxnMultiMapTest.java |
1,411 | clusterService.submitStateUpdateTask("close-indices " + indicesAsString, Priority.URGENT, new AckedClusterStateUpdateTask() {
@Override
public boolean mustAck(DiscoveryNode discoveryNode) {
return true;
}
@Override
public void onAllNo... | 0true | src_main_java_org_elasticsearch_cluster_metadata_MetaDataIndexStateService.java |
468 | public interface SandBox extends Serializable {
public Long getId();
public void setId(Long id);
/**
* The name of the sandbox.
* Certain sandbox names are reserved in the system. User created
* sandboxes cannot start with "", "approve_", or "deploy_".
*
* @return String sandb... | 0true | common_src_main_java_org_broadleafcommerce_common_sandbox_domain_SandBox.java |
1,335 | public interface ClusterStateUpdateListener {
/**
* Called when the cluster state update is acknowledged
*/
void onResponse(ClusterStateUpdateResponse response);
/**
* Called when any error is thrown during the cluster state update processing
*/
void onFailure(Throwable t);
} | 0true | src_main_java_org_elasticsearch_cluster_ack_ClusterStateUpdateListener.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.