Unnamed: 0 int64 0 6.45k | func stringlengths 37 143k | target class label 2
classes | project stringlengths 33 157 |
|---|---|---|---|
113 | (new java.security.PrivilegedExceptionAction<sun.misc.Unsafe>() {
public sun.misc.Unsafe run() throws Exception {
Class<sun.misc.Unsafe> k = sun.misc.Unsafe.class;
for (java.lang.reflect.Field f : k.getDeclaredFields()) {
f.setA... | 0true | src_main_java_jsr166e_ForkJoinPool.java |
4,483 | public class RecoveryTarget extends AbstractComponent {
public static class Actions {
public static final String FILES_INFO = "index/shard/recovery/filesInfo";
public static final String FILE_CHUNK = "index/shard/recovery/fileChunk";
public static final String CLEAN_FILES = "index/shard/rec... | 1no label | src_main_java_org_elasticsearch_indices_recovery_RecoveryTarget.java |
423 | public class TransportRestoreSnapshotAction extends TransportMasterNodeOperationAction<RestoreSnapshotRequest, RestoreSnapshotResponse> {
private final RestoreService restoreService;
@Inject
public TransportRestoreSnapshotAction(Settings settings, TransportService transportService, ClusterService clusterSe... | 1no label | src_main_java_org_elasticsearch_action_admin_cluster_snapshots_restore_TransportRestoreSnapshotAction.java |
2,165 | class FixedBitSetIterator extends FilteredDocIdSetIterator {
FixedBitSetIterator(DocIdSetIterator innerIter) {
super(innerIter);
}
@Override
protected boolean match(int doc) {
return matchDoc(doc);
}
} | 1no label | src_main_java_org_elasticsearch_common_lucene_docset_MatchDocIdSet.java |
82 | @SuppressWarnings("serial")
static final class MapReduceValuesToDoubleTask<K,V>
extends BulkTask<K,V,Double> {
final ObjectToDouble<? super V> transformer;
final DoubleByDoubleToDouble reducer;
final double basis;
double result;
MapReduceValuesToDoubleTask<K,V> ri... | 0true | src_main_java_jsr166e_ConcurrentHashMapV8.java |
65 | public interface TitanIndexQuery {
/**
* Specifies the maxium number of elements to return
*
* @param limit
* @return
*/
public TitanIndexQuery limit(int limit);
/**
* Specifies the offset of the query. Query results will be retrieved starting at the given offset.
* @par... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_core_TitanIndexQuery.java |
87 | public class ODFACommandStream implements OCommandStream {
public static final int BUFFER_SIZE = 1024;
private Reader reader;
private CharBuffer buffer;
private final Set<Character> separators = new HashSet<Character>(Arrays.asList(';', '\n'));
private int posit... | 1no label | commons_src_main_java_com_orientechnologies_common_console_ODFACommandStream.java |
5,877 | public class QueryParseElement implements SearchParseElement {
@Override
public void parse(XContentParser parser, SearchContext context) throws Exception {
context.parsedQuery(context.queryParserService().parse(parser));
}
} | 1no label | src_main_java_org_elasticsearch_search_query_QueryParseElement.java |
857 | @SuppressWarnings("unchecked")
public class ORole extends ODocumentWrapper {
private static final long serialVersionUID = 1L;
public static final String ADMIN = "admin";
public static final String CLASS_NAME = "ORole";
public enum ALLOW_MODES {
DENY_ALL_BUT, ALLOW_ALL_BUT
}
// CRUD ... | 1no label | core_src_main_java_com_orientechnologies_orient_core_metadata_security_ORole.java |
66 | @Entity
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "BLC_FLD_GROUP")
@Cache(usage= CacheConcurrencyStrategy.NONSTRICT_READ_WRITE, region="blCMSElements")
public class FieldGroupImpl implements FieldGroup {
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue(generator = "... | 0true | admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_field_domain_FieldGroupImpl.java |
251 | public class BufferedChecksumIndexOutput extends BufferedIndexOutput {
private final IndexOutput delegate;
private final BufferedIndexOutput bufferedDelegate;
private final Checksum digest;
public BufferedChecksumIndexOutput(IndexOutput delegate, Checksum digest) {
super(delegate instanceof Bu... | 0true | src_main_java_org_apache_lucene_store_BufferedChecksumIndexOutput.java |
581 | class ShardOptimizeResponse extends BroadcastShardOperationResponse {
ShardOptimizeResponse() {
}
public ShardOptimizeResponse(String index, int shardId) {
super(index, shardId);
}
@Override
public void readFrom(StreamInput in) throws IOException {
super.readFrom(in);
}
... | 0true | src_main_java_org_elasticsearch_action_admin_indices_optimize_ShardOptimizeResponse.java |
204 | public abstract class AbstractHydratedCacheManager implements CacheEventListener, HydratedCacheManager, HydratedAnnotationManager {
private static final Log LOG = LogFactory.getLog(AbstractHydratedCacheManager.class);
private Map<String, HydrationDescriptor> hydrationDescriptors = Collections.synchronizedMap(... | 0true | common_src_main_java_org_broadleafcommerce_common_cache_engine_AbstractHydratedCacheManager.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 |
670 | public class DeleteWarmerRequestBuilder extends AcknowledgedRequestBuilder<DeleteWarmerRequest, DeleteWarmerResponse, DeleteWarmerRequestBuilder> {
public DeleteWarmerRequestBuilder(IndicesAdminClient indicesClient) {
super((InternalIndicesAdminClient) indicesClient, new DeleteWarmerRequest());
}
... | 0true | src_main_java_org_elasticsearch_action_admin_indices_warmer_delete_DeleteWarmerRequestBuilder.java |
1,464 | public class IndexRoutingTable implements Iterable<IndexShardRoutingTable> {
private final String index;
// note, we assume that when the index routing is created, ShardRoutings are created for all possible number of
// shards with state set to UNASSIGNED
private final ImmutableOpenIntMap<IndexShardRo... | 1no label | src_main_java_org_elasticsearch_cluster_routing_IndexRoutingTable.java |
355 | future.andThen(new ExecutionCallback<Map<String, List<Integer>>>() {
@Override
public void onResponse(Map<String, List<Integer>> response) {
listenerResults.putAll(response);
semaphore.release();
}
@Override
public void... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_mapreduce_ClientMapReduceTest.java |
181 | (new java.security.PrivilegedExceptionAction<sun.misc.Unsafe>() {
public sun.misc.Unsafe run() throws Exception {
Class<sun.misc.Unsafe> k = sun.misc.Unsafe.class;
for (java.lang.reflect.Field f : k.getDeclaredFields()) {
f.setA... | 0true | src_main_java_jsr166y_LinkedTransferQueue.java |
711 | @Entity
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "BLC_PRODUCT_OPTION")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE, region = "blStandardElements")
@AdminPresentationClass(friendlyName = "ProductOptionImpl_baseProductOption", populateToOneFields=PopulateToOneFieldsEnum.TRUE)
public class Prod... | 1no label | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_catalog_domain_ProductOptionImpl.java |
645 | public class DeleteIndexTemplateRequestBuilder extends MasterNodeOperationRequestBuilder<DeleteIndexTemplateRequest, DeleteIndexTemplateResponse, DeleteIndexTemplateRequestBuilder> {
public DeleteIndexTemplateRequestBuilder(IndicesAdminClient indicesClient) {
super((InternalIndicesAdminClient) indicesClien... | 0true | src_main_java_org_elasticsearch_action_admin_indices_template_delete_DeleteIndexTemplateRequestBuilder.java |
3,550 | public class TopicService implements ManagedService, RemoteService, EventPublishingService {
public static final String SERVICE_NAME = "hz:impl:topicService";
public static final int ORDERING_LOCKS_LENGTH = 1000;
final ConcurrentMap<String, LocalTopicStatsImpl> statsMap = new ConcurrentHashMap<String, Loc... | 1no label | hazelcast_src_main_java_com_hazelcast_topic_TopicService.java |
274 | public final class ExceptionsHelper {
private static final ESLogger logger = Loggers.getLogger(ExceptionsHelper.class);
public static RuntimeException convertToRuntime(Throwable t) {
if (t instanceof RuntimeException) {
return (RuntimeException) t;
}
return new Elasticsearc... | 1no label | src_main_java_org_elasticsearch_ExceptionsHelper.java |
3,425 | public static class PostJoinProxyOperation
extends AbstractOperation {
private Collection<ProxyInfo> proxies;
public PostJoinProxyOperation() {
}
public PostJoinProxyOperation(Collection<ProxyInfo> proxies) {
this.proxies = proxies;
}
@Over... | 1no label | hazelcast_src_main_java_com_hazelcast_spi_impl_ProxyServiceImpl.java |
233 | public abstract class OAbstractMapCache<T extends Map<ORID, ORecordInternal<?>>> implements OCache {
protected final OSharedResourceAdaptiveExternal lock = new OSharedResourceAdaptiveExternal(
OGlobalConfiguration.ENVIRONMENT_CONCURRENT.getValueAsBoolea... | 1no label | core_src_main_java_com_orientechnologies_orient_core_cache_OAbstractMapCache.java |
2,053 | public class GetEntryViewOperation extends KeyBasedMapOperation {
private EntryView<Data, Data> result;
public GetEntryViewOperation(String name, Data dataKey) {
super(name, dataKey);
}
public GetEntryViewOperation() {
}
public void run() {
MapService mapService = getService(... | 1no label | hazelcast_src_main_java_com_hazelcast_map_operation_GetEntryViewOperation.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 |
1,686 | public abstract class OAbstractCommandResultListener implements OCommandResultListener {
private final Set<ODocument> fetchedRecordsToSend = new HashSet<ODocument>();
private Map<String, Integer> fetchPlan;
public abstract boolean isEmpty();
protected void fetchRecord(final Object iRecord) {
if (fetchPla... | 1no label | server_src_main_java_com_orientechnologies_orient_server_network_protocol_binary_OAbstractCommandResultListener.java |
487 | public class ClearIndicesCacheAction extends IndicesAction<ClearIndicesCacheRequest, ClearIndicesCacheResponse, ClearIndicesCacheRequestBuilder> {
public static final ClearIndicesCacheAction INSTANCE = new ClearIndicesCacheAction();
public static final String NAME = "indices/cache/clear";
private ClearInd... | 0true | src_main_java_org_elasticsearch_action_admin_indices_cache_clear_ClearIndicesCacheAction.java |
936 | public class OfferRuleType implements Serializable, BroadleafEnumerationType {
private static final long serialVersionUID = 1L;
private static final Map<String, OfferRuleType> TYPES = new LinkedHashMap<String, OfferRuleType>();
public static final OfferRuleType ORDER = new OfferRuleType("ORDER", "Ord... | 1no label | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_offer_service_type_OfferRuleType.java |
2,024 | @Service("blUserDetailsService")
public class UserDetailsServiceImpl implements UserDetailsService {
@Resource(name = "blCustomerService")
protected CustomerService customerService;
@Resource(name = "blRoleService")
protected RoleService roleService;
@Override
public UserDetails loadUserByUse... | 1no label | core_broadleaf-profile_src_main_java_org_broadleafcommerce_profile_core_service_UserDetailsServiceImpl.java |
176 | public class PageHandlerMapping extends BLCAbstractHandlerMapping {
private String controllerName="blPageController";
public static final String BLC_RULE_MAP_PARAM = "blRuleMap";
// The following attribute is set in BroadleafProcessURLFilter
public static final String REQUEST_DTO = "blRequestDTO";... | 0true | admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_web_PageHandlerMapping.java |
840 | private class Async {
final DiscoveryNodes nodes;
final CountDown expectedOps;
final ClearScrollRequest request;
final List<Tuple<String, Long>[]> contexts = new ArrayList<Tuple<String, Long>[]>();
final AtomicReference<Throwable> expHolder;
final ActionListener<Clea... | 1no label | src_main_java_org_elasticsearch_action_search_TransportClearScrollAction.java |
250 | public interface CurrencyCodeIdentifiable {
public String getCurrencyCode();
} | 0true | common_src_main_java_org_broadleafcommerce_common_currency_util_CurrencyCodeIdentifiable.java |
3,903 | public class NestedFilterParser implements FilterParser {
public static final String NAME = "nested";
@Inject
public NestedFilterParser() {
}
@Override
public String[] names() {
return new String[]{NAME, Strings.toCamelCase(NAME)};
}
@Override
public Filter parse(QueryPar... | 1no label | src_main_java_org_elasticsearch_index_query_NestedFilterParser.java |
4,802 | public class RestClusterStateAction extends BaseRestHandler {
private final SettingsFilter settingsFilter;
@Inject
public RestClusterStateAction(Settings settings, Client client, RestController controller,
SettingsFilter settingsFilter) {
super(settings, client);
... | 1no label | src_main_java_org_elasticsearch_rest_action_admin_cluster_state_RestClusterStateAction.java |
8 | abstract static class Async extends ForkJoinTask<Void>
implements Runnable, AsynchronousCompletionTask {
public final Void getRawResult() { return null; }
public final void setRawResult(Void v) { }
public final void run() { exec(); }
} | 0true | src_main_java_jsr166e_CompletableFuture.java |
547 | final class TransactionProxy {
private static final ThreadLocal<Boolean> THREAD_FLAG = new ThreadLocal<Boolean>();
private final TransactionOptions options;
private final HazelcastClient client;
private final long threadId = Thread.currentThread().getId();
private final ClientConnection connection... | 1no label | hazelcast-client_src_main_java_com_hazelcast_client_txn_TransactionProxy.java |
1,158 | public class OSQLMethodSize extends OAbstractSQLMethod {
public static final String NAME = "size";
public OSQLMethodSize() {
super(NAME);
}
@Override
public Object execute(final OIdentifiable iCurrentRecord, final OCommandContext iContext, final Object ioResult,
final Object[] iMethodParams) {
... | 1no label | core_src_main_java_com_orientechnologies_orient_core_sql_method_misc_OSQLMethodSize.java |
1,089 | public class OSQLPredicate extends OBaseParser implements OCommandPredicate {
protected Set<OProperty> properties = new HashSet<OProperty>();
protected OSQLFilterCondition rootCondition;
protected List<String> recordTransformed;
protected List<OSQLFilterItemParameter> p... | 1no label | core_src_main_java_com_orientechnologies_orient_core_sql_filter_OSQLPredicate.java |
125 | final EntryAdapter<String, String> listener = new EntryAdapter<String, String>() {
public void onEntryEvent(EntryEvent<String, String> event) {
latch.countDown();
}
}; | 0true | hazelcast-client_src_test_java_com_hazelcast_client_ClientReconnectTest.java |
1,692 | @Entity
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "BLC_ADMIN_PASSWORD_TOKEN")
public class ForgotPasswordSecurityTokenImpl implements ForgotPasswordSecurityToken {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "PASSWORD_TOKEN", nullable = false)
protected S... | 1no label | admin_broadleaf-open-admin-platform_src_main_java_org_broadleafcommerce_openadmin_server_security_domain_ForgotPasswordSecurityTokenImpl.java |
167 | @Entity
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "BLC_URL_HANDLER")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE, region = "blStandardElements")
@AdminPresentationClass(populateToOneFields = PopulateToOneFieldsEnum.TRUE, friendlyName = "URLHandlerImpl_friendyName")
public class URLHandlerImpl... | 0true | admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_url_domain_URLHandlerImpl.java |
576 | public class OptimizeRequest extends BroadcastOperationRequest<OptimizeRequest> {
public static final class Defaults {
public static final boolean WAIT_FOR_MERGE = true;
public static final int MAX_NUM_SEGMENTS = -1;
public static final boolean ONLY_EXPUNGE_DELETES = false;
public s... | 0true | src_main_java_org_elasticsearch_action_admin_indices_optimize_OptimizeRequest.java |
208 | private class ClusterAuthenticator implements Authenticator {
@Override
public void auth(ClientConnection connection) throws AuthenticationException, IOException {
authenticate(connection, credentials, principal, false, false);
}
} | 1no label | hazelcast-client_src_main_java_com_hazelcast_client_connection_nio_ClientConnectionManagerImpl.java |
81 | @SuppressWarnings("serial")
static final class MapReduceValuesTask<K,V,U>
extends BulkTask<K,V,U> {
final Fun<? super V, ? extends U> transformer;
final BiFun<? super U, ? super U, ? extends U> reducer;
U result;
MapReduceValuesTask<K,V,U> rights, nextRight;
MapRe... | 0true | src_main_java_jsr166e_ConcurrentHashMapV8.java |
531 | @Deprecated
public class GatewaySnapshotAction extends IndicesAction<GatewaySnapshotRequest, GatewaySnapshotResponse, GatewaySnapshotRequestBuilder> {
public static final GatewaySnapshotAction INSTANCE = new GatewaySnapshotAction();
public static final String NAME = "indices/gateway/snapshot";
private Gat... | 0true | src_main_java_org_elasticsearch_action_admin_indices_gateway_snapshot_GatewaySnapshotAction.java |
1,369 | public class OTransactionIndexChanges {
public static enum OPERATION {
PUT, REMOVE, CLEAR
}
public NavigableMap<Object, OTransactionIndexChangesPerKey> changesPerKey = new TreeMap<Object, OTransactionIndexChangesPerKey>(
ODefaul... | 1no label | core_src_main_java_com_orientechnologies_orient_core_tx_OTransactionIndexChanges.java |
1,077 | public class CacheEdge extends AbstractEdge {
public CacheEdge(long id, EdgeLabel label, InternalVertex start, InternalVertex end, Entry data) {
super(id, label, start.it(), end.it());
assert data != null;
this.data = data;
}
public Direction getVertexCentricDirection() {
... | 1no label | titan-core_src_main_java_com_thinkaurelius_titan_graphdb_relations_CacheEdge.java |
2,907 | public final class SampleObjects {
public static class ValueType implements Serializable {
String typeName;
public ValueType(String typeName) {
this.typeName = typeName;
}
public ValueType() {
}
public String getTypeName() {
return typeName... | 1no label | hazelcast_src_test_java_com_hazelcast_query_SampleObjects.java |
3,104 | public final class EngineSearcherTotalHitsMatcher extends TypeSafeMatcher<Engine.Searcher> {
private final Query query;
private final int totalHits;
public EngineSearcherTotalHitsMatcher(Query query, int totalHits) {
this.query = query;
this.totalHits = totalHits;
}
@Override
... | 1no label | src_test_java_org_elasticsearch_index_engine_EngineSearcherTotalHitsMatcher.java |
59 | public interface FieldDefinition extends Serializable {
public Long getId();
public void setId(Long id);
public String getName();
public void setName(String name);
public SupportedFieldType getFieldType();
public void setFieldType(SupportedFieldType fieldType);
public String getSecuri... | 0true | admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_field_domain_FieldDefinition.java |
215 | public class ClientInSelectorImpl extends ClientAbstractIOSelector {
public ClientInSelectorImpl(ThreadGroup threadGroup) {
super(threadGroup, "InSelector");
}
protected void handleSelectionKey(SelectionKey sk) {
if (sk.isValid() && sk.isReadable()) {
final SelectionHandler han... | 1no label | hazelcast-client_src_main_java_com_hazelcast_client_connection_nio_ClientInSelectorImpl.java |
609 | public class OIndexManagerShared extends OIndexManagerAbstract implements OIndexManager {
private static final boolean useSBTree = OGlobalConfiguration.INDEX_USE_SBTREE_BY_DEFAULT.getValueAsBoolean();
private static final long serialVersionUID = 1L;
protected volatile Thread recreateIndex... | 1no label | core_src_main_java_com_orientechnologies_orient_core_index_OIndexManagerShared.java |
416 | static final class Fields {
static final XContentBuilderString SNAPSHOTS = new XContentBuilderString("snapshots");
} | 0true | src_main_java_org_elasticsearch_action_admin_cluster_snapshots_get_GetSnapshotsResponse.java |
444 | public static class OsStats implements ToXContent, Streamable {
int availableProcessors;
long availableMemory;
ObjectIntOpenHashMap<OsInfo.Cpu> cpus;
public OsStats() {
cpus = new ObjectIntOpenHashMap<org.elasticsearch.monitor.os.OsInfo.Cpu>();
}
public... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_stats_ClusterStatsNodes.java |
5,670 | public class TermsFacetParser extends AbstractComponent implements FacetParser {
private final int ordinalsCacheAbove;
@Inject
public TermsFacetParser(Settings settings) {
super(settings);
InternalTermsFacet.registerStreams();
this.ordinalsCacheAbove = componentSettings.getAsInt("o... | 1no label | src_main_java_org_elasticsearch_search_facet_terms_TermsFacetParser.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 |
667 | public class ValidateQueryResponse extends BroadcastOperationResponse {
private boolean valid;
private List<QueryExplanation> queryExplanations;
ValidateQueryResponse() {
}
ValidateQueryResponse(boolean valid, List<QueryExplanation> queryExplanations, int totalShards, int successfulShards, ... | 0true | src_main_java_org_elasticsearch_action_admin_indices_validate_query_ValidateQueryResponse.java |
131 | assertTrueEventually(new AssertTask() {
@Override
public void run() throws Exception {
assertEquals(1, clientService.getConnectedClients().size());
}
}, 4); | 0true | hazelcast-client_src_test_java_com_hazelcast_client_ClientServiceTest.java |
29 | @Service("blFulfillmentGroupFieldService")
public class FulfillmentGroupFieldServiceImpl extends AbstractRuleBuilderFieldService {
@Override
public void init() {
fields.add(new FieldData.Builder()
.label("rule_fulfillmentGroupFirstName")
.name("address.firstName")
... | 0true | admin_broadleaf-admin-module_src_main_java_org_broadleafcommerce_admin_web_rulebuilder_service_FulfillmentGroupFieldServiceImpl.java |
777 | public class StandardTitanGraph extends TitanBlueprintsGraph {
private static final Logger log =
LoggerFactory.getLogger(StandardTitanGraph.class);
private final GraphDatabaseConfiguration config;
private final Backend backend;
private final IDManager idManager;
private final VertexID... | 1no label | titan-core_src_main_java_com_thinkaurelius_titan_graphdb_database_StandardTitanGraph.java |
724 | indexDeleteAction.execute(new IndexDeleteRequest(request), new ActionListener<IndexDeleteResponse>() {
@Override
public void onResponse(IndexDeleteResponse indexDeleteResponse) {
// go over the response, see if we have found... | 0true | src_main_java_org_elasticsearch_action_delete_TransportDeleteAction.java |
4,189 | public class BlobStoreIndexShardRepository extends AbstractComponent implements IndexShardRepository {
private BlobStore blobStore;
private BlobPath basePath;
private final String repositoryName;
private ByteSizeValue chunkSize;
private final IndicesService indicesService;
private RateLimi... | 1no label | src_main_java_org_elasticsearch_index_snapshots_blobstore_BlobStoreIndexShardRepository.java |
326 | public class NodesInfoRequestBuilder extends NodesOperationRequestBuilder<NodesInfoRequest, NodesInfoResponse, NodesInfoRequestBuilder> {
public NodesInfoRequestBuilder(ClusterAdminClient clusterClient) {
super((InternalClusterAdminClient) clusterClient, new NodesInfoRequest());
}
/**
* Clear... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_node_info_NodesInfoRequestBuilder.java |
33 | static final class ThenCopy<T> extends Completion {
final CompletableFuture<?> src;
final CompletableFuture<T> dst;
ThenCopy(CompletableFuture<?> src,
CompletableFuture<T> dst) {
this.src = src; this.dst = dst;
}
public final void run() {
... | 0true | src_main_java_jsr166e_CompletableFuture.java |
107 | class CreateInNewUnitProposal implements ICompletionProposal,
ICompletionProposalExtension6 {
private final IFile file;
private final DefinitionGenerator dg;
CreateInNewUnitProposal(IFile file, DefinitionGenerator dg) {
this.file = file;
this.dg = dg;
}
@Override
p... | 1no label | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_correct_CreateInNewUnitProposal.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 |
1,377 | private static class CassandraMapIterable implements Iterable<Entry> {
private final SortedMap<ByteBuffer, Column> columnValues;
public CassandraMapIterable(final SortedMap<ByteBuffer, Column> columnValues) {
Preconditions.checkNotNull(columnValues);
this.columnValues = col... | 1no label | titan-hadoop-parent_titan-hadoop-core_src_main_java_com_thinkaurelius_titan_hadoop_formats_cassandra_TitanCassandraHadoopGraph.java |
42 | public interface BiAction<A,B> { void apply(A a, B b); } | 0true | src_main_java_jsr166e_ConcurrentHashMapV8.java |
271 | public class MapPutRunnable implements Runnable, DataSerializable, HazelcastInstanceAware {
private HazelcastInstance instance;
public String mapName;
public MapPutRunnable(){}
public MapPutRunnable(String mapName) {
this.mapName = mapName;
}
public void writeData(ObjectDataOutput o... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_executor_tasks_MapPutRunnable.java |
4,490 | class FileChunkTransportRequestHandler extends BaseTransportRequestHandler<RecoveryFileChunkRequest> {
@Override
public RecoveryFileChunkRequest newInstance() {
return new RecoveryFileChunkRequest();
}
@Override
public String executor() {
return Thr... | 1no label | src_main_java_org_elasticsearch_indices_recovery_RecoveryTarget.java |
306 | public class ClusterHealthRequest extends MasterNodeReadOperationRequest<ClusterHealthRequest> {
private String[] indices;
private TimeValue timeout = new TimeValue(30, TimeUnit.SECONDS);
private ClusterHealthStatus waitForStatus;
private int waitForRelocatingShards = -1;
private int waitForActiveS... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_health_ClusterHealthRequest.java |
618 | public class IndicesStatsRequest extends BroadcastOperationRequest<IndicesStatsRequest> {
private CommonStatsFlags flags = new CommonStatsFlags();
/**
* Sets all flags to return all stats.
*/
public IndicesStatsRequest all() {
flags.all();
return this;
}
/**
* Clear... | 0true | src_main_java_org_elasticsearch_action_admin_indices_stats_IndicesStatsRequest.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 |
1,729 | operation.setResponseHandler(new ResponseHandler() {
@Override
public void sendResponse(Object obj) {
if (checkIfMapLoaded.decrementAndGet() == 0) {
loaded.set(true);
}
... | 1no label | hazelcast_src_main_java_com_hazelcast_map_DefaultRecordStore.java |
58 | public class TestXaFramework extends AbstractNeo4jTestCase
{
private TransactionManager tm;
private XaDataSourceManager xaDsMgr;
private final TransactionStateFactory stateFactory = new TransactionStateFactory( new DevNullLoggingService() )
{
@Override
public TransactionState create( Tra... | 0true | community_kernel_src_test_java_org_neo4j_kernel_impl_transaction_TestXaFramework.java |
1,069 | public class OIndexSearchResult {
final Map<String, Object> fieldValuePairs = new HashMap<String, Object>(8);
final OQueryOperator lastOperator;
final OSQLFilterItemField.FieldChain lastField;
final Object lastValue;
OIndexSearchResult(final OQueryOperator l... | 1no label | core_src_main_java_com_orientechnologies_orient_core_sql_OIndexSearchResult.java |
1,785 | public abstract class ShapeBuilder implements ToXContent {
protected static final ESLogger LOGGER = ESLoggerFactory.getLogger(ShapeBuilder.class.getName());
private static final boolean DEBUG;
static {
// if asserts are enabled we run the debug statements even if they are not logged
// to ... | 1no label | src_main_java_org_elasticsearch_common_geo_builders_ShapeBuilder.java |
2,495 | public class AddEntryListenerRequest extends CallableClientRequest implements RetryableRequest {
String name;
Data key;
boolean includeValue;
public AddEntryListenerRequest() {
}
public AddEntryListenerRequest(String name, Data key, boolean includeValue) {
this.name = name;
th... | 1no label | hazelcast_src_main_java_com_hazelcast_multimap_operations_client_AddEntryListenerRequest.java |
245 | @Entity
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "BLC_CURRENCY")
@Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE, region = "blCMSElements")
@AdminPresentationClass(friendlyName = "BroadleafCurrencyImpl_baseCurrency")
public class BroadleafCurrencyImpl implements BroadleafCurrency {
... | 1no label | common_src_main_java_org_broadleafcommerce_common_currency_domain_BroadleafCurrencyImpl.java |
5,262 | public class RangeParser implements Aggregator.Parser {
@Override
public String type() {
return InternalRange.TYPE.name();
}
@Override
public AggregatorFactory parse(String aggregationName, XContentParser parser, SearchContext context) throws IOException {
ValuesSourceConfig<Numer... | 1no label | src_main_java_org_elasticsearch_search_aggregations_bucket_range_RangeParser.java |
937 | public class OfferTimeZoneType implements Serializable, BroadleafEnumerationType {
private static final long serialVersionUID = 1L;
private static final Map<String, OfferTimeZoneType> TYPES = new LinkedHashMap<String, OfferTimeZoneType>();
public static final OfferTimeZoneType SERVER = new OfferTimeZ... | 1no label | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_offer_service_type_OfferTimeZoneType.java |
357 | future.andThen(new ExecutionCallback<Map<String, Integer>>() {
@Override
public void onResponse(Map<String, Integer> response) {
listenerResults.putAll(response);
semaphore.release();
}
@Override
public void onFailure(T... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_mapreduce_ClientMapReduceTest.java |
1,175 | public class ItemEvent<E> extends EventObject {
private final E item;
private final ItemEventType eventType;
private final Member member;
public ItemEvent(String name, int eventType, E item, Member member) {
this(name, ItemEventType.getByType(eventType), item, member);
}
public ItemEv... | 1no label | hazelcast_src_main_java_com_hazelcast_core_ItemEvent.java |
325 | new Thread() {
public void run() {
map.forceUnlock("key1");
latch.countDown();
}
}.start(); | 0true | hazelcast-client_src_test_java_com_hazelcast_client_map_ClientMapTest.java |
72 | public final class AuthenticationRequest extends CallableClientRequest {
private Credentials credentials;
private ClientPrincipal principal;
private boolean reAuth;
private boolean firstConnection;
public AuthenticationRequest() {
}
public AuthenticationRequest(Credentials credentials) {
... | 1no label | hazelcast_src_main_java_com_hazelcast_client_AuthenticationRequest.java |
266 | public class CancellationAwareTask implements Callable<Boolean>, Serializable {
long sleepTime;
public CancellationAwareTask(long sleepTime) {
this.sleepTime = sleepTime;
}
public Boolean call() throws InterruptedException {
Thread.sleep(sleepTime);
return Boolean.TRUE;
}
... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_executor_tasks_CancellationAwareTask.java |
280 | public interface ActionListener<Response> {
/**
* A response handler.
*/
void onResponse(Response response);
/**
* A failure handler.
*/
void onFailure(Throwable e);
} | 0true | src_main_java_org_elasticsearch_action_ActionListener.java |
77 | public interface AttributeSerializer<V> extends AttributeHandler<V> {
/**
* Reads an attribute from the given ReadBuffer.
* <p/>
* It is expected that this read operation adjusts the position in the ReadBuffer to after the attribute value.
*
* @param buffer ReadBuffer to read attribute fro... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_core_attribute_AttributeSerializer.java |
113 | @Entity
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "BLC_PAGE_RULE")
public class PageRuleImpl implements PageRule {
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue(generator= "PageRuleId")
@GenericGenerator(
name="PageRuleId",
strategy="org.broad... | 1no label | admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_page_domain_PageRuleImpl.java |
650 | public class GetIndexTemplatesRequest extends MasterNodeReadOperationRequest<GetIndexTemplatesRequest> {
private String[] names;
public GetIndexTemplatesRequest() {
}
public GetIndexTemplatesRequest(String... names) {
this.names = names;
}
@Override
public ActionRequestValidation... | 0true | src_main_java_org_elasticsearch_action_admin_indices_template_get_GetIndexTemplatesRequest.java |
3,116 | ItemListener listener = new ItemListener() {
@Override
public void itemAdded(ItemEvent item) {
send(item);
}
@Override
public void itemRemoved(ItemEvent item) {
send(item);
}
private void send(I... | 1no label | hazelcast_src_main_java_com_hazelcast_queue_client_AddListenerRequest.java |
258 | @Entity
@Table(name = "BLC_EMAIL_TRACKING_CLICKS")
public class EmailTrackingClicksImpl implements EmailTrackingClicks {
/** The Constant serialVersionUID. */
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue(generator = "ClickId")
@GenericGenerator(
name="ClickId",
... | 1no label | common_src_main_java_org_broadleafcommerce_common_email_domain_EmailTrackingClicksImpl.java |
1,520 | public static class Map extends Mapper<NullWritable, FaunusVertex, NullWritable, FaunusVertex> {
private Closure closure;
private boolean isVertex;
@Override
public void setup(final Mapper.Context context) throws IOException, InterruptedException {
this.isVertex = conte... | 1no label | titan-hadoop-parent_titan-hadoop-core_src_main_java_com_thinkaurelius_titan_hadoop_mapreduce_sideeffect_SideEffectMap.java |
21 | class FindScopeVisitor extends Visitor {
Scope scope;
public void visit(Tree.Declaration that) {
super.visit(that);
AnnotationList al = that.getAnnotationList();
if (al!=null) {
for (Tree.Annotation a: al.getAnnotations(... | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_complete_CompletionUtil.java |
1,118 | public class OSQLFunctionCoalesce extends OSQLFunctionAbstract {
public static final String NAME = "coalesce";
public OSQLFunctionCoalesce() {
super(NAME, 1, 1000);
}
@Override
public Object execute(OIdentifiable iCurrentRecord, Object iCurrentResult, final Object[] iParameters, OCommandContext iContext... | 1no label | core_src_main_java_com_orientechnologies_orient_core_sql_functions_misc_OSQLFunctionCoalesce.java |
1,348 | private final class LogSegment implements Comparable<LogSegment> {
private final RandomAccessFile rndFile;
private final File file;
private long filledUpTo;
private final long order;
private fin... | 1no label | core_src_main_java_com_orientechnologies_orient_core_storage_impl_local_paginated_wal_OWriteAheadLog.java |
4,896 | public class RestRecoveryAction extends AbstractCatAction {
@Inject
protected RestRecoveryAction(Settings settings, Client client, RestController restController) {
super(settings, client);
restController.registerHandler(GET, "/_cat/recovery", this);
restController.registerHandler(GET, "... | 1no label | src_main_java_org_elasticsearch_rest_action_cat_RestRecoveryAction.java |
223 | private class PropertyPlaceholderConfigurerResolver implements PropertyPlaceholderHelper.PlaceholderResolver {
private final Properties props;
private PropertyPlaceholderConfigurerResolver(Properties props) {
this.props = props;
}
public String resolvePlaceholder(Strin... | 0true | common_src_main_java_org_broadleafcommerce_common_config_RuntimeEnvironmentPropertiesConfigurer.java |
541 | public class DeleteMappingRequestBuilder extends AcknowledgedRequestBuilder<DeleteMappingRequest, DeleteMappingResponse, DeleteMappingRequestBuilder> {
public DeleteMappingRequestBuilder(IndicesAdminClient indicesClient) {
super((InternalIndicesAdminClient) indicesClient, new DeleteMappingRequest());
}... | 0true | src_main_java_org_elasticsearch_action_admin_indices_mapping_delete_DeleteMappingRequestBuilder.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.