Unnamed: 0 int64 0 6.45k | func stringlengths 37 143k | target class label 2
classes | project stringlengths 33 157 |
|---|---|---|---|
3,709 | private class ManagedThread extends Thread {
protected final int id;
public ManagedThread(Runnable target, String name, int id) {
super(threadGroup, target, name);
this.id = id;
}
public void run() {
try {
super.run();
... | 1no label | hazelcast_src_main_java_com_hazelcast_util_executor_PoolExecutorThreadFactory.java |
287 | public class FailedNodeException extends ElasticsearchException {
private final String nodeId;
public FailedNodeException(String nodeId, String msg, Throwable cause) {
super(msg, cause);
this.nodeId = nodeId;
}
public String nodeId() {
return this.nodeId;
}
} | 0true | src_main_java_org_elasticsearch_action_FailedNodeException.java |
20 | static final class CompletionNode {
final Completion completion;
volatile CompletionNode next;
CompletionNode(Completion completion) { this.completion = completion; }
} | 0true | src_main_java_jsr166e_CompletableFuture.java |
2,423 | public class MultiMapEventFilter implements EventFilter, DataSerializable {
boolean includeValue;
Data key;
public MultiMapEventFilter() {
}
public MultiMapEventFilter(boolean includeValue, Data key) {
this.includeValue = includeValue;
this.key = key;
}
public boolean is... | 1no label | hazelcast_src_main_java_com_hazelcast_multimap_MultiMapEventFilter.java |
2,516 | public class JsonXContentGenerator implements XContentGenerator {
protected final JsonGenerator generator;
private boolean writeLineFeedAtEnd;
public JsonXContentGenerator(JsonGenerator generator) {
this.generator = generator;
}
@Override
public XContentType contentType() {
re... | 1no label | src_main_java_org_elasticsearch_common_xcontent_json_JsonXContentGenerator.java |
731 | public class DeleteByQueryAction extends Action<DeleteByQueryRequest, DeleteByQueryResponse, DeleteByQueryRequestBuilder> {
public static final DeleteByQueryAction INSTANCE = new DeleteByQueryAction();
public static final String NAME = "deleteByQuery";
private DeleteByQueryAction() {
super(NAME);
... | 0true | src_main_java_org_elasticsearch_action_deletebyquery_DeleteByQueryAction.java |
3,749 | @SuppressWarnings("deprecation")
public class WebFilter implements Filter {
protected static final String HAZELCAST_SESSION_ATTRIBUTE_SEPARATOR = "::hz::";
private static final ILogger LOGGER = Logger.getLogger(WebFilter.class);
private static final LocalCacheEntry NULL_ENTRY = new LocalCacheEntry();
... | 1no label | hazelcast-wm_src_main_java_com_hazelcast_web_WebFilter.java |
23 | public interface Generator<T> { T get(); } | 0true | src_main_java_jsr166e_CompletableFuture.java |
36 | public class OMVRBTreeEntryPosition<K, V> {
public OMVRBTreeEntry<K, V> entry;
public int position;
public OMVRBTreeEntryPosition(final OMVRBTreeEntryPosition<K, V> entryPosition) {
this.entry = entryPosition.entry;
this.position = entryPosition.position;
}
public OMVRBTreeEntryPosition(final OMVRBTr... | 0true | commons_src_main_java_com_orientechnologies_common_collection_OMVRBTreeEntryPosition.java |
42 | public interface Idfiable {
/**
* Unique identifier for this entity.
*
* @return Unique long id for this entity
*/
public long getLongId();
} | 0true | titan-core_src_main_java_com_thinkaurelius_titan_core_Idfiable.java |
416 | public class ClientIdGeneratorProxy extends ClientProxy implements IdGenerator {
private static final int BLOCK_SIZE = 10000;
final String name;
final IAtomicLong atomicLong;
AtomicInteger residue;
AtomicLong local;
public ClientIdGeneratorProxy(String instanceName, String serviceName, St... | 1no label | hazelcast-client_src_main_java_com_hazelcast_client_proxy_ClientIdGeneratorProxy.java |
434 | public class ClientSetProxy<E> extends AbstractClientCollectionProxy<E> implements ISet<E> {
public ClientSetProxy(String instanceName, String serviceName, String name) {
super(instanceName, serviceName, name);
}
@Override
public String toString() {
return "ISet{" + "name='" + getName(... | 1no label | hazelcast-client_src_main_java_com_hazelcast_client_proxy_ClientSetProxy.java |
502 | public class CreateIndexClusterStateUpdateRequest extends ClusterStateUpdateRequest<CreateIndexClusterStateUpdateRequest> {
final String cause;
final String index;
private IndexMetaData.State state = IndexMetaData.State.OPEN;
private Settings settings = ImmutableSettings.Builder.EMPTY_SETTINGS;
... | 0true | src_main_java_org_elasticsearch_action_admin_indices_create_CreateIndexClusterStateUpdateRequest.java |
5,843 | public class InternalSearchHit implements SearchHit {
private static final Object[] EMPTY_SORT_VALUES = new Object[0];
private static final Text MAX_TERM_AS_TEXT = new StringAndBytesText(BytesRefFieldComparatorSource.MAX_TERM.utf8ToString());
private transient int docId;
private float score = Float.N... | 1no label | src_main_java_org_elasticsearch_search_internal_InternalSearchHit.java |
43 | public interface ONavigableSet<E> extends SortedSet<E> {
/**
* Returns the greatest element in this set strictly less than the given element, or {@code null} if there is no such element.
*
* @param e
* the value to match
* @return the greatest element less than {@code e}, or {@code null} if there i... | 0true | commons_src_main_java_com_orientechnologies_common_collection_ONavigableSet.java |
1,955 | public class MapRemoveRequest extends KeyBasedClientRequest implements Portable, SecureRequest {
protected String name;
protected Data key;
protected long threadId;
protected transient long startTime;
public MapRemoveRequest() {
}
public MapRemoveRequest(String name, Data key, long thread... | 1no label | hazelcast_src_main_java_com_hazelcast_map_client_MapRemoveRequest.java |
1,211 | public class PaymentInfoAdditionalFieldType implements Serializable, BroadleafEnumerationType {
private static final long serialVersionUID = 1L;
private static final Map<String, PaymentInfoAdditionalFieldType> TYPES = new LinkedHashMap<String, PaymentInfoAdditionalFieldType>();
public static final Paymen... | 1no label | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_payment_service_type_PaymentInfoAdditionalFieldType.java |
3,424 | threadPool.generic().execute(new Runnable() {
@Override
public void run() {
recoveryStatus = new RecoveryStatus();
recoveryStatus.updateStage(RecoveryStatus.Stage.INIT);
try {
if (indexShard.routingEntry().restoreSource... | 1no label | src_main_java_org_elasticsearch_index_gateway_IndexShardGatewayService.java |
1,289 | public class LaunchHelper {
static void addFiles(List<IFile> files, IResource resource) {
switch (resource.getType()) {
case IResource.FILE:
IFile file = (IFile) resource;
IPath path = file.getFullPath(); //getProjectRelativePath();
if (path!=null... | 1no label | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_core_launch_LaunchHelper.java |
498 | public final class ClientInvocationServiceImpl implements ClientInvocationService {
private final HazelcastClient client;
private final ClientConnectionManager connectionManager;
private final ConcurrentMap<String, Integer> registrationMap = new ConcurrentHashMap<String, Integer>();
private final Conc... | 1no label | hazelcast-client_src_main_java_com_hazelcast_client_spi_impl_ClientInvocationServiceImpl.java |
665 | public class ValidateQueryRequest extends BroadcastOperationRequest<ValidateQueryRequest> {
private static final XContentType contentType = Requests.CONTENT_TYPE;
private BytesReference source;
private boolean sourceUnsafe;
private boolean explain;
private String[] types = Strings.EMPTY_ARRAY;
... | 0true | src_main_java_org_elasticsearch_action_admin_indices_validate_query_ValidateQueryRequest.java |
823 | @Entity
@Table(name = "BLC_OFFER_ITEM_CRITERIA")
@Inheritance(strategy=InheritanceType.JOINED)
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE, region="blStandardElements")
@AdminPresentationClass(friendlyName = "OfferItemCriteriaImpl_baseOfferItemCriteria")
public class OfferItemCriteriaImpl implements OfferItemCri... | 1no label | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_offer_domain_OfferItemCriteriaImpl.java |
5,092 | transportService.sendRequest(node, SearchQueryFetchTransportHandler.ACTION, request, new BaseTransportResponseHandler<QueryFetchSearchResult>() {
@Override
public QueryFetchSearchResult newInstance() {
return new QueryFetchSearchResult();
... | 1no label | src_main_java_org_elasticsearch_search_action_SearchServiceTransportAction.java |
290 | @Entity
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name="BLC_DATA_DRVN_ENUM")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE, region="blStandardElements")
@AdminPresentationClass(populateToOneFields = PopulateToOneFieldsEnum.TRUE, friendlyName = "DataDrivenEnumerationImpl_friendyName")
public class Data... | 0true | common_src_main_java_org_broadleafcommerce_common_enumeration_domain_DataDrivenEnumerationImpl.java |
25 | final class FunctionCompletionProposal extends
CompletionProposal {
private final CeylonParseController cpc;
private final Declaration dec;
private FunctionCompletionProposal(int offset, String prefix,
String desc, String text, Declaration dec,
CeylonParseController cpc... | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_complete_FunctionCompletionProposal.java |
149 | public class ReadMostlyVector<E>
implements List<E>, RandomAccess, Cloneable, java.io.Serializable {
private static final long serialVersionUID = 8673264195747942595L;
/*
* This class exists mainly as a vehicle to exercise various
* constructions using SequenceLocks. Read-only methods
* ... | 0true | src_main_java_jsr166e_extra_ReadMostlyVector.java |
784 | public class MetricInstrumentedSchemaCache implements SchemaCache {
public static final String METRICS_NAME = "schemacache";
public static final String METRICS_TYPENAME = "name";
public static final String METRICS_RELATIONS = "relations";
private final SchemaCache cache;
public MetricInstrumente... | 1no label | titan-core_src_main_java_com_thinkaurelius_titan_graphdb_database_cache_MetricInstrumentedSchemaCache.java |
2,038 | public abstract class BasePutOperation extends LockAwareOperation implements BackupAwareOperation {
protected transient Data dataOldValue;
protected transient EntryEventType eventType;
public BasePutOperation(String name, Data dataKey, Data value) {
super(name, dataKey, value, -1);
}
publ... | 1no label | hazelcast_src_main_java_com_hazelcast_map_operation_BasePutOperation.java |
176 | @RunWith(HazelcastSerialClassRunner.class)
@Category(QuickTest.class)
public class ClientAtomicLongTest {
static final String name = "test1";
static HazelcastInstance client;
static HazelcastInstance server;
static IAtomicLong l;
@BeforeClass
public static void init(){
server = Hazelca... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_atomiclong_ClientAtomicLongTest.java |
3,743 | final class HazelcastInstanceLoader {
public static final String INSTANCE_NAME = "instance-name";
public static final String CONFIG_LOCATION = "config-location";
public static final String USE_CLIENT = "use-client";
public static final String CLIENT_CONFIG_LOCATION = "client-config-location";
priv... | 1no label | hazelcast-wm_src_main_java_com_hazelcast_web_HazelcastInstanceLoader.java |
274 | public interface OCommandRequestAsynch {
public OCommandResultListener getResultListener();
public void setResultListener(OCommandResultListener iListener);
public boolean isAsynchronous();
} | 0true | core_src_main_java_com_orientechnologies_orient_core_command_OCommandRequestAsynch.java |
193 | public class TruncateTokenFilter extends TokenFilter {
private final CharTermAttribute termAttribute = addAttribute(CharTermAttribute.class);
private final int size;
public TruncateTokenFilter(TokenStream in, int size) {
super(in);
this.size = size;
}
@Override
public final b... | 0true | src_main_java_org_apache_lucene_analysis_miscellaneous_TruncateTokenFilter.java |
582 | public class TransportOptimizeAction extends TransportBroadcastOperationAction<OptimizeRequest, OptimizeResponse, ShardOptimizeRequest, ShardOptimizeResponse> {
private final IndicesService indicesService;
@Inject
public TransportOptimizeAction(Settings settings, ThreadPool threadPool, ClusterService clus... | 1no label | src_main_java_org_elasticsearch_action_admin_indices_optimize_TransportOptimizeAction.java |
300 | public class SiteNotFoundException extends RuntimeException {
public SiteNotFoundException() {
//do nothing
}
public SiteNotFoundException(Throwable cause) {
super(cause);
}
public SiteNotFoundException(String message) {
super(message);
}
public SiteNotFoundExcept... | 0true | common_src_main_java_org_broadleafcommerce_common_exception_SiteNotFoundException.java |
4,034 | public class MultiMatchQuery extends MatchQuery {
private boolean useDisMax = true;
private float tieBreaker;
public void setUseDisMax(boolean useDisMax) {
this.useDisMax = useDisMax;
}
public void setTieBreaker(float tieBreaker) {
this.tieBreaker = tieBreaker;
}
public M... | 1no label | src_main_java_org_elasticsearch_index_search_MultiMatchQuery.java |
162 | public final class OperationFactoryWrapper implements OperationFactory {
private OperationFactory opFactory;
private String uuid;
public OperationFactoryWrapper() {
}
public OperationFactoryWrapper(OperationFactory opFactory, String uuid) {
this.opFactory = opFactory;
this.uuid = ... | 0true | hazelcast_src_main_java_com_hazelcast_client_OperationFactoryWrapper.java |
2,594 | class SocketPacketReader implements SocketReader {
private static final int CONST_BUFFER_NO = 4;
Packet packet;
final PacketReader packetReader;
final TcpIpConnection connection;
final IOService ioService;
final ILogger logger;
public SocketPacketReader(TcpIpConnection connection) {
... | 1no label | hazelcast_src_main_java_com_hazelcast_nio_SocketPacketReader.java |
1,408 | public class CeylonPlugin extends AbstractUIPlugin implements CeylonResources {
public static final String PLUGIN_ID = "com.redhat.ceylon.eclipse.ui";
public static final String DIST_PLUGIN_ID = "com.redhat.ceylon.dist";
public static final String EMBEDDED_REPO_PLUGIN_ID = "com.redhat.ceylon.dist.repo";
... | 1no label | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_ui_CeylonPlugin.java |
1,607 | public class SimpleValueMapStructure extends MapStructure {
private static final long serialVersionUID = 1L;
private String valuePropertyName;
private String valuePropertyFriendlyName;
public SimpleValueMapStructure() {
super();
}
/**
* @param keyClassName
* @pa... | 1no label | admin_broadleaf-open-admin-platform_src_main_java_org_broadleafcommerce_openadmin_dto_SimpleValueMapStructure.java |
3,845 | public class GeoPolygonFilterParser implements FilterParser {
public static final String NAME = "geo_polygon";
public static final String POINTS = "points";
@Inject
public GeoPolygonFilterParser() {
}
@Override
public String[] names() {
return new String[]{NAME, "geoPolygon"};
... | 1no label | src_main_java_org_elasticsearch_index_query_GeoPolygonFilterParser.java |
385 | public class ClusterUpdateSettingsAction extends ClusterAction<ClusterUpdateSettingsRequest, ClusterUpdateSettingsResponse, ClusterUpdateSettingsRequestBuilder> {
public static final ClusterUpdateSettingsAction INSTANCE = new ClusterUpdateSettingsAction();
public static final String NAME = "cluster/settings/up... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_settings_ClusterUpdateSettingsAction.java |
410 | public class ClientClusterProxy implements Cluster {
private final ClientClusterServiceImpl clusterService;
public ClientClusterProxy(ClientClusterServiceImpl clusterService) {
this.clusterService = clusterService;
}
@Override
public String addMembershipListener(MembershipListener listene... | 0true | hazelcast-client_src_main_java_com_hazelcast_client_proxy_ClientClusterProxy.java |
507 | public class DayOfMonthType implements Serializable, BroadleafEnumerationType {
private static final long serialVersionUID = 1L;
private static final Map<String, DayOfMonthType> TYPES = new LinkedHashMap<String, DayOfMonthType>();
public static final DayOfMonthType ONE = new DayOfMonthType("1", "01");
... | 1no label | common_src_main_java_org_broadleafcommerce_common_time_DayOfMonthType.java |
262 | public enum TIMEOUT_STRATEGY {
RETURN, EXCEPTION
} | 0true | core_src_main_java_com_orientechnologies_orient_core_command_OCommandContext.java |
1,249 | public class DefaultSchemaProvider implements SchemaProvider {
public static final DefaultSchemaProvider INSTANCE = new DefaultSchemaProvider();
private DefaultSchemaProvider() {}
@Override
public EdgeLabelDefinition getEdgeLabel(String name) {
return new EdgeLabelDefinition(name, FaunusEleme... | 1no label | titan-hadoop-parent_titan-hadoop-core_src_main_java_com_thinkaurelius_titan_hadoop_DefaultSchemaProvider.java |
2,612 | public final class UTFEncoderDecoder {
private static final int STRING_CHUNK_SIZE = 16 * 1024;
private static final UTFEncoderDecoder INSTANCE;
static {
INSTANCE = buildUTFUtil();
}
private final StringCreator stringCreator;
private final boolean hazelcastEnterpriseActive;
priva... | 1no label | hazelcast_src_main_java_com_hazelcast_nio_UTFEncoderDecoder.java |
910 | public class TransportSuggestAction extends TransportBroadcastOperationAction<SuggestRequest, SuggestResponse, ShardSuggestRequest, ShardSuggestResponse> {
private final IndicesService indicesService;
private final SuggestPhase suggestPhase;
@Inject
public TransportSuggestAction(Settings settings, Th... | 1no label | src_main_java_org_elasticsearch_action_suggest_TransportSuggestAction.java |
1,150 | public class OSQLMethodNormalize extends OAbstractSQLMethod {
public static final String NAME = "normalize";
public OSQLMethodNormalize() {
super(NAME, 0, 2);
}
@Override
public Object execute(OIdentifiable iCurrentRecord, OCommandContext iContext, Object ioResult, Object[] iMethodParams)... | 1no label | core_src_main_java_com_orientechnologies_orient_core_sql_method_misc_OSQLMethodNormalize.java |
1,053 | @Entity
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "BLC_PERSONAL_MESSAGE")
@Cache(usage=CacheConcurrencyStrategy.NONSTRICT_READ_WRITE, region="blOrderElements")
public class PersonalMessageImpl implements PersonalMessage {
private static final long serialVersionUID = 1L;
@Id
@GeneratedV... | 1no label | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_order_domain_PersonalMessageImpl.java |
327 | EntryListener listener1 = new EntryAdapter() {
public void entryAdded(EntryEvent event) {
latch1Add.countDown();
}
public void entryRemoved(EntryEvent event) {
latch1Remove.countDown();
}
}; | 0true | hazelcast-client_src_test_java_com_hazelcast_client_map_ClientMapTest.java |
116 | public static interface ForkJoinWorkerThreadFactory {
/**
* Returns a new worker thread operating in the given pool.
*
* @param pool the pool this thread works in
* @return the new worker thread
* @throws NullPointerException if the pool is null
*/
... | 0true | src_main_java_jsr166e_ForkJoinPool.java |
266 | public class OCommandExecutorNotFoundException extends OCommandExecutionException {
private static final long serialVersionUID = -7430575036316163711L;
public OCommandExecutorNotFoundException(String message, Throwable cause) {
super(message, cause);
}
public OCommandExecutorNotFoundException(String mess... | 0true | core_src_main_java_com_orientechnologies_orient_core_command_OCommandExecutorNotFoundException.java |
192 | public interface AdminMainEntity {
public static final String MAIN_ENTITY_NAME_PROPERTY = "__adminMainEntity";
/**
* @return the display name of this entity for the admin screen
*/
public String getMainEntityName();
} | 0true | common_src_main_java_org_broadleafcommerce_common_admin_domain_AdminMainEntity.java |
133 | public interface StructuredContentField extends Serializable {
/**
* Gets the primary key.
*
* @return the primary key
*/
@Nullable
public Long getId();
/**
* Sets the primary key.
*
* @param id the new primary key
*/
public void setId(@Nullable Long id);
... | 0true | admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_structure_domain_StructuredContentField.java |
1,268 | 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_InternalTransportClient.java |
1,180 | @Entity
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "BLC_PAYMENT_LOG")
public class PaymentLogImpl implements PaymentLog {
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue(generator = "PaymentLogId")
@GenericGenerator(
name="PaymentLogId",
strategy... | 1no label | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_payment_domain_PaymentLogImpl.java |
152 | static final class ReadMostlyVectorSublist<E>
implements List<E>, RandomAccess, java.io.Serializable {
private static final long serialVersionUID = 3041673470172026059L;
final ReadMostlyVector<E> list;
final int offset;
volatile int size;
ReadMostlyVectorSublist... | 0true | src_main_java_jsr166e_extra_ReadMostlyVector.java |
459 | @Service("blResourceBundlingService")
public class ResourceBundlingServiceImpl implements ResourceBundlingService {
protected static final Log LOG = LogFactory.getLog(ResourceBundlingServiceImpl.class);
protected static final String DEFAULT_STORAGE_DIRECTORY = System.getProperty("java.io.tmpdir");
// M... | 1no label | common_src_main_java_org_broadleafcommerce_common_resource_service_ResourceBundlingServiceImpl.java |
588 | public final class ConfigCheck implements IdentifiedDataSerializable {
private String groupName;
private String groupPassword;
private String joinerType;
private boolean partitionGroupEnabled;
private PartitionGroupConfig.MemberGroupType memberGroupType;
public ConfigCheck() {
}
p... | 1no label | hazelcast_src_main_java_com_hazelcast_cluster_ConfigCheck.java |
117 | public static final class ClientHelper {
private ClientHelper() {
}
public static void cleanResources(HazelcastClient client) {
closeSockets(client);
tryStopThreads(client);
tryShutdown(client);
}
private static void closeSockets(Hazelca... | 0true | hazelcast-client_src_main_java_com_hazelcast_client_ClientOutOfMemoryHandler.java |
109 | public static class Order {
public static final int Rules = 1000;
} | 0true | admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_page_domain_PageImpl.java |
2,896 | public static class InPredicate extends AbstractPredicate {
private Comparable[] values;
private volatile Set<Comparable> convertedInValues;
public InPredicate() {
}
public InPredicate(String attribute, Comparable... values) {
super(attribute);
this.... | 1no label | hazelcast_src_main_java_com_hazelcast_query_Predicates.java |
535 | class ShardGatewaySnapshotRequest extends BroadcastShardOperationRequest {
ShardGatewaySnapshotRequest() {
}
public ShardGatewaySnapshotRequest(String index, int shardId, GatewaySnapshotRequest request) {
super(index, shardId, request);
}
@Override
public void readFrom(StreamInput in)... | 0true | src_main_java_org_elasticsearch_action_admin_indices_gateway_snapshot_ShardGatewaySnapshotRequest.java |
328 | public class PluginInfo implements Streamable, Serializable, ToXContent {
public static final String DESCRIPTION_NOT_AVAILABLE = "No description found.";
public static final String VERSION_NOT_AVAILABLE = "NA";
static final class Fields {
static final XContentBuilderString NAME = new XContentBuilde... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_node_info_PluginInfo.java |
375 | public static class TestCombinerFactory
implements CombinerFactory<String, Integer, Integer> {
public TestCombinerFactory() {
}
@Override
public Combiner<String, Integer, Integer> newCombiner(String key) {
return new TestCombiner();
}
} | 0true | hazelcast-client_src_test_java_com_hazelcast_client_mapreduce_DistributedMapperClientMapReduceTest.java |
3,729 | public class ObjectMapper implements Mapper, AllFieldMapper.IncludeInAll {
public static final String CONTENT_TYPE = "object";
public static final String NESTED_CONTENT_TYPE = "nested";
public static class Defaults {
public static final boolean ENABLED = true;
public static final Nested NE... | 1no label | src_main_java_org_elasticsearch_index_mapper_object_ObjectMapper.java |
5,425 | public static class WithScript extends Bytes {
private final BytesValues bytesValues;
public WithScript(FieldDataSource delegate, SearchScript script) {
this.bytesValues = new BytesValues(delegate, script);
}
@Override
public MetaData metaData() {
r... | 1no label | src_main_java_org_elasticsearch_search_aggregations_support_FieldDataSource.java |
2,315 | public class MapReduceService
implements ManagedService, RemoteService {
/**
* The service name to retrieve an instance of the MapReduceService
*/
public static final String SERVICE_NAME = "hz:impl:mapReduceService";
private static final ILogger LOGGER = Logger.getLogger(MapReduceService... | 1no label | hazelcast_src_main_java_com_hazelcast_mapreduce_impl_MapReduceService.java |
202 | @Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD,ElementType.METHOD})
public @interface Hydrated {
String factoryMethod();
} | 0true | common_src_main_java_org_broadleafcommerce_common_cache_Hydrated.java |
1,140 | public class OSQLMethodAsSet extends OAbstractSQLMethod {
public static final String NAME = "asSet";
public OSQLMethodAsSet() {
super(NAME);
}
@SuppressWarnings("unchecked")
@Override
public Object execute(OIdentifiable iCurrentRecord, OCommandContext iContext, Object ioResult, Object[] iMethodParams... | 1no label | core_src_main_java_com_orientechnologies_orient_core_sql_method_misc_OSQLMethodAsSet.java |
1,704 | public abstract class OServerCommandAbstract implements OServerCommand {
protected OServer server;
/**
* Default constructor. Disable cache of content at HTTP level
*/
public OServerCommandAbstract() {
}
@Override
public boolean beforeExecute(final OHttpRequest iRequest, OHttpResponse iResponse) th... | 1no label | server_src_main_java_com_orientechnologies_orient_server_network_protocol_http_command_OServerCommandAbstract.java |
114 | public class OLogManager {
private boolean debug = true;
private boolean info = true;
private boolean warn = true;
private boolean error = true;
private Level minimumLevel = Level.SEVERE;
pri... | 0true | commons_src_main_java_com_orientechnologies_common_log_OLogManager.java |
25 | public class ErrorCommandProcessor extends AbstractTextCommandProcessor<ErrorCommand> {
public ErrorCommandProcessor(TextCommandService textCommandService) {
super(textCommandService);
}
public void handle(ErrorCommand command) {
textCommandService.sendResponse(command);
}
public ... | 0true | hazelcast_src_main_java_com_hazelcast_ascii_memcache_ErrorCommandProcessor.java |
89 | private final class ConnectionListenerImpl implements ConnectionListener {
@Override
public void connectionAdded(Connection conn) {
//no-op
//unfortunately we can't do the endpoint creation here, because this event is only called when the
//connection is bound, b... | 1no label | hazelcast_src_main_java_com_hazelcast_client_ClientEngineImpl.java |
1,778 | private class SortableValue implements Comparable<SortableValue> {
private Integer pos;
private Serializable entity;
private Class<?> entityClass;
private String containingPropertyName;
private Object bean;
public SortableValue(Object bean, Serializa... | 1no label | admin_broadleaf-open-admin-platform_src_main_java_org_broadleafcommerce_openadmin_server_service_persistence_module_FieldManager.java |
262 | ex.schedule(new Runnable() {
@Override
public void run() {
hzs.get(1).shutdown();
}
}, 1000, TimeUnit.MILLISECONDS); | 0true | hazelcast-client_src_test_java_com_hazelcast_client_executor_ExecutionDelayTest.java |
734 | public class DeleteByQueryResponse extends ActionResponse implements Iterable<IndexDeleteByQueryResponse> {
private Map<String, IndexDeleteByQueryResponse> indices = newHashMap();
DeleteByQueryResponse() {
}
@Override
public Iterator<IndexDeleteByQueryResponse> iterator() {
return indice... | 0true | src_main_java_org_elasticsearch_action_deletebyquery_DeleteByQueryResponse.java |
10 | private static class StreamLogger extends Thread {
private final BufferedReader reader;
private static final Logger log =
LoggerFactory.getLogger(StreamLogger.class);
private StreamLogger(InputStream is) {
this.reader = new BufferedReader(new InputStreamReader(i... | 0true | titan-hbase-parent_titan-hbase-core_src_test_java_com_thinkaurelius_titan_HBaseStorageSetup.java |
1,019 | public class SearchResultsLabelProvider extends CeylonLabelProvider {
@Override
public Image getImage(Object element) {
if (element instanceof WithSourceFolder) {
element = ((WithSourceFolder) element).element;
}
String key;
int decorations;
if (element i... | 1no label | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_search_SearchResultsLabelProvider.java |
3,421 | public class ProxyServiceImpl
implements ProxyService, PostJoinAwareService, EventPublishingService<DistributedObjectEventPacket, Object> {
static final String SERVICE_NAME = "hz:core:proxyService";
private final NodeEngineImpl nodeEngine;
private final ConcurrentMap<String, ProxyRegistry> registr... | 1no label | hazelcast_src_main_java_com_hazelcast_spi_impl_ProxyServiceImpl.java |
5,406 | public static class SortedAndUnique extends Bytes implements ReaderContextAware {
private final FieldDataSource delegate;
private final MetaData metaData;
private BytesValues bytesValues;
public SortedAndUnique(FieldDataSource delegate) {
this.de... | 1no label | src_main_java_org_elasticsearch_search_aggregations_support_FieldDataSource.java |
110 | private class TxHook implements javax.transaction.Synchronization
{
boolean gotBefore = false;
boolean gotAfter = false;
int statusBefore = -1;
int statusAfter = -1;
Transaction txBefore = null;
Transaction txAfter = null;
public void beforeCompletion()
... | 0true | community_kernel_src_test_java_org_neo4j_kernel_impl_transaction_TestJtaCompliance.java |
113 | {
@Override
public Object doWork( Void state )
{
try
{
tm.begin();
tm.getTransaction().registerSynchronization( hook );
return null;
}
catch ( Exception... | 0true | community_kernel_src_test_java_org_neo4j_kernel_impl_transaction_TestJtaCompliance.java |
201 | public abstract class ClientAbstractIOSelector extends Thread implements IOSelector {
private static final int TIMEOUT = 3;
protected final ILogger logger;
protected final Queue<Runnable> selectorQueue = new ConcurrentLinkedQueue<Runnable>();
protected final int waitTime;
protected final Select... | 1no label | hazelcast-client_src_main_java_com_hazelcast_client_connection_nio_ClientAbstractIOSelector.java |
329 | public class AttributePreserveInsert extends BaseHandler {
public Node[] merge(List<Node> nodeList1, List<Node> nodeList2, List<Node> exhaustedNodes) {
if (CollectionUtils.isEmpty(nodeList1) || CollectionUtils.isEmpty(nodeList2)) {
return null;
}
Node node1 = nodeList1.get(0);
... | 0true | common_src_main_java_org_broadleafcommerce_common_extensibility_context_merge_handlers_AttributePreserveInsert.java |
351 | private class StressThread extends Thread {
private final AtomicInteger counter;
private final AtomicInteger errors;
public StressThread(AtomicInteger counter, AtomicInteger errors) {
this.counter = counter;
this.errors = errors;
}
public void run() ... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_map_MapMemoryUsageStressTest.java |
373 | public class PutRepositoryAction extends ClusterAction<PutRepositoryRequest, PutRepositoryResponse, PutRepositoryRequestBuilder> {
public static final PutRepositoryAction INSTANCE = new PutRepositoryAction();
public static final String NAME = "cluster/repository/put";
private PutRepositoryAction() {
... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_repositories_put_PutRepositoryAction.java |
170 | es.submit(new Runnable() {
public void run() {
IMap<String, byte[]> map = client.getMap("default");
while (true) {
int key = (int) (Math.random() * ENTRY_COUNT);
int operation = ((int) (Math.random() * 10... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_SimpleMapTestFromClient.java |
429 | public class ClusterStateResponse extends ActionResponse {
private ClusterName clusterName;
private ClusterState clusterState;
public ClusterStateResponse() {
}
ClusterStateResponse(ClusterName clusterName, ClusterState clusterState) {
this.clusterName = clusterName;
this.clusterS... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_state_ClusterStateResponse.java |
345 | public class NodesShutdownResponse extends ActionResponse {
private ClusterName clusterName;
private DiscoveryNode[] nodes;
NodesShutdownResponse() {
}
public NodesShutdownResponse(ClusterName clusterName, DiscoveryNode[] nodes) {
this.clusterName = clusterName;
this.nodes = nodes... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_node_shutdown_NodesShutdownResponse.java |
2,665 | final class DataSerializer implements StreamSerializer<DataSerializable> {
private static final String FACTORY_ID = "com.hazelcast.DataSerializerHook";
private final Map<Integer, DataSerializableFactory> factories = new HashMap<Integer, DataSerializableFactory>();
DataSerializer(Map<Integer, ? extends Da... | 1no label | hazelcast_src_main_java_com_hazelcast_nio_serialization_DataSerializer.java |
1,495 | public class SingleSourceUnitPackage extends com.redhat.ceylon.compiler.typechecker.model.Package {
private com.redhat.ceylon.compiler.typechecker.model.Package modelPackage;
private String fullPathOfSourceUnitToTypecheck;
public SingleSourceUnitPackage(com.redhat.ceylon.compiler.typechecker.model.Package... | 1no label | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_util_SingleSourceUnitPackage.java |
527 | public class FlushResponse extends BroadcastOperationResponse {
FlushResponse() {
}
FlushResponse(int totalShards, int successfulShards, int failedShards, List<ShardOperationFailedException> shardFailures) {
super(totalShards, successfulShards, failedShards, shardFailures);
}
@Override
... | 0true | src_main_java_org_elasticsearch_action_admin_indices_flush_FlushResponse.java |
1,071 | public class MaxSizeConfig {
private MaxSizeConfigReadOnly readOnly;
private int size = MapConfig.DEFAULT_MAX_SIZE;
private MaxSizePolicy maxSizePolicy = MaxSizePolicy.PER_NODE;
public MaxSizeConfig() {
}
public MaxSizeConfig(int size, MaxSizePolicy maxSizePolicy) {
this.size = size;... | 1no label | hazelcast_src_main_java_com_hazelcast_config_MaxSizeConfig.java |
1,288 | public class ReviewStatusType {
private static final long serialVersionUID = 1L;
private static final Map<String, ReviewStatusType> TYPES = new HashMap<String, ReviewStatusType>();
public static final ReviewStatusType PENDING = new ReviewStatusType("PENDING");
public static final ReviewStatusType APPR... | 1no label | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_rating_service_type_ReviewStatusType.java |
1,637 | public class OHazelcastDistributedMessageService implements ODistributedMessageService {
protected final OHazelcastPlugin manager;
protected Map<String, OHazelcastDistributedDatabase> databases = new ConcurrentHashMap<String, OHazelcastDistribu... | 1no label | distributed_src_main_java_com_orientechnologies_orient_server_hazelcast_OHazelcastDistributedMessageService.java |
4,267 | public class FsChannelSnapshot implements Translog.Snapshot {
private final long id;
private final int totalOperations;
private final RafReference raf;
private final FileChannel channel;
private final long length;
private Translog.Operation lastOperationRead = null;
private int positi... | 1no label | src_main_java_org_elasticsearch_index_translog_fs_FsChannelSnapshot.java |
388 | new Thread(){
public void run() {
try {
if(mm.tryLock(key, 10, TimeUnit.SECONDS)){
tryLockReturnsTrue.countDown();
}
} catch (InterruptedException e) {
e.printStackTrace();
... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_multimap_ClientMultiMapLockTest.java |
89 | public class StaticAssetServiceImplTest extends TestCase {
public void testConvertURLProperties() throws Exception {
StaticAssetServiceImpl staticAssetService = new StaticAssetServiceImpl();
staticAssetService.setStaticAssetUrlPrefix("cmsstatic");
staticAssetService.setStaticAssetEnviro... | 0true | admin_broadleaf-contentmanagement-module_src_test_java_org_broadleafcommerce_cms_file_service_StaticAssetServiceImplTest.java |
437 | public class ClusterStatsNodes implements ToXContent, Streamable {
private Counts counts;
private Set<Version> versions;
private OsStats os;
private ProcessStats process;
private JvmStats jvm;
private FsStats.Info fs;
private Set<PluginInfo> plugins;
private ClusterStatsNodes() {
}... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_stats_ClusterStatsNodes.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.