Unnamed: 0 int64 0 6.45k | func stringlengths 37 143k | target class label 2
classes | project stringlengths 33 157 |
|---|---|---|---|
633 | public class IndicesStatusAction extends IndicesAction<IndicesStatusRequest, IndicesStatusResponse, IndicesStatusRequestBuilder> {
public static final IndicesStatusAction INSTANCE = new IndicesStatusAction();
public static final String NAME = "indices/status";
private IndicesStatusAction() {
super... | 0true | src_main_java_org_elasticsearch_action_admin_indices_status_IndicesStatusAction.java |
230 | PostingsHighlighter highlighter = new PostingsHighlighter() {
@Override
protected PassageFormatter getFormatter(String field) {
return new DefaultPassageFormatter("<b>", "</b>", "... ", true);
}
}; | 0true | src_test_java_org_apache_lucene_search_postingshighlight_XPostingsHighlighterTests.java |
115 | static final class EmptyTask extends ForkJoinTask<Void> {
private static final long serialVersionUID = -7721805057305804111L;
EmptyTask() { status = ForkJoinTask.NORMAL; } // force done
public final Void getRawResult() { return null; }
public final void setRawResult(Void x) {}
... | 0true | src_main_java_jsr166e_ForkJoinPool.java |
3,989 | public class FunctionScoreQueryParser implements QueryParser {
public static final String NAME = "function_score";
ScoreFunctionParserMapper funtionParserMapper;
@Inject
public FunctionScoreQueryParser(ScoreFunctionParserMapper funtionParserMapper) {
this.funtionParserMapper = funtionParserMap... | 1no label | src_main_java_org_elasticsearch_index_query_functionscore_FunctionScoreQueryParser.java |
3,711 | private class ManagedThread extends Thread {
public ManagedThread(Runnable target) {
super(threadGroup, target, threadName);
}
@Override
public void run() {
try {
super.run();
} catch (OutOfMemoryError e) {
OutOfMe... | 1no label | hazelcast_src_main_java_com_hazelcast_util_executor_SingleExecutorThreadFactory.java |
776 | @Deprecated
public class AvailabilityStatusType implements Serializable, BroadleafEnumerationType {
private static final long serialVersionUID = 1L;
private static final Map<String, AvailabilityStatusType> TYPES = new LinkedHashMap<String, AvailabilityStatusType>();
public static final AvailabilityStatusT... | 1no label | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_inventory_service_type_AvailabilityStatusType.java |
511 | public class HourOfDayType implements Serializable, BroadleafEnumerationType {
private static final long serialVersionUID = 1L;
private static final Map<String, HourOfDayType> TYPES = new LinkedHashMap<String, HourOfDayType>();
public static final HourOfDayType ZERO = new HourOfDayType("0", "00");
p... | 1no label | common_src_main_java_org_broadleafcommerce_common_time_HourOfDayType.java |
1,496 | public static class Map extends Mapper<NullWritable, FaunusVertex, NullWritable, FaunusVertex> {
private boolean drop;
@Override
public void setup(final Mapper.Context context) throws IOException, InterruptedException {
this.drop = Tokens.Action.valueOf(context.getConfiguration... | 1no label | titan-hadoop-parent_titan-hadoop-core_src_main_java_com_thinkaurelius_titan_hadoop_mapreduce_sideeffect_CommitEdgesMap.java |
191 | public class AIXCLibrary implements CLibrary {
private static final Function memmove;
private static final Function bcopy;
static {
Function memmoveFc;
try {
memmoveFc = Function.getFunction(Platform.C_LIBRARY_NAME, "memmove");
} catch (UnsatisfiedLinkError linkError) {
memmoveFc = null;
... | 0true | nativeos_src_main_java_com_orientechnologies_nio_AIXCLibrary.java |
186 | public class OPair<K extends Comparable<K>, V> implements Entry<K, V>, Comparable<OPair<K, V>> {
public K key;
public V value;
public OPair() {
}
public OPair(final K iKey, final V iValue) {
key = iKey;
value = iValue;
}
public OPair(final Entry<K, V> iSource) {
key = iSource.getKey();
value = iSource... | 0true | commons_src_main_java_com_orientechnologies_common_util_OPair.java |
295 | public abstract class OTraverseAbstractProcess<T> extends OCommandProcess<OTraverse, T, OIdentifiable> {
public OTraverseAbstractProcess(final OTraverse iCommand, final T iTarget) {
super(iCommand, iTarget);
command.getContext().push(this);
}
public abstract String getStatus();
public OIdentifiable dr... | 1no label | core_src_main_java_com_orientechnologies_orient_core_command_traverse_OTraverseAbstractProcess.java |
301 | public class OTraverseRecordSetProcess extends OTraverseAbstractProcess<Iterator<OIdentifiable>> {
protected OIdentifiable record;
protected int index = -1;
public OTraverseRecordSetProcess(final OTraverse iCommand, final Iterator<OIdentifiable> iTarget) {
super(iCommand, iTarget);
}
@Suppress... | 1no label | core_src_main_java_com_orientechnologies_orient_core_command_traverse_OTraverseRecordSetProcess.java |
1,222 | public abstract class OStorageAbstract extends OSharedContainerImpl implements OStorage {
protected final String url;
protected final String mode;
protected OStorageConfiguration configuration;
protected String name... | 1no label | core_src_main_java_com_orientechnologies_orient_core_storage_OStorageAbstract.java |
696 | public class BulkRequest extends ActionRequest<BulkRequest> {
private static final int REQUEST_OVERHEAD = 50;
final List<ActionRequest> requests = Lists.newArrayList();
List<Object> payloads = null;
protected TimeValue timeout = BulkShardRequest.DEFAULT_TIMEOUT;
private ReplicationType replicatio... | 1no label | src_main_java_org_elasticsearch_action_bulk_BulkRequest.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 |
1,516 | public class ScriptMap {
public static final String CLASS = Tokens.makeNamespace(ScriptMap.class) + ".class";
public static final String SCRIPT_PATH = Tokens.makeNamespace(ScriptMap.class) + ".scriptPath";
public static final String SCRIPT_ARGS = Tokens.makeNamespace(ScriptMap.class) + ".scriptArgs";
... | 1no label | titan-hadoop-parent_titan-hadoop-core_src_main_java_com_thinkaurelius_titan_hadoop_mapreduce_sideeffect_ScriptMap.java |
813 | @SuppressWarnings("unchecked")
public class OSchemaShared extends ODocumentWrapperNoClass implements OSchema, OCloseable {
private static final long serialVersionUID = 1L;
public static final int CURRENT_VERSION_NUMBER = 4;
private static final String DROP_INDEX_QUERY = "drop index ";
p... | 1no label | core_src_main_java_com_orientechnologies_orient_core_metadata_schema_OSchemaShared.java |
1,320 | public class FieldType implements Serializable, BroadleafEnumerationType {
private static final long serialVersionUID = 1L;
private static final Map<String, FieldType> TYPES = new LinkedHashMap<String, FieldType>();
public static final FieldType ID = new FieldType("id", "ID");
public static final Fie... | 1no label | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_search_domain_solr_FieldType.java |
2,519 | public class SmileXContent implements XContent {
public static XContentBuilder contentBuilder() throws IOException {
return XContentBuilder.builder(smileXContent);
}
final static SmileFactory smileFactory;
public final static SmileXContent smileXContent;
static {
smileFactory = ne... | 1no label | src_main_java_org_elasticsearch_common_xcontent_smile_SmileXContent.java |
199 | public interface ClientConnectionManager {
void shutdown();
void start();
ClientConnection tryToConnect(Address address) throws Exception;
ClientConnection ownerConnection(Address address) throws Exception;
boolean removeEventHandler(Integer callId);
} | 0true | hazelcast-client_src_main_java_com_hazelcast_client_connection_ClientConnectionManager.java |
1,121 | public class OSQLFunctionDecode extends OSQLFunctionAbstract {
public static final String NAME = "decode";
/**
* Get the date at construction to have the same date for all the iteration.
*/
public OSQLFunctionDecode() {
super(NAME, 2, 2);
}
@Override
public Object execute(OI... | 1no label | core_src_main_java_com_orientechnologies_orient_core_sql_functions_misc_OSQLFunctionDecode.java |
209 | public class QueryParserSettings {
public static final boolean DEFAULT_ALLOW_LEADING_WILDCARD = true;
public static final boolean DEFAULT_ANALYZE_WILDCARD = false;
public static final float DEFAULT_BOOST = 1.f;
private String queryString;
private String defaultField;
private float boost = DEFA... | 0true | src_main_java_org_apache_lucene_queryparser_classic_QueryParserSettings.java |
1,500 | public class GroupProperties {
public static final String PROP_HOSTED_MANAGEMENT_ENABLED = "hazelcast.hosted.management.enabled";
public static final String PROP_HOSTED_MANAGEMENT_URL = "hazelcast.hosted.management.url";
public static final String PROP_HEALTH_MONITORING_LEVEL = "hazelcast.health.monitoring... | 1no label | hazelcast_src_main_java_com_hazelcast_instance_GroupProperties.java |
1,271 | @Deprecated
public class ShippingServiceType implements Serializable, BroadleafEnumerationType {
private static final long serialVersionUID = 1L;
private static final Map<String, ShippingServiceType> TYPES = new LinkedHashMap<String, ShippingServiceType>();
public static final ShippingServiceType BANDED_... | 1no label | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_pricing_service_workflow_type_ShippingServiceType.java |
558 | typeIntersection = Collections2.filter(indexService.mapperService().types(), new Predicate<String>() {
@Override
public boolean apply(String type) {
return Regex.simpleMatch(types, type);
}
}); | 0true | src_main_java_org_elasticsearch_action_admin_indices_mapping_get_TransportGetFieldMappingsAction.java |
2,612 | private class SendPingRequest implements Runnable {
private final DiscoveryNode node;
private SendPingRequest(DiscoveryNode node) {
this.node = node;
}
@Override
public void run() {
if (!running) {
return;
}
t... | 1no label | src_main_java_org_elasticsearch_discovery_zen_fd_NodesFaultDetection.java |
236 | .registerHookValue(profilerPrefix + "current", "Number of entries in cache", METRIC_TYPE.SIZE, new OProfilerHookValue() {
public Object getValue() {
return getSize();
}
}, profilerMetadataPrefix + "current"); | 0true | core_src_main_java_com_orientechnologies_orient_core_cache_OAbstractRecordCache.java |
1,461 | public class OGraphCommandExecutorSQLFactory implements OCommandExecutorSQLFactory {
private static final Map<String, Class<? extends OCommandExecutorSQLAbstract>> COMMANDS;
static {
// COMMANDS
final Map<String, Class<? extends OCommandExecutorSQLAbstract>> commands = new HashMap<String, Class<? extends... | 1no label | graphdb_src_main_java_com_orientechnologies_orient_graph_sql_OGraphCommandExecutorSQLFactory.java |
1,512 | public class Node {
private final ILogger logger;
private final AtomicBoolean joined = new AtomicBoolean(false);
private volatile boolean active;
private volatile boolean completelyShutdown;
private final Set<Address> failedConnections = Collections.newSetFromMap(new ConcurrentHashMap<Address, ... | 1no label | hazelcast_src_main_java_com_hazelcast_instance_Node.java |
1,054 | public class JoinConfig {
private MulticastConfig multicastConfig = new MulticastConfig();
private TcpIpConfig tcpIpConfig = new TcpIpConfig();
private AwsConfig awsConfig = new AwsConfig();
/**
* @return the multicastConfig
*/
public MulticastConfig getMulticastConfig() {
retu... | 1no label | hazelcast_src_main_java_com_hazelcast_config_JoinConfig.java |
1,773 | public class OMailPlugin extends OServerPluginAbstract implements OScriptInjection {
private static final String CONFIG_PROFILE_PREFIX = "profile.";
private static final String CONFIG_MAIL_PREFIX = "mail.";
private Map<String, OMailProfile> profiles = new HashMap<String, OMailProfile>... | 1no label | server_src_main_java_com_orientechnologies_orient_server_plugin_mail_OMailPlugin.java |
3,608 | final class TransactionContextImpl implements TransactionContext {
private final NodeEngineImpl nodeEngine;
private final TransactionImpl transaction;
private final TransactionManagerServiceImpl transactionManager;
private final Map<TransactionalObjectKey, TransactionalObject> txnObjectMap
... | 1no label | hazelcast_src_main_java_com_hazelcast_transaction_impl_TransactionContextImpl.java |
3,207 | public class ReplicatedMapDataSerializerHook
implements DataSerializerHook {
public static final int F_ID = FactoryIdHelper.getFactoryId(FactoryIdHelper.REPLICATED_MAP_DS_FACTORY, -22);
public static final int VECTOR = 0;
public static final int RECORD = 1;
public static final int REPL_UPDATE_... | 1no label | hazelcast_src_main_java_com_hazelcast_replicatedmap_operation_ReplicatedMapDataSerializerHook.java |
130 | public class OBinaryConverterFactory {
private static final boolean unsafeWasDetected;
static {
boolean unsafeDetected = false;
try {
Class<?> sunClass = Class.forName("sun.misc.Unsafe");
unsafeDetected = sunClass != null;
} catch (ClassNotFoundException cnfe) {
// Ignore
}
... | 0true | commons_src_main_java_com_orientechnologies_common_serialization_OBinaryConverterFactory.java |
356 | public class DirectCopyClassTransformer implements BroadleafClassTransformer {
protected SupportLogger logger;
protected String moduleName;
protected Map<String, String> xformTemplates = new HashMap<String, String>();
protected static List<String> transformedMethods = new ArrayList<String>();
... | 1no label | common_src_main_java_org_broadleafcommerce_common_extensibility_jpa_copy_DirectCopyClassTransformer.java |
89 | public static class DecimalSerializer extends AbstractDecimalSerializer<Decimal> {
public DecimalSerializer() {
super(DECIMALS, Decimal.class);
}
@Override
protected Decimal construct(long format, int decimals) {
assert decimals==DECIMALS;
return... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_core_attribute_Decimal.java |
1,219 | return new V<T>() {
@Override
public boolean release() throws ElasticsearchException {
if (t != Thread.currentThread()) {
// Releasing from a different thread doesn't break anything but this is bad practice as pages should be acquired
... | 1no label | src_test_java_org_elasticsearch_cache_recycler_MockPageCacheRecycler.java |
565 | public class PutMappingResponse extends AcknowledgedResponse {
PutMappingResponse() {
}
PutMappingResponse(boolean acknowledged) {
super(acknowledged);
}
@Override
public void readFrom(StreamInput in) throws IOException {
super.readFrom(in);
readAcknowledged(in);
... | 0true | src_main_java_org_elasticsearch_action_admin_indices_mapping_put_PutMappingResponse.java |
187 | public interface OResettable {
public void reset();
} | 0true | commons_src_main_java_com_orientechnologies_common_util_OResettable.java |
555 | public class GetMappingsRequestBuilder extends ClusterInfoRequestBuilder<GetMappingsRequest, GetMappingsResponse, GetMappingsRequestBuilder> {
public GetMappingsRequestBuilder(InternalGenericClient client, String... indices) {
super(client, new GetMappingsRequest().indices(indices));
}
@Override
... | 0true | src_main_java_org_elasticsearch_action_admin_indices_mapping_get_GetMappingsRequestBuilder.java |
679 | public class PutWarmerAction extends IndicesAction<PutWarmerRequest, PutWarmerResponse, PutWarmerRequestBuilder> {
public static final PutWarmerAction INSTANCE = new PutWarmerAction();
public static final String NAME = "indices/warmer/put";
private PutWarmerAction() {
super(NAME);
}
@Over... | 0true | src_main_java_org_elasticsearch_action_admin_indices_warmer_put_PutWarmerAction.java |
614 | public static enum Flag {
// Do not change the order of these flags we use
// the ordinal for encoding! Only append to the end!
Store("store"),
Indexing("indexing"),
Get("get"),
Search("search"),
Merge("merge"),
Flush("flush"),
Refresh("refresh... | 0true | src_main_java_org_elasticsearch_action_admin_indices_stats_CommonStatsFlags.java |
131 | public class OSafeBinaryConverter implements OBinaryConverter {
public static final OSafeBinaryConverter INSTANCE = new OSafeBinaryConverter();
public void putShort(byte[] buffer, int index, short value, ByteOrder byteOrder) {
if (byteOrder.equals(ByteOrder.BIG_ENDIAN))
short2BytesBigEndian(value, buffer... | 0true | commons_src_main_java_com_orientechnologies_common_serialization_OSafeBinaryConverter.java |
3,748 | return new DataSerializableFactory() {
@Override
public IdentifiedDataSerializable create(int typeId) {
if (typeId == SESSION_ATTRIBUTE_ID) {
return new SessionAttributePredicate();
}
throw new IllegalArgumentException()... | 1no label | hazelcast-wm_src_main_java_com_hazelcast_web_WebDataSerializerHook.java |
171 | Executors.newSingleThreadExecutor().submit(new Runnable() {
public void run() {
while (true) {
try {
Thread.sleep(STATS_SECONDS * 1000);
System.out.println("cluster size:"
+ client.get... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_SimpleMapTestFromClient.java |
745 | public class ExplainResponse extends ActionResponse {
private boolean exists;
private Explanation explanation;
private GetResult getResult;
ExplainResponse() {
}
public ExplainResponse(boolean exists) {
this.exists = exists;
}
public ExplainResponse(boolean exists, Explanatio... | 0true | src_main_java_org_elasticsearch_action_explain_ExplainResponse.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 |
37 | @SuppressWarnings("serial")
public class OMVRBTreeMemory<K, V> extends OMVRBTree<K, V> {
/**
* The number of entries in the tree
*/
protected int size = 0;
protected int defaultPageSize = 63;
/**
* Memory based MVRB-Tree implementation. Constructs a new, empty tree map, using the natural or... | 0true | commons_src_main_java_com_orientechnologies_common_collection_OMVRBTreeMemory.java |
104 | static final class TreeNode<K,V> extends Node<K,V> {
TreeNode<K,V> parent; // red-black tree links
TreeNode<K,V> left;
TreeNode<K,V> right;
TreeNode<K,V> prev; // needed to unlink next upon deletion
boolean red;
TreeNode(int hash, K key, V val, Node<K,V> next,
... | 0true | src_main_java_jsr166e_ConcurrentHashMapV8.java |
771 | @Deprecated
@Entity
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "BLC_SKU_AVAILABILITY")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE, region="blInventoryElements")
public class SkuAvailabilityImpl implements SkuAvailability {
/** The Constant serialVersionUID. */
private static final lo... | 1no label | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_inventory_domain_SkuAvailabilityImpl.java |
25 | abstract class EntrySetView extends AbstractSet<Map.Entry<K, V>> {
private transient int size = -1, sizeModCount;
@Override
public int size() {
if (fromStart && toEnd)
return m.size();
if (size == -1 || sizeModCount != m.modCount) {
sizeModCount = m.modCount;
... | 0true | commons_src_main_java_com_orientechnologies_common_collection_OMVRBTree.java |
219 | PriorityQueue<Passage> passageQueue = new PriorityQueue<Passage>(n, new Comparator<Passage>() {
@Override
public int compare(Passage left, Passage right) {
if (left.score < right.score) {
return -1;
} else if (left.score > right.score) ... | 0true | src_main_java_org_apache_lucene_search_postingshighlight_XPostingsHighlighter.java |
181 | private static class AppendFunction implements IFunction<String,String> {
private String add;
private AppendFunction(String add) {
this.add = add;
}
@Override
public String apply(String input) {
return input+add;
}
} | 0true | hazelcast-client_src_test_java_com_hazelcast_client_atomicreference_ClientAtomicReferenceTest.java |
808 | @Entity
@Table(name = "BLC_OFFER_AUDIT")
@Inheritance(strategy=InheritanceType.JOINED)
public class OfferAuditImpl implements OfferAudit {
public static final long serialVersionUID = 1L;
protected static final Log LOG = LogFactory.getLog(OfferAuditImpl.class);
@Id
@GeneratedValue(generator = "Off... | 1no label | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_offer_domain_OfferAuditImpl.java |
504 | public class CreateIndexRequestBuilder extends AcknowledgedRequestBuilder<CreateIndexRequest, CreateIndexResponse, CreateIndexRequestBuilder> {
public CreateIndexRequestBuilder(IndicesAdminClient indicesClient) {
super((InternalIndicesAdminClient) indicesClient, new CreateIndexRequest());
}
public... | 0true | src_main_java_org_elasticsearch_action_admin_indices_create_CreateIndexRequestBuilder.java |
1,350 | private final class FlushTask implements Runnable {
private FlushTask() {
}
@Override
public void run() {
try {
commit();
} catch (Throwable e) {
OLogManager.instance().error(this, "Error during WAL background flush", e);
}
}
private ... | 1no label | core_src_main_java_com_orientechnologies_orient_core_storage_impl_local_paginated_wal_OWriteAheadLog.java |
3,236 | public class ShardFieldData extends AbstractIndexShardComponent implements IndexFieldDataCache.Listener {
final CounterMetric evictionsMetric = new CounterMetric();
final CounterMetric totalMetric = new CounterMetric();
final ConcurrentMap<String, CounterMetric> perFieldTotals = ConcurrentCollections.newC... | 1no label | src_main_java_org_elasticsearch_index_fielddata_ShardFieldData.java |
25 | static final class OrCompletion extends Completion {
final CompletableFuture<?> src;
final CompletableFuture<?> snd;
final CompletableFuture<Object> dst;
OrCompletion(CompletableFuture<?> src,
CompletableFuture<?> snd,
CompletableFuture<Objec... | 0true | src_main_java_jsr166e_CompletableFuture.java |
179 | public enum ProcessURLAction {
PAGE,
PRODUCT,
CATEGORY,
PROCEED,
REDIRECT,
UNKNOWN
} | 0true | admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_web_ProcessURLAction.java |
22 | static abstract class NavigableSubMap<K, V> extends AbstractMap<K, V> implements ONavigableMap<K, V>, java.io.Serializable {
/**
* The backing map.
*/
final OMVRBTree<K, V> m;
/**
* Endpoints are represented as triples (fromStart, lo, loInclusive) and (toEnd, hi, hiInclusive). If fromStart... | 0true | commons_src_main_java_com_orientechnologies_common_collection_OMVRBTree.java |
58 | class AddInitializerProposal extends InitializerProposal {
private AddInitializerProposal(TypedDeclaration dec, int offset, int length,
TextChange change) {
super("Add initializer to '" + dec.getName() + "'",
change, dec, dec.getType(), new Region(offset, length),
MINOR_CHANG... | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_correct_AddInitializerProposal.java |
257 | public interface EmailTrackingClicks extends Serializable {
/**
* @return the emailId
*/
public abstract Long getId();
/**
* @param id the i to set
*/
public abstract void setId(Long id);
/**
* @return the dateClicked
*/
public abstract Date getDateClicked();
... | 0true | common_src_main_java_org_broadleafcommerce_common_email_domain_EmailTrackingClicks.java |
98 | final Thread thread = new Thread() {
public void run() {
try {
Thread.sleep(10);
} catch (InterruptedException e) {
e.printStackTrace();
}
hz1.getLifecycleService().terminate();
}
... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_ClientIssueTest.java |
60 | class AddParameterProposal extends InitializerProposal {
private AddParameterProposal(Declaration d, Declaration dec,
ProducedType type, int offset, int len, TextChange change,
int exitPos, CeylonEditor editor) {
super("Add '" + d.getName() + "' to parameter list of '" + dec.getName() ... | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_correct_AddParameterProposal.java |
253 | static final class RateLimitedIndexOutput extends BufferedIndexOutput {
private final IndexOutput delegate;
private final BufferedIndexOutput bufferedDelegate;
private final RateLimiter rateLimiter;
private final StoreRateLimiting.Listener rateListener;
RateLimitedIndexOutp... | 1no label | src_main_java_org_apache_lucene_store_RateLimitedFSDirectory.java |
407 | EventHandler<PortableItemEvent> eventHandler = new EventHandler<PortableItemEvent>() {
public void handle(PortableItemEvent portableItemEvent) {
E item = includeValue ? (E) getContext().getSerializationService().toObject(portableItemEvent.getItem()) : null;
Member mem... | 1no label | hazelcast-client_src_main_java_com_hazelcast_client_proxy_AbstractClientCollectionProxy.java |
101 | public class OException extends RuntimeException {
private static final long serialVersionUID = 3882447822497861424L;
public OException() {
}
public OException(final String message) {
super(message);
}
public OException(final Throwable cause) {
super(cause);
}
public OException(final String message, fi... | 0true | commons_src_main_java_com_orientechnologies_common_exception_OException.java |
328 | public class MergeManagerSetupException extends Exception {
private static final long serialVersionUID = 1L;
public MergeManagerSetupException() {
super();
}
public MergeManagerSetupException(String arg0, Throwable arg1) {
super(arg0, arg1);
}
public MergeManagerSetupExce... | 0true | common_src_main_java_org_broadleafcommerce_common_extensibility_context_merge_exceptions_MergeManagerSetupException.java |
34 | public class KeywordCompletionProposal extends CompletionProposal {
public static final Set<String> expressionKeywords =
new LinkedHashSet<String>(Arrays.asList(
"object", "value", "void", "function",
"this", "outer", "super",
"of", "in... | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_complete_KeywordCompletionProposal.java |
4,249 | static class Location {
public final long translogId;
public final long translogLocation;
public final int size;
public Location(long translogId, long translogLocation, int size) {
this.translogId = translogId;
this.translogLocation = translogLocation;
... | 1no label | src_main_java_org_elasticsearch_index_translog_Translog.java |
8 | public class HBaseStorageSetup {
private static final Logger log = LoggerFactory.getLogger(HBaseStorageSetup.class);
// hbase config for testing
public static final String HBASE_PARENT_DIR_PROP = "test.hbase.parentdir";
private static final Pattern HBASE_SUPPORTED_VERSION_PATTERN = Pattern.compile("... | 0true | titan-hbase-parent_titan-hbase-core_src_test_java_com_thinkaurelius_titan_HBaseStorageSetup.java |
453 | public class TransportClusterStatsAction extends TransportNodesOperationAction<ClusterStatsRequest, ClusterStatsResponse,
TransportClusterStatsAction.ClusterStatsNodeRequest, ClusterStatsNodeResponse> {
private static final CommonStatsFlags SHARD_STATS_FLAGS = new CommonStatsFlags(CommonStatsFlags.Flag.Doc... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_stats_TransportClusterStatsAction.java |
1,531 | public class HazelcastConnectionImpl implements HazelcastConnection {
/**
* Identity generator
*/
private static AtomicInteger idGen = new AtomicInteger();
/**
* Reference to this creator and access to container infrastructure
*/
final ManagedConnectionImpl managedConnection;
/**... | 1no label | hazelcast-ra_hazelcast-jca_src_main_java_com_hazelcast_jca_HazelcastConnectionImpl.java |
1,076 | @Service("blFulfillmentOptionService")
@Transactional("blTransactionManager")
public class FulfillmentOptionServiceImpl implements FulfillmentOptionService {
@Resource(name = "blFulfillmentOptionDao")
FulfillmentOptionDao fulfillmentOptionDao;
@Override
public FulfillmentOption readFulfillmentOptionBy... | 1no label | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_order_service_FulfillmentOptionServiceImpl.java |
40 | public class DummyCreditCardModule extends AbstractModule {
@Override
public PaymentResponseItem processAuthorize(PaymentContext paymentContext, Money amountToAuthorize, PaymentResponseItem responseItem) throws PaymentException {
return createResponse(paymentContext, responseItem);
}
@Override... | 0true | integration_src_test_java_org_broadleafcommerce_checkout_service_DummyCreditCardModule.java |
1,695 | public class ByteBufferBytesReference implements BytesReference {
private final ByteBuffer buffer;
public ByteBufferBytesReference(ByteBuffer buffer) {
this.buffer = buffer;
}
@Override
public byte get(int index) {
return buffer.get(buffer.position() + index);
}
@Override... | 1no label | src_main_java_org_elasticsearch_common_bytes_ByteBufferBytesReference.java |
6,231 | public class RestClient implements Closeable {
private static final ESLogger logger = Loggers.getLogger(RestClient.class);
private final RestSpec restSpec;
private final CloseableHttpClient httpClient;
private final String host;
private final int port;
private final String esVersion;
pu... | 1no label | src_test_java_org_elasticsearch_test_rest_client_RestClient.java |
87 | nodeEngine.getExecutionService().schedule(new Runnable() {
@Override
public void run() {
Iterator<ClientEndpoint> iterator = endpoints.values().iterator();
while (iterator.hasNext()) {
ClientEndpoint endpoint = i... | 0true | hazelcast_src_main_java_com_hazelcast_client_ClientEngineImpl.java |
673 | clusterService.submitStateUpdateTask("delete_warmer [" + Arrays.toString(request.names()) + "]", new AckedClusterStateUpdateTask() {
@Override
public boolean mustAck(DiscoveryNode discoveryNode) {
return true;
}
@Override
public void ... | 1no label | src_main_java_org_elasticsearch_action_admin_indices_warmer_delete_TransportDeleteWarmerAction.java |
93 | @Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface ConsoleCommand {
String[] aliases() default {};
String description() default "";
boolean splitInWords() default true;
} | 0true | commons_src_main_java_com_orientechnologies_common_console_annotation_ConsoleCommand.java |
1,072 | public class OSQLEngine {
private static List<OSQLFunctionFactory> FUNCTION_FACTORIES = null;
private static List<OCommandExecutorSQLFactory> EXECUTOR_FACTORIES = null;
private static List<OQueryOperatorFactory> OPERATOR_FACTORIES = null;
private static List<OCollateFactory> COLLATE_FACT... | 1no label | core_src_main_java_com_orientechnologies_orient_core_sql_OSQLEngine.java |
68 | class AssignToForProposal extends LocalProposal {
protected DocumentChange createChange(IDocument document, Node expanse,
Integer stopIndex) {
DocumentChange change =
new DocumentChange("Assign to For", document);
change.setEdit(new MultiTextEdit());
change.addE... | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_correct_AssignToForProposal.java |
298 | @ResponseStatus(value= HttpStatus.FORBIDDEN, reason="Access is denied")
public class SecurityServiceException extends ServiceException {
public SecurityServiceException() {
super();
}
public SecurityServiceException(Throwable cause) {
super(cause);
}
public SecurityServiceExceptio... | 0true | common_src_main_java_org_broadleafcommerce_common_exception_SecurityServiceException.java |
2,011 | @Service("blCustomerPhoneService")
public class CustomerPhoneServiceImpl implements CustomerPhoneService {
@Resource(name="blCustomerPhoneDao")
protected CustomerPhoneDao customerPhoneDao;
public CustomerPhone saveCustomerPhone(CustomerPhone customerPhone) {
List<CustomerPhone> activeCustomerPhone... | 1no label | core_broadleaf-profile_src_main_java_org_broadleafcommerce_profile_core_service_CustomerPhoneServiceImpl.java |
342 | public class NodesShutdownAction extends ClusterAction<NodesShutdownRequest, NodesShutdownResponse, NodesShutdownRequestBuilder> {
public static final NodesShutdownAction INSTANCE = new NodesShutdownAction();
public static final String NAME = "cluster/nodes/shutdown";
private NodesShutdownAction() {
... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_node_shutdown_NodesShutdownAction.java |
81 | public final class ClientEndpoint implements Client {
private final ClientEngineImpl clientEngine;
private final Connection conn;
private final ConcurrentMap<String, TransactionContext> transactionContextMap
= new ConcurrentHashMap<String, TransactionContext>();
private final List<Runnable>... | 1no label | hazelcast_src_main_java_com_hazelcast_client_ClientEndpoint.java |
405 | snapshotsService.addListener(new SnapshotsService.SnapshotCompletionListener() {
SnapshotId snapshotId = new SnapshotId(request.repository(), request.snapshot());
@Override
public void onSnapshotCompletion(SnapshotId snapshotId... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_snapshots_create_TransportCreateSnapshotAction.java |
21 | }), new Function<ByteEntry, Vertex>() {
@Override
public Vertex apply(@Nullable ByteEntry entry) {
return new ByteVertex(entry.key.getLong(8), tx);
}
}); | 0true | titan-test_src_main_java_com_thinkaurelius_titan_TestByteBuffer.java |
239 | service.submitToAllMembers(callable, new MultiExecutionCallback() {
public void onResponse(Member member, Object value) {
if (value.equals(msg + AppendCallable.APPENDAGE)) {
responseLatch.countDown();
}
}
public void onComp... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_executor_ClientExecutorServiceSubmitTest.java |
1,771 | public class AdornedTargetRetrieval {
private PersistencePackage persistencePackage;
private PersistencePerspective persistencePerspective;
private Entity entity;
private AdornedTargetList adornedTargetList;
private Map<String, FieldMetadata> mergedProperties;
private... | 1no label | admin_broadleaf-open-admin-platform_src_main_java_org_broadleafcommerce_openadmin_server_service_persistence_module_AdornedTargetListPersistenceModule.java |
140 | abstract class Striped64 extends Number {
/*
* This class maintains a lazily-initialized table of atomically
* updated variables, plus an extra "base" field. The table size
* is a power of two. Indexing uses masked per-thread hash codes.
* Nearly all declarations in this class are package-privat... | 0true | src_main_java_jsr166e_Striped64.java |
1,922 | EntryListener<Object, Object> listener = new EntryListener<Object, Object>() {
private void handleEvent(EntryEvent<Object, Object> event) {
if (endpoint.live()) {
Data key = clientEngine.toData(event.getKey());
Data value = clientEngine.toData... | 1no label | hazelcast_src_main_java_com_hazelcast_map_client_AbstractMapAddEntryListenerRequest.java |
2,090 | public class PutAllOperation extends AbstractMapOperation implements PartitionAwareOperation, BackupAwareOperation {
private MapEntrySet entrySet;
private boolean initialLoad = false;
private List<Map.Entry<Data, Data>> backupEntrySet;
private List<RecordInfo> backupRecordInfos;
public PutAllOpera... | 1no label | hazelcast_src_main_java_com_hazelcast_map_operation_PutAllOperation.java |
1,190 | @edu.umd.cs.findbugs.annotations.SuppressWarnings("SE_BAD_FIELD")
public class MemberLeftException extends ExecutionException implements DataSerializable, RetryableException {
private Member member;
public MemberLeftException() {
}
public MemberLeftException(Member member) {
this.member = mem... | 1no label | hazelcast_src_main_java_com_hazelcast_core_MemberLeftException.java |
116 | public class OStringForwardReader implements CharSequence {
private final BufferedReader input;
private char[] buffer = new char[DEFAULT_SIZE];
private long start = -1;
private long end = -1;
private long current = 0;
private long size = 0;
private stati... | 0true | commons_src_main_java_com_orientechnologies_common_parser_OStringForwardReader.java |
934 | class AsyncBroadcastAction {
private final Request request;
private final ActionListener<Response> listener;
private final ClusterState clusterState;
private final DiscoveryNodes nodes;
private final GroupShardsIterator shardsIts;
private final int expectedOps;
... | 1no label | src_main_java_org_elasticsearch_action_support_broadcast_TransportBroadcastOperationAction.java |
4 | @Component("blCategoryCustomPersistenceHandler")
public class CategoryCustomPersistenceHandler extends CustomPersistenceHandlerAdapter {
private static final Log LOG = LogFactory.getLog(CategoryCustomPersistenceHandler.class);
@Override
public Boolean canHandleAdd(PersistencePackage persistencePackage... | 0true | admin_broadleaf-admin-module_src_main_java_org_broadleafcommerce_admin_server_service_handler_CategoryCustomPersistenceHandler.java |
217 | public class ClientReadHandler extends ClientAbstractSelectionHandler {
private final ByteBuffer buffer;
private volatile long lastHandle;
private ClientPacket packet;
public ClientReadHandler(ClientConnection connection, IOSelector ioSelector, int bufferSize) {
super(connection, ioSelector)... | 1no label | hazelcast-client_src_main_java_com_hazelcast_client_connection_nio_ClientReadHandler.java |
713 | @Entity
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "BLC_PRODUCT_OPTION_VALUE")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE, region = "blStandardElements")
@AdminPresentationClass(friendlyName = "Product Option Value")
public class ProductOptionValueImpl implements ProductOptionValue {
pri... | 1no label | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_catalog_domain_ProductOptionValueImpl.java |
11 | public class StorageSetup {
//############ UTILITIES #############
public static final String getHomeDir(String subdir) {
String homedir = System.getProperty("titan.testdir");
if (null == homedir) {
homedir = "target" + File.separator + "db";
}
if (subdir!=null && !... | 0true | titan-test_src_main_java_com_thinkaurelius_titan_StorageSetup.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.