Unnamed: 0 int64 0 6.45k | func stringlengths 37 143k | target class label 2
classes | project stringlengths 33 157 |
|---|---|---|---|
2,094 | public class BytesStreamOutput extends StreamOutput implements BytesStream {
public static final int DEFAULT_SIZE = 2 * 1024;
public static final int OVERSIZE_LIMIT = 256 * 1024;
/**
* The buffer where data is stored.
*/
protected byte buf[];
/**
* The number of valid bytes in the... | 1no label | src_main_java_org_elasticsearch_common_io_stream_BytesStreamOutput.java |
202 | public class ONetworkConnectionPool<CH extends OChannel> implements OResourcePoolListener<String, CH> {
private static final int DEF_WAIT_TIMEOUT = 5000;
private final Map<String, OResourcePool<String, CH>> pools = new HashMap<String, OResourcePool<String, CH>>();
private int ... | 0true | client_src_main_java_com_orientechnologies_orient_client_remote_ONetworkConnectionPool.java |
660 | public class OSBTreeIndexEngine<V> extends OSharedResourceAdaptiveExternal implements OIndexEngine<V> {
public static final String DATA_FILE_EXTENSION = ".sbt";
private ORID identity;
private OSBTree<Object, V> sbTree;
public OSBTreeIndexEngine() {
super(OGlobalConfiguration.ENVIRONMENT_CONC... | 1no label | core_src_main_java_com_orientechnologies_orient_core_index_engine_OSBTreeIndexEngine.java |
80 | NOT_EQUAL {
@Override
public boolean isValidValueType(Class<?> clazz) {
return true;
}
@Override
public boolean isValidCondition(Object condition) {
return true;
}
@Override
public boolean evaluate(Object value, Object condit... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_core_attribute_Cmp.java |
4,295 | public class IndicesModule extends AbstractModule implements SpawnModules {
private final Settings settings;
public IndicesModule(Settings settings) {
this.settings = settings;
}
@Override
public Iterable<? extends Module> spawnModules() {
return ImmutableList.of(new IndicesQuerie... | 1no label | src_main_java_org_elasticsearch_indices_IndicesModule.java |
72 | @SuppressWarnings("serial")
static final class MapReduceEntriesToLongTask<K,V>
extends BulkTask<K,V,Long> {
final ObjectToLong<Map.Entry<K,V>> transformer;
final LongByLongToLong reducer;
final long basis;
long result;
MapReduceEntriesToLongTask<K,V> rights, nextR... | 0true | src_main_java_jsr166e_ConcurrentHashMapV8.java |
45 | @Component("blPendingSandBoxItemCustomPersistenceHandler")
public class PendingSandBoxItemCustomPersistenceHandler extends SandBoxItemCustomPersistenceHandler {
private final Log LOG = LogFactory.getLog(PendingSandBoxItemCustomPersistenceHandler.class);
@Override
public Boolean canHandleFetch(PersistenceP... | 0true | admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_admin_server_handler_PendingSandBoxItemCustomPersistenceHandler.java |
1,343 | public class OWALPage {
public static final int PAGE_SIZE = 65536;
public static final int MIN_RECORD_SIZE = OIntegerSerializer.INT_SIZE + 3;
public static final int CRC_OFFSET = 0;
public static final int FLUSH_ID_OFFSET = CRC_OFFSET + OIntege... | 1no label | core_src_main_java_com_orientechnologies_orient_core_storage_impl_local_paginated_wal_OWALPage.java |
381 | public class ClusterRerouteRequestBuilder extends AcknowledgedRequestBuilder<ClusterRerouteRequest, ClusterRerouteResponse, ClusterRerouteRequestBuilder> {
public ClusterRerouteRequestBuilder(ClusterAdminClient clusterClient) {
super((InternalClusterAdminClient) clusterClient, new ClusterRerouteRequest());... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_reroute_ClusterRerouteRequestBuilder.java |
1,699 | public class ChannelBufferBytesReference implements BytesReference {
private final ChannelBuffer buffer;
public ChannelBufferBytesReference(ChannelBuffer buffer) {
this.buffer = buffer;
}
@Override
public byte get(int index) {
return buffer.getByte(buffer.readerIndex() + index);
... | 1no label | src_main_java_org_elasticsearch_common_bytes_ChannelBufferBytesReference.java |
77 | public class OSharedResourceExternalTimeout extends OSharedResourceTimeout {
public OSharedResourceExternalTimeout(final int timeout) {
super(timeout);
}
@Override
public void acquireExclusiveLock() throws OTimeoutException {
super.acquireExclusiveLock();
}
@Override
public void acquireSharedLock() throws... | 0true | commons_src_main_java_com_orientechnologies_common_concur_resource_OSharedResourceExternalTimeout.java |
260 | public interface EmailTrackingOpens extends Serializable {
/**
* @return the id
*/
public abstract Long getId();
/**
* @param id the id to set
*/
public abstract void setId(Long id);
/**
* @return the dateOpened
*/
public abstract Date getDateOpened();
/**
... | 0true | common_src_main_java_org_broadleafcommerce_common_email_domain_EmailTrackingOpens.java |
6,270 | public class IsFalseAssertion extends Assertion {
private static final ESLogger logger = Loggers.getLogger(IsFalseAssertion.class);
public IsFalseAssertion(String field) {
super(field, false);
}
@Override
@SuppressWarnings("unchecked")
protected void doAssert(Object actualValue, Objec... | 1no label | src_test_java_org_elasticsearch_test_rest_section_IsFalseAssertion.java |
3,708 | public final class PoolExecutorThreadFactory extends AbstractExecutorThreadFactory {
private final String threadNamePrefix;
private final AtomicInteger idGen = new AtomicInteger(0);
// to reuse previous thread IDs
private final Queue<Integer> idQ = new LinkedBlockingQueue<Integer>(1000);
public Po... | 1no label | hazelcast_src_main_java_com_hazelcast_util_executor_PoolExecutorThreadFactory.java |
323 | public class NodeInfo extends NodeOperationResponse {
@Nullable
private ImmutableMap<String, String> serviceAttributes;
private Version version;
private Build build;
@Nullable
private Settings settings;
@Nullable
private OsInfo os;
@Nullable
private ProcessInfo process;
... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_node_info_NodeInfo.java |
670 | @Entity
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name="BLC_CATEGORY")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE, region="blStandardElements")
@AdminPresentationClass(friendlyName = "CategoryImpl_baseCategory")
@SQLDelete(sql="UPDATE BLC_CATEGORY SET ARCHIVED = 'Y' WHERE CATEGORY_ID = ?")
public c... | 1no label | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_catalog_domain_CategoryImpl.java |
30 | final class NestedCompletionProposal implements ICompletionProposal,
ICompletionProposalExtension2 {
private final String op;
private final int loc;
private final int index;
private final boolean basic;
private final Declaration dec;
NestedComple... | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_complete_InvocationCompletionProposal.java |
1,466 | public class OSQLFunctionBothE extends OSQLFunctionMove {
public static final String NAME = "bothE";
public OSQLFunctionBothE() {
super(NAME, 0, 1);
}
@Override
protected Object move(final OrientBaseGraph graph, final OIdentifiable iRecord, final String[] iLabels) {
return v2e(graph, iRecord, Direct... | 1no label | graphdb_src_main_java_com_orientechnologies_orient_graph_sql_functions_OSQLFunctionBothE.java |
189 | public class ClientConfig {
/**
* To pass properties
*/
private Properties properties = new Properties();
/**
* The Group Configuration properties like:
* Name and Password that is used to connect to the cluster.
*/
private GroupConfig groupConfig = new GroupConfig();
/*... | 0true | hazelcast-client_src_main_java_com_hazelcast_client_config_ClientConfig.java |
330 | public class PluginsInfo implements Streamable, Serializable, ToXContent {
static final class Fields {
static final XContentBuilderString PLUGINS = new XContentBuilderString("plugins");
}
private List<PluginInfo> infos;
public PluginsInfo() {
infos = new ArrayList<PluginInfo>();
}
... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_node_info_PluginsInfo.java |
94 | class ReadOnlyTransactionImpl implements Transaction
{
private static final int RS_ENLISTED = 0;
private static final int RS_SUSPENDED = 1;
private static final int RS_DELISTED = 2;
private static final int RS_READONLY = 3; // set in prepare
private final byte globalId[];
private int status = S... | 0true | community_kernel_src_main_java_org_neo4j_kernel_impl_transaction_ReadOnlyTransactionImpl.java |
3,853 | public class GeohashCellFilter {
public static final String NAME = "geohash_cell";
public static final String NEIGHBORS = "neighbors";
public static final String PRECISION = "precision";
/**
* Create a new geohash filter for a given set of geohashes. In general this method
* returns a boolea... | 1no label | src_main_java_org_elasticsearch_index_query_GeohashCellFilter.java |
269 | public class ElasticsearchIllegalStateException extends ElasticsearchException {
public ElasticsearchIllegalStateException() {
super(null);
}
public ElasticsearchIllegalStateException(String msg) {
super(msg);
}
public ElasticsearchIllegalStateException(String msg, Throwable cause... | 0true | src_main_java_org_elasticsearch_ElasticsearchIllegalStateException.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,901 | public class PartitionContainer {
private final MapService mapService;
private final int partitionId;
private final ConcurrentMap<String, RecordStore> maps = new ConcurrentHashMap<String, RecordStore>(1000);
public PartitionContainer(final MapService mapService, final int partitionId) {
this.ma... | 1no label | hazelcast_src_main_java_com_hazelcast_map_PartitionContainer.java |
4,127 | static class StatsHolder {
public final MeanMetric queryMetric = new MeanMetric();
public final MeanMetric fetchMetric = new MeanMetric();
public final CounterMetric queryCurrent = new CounterMetric();
public final CounterMetric fetchCurrent = new CounterMetric();
public Sea... | 1no label | src_main_java_org_elasticsearch_index_search_stats_ShardSearchService.java |
256 | public static interface Provider {
StoreRateLimiting rateLimiting();
} | 0true | src_main_java_org_apache_lucene_store_StoreRateLimiting.java |
187 | public abstract class RecursiveAction extends ForkJoinTask<Void> {
private static final long serialVersionUID = 5232453952276485070L;
/**
* The main computation performed by this task.
*/
protected abstract void compute();
/**
* Always returns {@code null}.
*
* @return {@code ... | 0true | src_main_java_jsr166y_RecursiveAction.java |
1,885 | public class EntityForm {
protected static final Log LOG = LogFactory.getLog(EntityForm.class);
public static final String HIDDEN_GROUP = "hiddenGroup";
public static final String MAP_KEY_GROUP = "keyGroup";
public static final String DEFAULT_GROUP_NAME = "Default";
public static final Integer... | 1no label | admin_broadleaf-open-admin-platform_src_main_java_org_broadleafcommerce_openadmin_web_form_entity_EntityForm.java |
1,598 | public class OperationTypes implements Serializable {
private static final long serialVersionUID = 1L;
private OperationType fetchType = OperationType.BASIC;
private OperationType removeType = OperationType.BASIC;
private OperationType addType = OperationType.BASIC;
private OperationType updateTyp... | 1no label | admin_broadleaf-open-admin-platform_src_main_java_org_broadleafcommerce_openadmin_dto_OperationTypes.java |
1,761 | @Component("blPersistenceManager")
@Scope("prototype")
public class PersistenceManagerImpl implements InspectHelper, PersistenceManager, ApplicationContextAware {
private static final Log LOG = LogFactory.getLog(PersistenceManagerImpl.class);
@Resource(name="blDynamicEntityDao")
protected DynamicEntityDao... | 1no label | admin_broadleaf-open-admin-platform_src_main_java_org_broadleafcommerce_openadmin_server_service_persistence_PersistenceManagerImpl.java |
919 | final class LockResourceImpl implements DataSerializable, LockResource {
private Data key;
private String owner;
private long threadId;
private int lockCount;
private long expirationTime = -1;
private long acquireTime = -1L;
private boolean transactional;
private Map<String, ConditionIn... | 1no label | hazelcast_src_main_java_com_hazelcast_concurrent_lock_LockResourceImpl.java |
873 | public class FulfillmentGroupOfferPotential {
protected Offer offer;
protected Money totalSavings = new Money(BankersRounding.zeroAmount());
protected int priority;
public Offer getOffer() {
return offer;
}
public void setOffer(Offer offer) {
this.offer = offer;
... | 1no label | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_offer_service_discount_FulfillmentGroupOfferPotential.java |
485 | static final class Fields {
static final XContentBuilderString TOKENS = new XContentBuilderString("tokens");
static final XContentBuilderString TOKEN = new XContentBuilderString("token");
static final XContentBuilderString START_OFFSET = new XContentBuilderString("start_offset");
sta... | 0true | src_main_java_org_elasticsearch_action_admin_indices_analyze_AnalyzeResponse.java |
219 | public abstract class OrientConsole extends OConsoleApplication {
public OrientConsole(String[] args) {
super(args);
}
@Override
protected void onException(Throwable e) {
Throwable current = e;
while (current != null) {
err.print("\nError: " + current.toString());
current = current.get... | 0true | tools_src_main_java_com_orientechnologies_orient_console_OrientConsole.java |
3,463 | public class ShardGetService extends AbstractIndexShardComponent {
private final ScriptService scriptService;
private final MapperService mapperService;
private final IndexFieldDataService fieldDataService;
private IndexShard indexShard;
private final MeanMetric existsMetric = new MeanMetric();... | 1no label | src_main_java_org_elasticsearch_index_get_ShardGetService.java |
3,618 | public class TokenCountFieldMapper extends IntegerFieldMapper {
public static final String CONTENT_TYPE = "token_count";
public static class Defaults extends IntegerFieldMapper.Defaults {
}
public static class Builder extends NumberFieldMapper.Builder<Builder, TokenCountFieldMapper> {
private ... | 1no label | src_main_java_org_elasticsearch_index_mapper_core_TokenCountFieldMapper.java |
3,765 | public class LogDocMergePolicyProvider extends AbstractMergePolicyProvider<LogDocMergePolicy> {
private final IndexSettingsService indexSettingsService;
private volatile int minMergeDocs;
private volatile int maxMergeDocs;
private volatile int mergeFactor;
private final boolean calibrateSizeByDele... | 1no label | src_main_java_org_elasticsearch_index_merge_policy_LogDocMergePolicyProvider.java |
189 | public interface RequestDTO {
/**
* @return returns the request not including the protocol, domain, or query string
*/
public String getRequestURI();
/**
* @return Returns the URL and parameters.
*/
public String getFullUrLWithQueryString();
/**
* @return true if this re... | 0true | common_src_main_java_org_broadleafcommerce_common_RequestDTO.java |
242 | public class XAnalyzingSuggester extends Lookup {
/**
* FST<Weight,Surface>:
* input is the analyzed form, with a null byte between terms
* weights are encoded as costs: (Integer.MAX_VALUE-weight)
* surface is the original, unanalyzed form.
*/
private FST<Pair<Long,BytesRef>> fst = null;
/*... | 1no label | src_main_java_org_apache_lucene_search_suggest_analyzing_XAnalyzingSuggester.java |
1,049 | public class ItemListenerConfig extends ListenerConfig {
private boolean includeValue = true;
private ItemListenerConfigReadOnly readOnly;
public ItemListenerConfig() {
super();
}
public ItemListenerConfig(String className, boolean includeValue) {
super(className);
this.i... | 1no label | hazelcast_src_main_java_com_hazelcast_config_ItemListenerConfig.java |
58 | public class TitanException extends RuntimeException {
private static final long serialVersionUID = 4056436257763972423L;
/**
* @param msg Exception message
*/
public TitanException(String msg) {
super(msg);
}
/**
* @param msg Exception message
* @param cause Cause o... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_core_TitanException.java |
2,601 | private class SymmetricCipherPacketWriter implements PacketWriter {
final Cipher cipher;
ByteBuffer packetBuffer = ByteBuffer.allocate(ioService.getSocketSendBufferSize() * IOService.KILO_BYTE);
boolean packetWritten;
SymmetricCipherPacketWriter() {
cipher = init();
... | 1no label | hazelcast_src_main_java_com_hazelcast_nio_SocketPacketWriter.java |
363 | public class DeleteRepositoryRequest extends AcknowledgedRequest<DeleteRepositoryRequest> {
private String name;
DeleteRepositoryRequest() {
}
/**
* Constructs a new unregister repository request with the provided name.
*
* @param name name of the repository
*/
public DeleteRe... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_repositories_delete_DeleteRepositoryRequest.java |
1,639 | new Thread(new Runnable() {
@Override
public void run() {
while (!Thread.interrupted()) {
String senderNode = null;
ODistributedResponse message = null;
try {
message = nodeResponseQueue.take();
if (message != null) {
senderNod... | 1no label | distributed_src_main_java_com_orientechnologies_orient_server_hazelcast_OHazelcastDistributedMessageService.java |
276 | @RunWith(HazelcastSerialClassRunner.class)
@Category(QuickTest.class)
public class ClientIdGeneratorTest {
static final String name = "test";
static HazelcastInstance hz;
static IdGenerator i;
@BeforeClass
public static void init() {
Hazelcast.newHazelcastInstance();
hz = Hazelcast... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_idgenerator_ClientIdGeneratorTest.java |
1,189 | public class OQueryOperatorMinor extends OQueryOperatorEqualityNotNulls {
public OQueryOperatorMinor() {
super("<", 5, false);
}
@Override
@SuppressWarnings("unchecked")
protected boolean evaluateExpression(final OIdentifiable iRecord, final OSQLFilterCondition iCondition, final Object iLeft,
fina... | 1no label | core_src_main_java_com_orientechnologies_orient_core_sql_operator_OQueryOperatorMinor.java |
174 | @SuppressWarnings("serial")
public class OModifiableInteger extends Number implements Comparable<OModifiableInteger> {
public int value;
public OModifiableInteger() {
value = 0;
}
public OModifiableInteger(final int iValue) {
value = iValue;
}
public void setValue(final int iValue) {
value = iValue;
}
... | 0true | commons_src_main_java_com_orientechnologies_common_types_OModifiableInteger.java |
352 | @RunWith(HazelcastSerialClassRunner.class)
@Category(QuickTest.class)
public class SimpleClientMapInterceptorTest {
static HazelcastInstance server1;
static HazelcastInstance server2;
static HazelcastInstance client;
static SimpleClientInterceptor interceptor;
@BeforeClass
public static void... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_map_SimpleClientMapInterceptorTest.java |
1,717 | @Service("blDynamicEntityRemoteService")
@Transactional(value="blTransactionManager", rollbackFor = ServiceException.class)
public class DynamicEntityRemoteService implements DynamicEntityService, DynamicEntityRemote, ApplicationContextAware {
public static final String DEFAULTPERSISTENCEMANAGERREF = "blPersistenc... | 1no label | admin_broadleaf-open-admin-platform_src_main_java_org_broadleafcommerce_openadmin_server_service_DynamicEntityRemoteService.java |
1,098 | public class OSQLFunctionDistinct extends OSQLFunctionAbstract {
public static final String NAME = "distinct";
private Set<Object> context = new LinkedHashSet<Object>();
public OSQLFunctionDistinct() {
super(NAME, 1, 1);
}
public Object execute(final OIdentifiable iCurrentRecord, Object iCurr... | 1no label | core_src_main_java_com_orientechnologies_orient_core_sql_functions_coll_OSQLFunctionDistinct.java |
75 | public class OSharedResourceAdaptiveExternal extends OSharedResourceAdaptive implements OSharedResource {
public OSharedResourceAdaptiveExternal(final boolean iConcurrent, final int iTimeout, final boolean ignoreThreadInterruption) {
super(iConcurrent, iTimeout, ignoreThreadInterruption);
}
@Override
public void... | 0true | commons_src_main_java_com_orientechnologies_common_concur_resource_OSharedResourceAdaptiveExternal.java |
2,767 | public class NettyHttpRequest extends HttpRequest {
private final org.jboss.netty.handler.codec.http.HttpRequest request;
private final Channel channel;
private final Map<String, String> params;
private final String rawPath;
private final BytesReference content;
public NettyHttpRequest(org.jbo... | 1no label | src_main_java_org_elasticsearch_http_netty_NettyHttpRequest.java |
207 | public class MapperQueryParser extends QueryParser {
public static final ImmutableMap<String, FieldQueryExtension> fieldQueryExtensions;
static {
fieldQueryExtensions = ImmutableMap.<String, FieldQueryExtension>builder()
.put(ExistsFieldQueryExtension.NAME, new ExistsFieldQueryExtensio... | 0true | src_main_java_org_apache_lucene_queryparser_classic_MapperQueryParser.java |
70 | public interface OSharedContainer {
public boolean existsResource(final String iName);
public <T> T removeResource(final String iName);
public <T> T getResource(final String iName, final Callable<T> iCallback);
} | 0true | commons_src_main_java_com_orientechnologies_common_concur_resource_OSharedContainer.java |
1,274 | return nodesService.execute(new TransportClientNodesService.NodeCallback<ActionFuture<Response>>() {
@Override
public ActionFuture<Response> doWithNode(DiscoveryNode node) throws ElasticsearchException {
return proxy.execute(node, request);
}
}); | 1no label | src_main_java_org_elasticsearch_client_transport_support_InternalTransportIndicesAdminClient.java |
663 | public class TransportValidateQueryAction extends TransportBroadcastOperationAction<ValidateQueryRequest, ValidateQueryResponse, ShardValidateQueryRequest, ShardValidateQueryResponse> {
private final IndicesService indicesService;
private final ScriptService scriptService;
private final CacheRecycler cac... | 1no label | src_main_java_org_elasticsearch_action_admin_indices_validate_query_TransportValidateQueryAction.java |
259 | @Entity
@Table(name = "BLC_EMAIL_TRACKING")
public class EmailTrackingImpl implements EmailTracking {
/** The Constant serialVersionUID. */
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue(generator = "EmailTrackingId")
@GenericGenerator(
name="EmailTrackingId",
... | 1no label | common_src_main_java_org_broadleafcommerce_common_email_domain_EmailTrackingImpl.java |
68 | public class StorageType implements Serializable {
private static final long serialVersionUID = 1L;
private static final Map<String, StorageType> TYPES = new HashMap<String, StorageType>();
public static final StorageType DATABASE = new StorageType("DATABASE", "Database");
public static final Storage... | 1no label | admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_field_type_StorageType.java |
280 | public class OCommandExecutorScript extends OCommandExecutorAbstract {
protected OCommandScript request;
public OCommandExecutorScript() {
}
@SuppressWarnings("unchecked")
public OCommandExecutorScript parse(final OCommandRequest iRequest) {
request = (OCommandScript) iRequest;
return this;
}
p... | 1no label | core_src_main_java_com_orientechnologies_orient_core_command_script_OCommandExecutorScript.java |
254 | service.submit(runnable, selector, new ExecutionCallback() {
public void onResponse(Object response) {
result.set(response);
responseLatch.countDown();
}
public void onFailure(Throwable t) {
}
}); | 0true | hazelcast-client_src_test_java_com_hazelcast_client_executor_ClientExecutorServiceSubmitTest.java |
344 | public class NodesShutdownRequestBuilder extends MasterNodeOperationRequestBuilder<NodesShutdownRequest, NodesShutdownResponse, NodesShutdownRequestBuilder> {
public NodesShutdownRequestBuilder(ClusterAdminClient clusterClient) {
super((InternalClusterAdminClient) clusterClient, new NodesShutdownRequest())... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_node_shutdown_NodesShutdownRequestBuilder.java |
330 | map.addEntryListener(new EntryAdapter<String, String>() {
public void entryEvicted(EntryEvent<String, String> event) {
latch.countDown();
}
}, true); | 0true | hazelcast-client_src_test_java_com_hazelcast_client_map_ClientMapTest.java |
1,081 | public abstract class OSQLFilterItemAbstract implements OSQLFilterItem {
protected List<OPair<OSQLMethod, Object[]>> operationsChain = null;
public OSQLFilterItemAbstract(final OBaseParser iQueryToParse, final String iText) {
final List<String> parts = OStringSerializerHelper.smartSplit(iText, '.');
setR... | 1no label | core_src_main_java_com_orientechnologies_orient_core_sql_filter_OSQLFilterItemAbstract.java |
378 | .ackTimeout(request.timeout()), new ActionListener<RepositoriesService.RegisterRepositoryResponse>() {
@Override
public void onResponse(RepositoriesService.RegisterRepositoryResponse response) {
listener.onResponse(new PutRepositoryResponse(response.isAcknowledge... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_repositories_put_TransportPutRepositoryAction.java |
145 | public class AtomicDouble extends Number implements java.io.Serializable {
private static final long serialVersionUID = -8405198993435143622L;
private transient volatile long value;
/**
* Creates a new {@code AtomicDouble} with the given initial value.
*
* @param initialValue the initial va... | 0true | src_main_java_jsr166e_extra_AtomicDouble.java |
1 | public class CompletableFuture<T> implements Future<T> {
// jsr166e nested interfaces
/** Interface describing a void action of one argument */
public interface Action<A> { void accept(A a); }
/** Interface describing a void action of two arguments */
public interface BiAction<A,B> { void accept(A ... | 0true | src_main_java_jsr166e_CompletableFuture.java |
3,804 | public class BoolQueryParser implements QueryParser {
public static final String NAME = "bool";
@Inject
public BoolQueryParser(Settings settings) {
BooleanQuery.setMaxClauseCount(settings.getAsInt("index.query.bool.max_clause_count", settings.getAsInt("indices.query.bool.max_clause_count", Boolean... | 1no label | src_main_java_org_elasticsearch_index_query_BoolQueryParser.java |
5,292 | public static AggregationStreams.Stream STREAM = new AggregationStreams.Stream() {
@Override
public DoubleTerms readResult(StreamInput in) throws IOException {
DoubleTerms buckets = new DoubleTerms();
buckets.readFrom(in);
return buckets;
}
}; | 1no label | src_main_java_org_elasticsearch_search_aggregations_bucket_terms_DoubleTerms.java |
1,182 | public class OQueryOperatorIn extends OQueryOperatorEqualityNotNulls {
public OQueryOperatorIn() {
super("IN", 5, false);
}
@Override
@SuppressWarnings("unchecked")
protected boolean evaluateExpression(final OIdentifiable iRecord, final OSQLFilterCondition iCondition, final Object iLeft,
final Obj... | 1no label | core_src_main_java_com_orientechnologies_orient_core_sql_operator_OQueryOperatorIn.java |
1,415 | public abstract class OChannel extends OListenerManger<OChannelListener> {
private static final OProfilerMBean PROFILER = Orient.instance().getProfiler();
public Socket socket;
public InputStream inStream;
public OutputStream outStream... | 1no label | enterprise_src_main_java_com_orientechnologies_orient_enterprise_channel_OChannel.java |
609 | public class UpdateSettingsRequest extends AcknowledgedRequest<UpdateSettingsRequest> {
private String[] indices;
private IndicesOptions indicesOptions = IndicesOptions.fromOptions(false, false, true, true);
private Settings settings = EMPTY_SETTINGS;
UpdateSettingsRequest() {
}
/**
* Co... | 0true | src_main_java_org_elasticsearch_action_admin_indices_settings_put_UpdateSettingsRequest.java |
1,711 | @Service("blAdminEntityService")
public class AdminEntityServiceImpl implements AdminEntityService {
@Resource(name = "blDynamicEntityRemoteService")
protected DynamicEntityService service;
@Resource(name = "blPersistencePackageFactory")
protected PersistencePackageFactory persistencePackageFactory;
... | 1no label | admin_broadleaf-open-admin-platform_src_main_java_org_broadleafcommerce_openadmin_server_service_AdminEntityServiceImpl.java |
10 | public abstract class BrowserInput {
private final BrowserInput fPrevious;
private BrowserInput fNext;
/**
* Create a new Browser input.
*
* @param previous the input previous to this or <code>null</code> if this is the first
*/
public BrowserInput(BrowserInput previous) {
... | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_browser_BrowserInput.java |
182 | private static class NullFunction implements IFunction<String,String> {
@Override
public String apply(String input) {
return null;
}
} | 0true | hazelcast-client_src_test_java_com_hazelcast_client_atomicreference_ClientAtomicReferenceTest.java |
11 | .withPredicateProvider(new PredicateProvider() {
@Override
public Predicate buildPredicate(CriteriaBuilder builder, FieldPathBuilder fieldPathBuilder,
From root, String ceilingEntity,
... | 0true | admin_broadleaf-admin-module_src_main_java_org_broadleafcommerce_admin_server_service_handler_SkuCustomPersistenceHandler.java |
3,492 | public static class Names {
private final String name;
private final String indexName;
private final String indexNameClean;
private final String fullName;
private final String sourcePath;
public Names(String name) {
this(name, name, name, name);
... | 1no label | src_main_java_org_elasticsearch_index_mapper_FieldMapper.java |
10 | public interface TextCommand extends TextCommandConstants, SocketWritable, SocketReadable {
TextCommandType getType();
void init(SocketTextReader socketTextReader, long requestId);
SocketTextReader getSocketTextReader();
SocketTextWriter getSocketTextWriter();
long getRequestId();
boolean ... | 0true | hazelcast_src_main_java_com_hazelcast_ascii_TextCommand.java |
3,231 | public class ReplicationPublisher<K, V>
implements ReplicationChannel {
private static final String SERVICE_NAME = ReplicatedMapService.SERVICE_NAME;
private static final String EVENT_TOPIC_NAME = ReplicatedMapService.EVENT_TOPIC_NAME;
private static final String EXECUTOR_NAME = "hz:replicated-map"... | 1no label | hazelcast_src_main_java_com_hazelcast_replicatedmap_record_ReplicationPublisher.java |
4,744 | public class URLRepository extends BlobStoreRepository {
public final static String TYPE = "url";
private final URLBlobStore blobStore;
private final BlobPath basePath;
private boolean listDirectories;
/**
* Constructs new read-only URL-based repository
*
* @param name ... | 1no label | src_main_java_org_elasticsearch_repositories_uri_URLRepository.java |
307 | new Thread() {
public void run() {
try {
map.lock(key);
map.put(key, value);
putWhileLocked.countDown();
checkingKeySet.await();
map.unlock(key);
}catch(Exception e){}
... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_map_ClientMapLockTest.java |
1,547 | public class PropertyMapMap {
public static final String CLASS = Tokens.makeNamespace(PropertyMapMap.class) + ".class";
public enum Counters {
VERTICES_PROCESSED,
OUT_EDGES_PROCESSED
}
public static Configuration createConfiguration(final Class<? extends Element> klass) {
fina... | 1no label | titan-hadoop-parent_titan-hadoop-core_src_main_java_com_thinkaurelius_titan_hadoop_mapreduce_transform_PropertyMapMap.java |
6,272 | public class LengthAssertion extends Assertion {
private static final ESLogger logger = Loggers.getLogger(LengthAssertion.class);
public LengthAssertion(String field, Object expectedValue) {
super(field, expectedValue);
}
@Override
protected void doAssert(Object actualValue, Object expect... | 1no label | src_test_java_org_elasticsearch_test_rest_section_LengthAssertion.java |
250 | service.submitToMember(getUuidCallable, member, new ExecutionCallback() {
@Override
public void onResponse(Object response) {
result.set(response);
responseLatch.countDown();
}
@Override
public void onFailure(Throwable ... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_executor_ClientExecutorServiceSubmitTest.java |
6 | public class OIterableObjectArray<T> implements Iterable<T> {
private final Object object;
private int length;
public OIterableObjectArray(Object o) {
object = o;
length = Array.getLength(o);
}
/**
* Returns an iterator over a set of elements of type T.
*
* @return an Iterator.
*/
public Iter... | 0true | commons_src_main_java_com_orientechnologies_common_collection_OIterableObjectArray.java |
165 | public class ForkJoinPool extends AbstractExecutorService {
/*
* Implementation Overview
*
* This class and its nested classes provide the main
* functionality and control for a set of worker threads:
* Submissions from non-FJ threads enter into submission queues.
* Workers take these... | 0true | src_main_java_jsr166y_ForkJoinPool.java |
695 | public static interface Listener {
/**
* Callback before the bulk is executed.
*/
void beforeBulk(long executionId, BulkRequest request);
/**
* Callback after a successful execution of bulk request.
*/
void afterBulk(long executionId, BulkRequest... | 0true | src_main_java_org_elasticsearch_action_bulk_BulkProcessor.java |
1,373 | public class OTransactionNoTx extends OTransactionAbstract {
public OTransactionNoTx(final ODatabaseRecordTx iDatabase) {
super(iDatabase);
}
public void begin() {
}
public void commit() {
}
public void rollback() {
}
public void close() {
}
public ORecordInternal<?> loadRecord(final ORID... | 1no label | core_src_main_java_com_orientechnologies_orient_core_tx_OTransactionNoTx.java |
408 | public class ClientAtomicLongProxy extends ClientProxy implements IAtomicLong {
private final String name;
private volatile Data key;
public ClientAtomicLongProxy(String instanceName, String serviceName, String objectId) {
super(instanceName, serviceName, objectId);
this.name = objectId;
... | 1no label | hazelcast-client_src_main_java_com_hazelcast_client_proxy_ClientAtomicLongProxy.java |
492 | public final class ClientExecutionServiceImpl implements ClientExecutionService {
private static final ILogger LOGGER = Logger.getLogger(ClientExecutionService.class);
private final ExecutorService executor;
private final ExecutorService internalExecutor;
private final ScheduledExecutorService schedul... | 1no label | hazelcast-client_src_main_java_com_hazelcast_client_spi_impl_ClientExecutionServiceImpl.java |
310 | public enum ResourceType {
FILESYSTEM,CLASSPATH
} | 0true | common_src_main_java_org_broadleafcommerce_common_extensibility_context_MergeFileSystemAndClassPathXMLApplicationContext.java |
419 | public class RestoreSnapshotRequest extends MasterNodeOperationRequest<RestoreSnapshotRequest> {
private String snapshot;
private String repository;
private String[] indices = Strings.EMPTY_ARRAY;
private IndicesOptions indicesOptions = IndicesOptions.strict();
private String renamePattern;
... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_snapshots_restore_RestoreSnapshotRequest.java |
5,838 | public class ContextIndexSearcher extends IndexSearcher {
public static enum Stage {
NA,
MAIN_QUERY
}
/** The wrapped {@link IndexSearcher}. The reason why we sometimes prefer delegating to this searcher instead of <tt>super</tt> is that
* this instance may have more assertions, for ... | 1no label | src_main_java_org_elasticsearch_search_internal_ContextIndexSearcher.java |
102 | static class Traverser<K,V> {
Node<K,V>[] tab; // current table; updated if resized
Node<K,V> next; // the next entry to use
TableStack<K,V> stack, spare; // to save/restore on ForwardingNodes
int index; // index of bin to use next
int baseIndex; ... | 0true | src_main_java_jsr166e_ConcurrentHashMapV8.java |
84 | public interface ClientEngine {
int getClientEndpointCount();
InternalPartitionService getPartitionService();
ClusterService getClusterService();
SerializationService getSerializationService();
EventService getEventService();
TransactionManagerService getTransactionManagerService();
P... | 0true | hazelcast_src_main_java_com_hazelcast_client_ClientEngine.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 |
753 | public class MultiGetRequest extends ActionRequest<MultiGetRequest> {
/**
* A single get item.
*/
public static class Item implements Streamable {
private String index;
private String type;
private String id;
private String routing;
private String[] fields;
... | 1no label | src_main_java_org_elasticsearch_action_get_MultiGetRequest.java |
64 | soa.visit(new Visitor() {
@Override
public void visit(Tree.SimpleType that) {
super.visit(that);
determineSatisfiedTypesTypeParams(typeDec, that, stTypeParams);
}
@Override
public void visit(Tree.StaticMemberOrTypeExpres... | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_correct_AddSatisfiesProposal.java |
67 | class AssertExistsDeclarationProposal extends CorrectionProposal {
private AssertExistsDeclarationProposal(Declaration dec,
String existsOrNonempty, int offset, TextChange change) {
super("Change to 'assert (" + existsOrNonempty + " " + dec.getName() + ")'",
change, new Region(o... | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_correct_AssertExistsDeclarationProposal.java |
24 | private SortedSet<Edge> outEdges = new ConcurrentSkipListSet<Edge>(new Comparator<Edge>() {
@Override
public int compare(Edge e1, Edge e2) {
return e1.getEnd().compareTo(e2.getEnd());
}
}); | 0true | titan-test_src_main_java_com_thinkaurelius_titan_TestByteBuffer.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.