Unnamed: 0 int64 0 6.45k | func stringlengths 37 161k | target class label 2
classes | project stringlengths 33 167 |
|---|---|---|---|
115 | assertTrueEventually(new AssertTask() {
public void run() throws Exception {
NearCacheStats stats = clientMap.getLocalMapStats().getNearCacheStats();
assertEquals(0, stats.getOwnedEntryCount());
}
}); | 0true | hazelcast-client_src_test_java_com_hazelcast_client_ClientNearCacheTest.java |
810 | @SuppressWarnings("serial")
public class PlotViewManifestation extends FeedView implements RenderingCallback {
private final static Logger logger = LoggerFactory.getLogger(PlotViewManifestation.class);
private AbbreviatingPlotLabelingAlgorithm plotLabelingAlgorithm = new AbbreviatingPlotLabelingAlgorithm();
private... | 1no label | fastPlotViews_src_main_java_gov_nasa_arc_mct_fastplot_view_PlotViewManifestation.java |
488 | public final class ClientClusterServiceImpl implements ClientClusterService {
private static final ILogger LOGGER = Logger.getLogger(ClientClusterService.class);
private static final int SLEEP_TIME = 1000;
private final HazelcastClient client;
private final ClientConnectionManagerImpl connectionManage... | 1no label | hazelcast-client_src_main_java_com_hazelcast_client_spi_impl_ClientClusterServiceImpl.java |
2,597 | private class MasterPingRequestHandler extends BaseTransportRequestHandler<MasterPingRequest> {
public static final String ACTION = "discovery/zen/fd/masterPing";
@Override
public MasterPingRequest newInstance() {
return new MasterPingRequest();
}
@Override
... | 1no label | src_main_java_org_elasticsearch_discovery_zen_fd_MasterFaultDetection.java |
2,572 | clusterService.submitStateUpdateTask("zen-disco-node_left(" + node + ")", Priority.URGENT, new ClusterStateUpdateTask() {
@Override
public ClusterState execute(ClusterState currentState) {
DiscoveryNodes.Builder builder = DiscoveryNodes.builder(currentStat... | 1no label | src_main_java_org_elasticsearch_discovery_zen_ZenDiscovery.java |
63 | public class ONoLock extends OAbstractLock {
public void lock() {
}
public void unlock() {
}
} | 0true | commons_src_main_java_com_orientechnologies_common_concur_lock_ONoLock.java |
262 | public interface EmailService {
public boolean sendTemplateEmail(String emailAddress, EmailInfo emailInfo, HashMap<String,Object> props);
public boolean sendTemplateEmail(EmailTarget emailTarget, EmailInfo emailInfo, HashMap<String,Object> props);
public boolean sendBasicEmail(EmailInfo emailInfo, Email... | 0true | common_src_main_java_org_broadleafcommerce_common_email_service_EmailService.java |
22 | public interface Fun<A,T> { T apply(A a); } | 0true | src_main_java_jsr166e_CompletableFuture.java |
363 | public class DeleteRepositoryRequest extends AcknowledgedRequest<DeleteRepositoryRequest> {
private String name;
DeleteRepositoryRequest() {
}
/**
* Constructs a new unregister repository request with the provided name.
*
* @param name name of the repository
*/
public DeleteRe... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_repositories_delete_DeleteRepositoryRequest.java |
314 | LOG_FILE_LEVEL("log.file.level", "File logging level", String.class, "fine", new OConfigurationChangeCallback() {
public void change(final Object iCurrentValue, final Object iNewValue) {
OLogManager.instance().setLevel((String) iNewValue, FileHandler.class);
}
}), | 0true | core_src_main_java_com_orientechnologies_orient_core_config_OGlobalConfiguration.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 |
1,534 | public static class Map extends Mapper<NullWritable, FaunusVertex, NullWritable, FaunusVertex> {
private Direction direction;
@Override
public void setup(final Mapper.Context context) throws IOException, InterruptedException {
this.direction = Direction.valueOf(context.getConfi... | 1no label | titan-hadoop-parent_titan-hadoop-core_src_main_java_com_thinkaurelius_titan_hadoop_mapreduce_transform_EdgesVerticesMap.java |
3,442 | public class TraceableIsStillExecutingOperation extends AbstractOperation {
private String serviceName;
private Object identifier;
TraceableIsStillExecutingOperation() {
}
public TraceableIsStillExecutingOperation(String serviceName, Object identifier) {
this.serviceName = serviceName;
... | 1no label | hazelcast_src_main_java_com_hazelcast_spi_impl_TraceableIsStillExecutingOperation.java |
588 | class ShardRefreshResponse extends BroadcastShardOperationResponse {
ShardRefreshResponse() {
}
public ShardRefreshResponse(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_refresh_ShardRefreshResponse.java |
577 | 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 static final boolean FLUSH = true;
} | 0true | src_main_java_org_elasticsearch_action_admin_indices_optimize_OptimizeRequest.java |
346 | public class SpaceDelimitedNodeValueMerge extends NodeValueMerge {
@Override
public String getDelimiter() {
return " ";
}
} | 0true | common_src_main_java_org_broadleafcommerce_common_extensibility_context_merge_handlers_SpaceDelimitedNodeValueMerge.java |
377 | public interface LocaleDao {
/**
* @return The locale for the passed in code
*/
public Locale findLocaleByCode(String localeCode);
/**
* Returns the page template with the passed in id.
*
* @return The default locale
*/
public Locale findDefaultLocale();
/**
* R... | 0true | common_src_main_java_org_broadleafcommerce_common_locale_dao_LocaleDao.java |
578 | public class OptimizeRequestBuilder extends BroadcastOperationRequestBuilder<OptimizeRequest, OptimizeResponse, OptimizeRequestBuilder> {
public OptimizeRequestBuilder(IndicesAdminClient indicesClient) {
super((InternalIndicesAdminClient) indicesClient, new OptimizeRequest());
}
/**
* Should ... | 0true | src_main_java_org_elasticsearch_action_admin_indices_optimize_OptimizeRequestBuilder.java |
862 | public class OSecurityShared extends OSharedResourceAdaptive implements OSecurity, OCloseable {
public static final String RESTRICTED_CLASSNAME = "ORestricted";
public static final String IDENTITY_CLASSNAME = "OIdentity";
public static final String ALLOW_ALL_FIELD = "_allow";
public static final St... | 1no label | core_src_main_java_com_orientechnologies_orient_core_metadata_security_OSecurityShared.java |
272 | public class ServerInfo implements Serializable {
private static final long serialVersionUID = 1L;
private String serverName;
private Integer serverPort;
private Integer securePort;
private String appName;
public String getSecureHost() {
StringBuffer sb = new StringBuffer();
s... | 1no label | common_src_main_java_org_broadleafcommerce_common_email_service_info_ServerInfo.java |
336 | public interface MergeHandler {
/**
* Perform the merge using the supplied list of nodes from the source and
* patch documents, respectively. Also, a list of nodes that have already
* been merged is provided and may be used by the implementation when
* necessary.
*
* @param nodeL... | 0true | common_src_main_java_org_broadleafcommerce_common_extensibility_context_merge_handlers_MergeHandler.java |
1,616 | private class TaskPollThread extends Thread {
private final Map<Integer, Class<? extends ConsoleRequest>> consoleRequests =
new HashMap<Integer, Class<? extends ConsoleRequest>>();
private final Random rand = new Random();
TaskPollThread() {
super(instance.node.t... | 1no label | hazelcast_src_main_java_com_hazelcast_management_ManagementCenterService.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 |
680 | constructors[SET_REPLICATION] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {
public IdentifiedDataSerializable createNew(Integer arg) {
return new SetReplicationOperation();
}
}; | 0true | hazelcast_src_main_java_com_hazelcast_collection_CollectionDataSerializerHook.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 |
340 | private static class IncrementorEntryProcessor extends AbstractEntryProcessor implements DataSerializable {
IncrementorEntryProcessor() {
super(true);
}
public Object process(Map.Entry entry) {
Integer value = (Integer) entry.getValue();
if (value == null... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_map_ClientMapTest.java |
346 | @PreInitializeConfigOptions
public class ElasticSearchIndex implements IndexProvider {
private static final Logger log = LoggerFactory.getLogger(ElasticSearchIndex.class);
private static final String TTL_FIELD = "_ttl";
private static final String STRING_MAPPING_SUFFIX = "$STRING";
public static fina... | 1no label | titan-es_src_main_java_com_thinkaurelius_titan_diskstorage_es_ElasticSearchIndex.java |
4,744 | public class URLRepository extends BlobStoreRepository {
public final static String TYPE = "url";
private final URLBlobStore blobStore;
private final BlobPath basePath;
private boolean listDirectories;
/**
* Constructs new read-only URL-based repository
*
* @param name ... | 1no label | src_main_java_org_elasticsearch_repositories_uri_URLRepository.java |
1,081 | public abstract class OSQLFilterItemAbstract implements OSQLFilterItem {
protected List<OPair<OSQLMethod, Object[]>> operationsChain = null;
public OSQLFilterItemAbstract(final OBaseParser iQueryToParse, final String iText) {
final List<String> parts = OStringSerializerHelper.smartSplit(iText, '.');
setR... | 1no label | core_src_main_java_com_orientechnologies_orient_core_sql_filter_OSQLFilterItemAbstract.java |
205 | public class BigMemoryHydratedCacheManagerImpl extends AbstractHydratedCacheManager {
private static final Log LOG = LogFactory.getLog(BigMemoryHydratedCacheManagerImpl.class);
private static final BigMemoryHydratedCacheManagerImpl MANAGER = new BigMemoryHydratedCacheManagerImpl();
public static BigMemory... | 1no label | common_src_main_java_org_broadleafcommerce_common_cache_engine_BigMemoryHydratedCacheManagerImpl.java |
48 | public class VersionCommandProcessor extends MemcacheCommandProcessor<VersionCommand> {
public VersionCommandProcessor(TextCommandServiceImpl textCommandService) {
super(textCommandService);
}
public void handle(VersionCommand request) {
textCommandService.sendResponse(request);
}
... | 0true | hazelcast_src_main_java_com_hazelcast_ascii_memcache_VersionCommandProcessor.java |
321 | public class TransportNodesHotThreadsAction extends TransportNodesOperationAction<NodesHotThreadsRequest, NodesHotThreadsResponse, TransportNodesHotThreadsAction.NodeRequest, NodeHotThreads> {
@Inject
public TransportNodesHotThreadsAction(Settings settings, ClusterName clusterName, ThreadPool threadPool,
... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_node_hotthreads_TransportNodesHotThreadsAction.java |
912 | threadPool.generic().execute(new Runnable() {
@Override
public void run() {
ActionListener<T> lst = (ActionListener<T>) listener;
try {
lst.onResponse(actionGet());
... | 0true | src_main_java_org_elasticsearch_action_support_AbstractListenableActionFuture.java |
530 | public class FormatUtil {
public static final String DATE_FORMAT = "yyyy.MM.dd HH:mm:ss";
public static final String DATE_FORMAT_WITH_TIMEZONE = "yyyy.MM.dd HH:mm:ss Z";
public static SimpleDateFormat getDateFormat() {
SimpleDateFormat formatter = new SimpleDateFormat(DATE_FORMAT);
formatt... | 0true | common_src_main_java_org_broadleafcommerce_common_util_FormatUtil.java |
1 | private static final class AndroidCeylonBuildHook extends CeylonBuildHook {
public static final String CEYLON_GENERATED_ARCHIVES_PREFIX = "ceylonGenerated-";
public static final String CEYLON_GENERATED_CLASSES_ARCHIVE = CEYLON_GENERATED_ARCHIVES_PREFIX + "CeylonClasses.jar";
public static fi... | 0true | plugins_com.redhat.ceylon.eclipse.android.plugin_src_com_redhat_ceylon_eclipse_android_plugin_AndroidBuildHookProvider.java |
6,436 | public class NettyTransport extends AbstractLifecycleComponent<Transport> implements Transport {
static {
NettyStaticSetup.setup();
}
private final NetworkService networkService;
final Version version;
final int workerCount;
final int bossCount;
final boolean blockingServer;
... | 1no label | src_main_java_org_elasticsearch_transport_netty_NettyTransport.java |
5,325 | public class UnmappedTerms extends InternalTerms {
public static final Type TYPE = new Type("terms", "umterms");
private static final Collection<Bucket> BUCKETS = Collections.emptyList();
private static final Map<String, Bucket> BUCKETS_MAP = Collections.emptyMap();
public static AggregationStreams.S... | 1no label | src_main_java_org_elasticsearch_search_aggregations_bucket_terms_UnmappedTerms.java |
93 | @SuppressWarnings("serial")
static final class ReduceKeysTask<K,V>
extends BulkTask<K,V,K> {
final BiFun<? super K, ? super K, ? extends K> reducer;
K result;
ReduceKeysTask<K,V> rights, nextRight;
ReduceKeysTask
(BulkTask<K,V,?> p, int b, int i, int f, Node<K... | 0true | src_main_java_jsr166e_ConcurrentHashMapV8.java |
265 | public class AppendCallable implements Callable<String>, DataSerializable{
public static final String APPENDAGE = ":CallableResult";
private String msg;
public AppendCallable() {
}
public AppendCallable(String msg) {
this.msg = msg;
}
public String call() throws Exception {
... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_executor_tasks_AppendCallable.java |
374 | public static class TestCombiner
extends Combiner<String, Integer, Integer> {
private transient int sum;
@Override
public void combine(String key, Integer value) {
sum += value;
}
@Override
public Integer finalizeChunk() {
int v ... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_mapreduce_DistributedMapperClientMapReduceTest.java |
1,540 | public class XAResourceWrapper implements XAResource {
private final ManagedConnectionImpl managedConnection;
private int transactionTimeoutSeconds;
private XAResource inner;
public XAResourceWrapper(ManagedConnectionImpl managedConnectionImpl) {
this.managedConnection = managedConnectionImpl;... | 1no label | hazelcast-ra_hazelcast-jca_src_main_java_com_hazelcast_jca_XAResourceWrapper.java |
348 | underlying.backup(out, options, new Callable<Object>() {
@Override
public Object call() throws Exception {
// FLUSHES ALL THE INDEX BEFORE
for (OIndex<?> index : getMetadata().getIndexManager().getIndexes()) {
index.flush();
}
if (callable != null)
re... | 0true | core_src_main_java_com_orientechnologies_orient_core_db_ODatabaseRecordWrapperAbstract.java |
1,332 | public class SolrContext {
public static final String PRIMARY = "primary";
public static final String REINDEX = "reindex";
protected static SolrServer primaryServer = null;
protected static SolrServer reindexServer = null;
public static void setPrimaryServer(SolrServer server) {
primarySe... | 1no label | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_search_service_solr_SolrContext.java |
144 | public static class Order {
public static final int Rules = 1000;
} | 0true | admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_structure_domain_StructuredContentImpl.java |
111 | @RunWith(HazelcastParallelClassRunner.class)
@Category(QuickTest.class)
public class ClientNearCacheConfigTest {
@Test
public void testSpecificNearCacheConfig_whenAsteriskAtTheEnd(){
final ClientConfig clientConfig = new ClientConfig();
final NearCacheConfig genericNearCacheConfig = new NearCac... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_ClientNearCacheConfigTest.java |
212 | public class ManagerAuthenticator implements Authenticator {
@Override
public void auth(ClientConnection connection) throws AuthenticationException, IOException {
final Object response = authenticate(connection, credentials, principal, true, true);
principal = (ClientPrincip... | 1no label | hazelcast-client_src_main_java_com_hazelcast_client_connection_nio_ClientConnectionManagerImpl.java |
48 | public interface PropertyKey extends RelationType {
/**
* Returns the data type for this property key.
* The values of all properties of this type must be an instance of this data type.
*
* @return Data type for this property key.
*/
public Class<?> getDataType();
/**
* The {... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_core_PropertyKey.java |
158 | public class ONullSerializer implements OBinarySerializer<Object> {
public static ONullSerializer INSTANCE = new ONullSerializer();
public static final byte ID = 11;
public int getObjectSize(final Object object, Object... hints) {
return 0;
}
public void serialize(final Object object, final byte[] stre... | 0true | commons_src_main_java_com_orientechnologies_common_serialization_types_ONullSerializer.java |
120 | public interface OLAPResult<S> {
/**
* Returns an {@link Iterable} over all final vertex states.
*
* @return
*/
public Iterable<S> values();
/**
* Returns an {@link Iterable} over all final (vertex-id,vertex-state) pairs resulting from a job's execution.
* @return
*/
... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_core_olap_OLAPResult.java |
723 | ItemListener listener = new ItemListener() {
public void itemAdded(ItemEvent item) {
latchAdd.countDown();
}
public void itemRemoved(ItemEvent item) {
latchRemove.countDown();
}
}; | 0true | hazelcast_src_test_java_com_hazelcast_collection_ListTest.java |
329 | static final class Fields {
static final XContentBuilderString NAME = new XContentBuilderString("name");
static final XContentBuilderString DESCRIPTION = new XContentBuilderString("description");
static final XContentBuilderString URL = new XContentBuilderString("url");
static final ... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_node_info_PluginInfo.java |
623 | static final class Fields {
static final XContentBuilderString ROUTING = new XContentBuilderString("routing");
static final XContentBuilderString STATE = new XContentBuilderString("state");
static final XContentBuilderString PRIMARY = new XContentBuilderString("primary");
static fina... | 0true | src_main_java_org_elasticsearch_action_admin_indices_stats_ShardStats.java |
166 | public interface RetryableRequest {
} | 0true | hazelcast_src_main_java_com_hazelcast_client_RetryableRequest.java |
1,454 | public class OServerCommandGetGephi extends OServerCommandAuthenticatedDbAbstract {
private static final String[] NAMES = { "GET|gephi/*" };
public OServerCommandGetGephi() {
}
public OServerCommandGetGephi(final OServerCommandConfiguration iConfig) {
}
@Override
public boolean execute(final OHttpReque... | 1no label | graphdb_src_main_java_com_orientechnologies_orient_graph_server_command_OServerCommandGetGephi.java |
26 | final class ImportVisitor extends Visitor {
private final String prefix;
private final CommonToken token;
private final int offset;
private final Node node;
private final CeylonParseController cpc;
private final List<ICompletionProposal> result;
ImportVisitor(String prefix, CommonToken... | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_complete_ImportVisitor.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 |
165 | public class TestPartialTransactionCopier
{
@Rule public EphemeralFileSystemRule fs = new EphemeralFileSystemRule();
@SuppressWarnings( "unchecked" )
@Test
public void shouldCopyRunningTransactionsToNewLog() throws Exception
{
// Given
int masterId = -1;
int meId = -1;
... | 0true | community_kernel_src_test_java_org_neo4j_kernel_impl_transaction_xaframework_TestPartialTransactionCopier.java |
606 | @Component("blRequestFilter")
public class BroadleafRequestFilter extends OncePerRequestFilter {
private final Log LOG = LogFactory.getLog(getClass());
/**
* Parameter/Attribute name for the current language
*/
public static String REQUEST_DTO_PARAM_NAME = "blRequestDTO";
// Properties to m... | 0true | common_src_main_java_org_broadleafcommerce_common_web_BroadleafRequestFilter.java |
141 | @Test
public class DecimalSerializerTest {
private final static int FIELD_SIZE = 9;
private static final BigDecimal OBJECT = new BigDecimal(new BigInteger("20"), 2);
private ODecimalSerializer decimalSerializer;
private static final byte[] stream = new byte[FIELD_SIZE];
@BeforeClass
... | 0true | commons_src_test_java_com_orientechnologies_common_serialization_types_DecimalSerializerTest.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 |
142 | public enum ReflectiveConfigOptionLoader {
INSTANCE;
private static final String SYS_PROP_NAME = "titan.load.cfg.opts";
private static final String ENV_VAR_NAME = "TITAN_LOAD_CFG_OPTS";
private static final Logger log =
LoggerFactory.getLogger(ReflectiveConfigOptionLoader.class);
pri... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_core_util_ReflectiveConfigOptionLoader.java |
604 | public enum MemberAttributeOperationType {
PUT(1), REMOVE(2);
private final int id;
MemberAttributeOperationType(int i) {
this.id = i;
}
public int getId() {
return id;
}
public static MemberAttributeOperationType getValue(int id) {
for (MemberAttributeOperationT... | 0true | hazelcast_src_main_java_com_hazelcast_cluster_MemberAttributeOperationType.java |
902 | @SuppressWarnings({ "unchecked", "serial" })
public abstract class ORecordSchemaAwareAbstract<T> extends ORecordAbstract<T> implements ORecordSchemaAware<T> {
protected OClass _clazz;
public ORecordSchemaAwareAbstract() {
}
/**
* Validates the record following the declared constraints defined in schema su... | 1no label | core_src_main_java_com_orientechnologies_orient_core_record_ORecordSchemaAwareAbstract.java |
2,555 | public class DiscoveryService extends AbstractLifecycleComponent<DiscoveryService> {
private final TimeValue initialStateTimeout;
private final Discovery discovery;
private volatile boolean initialStateReceived;
@Inject
public DiscoveryService(Settings settings, Discovery discovery) {
su... | 1no label | src_main_java_org_elasticsearch_discovery_DiscoveryService.java |
635 | public final class ClientMembershipEvent implements IdentifiedDataSerializable {
public static final int MEMBER_ADDED = MembershipEvent.MEMBER_ADDED;
public static final int MEMBER_REMOVED = MembershipEvent.MEMBER_REMOVED;
public static final int MEMBER_ATTRIBUTE_CHANGED = MembershipEvent.MEMBER_ATTRIBUT... | 0true | hazelcast_src_main_java_com_hazelcast_cluster_client_ClientMembershipEvent.java |
469 | public interface ClientClusterService {
MemberImpl getMember(Address address);
MemberImpl getMember(String uuid);
Collection<MemberImpl> getMemberList();
Address getMasterAddress();
int getSize();
long getClusterTime();
} | 0true | hazelcast-client_src_main_java_com_hazelcast_client_spi_ClientClusterService.java |
306 | @RunWith(HazelcastParallelClassRunner.class)
@Category(QuickTest.class)
public class ClientMapLockTest {
static HazelcastInstance client;
static HazelcastInstance server;
@BeforeClass
public static void init() {
server = Hazelcast.newHazelcastInstance();
client = HazelcastClient.newHaz... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_map_ClientMapLockTest.java |
600 | public class GetSettingsAction extends IndicesAction<GetSettingsRequest, GetSettingsResponse, GetSettingsRequestBuilder> {
public static final GetSettingsAction INSTANCE = new GetSettingsAction();
public static final String NAME = "indices/settings/get";
public GetSettingsAction() {
super(NAME);
... | 0true | src_main_java_org_elasticsearch_action_admin_indices_settings_get_GetSettingsAction.java |
72 | class AssignToLocalProposal extends LocalProposal {
protected DocumentChange createChange(IDocument document, Node expanse,
Integer stopIndex) {
DocumentChange change =
new DocumentChange("Assign to Local", document);
change.setEdit(new MultiTextEdit());
change.... | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_correct_AssignToLocalProposal.java |
236 | @Service("blModuleConfigurationService")
public class ModuleConfigurationServiceImpl implements ModuleConfigurationService {
@Resource(name = "blModuleConfigurationDao")
protected ModuleConfigurationDao moduleConfigDao;
@Override
public ModuleConfiguration findById(Long id) {
return moduleConf... | 0true | common_src_main_java_org_broadleafcommerce_common_config_service_ModuleConfigurationServiceImpl.java |
80 | public static class FieldOrder {
// General Fields
public static final int NAME = 1000;
public static final int URL = 2000;
public static final int TITLE = 3000;
public static final int ALT_TEXT = 4000;
public static final int MIME_TYPE =... | 0true | admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_file_domain_StaticAssetImpl.java |
719 | public abstract class CollectionService implements ManagedService, RemoteService,
EventPublishingService<CollectionEvent, ItemListener>, TransactionalService, MigrationAwareService {
protected NodeEngine nodeEngine;
protected CollectionService(NodeEngine nodeEngine) {
this.nodeEngine = nodeEng... | 1no label | hazelcast_src_main_java_com_hazelcast_collection_CollectionService.java |
517 | public class IndicesExistsResponse extends ActionResponse {
private boolean exists;
IndicesExistsResponse() {
}
public IndicesExistsResponse(boolean exists) {
this.exists = exists;
}
public boolean isExists() {
return this.exists;
}
@Override
public void readFrom... | 0true | src_main_java_org_elasticsearch_action_admin_indices_exists_indices_IndicesExistsResponse.java |
248 | @Test
public class ODefaultCacheTest {
public void enabledAfterStartup() {
// Given cache created
// And not started
// And not enabled
OCache sut = newCache();
// When started
sut.startup();
// Then it should be enabled
assertTrue(sut.isEnabled());
}
public void disabledAfterS... | 0true | core_src_test_java_com_orientechnologies_orient_core_cache_ODefaultCacheTest.java |
560 | public class OClassIndexManager extends ODocumentHookAbstract {
private final Set<String> lockedIndexes = new HashSet<String>();
public OClassIndexManager() {
}
public DISTRIBUTED_EXECUTION_MODE getDistributedExecutionMode() {
return DISTRIBUTED_EXECUTION_MODE.TARGET_NODE;
}
@Override
public RESUL... | 0true | core_src_main_java_com_orientechnologies_orient_core_index_OClassIndexManager.java |
822 | public class GetAndAddOperation extends AtomicLongBackupAwareOperation {
private long delta;
private long returnValue;
public GetAndAddOperation() {
}
public GetAndAddOperation(String name, long delta) {
super(name);
this.delta = delta;
}
@Override
public void run() t... | 0true | hazelcast_src_main_java_com_hazelcast_concurrent_atomiclong_operations_GetAndAddOperation.java |
705 | constructors[TXN_SET_ADD] = new ConstructorFunction<Integer, Portable>() {
public Portable createNew(Integer arg) {
return new TxnSetAddRequest();
}
}; | 0true | hazelcast_src_main_java_com_hazelcast_collection_CollectionPortableHook.java |
4,489 | class CleanFilesRequestHandler extends BaseTransportRequestHandler<RecoveryCleanFilesRequest> {
@Override
public RecoveryCleanFilesRequest newInstance() {
return new RecoveryCleanFilesRequest();
}
@Override
public String executor() {
return ThreadPoo... | 1no label | src_main_java_org_elasticsearch_indices_recovery_RecoveryTarget.java |
4,199 | static final class Fields {
static final XContentBuilderString NAME = new XContentBuilderString("name");
static final XContentBuilderString PHYSICAL_NAME = new XContentBuilderString("physical_name");
static final XContentBuilderString LENGTH = new XContentBuilderString("lengt... | 1no label | src_main_java_org_elasticsearch_index_snapshots_blobstore_BlobStoreIndexShardSnapshot.java |
154 | public static final Map<String, ConfigOption> REGISTERED_STORAGE_MANAGERS_SHORTHAND = new HashMap<String, ConfigOption>() {{
put("berkeleyje", STORAGE_DIRECTORY);
put("hazelcast", STORAGE_DIRECTORY);
put("hazelcastcache", STORAGE_DIRECTORY);
put("infinispan", STORAGE_DIRECTORY);
... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_diskstorage_Backend.java |
4,183 | public class IndexShardSnapshotAndRestoreService extends AbstractIndexShardComponent {
private final InternalIndexShard indexShard;
private final RepositoriesService repositoriesService;
private final RestoreService restoreService;
@Inject
public IndexShardSnapshotAndRestoreService(ShardId shard... | 1no label | src_main_java_org_elasticsearch_index_snapshots_IndexShardSnapshotAndRestoreService.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 |
78 | public class OSharedResourceIterator<T> implements Iterator<T>, OResettable {
protected final OSharedResourceAdaptiveExternal resource;
protected Iterator<?> iterator;
public OSharedResourceIterator(final OSharedResourceAdaptiveExternal iResource, final Iterator<?> iIterator) {
this... | 0true | commons_src_main_java_com_orientechnologies_common_concur_resource_OSharedResourceIterator.java |
168 | 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_jsr166y_ForkJoinPool.java |
1,005 | public class OStreamSerializerOldRIDContainer implements OStreamSerializer, OBinarySerializer<OIndexRIDContainerSBTree> {
public static final String NAME = "ic";
public static final OStreamSerializerOldRIDContainer INSTANCE = new OStreamSerializerOldRIDContainer();
private static f... | 1no label | core_src_main_java_com_orientechnologies_orient_core_serialization_serializer_stream_OStreamSerializerOldRIDContainer.java |
1,117 | public class OSQLFunctionSum extends OSQLFunctionMathAbstract {
public static final String NAME = "sum";
private Number sum;
public OSQLFunctionSum() {
super(NAME, 1, -1);
}
public Object execute(final OIdentifiable iCurrentRecord, Object iCurrentResult, final Object[] iParameters,
OC... | 1no label | core_src_main_java_com_orientechnologies_orient_core_sql_functions_math_OSQLFunctionSum.java |
231 | assertTrueEventually(new AssertTask() {
public void run() throws Exception {
assertTrue(map.containsKey(targetUuid));
}
}); | 0true | hazelcast-client_src_test_java_com_hazelcast_client_executor_ClientExecutorServiceExecuteTest.java |
267 | public class FailingCallable implements Callable<String>, DataSerializable {
public String call() throws Exception {
throw new IllegalStateException();
}
public void writeData(ObjectDataOutput out) throws IOException {
}
public void readData(ObjectDataInput in) throws IOException {
}
... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_executor_tasks_FailingCallable.java |
103 | public static class Presentation {
public static class Tab {
public static class Name {
public static final String Rules = "PageImpl_Rules_Tab";
}
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 |
1,303 | public interface Custom {
interface Factory<T extends Custom> {
String type();
T readFrom(StreamInput in) throws IOException;
void writeTo(T customState, StreamOutput out) throws IOException;
void toXContent(T customState, XContentBuilder builder, ToXCont... | 0true | src_main_java_org_elasticsearch_cluster_ClusterState.java |
343 | @RunWith(HazelcastParallelClassRunner.class)
@Category(QuickTest.class)
public class ClientMapTryLockConcurrentTests {
static HazelcastInstance client;
static HazelcastInstance server;
@BeforeClass
public static void init() {
server = Hazelcast.newHazelcastInstance();
client = Hazelcas... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_map_ClientMapTryLockConcurrentTests.java |
84 | @SuppressWarnings("serial")
static final class MapReduceValuesToLongTask<K,V>
extends BulkTask<K,V,Long> {
final ObjectToLong<? super V> transformer;
final LongByLongToLong reducer;
final long basis;
long result;
MapReduceValuesToLongTask<K,V> rights, nextRight;
... | 0true | src_main_java_jsr166e_ConcurrentHashMapV8.java |
803 | public class AtomicLongPortableHook implements PortableHook {
static final int F_ID = FactoryIdHelper.getFactoryId(FactoryIdHelper.ATOMIC_LONG_PORTABLE_FACTORY, -17);
static final int ADD_AND_GET = 1;
static final int COMPARE_AND_SET = 2;
static final int GET_AND_ADD = 3;
static final int GET_AND_... | 0true | hazelcast_src_main_java_com_hazelcast_concurrent_atomiclong_client_AtomicLongPortableHook.java |
69 | {
@Override
public int compare( Record r1, Record r2 )
{
return r1.getSequenceNumber() - r2.getSequenceNumber();
}
} ); | 0true | community_kernel_src_main_java_org_neo4j_kernel_impl_transaction_TxLog.java |
814 | public static class Item {
private final int slot;
private final PercolateShardResponse response;
private final Text error;
public Item(Integer slot, PercolateShardResponse response) {
this.slot = slot;
this.response = response;
... | 0true | src_main_java_org_elasticsearch_action_percolate_TransportShardMultiPercolateAction.java |
20 | public class IllegalLogFormatException extends IOException
{
public IllegalLogFormatException( long expected, long was )
{
super( "Invalid log format version found, expected " + expected + " but was " + was +
". To be able to upgrade from an older log format version there must have " +
... | 1no label | community_kernel_src_main_java_org_neo4j_kernel_impl_transaction_xaframework_IllegalLogFormatException.java |
589 | @RunWith(HazelcastSerialClassRunner.class)
@Category(NightlyTest.class)
public class EncryptionTest {
@BeforeClass
@AfterClass
public static void killAllHazelcastInstances() throws IOException {
Hazelcast.shutdownAll();
}
/**
* Simple symmetric encryption test.
*/
@Test
@... | 0true | hazelcast_src_test_java_com_hazelcast_cluster_EncryptionTest.java |
173 | public class EideticTransactionMonitor implements TransactionMonitor
{
private int commitCount;
private int injectOnePhaseCommitCount;
private int injectTwoPhaseCommitCount;
@Override
public void transactionCommitted( Xid xid, boolean recovered )
{
commitCount++;
}
@Override
... | 0true | community_kernel_src_test_java_org_neo4j_kernel_impl_transaction_xaframework_EideticTransactionMonitor.java |
2,600 | new BaseTransportResponseHandler<MasterPingResponseResponse>() {
@Override
public MasterPingResponseResponse newInstance() {
return new MasterPingResponseResponse();
}
@Overri... | 1no label | src_main_java_org_elasticsearch_discovery_zen_fd_MasterFaultDetection.java |
506 | public class TransportCreateIndexAction extends TransportMasterNodeOperationAction<CreateIndexRequest, CreateIndexResponse> {
private final MetaDataCreateIndexService createIndexService;
@Inject
public TransportCreateIndexAction(Settings settings, TransportService transportService, ClusterService clusterS... | 1no label | src_main_java_org_elasticsearch_action_admin_indices_create_TransportCreateIndexAction.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.