Unnamed: 0 int64 0 6.45k | func stringlengths 29 253k | target class label 2
classes | project stringlengths 36 167 |
|---|---|---|---|
327 | public class NodesInfoResponse extends NodesOperationResponse<NodeInfo> implements ToXContent {
private SettingsFilter settingsFilter;
public NodesInfoResponse() {
}
public NodesInfoResponse(ClusterName clusterName, NodeInfo[] nodes) {
super(clusterName, nodes);
}
@Override
publi... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_node_info_NodesInfoResponse.java |
1,633 | public class OHazelcastCache implements OCache, OServerLifecycleListener {
private boolean enabled = true;
private final int limit;
private final String mapName;
private IMap<ORID, ORecordInternal<?>> map;
private HazelcastInstance hIn... | 0true | distributed_src_main_java_com_orientechnologies_orient_server_hazelcast_OHazelcastCache.java |
3 | public class AbbreviationServiceImplTest {
@Mock private ComponentContext context;
AbbreviationServiceImpl abbrev;
Dictionary<String, String> properties;
@BeforeMethod
public void init() {
MockitoAnnotations.initMocks(this);
abbrev = new AbbreviationServiceImpl();
properties = new Hashtable<String, St... | 0true | tableViews_src_test_java_gov_nasa_arc_mct_abbreviation_impl_AbbreviationServiceImplTest.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 |
459 | el[5] = StaticArrayEntryList.of(Iterables.transform(entries.entrySet(),new Function<Map.Entry<Integer, Long>, Entry>() {
@Nullable
@Override
public Entry apply(@Nullable Map.Entry<Integer, Long> entry) {
return StaticArrayEntry.ofByteBuffer(entry, BBEntryGette... | 0true | titan-test_src_test_java_com_thinkaurelius_titan_diskstorage_keycolumnvalue_StaticArrayEntryTest.java |
168 | public interface SimpleClient {
void auth() throws IOException;
void send(Object o) throws IOException;
Object receive() throws IOException;
void close() throws IOException;
SerializationService getSerializationService();
} | 0true | hazelcast_src_test_java_com_hazelcast_client_SimpleClient.java |
258 | public class ODefaultCollateFactory implements OCollateFactory {
private static final Map<String, OCollate> COLLATES = new HashMap<String, OCollate>(2);
static {
register(new ODefaultCollate());
register(new OCaseInsensitiveCollate());
}
/**
* @return Set of supported collate names of this factory... | 0true | core_src_main_java_com_orientechnologies_orient_core_collate_ODefaultCollateFactory.java |
1,258 | addOperation(operations, new Runnable() {
public void run() {
IMap map = hazelcast.getMap("myMap");
Iterator it = map.keySet(new SqlPredicate("name=" + random.nextInt(10000))).iterator();
while (it.hasNext()) {
it.next();
... | 0true | hazelcast_src_main_java_com_hazelcast_examples_AllTest.java |
250 | @PreInitializeConfigOptions
public class AstyanaxStoreManager extends AbstractCassandraStoreManager {
private static final Logger log = LoggerFactory.getLogger(AstyanaxStoreManager.class);
//################### ASTYANAX SPECIFIC CONFIGURATION OPTIONS ######################
public static final ConfigNames... | 0true | titan-cassandra_src_main_java_com_thinkaurelius_titan_diskstorage_cassandra_astyanax_AstyanaxStoreManager.java |
892 | public class TransportSearchScrollScanAction extends AbstractComponent {
private final ThreadPool threadPool;
private final ClusterService clusterService;
private final SearchServiceTransportAction searchService;
private final SearchPhaseController searchPhaseController;
@Inject
public Tran... | 0true | src_main_java_org_elasticsearch_action_search_type_TransportSearchScrollScanAction.java |
157 | private static class MockedFileChannel extends StoreFileChannel
{
private ByteBuffer bs;
public MockedFileChannel(byte [] bs) {
super( (FileChannel) null );
this.bs = ByteBuffer.wrap(bs);
}
@Override
public long position() throws IOException
... | 0true | community_kernel_src_test_java_org_neo4j_kernel_impl_transaction_xaframework_TestXaLogicalLogFiles.java |
793 | public class PercolateRequest extends BroadcastOperationRequest<PercolateRequest> {
public static final XContentType contentType = Requests.CONTENT_TYPE;
private String documentType;
private String routing;
private String preference;
private GetRequest getRequest;
private boolean onlyCount;
... | 0true | src_main_java_org_elasticsearch_action_percolate_PercolateRequest.java |
1,579 | public class BatchPersistencePackage implements Serializable {
protected PersistencePackage[] persistencePackages;
public PersistencePackage[] getPersistencePackages() {
return persistencePackages;
}
public void setPersistencePackages(PersistencePackage[] persistencePackages) {
this.p... | 1no label | admin_broadleaf-open-admin-platform_src_main_java_org_broadleafcommerce_openadmin_dto_BatchPersistencePackage.java |
999 | public class AvailableRequest extends SemaphoreRequest implements RetryableRequest {
public AvailableRequest() {
}
public AvailableRequest(String name) {
super(name, -1);
}
@Override
protected Operation prepareOperation() {
return new AvailableOperation(name);
}
@Over... | 0true | hazelcast_src_main_java_com_hazelcast_concurrent_semaphore_client_AvailableRequest.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 |
393 | public class ClusterSearchShardsGroup implements Streamable, ToXContent {
private String index;
private int shardId;
ShardRouting[] shards;
ClusterSearchShardsGroup() {
}
public ClusterSearchShardsGroup(String index, int shardId, ShardRouting[] shards) {
this.index = index;
t... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_shards_ClusterSearchShardsGroup.java |
1,165 | @Entity
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "BLC_GIFT_CARD_PAYMENT")
public class GiftCardPaymentInfoImpl implements GiftCardPaymentInfo {
private static final long serialVersionUID = 1L;
protected GiftCardPaymentInfoImpl() {
// do not allow direct instantiation -- must at le... | 1no label | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_payment_domain_GiftCardPaymentInfoImpl.java |
2,647 | public interface UnicastHostsProvider {
/**
* Builds the dynamic list of unicast hosts to be used for unicast discovery.
*/
List<DiscoveryNode> buildDynamicNodes();
} | 0true | src_main_java_org_elasticsearch_discovery_zen_ping_unicast_UnicastHostsProvider.java |
2,308 | public abstract class Rounding implements Streamable {
public abstract byte id();
/**
* Given a value, compute a key that uniquely identifies the rounded value although it is not necessarily equal to the rounding value itself.
*/
public abstract long roundKey(long value);
/**
* Compute... | 0true | src_main_java_org_elasticsearch_common_rounding_Rounding.java |
1,144 | public class ValidateRemoveRequestActivity extends BaseActivity<CartOperationContext> {
@Resource(name = "blOrderItemService")
protected OrderItemService orderItemService;
@Override
public CartOperationContext execute(CartOperationContext context) throws Exception {
CartOperationReque... | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_order_service_workflow_remove_ValidateRemoveRequestActivity.java |
3,308 | static class Empty extends DoubleArrayAtomicFieldData {
Empty(int numDocs) {
super(numDocs);
}
@Override
public LongValues getLongValues() {
return LongValues.EMPTY;
}
@Override
public DoubleValues getDoubleValues() {
ret... | 1no label | src_main_java_org_elasticsearch_index_fielddata_plain_DoubleArrayAtomicFieldData.java |
2,564 | master.clusterService.submitStateUpdateTask("local-disco-update", new ClusterStateUpdateTask() {
@Override
public ClusterState execute(ClusterState currentState) {
DiscoveryNodes newNodes = currentState.nodes().removeDeadMembers(newMembers,... | 1no label | src_main_java_org_elasticsearch_discovery_local_LocalDiscovery.java |
3,075 | public class DeleteFailedEngineException extends EngineException {
public DeleteFailedEngineException(ShardId shardId, Engine.Delete delete, Throwable cause) {
super(shardId, "Delete failed for [" + delete.uid().text() + "]", cause);
}
} | 0true | src_main_java_org_elasticsearch_index_engine_DeleteFailedEngineException.java |
259 | @TestMethodProviders({
LuceneJUnit3MethodProvider.class,
JUnit4MethodProvider.class
})
@Listeners({
ReproduceInfoPrinter.class
})
@RunWith(value = com.carrotsearch.randomizedtesting.RandomizedRunner.class)
@SuppressCodecs(value = "Lucene3x")
// NOTE: this class is in o.a.lucene.util since it us... | 0true | src_test_java_org_apache_lucene_util_AbstractRandomizedTest.java |
1,265 | public class PricingContext implements ProcessContext {
public final static long serialVersionUID = 1L;
private boolean stopEntireProcess = false;
private Order seedData;
public void setSeedData(Object seedObject) {
seedData = (Order)seedObject;
}
public boolean stopProcess() {
... | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_pricing_service_workflow_PricingContext.java |
107 | static final class ValuesView<K,V> extends CollectionView<K,V,V>
implements Collection<V>, java.io.Serializable {
private static final long serialVersionUID = 2249069246763182397L;
ValuesView(ConcurrentHashMapV8<K,V> map) { super(map); }
public final boolean contains(Object o) {
... | 0true | src_main_java_jsr166e_ConcurrentHashMapV8.java |
14 | public interface FeedDataArchive {
/**
* This api will put data into the archive.
*
* @param feedID the feedID from which the data should be archived.
* @param timeUnit the time unit of the time stamp of each data record that is put into the
* archive.
* @param entries a map from time... | 0true | mctcore_src_main_java_gov_nasa_arc_mct_api_feed_FeedDataArchive.java |
1,216 | public class CeylonCompilationError implements Diagnostic<JavaFileObject> {
private final AnalysisMessage err;
private final IProject project;
private final JavaFileObject jf;
private final IFile file;
public CeylonCompilationError(IProject proj, AnalysisMessage error) {
err = error;
... | 1no label | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_core_builder_CeylonCompilationError.java |
285 | static class NodeCommand extends Command
{
private final NodeStore store;
private final NodeRecord before;
private final NodeRecord after;
NodeCommand( NodeStore store, NodeRecord before, NodeRecord after )
{
super( after.getId(), Mode.fromRecordState( after ... | 0true | community_kernel_src_main_java_org_neo4j_kernel_impl_nioneo_xa_Command.java |
729 | private static class FindInvocationsVisitor extends Visitor {
private Declaration declaration;
private final Set<Tree.PositionalArgumentList> posResults =
new HashSet<Tree.PositionalArgumentList>();
private final Set<Tree.NamedArgumentList> namedResults =
ne... | 1no label | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_refactor_ChangeParametersRefactoring.java |
1,506 | public class DisableAllocationTests extends ElasticsearchAllocationTestCase {
private final ESLogger logger = Loggers.getLogger(DisableAllocationTests.class);
@Test
public void testClusterDisableAllocation() {
AllocationService strategy = createAllocationService(settingsBuilder()
.... | 0true | src_test_java_org_elasticsearch_cluster_routing_allocation_DisableAllocationTests.java |
925 | public interface LockStore {
boolean lock(Data key, String caller, long threadId, long ttl);
boolean txnLock(Data key, String caller, long threadId, long ttl);
boolean extendLeaseTime(Data key, String caller, long threadId, long ttl);
boolean unlock(Data key, String caller, long threadId);
bool... | 0true | hazelcast_src_main_java_com_hazelcast_concurrent_lock_LockStore.java |
109 | class CreateProposal extends InitializerProposal {
private CreateProposal(String def, String desc,
Scope scope, Unit unit, ProducedType returnType,
Image image, int offset, TextFileChange change,
int exitPos, boolean isObjectOrClass) {
super(desc, change, scope, uni... | 1no label | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_correct_CreateProposal.java |
3,056 | public class PostingsFormatService extends AbstractIndexComponent {
private final ImmutableMap<String, PostingsFormatProvider> providers;
public final static String DEFAULT_FORMAT = "default";
public PostingsFormatService(Index index) {
this(index, ImmutableSettings.Builder.EMPTY_SETTINGS);
}... | 0true | src_main_java_org_elasticsearch_index_codec_postingsformat_PostingsFormatService.java |
482 | public class BroadleafActiveDirectoryUserDetailsMapper extends LdapUserDetailsMapper {
protected boolean useEmailAddressAsUsername = true;
protected boolean additiveRoleNameSubstitutions = false;
protected Map<String, String[]> roleNameSubstitutions;
@Override
public UserDetails mapUserFromConte... | 0true | common_src_main_java_org_broadleafcommerce_common_security_ldap_BroadleafActiveDirectoryUserDetailsMapper.java |
3,835 | public class FuzzyLikeThisQueryParser implements QueryParser {
public static final String NAME = "flt";
private static final ParseField FUZZINESS = Fuzziness.FIELD.withDeprecation("min_similarity");
@Inject
public FuzzyLikeThisQueryParser() {
}
@Override
public String[] names() {
... | 1no label | src_main_java_org_elasticsearch_index_query_FuzzyLikeThisQueryParser.java |
180 | @Component("blURLHandlerFilter")
public class URLHandlerFilter extends OncePerRequestFilter {
@Resource(name = "blURLHandlerService")
private URLHandlerService urlHandlerService;
@Override
protected void doFilterInternal(HttpServletRequest request,
HttpServletResponse response, FilterC... | 0true | admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_web_URLHandlerFilter.java |
1,649 | public static class DHTConfiguration implements ODHTConfiguration {
private final HashSet<String> undistributableClusters;
private final OServer server;
public DHTConfiguration(final OServer iServer) {
server = iServer;
undistributableClusters = new HashSet<String>();
undistri... | 0true | distributed_src_main_java_com_orientechnologies_orient_server_hazelcast_oldsharding_OAutoshardingPlugin.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 |
1,729 | operation.setResponseHandler(new ResponseHandler() {
@Override
public void sendResponse(Object obj) {
if (checkIfMapLoaded.decrementAndGet() == 0) {
loaded.set(true);
}
... | 1no label | hazelcast_src_main_java_com_hazelcast_map_DefaultRecordStore.java |
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 |
3,484 | public static interface ParseListener<ParseContext> {
public static final ParseListener EMPTY = new ParseListenerAdapter();
/**
* Called before a field is added to the document. Return <tt>true</tt> to include
* it in the document.
*/
boolean beforeFieldAdded(Fie... | 0true | src_main_java_org_elasticsearch_index_mapper_DocumentMapper.java |
1,021 | public static class Presentation {
public static class Tab {
public static class Name {
public static final String OrderItems = "OrderImpl_Order_Items_Tab";
public static final String FulfillmentGroups = "OrderImpl_Fulfillment_Groups_Tab";
public s... | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_order_domain_OrderImpl.java |
918 | public class FulfillmentGroupAdjustmentAnswer implements IAnswer<FulfillmentGroupAdjustment> {
@Override
public FulfillmentGroupAdjustment answer() throws Throwable {
return new FulfillmentGroupAdjustmentImpl();
}
} | 0true | core_broadleaf-framework_src_test_java_org_broadleafcommerce_core_offer_service_processor_FulfillmentGroupOfferProcessorTest.java |
1,120 | @SuppressWarnings("deprecation")
public class LegacyOrderBaseTest extends LegacyCommonSetupBaseTest {
@Resource(name = "blOrderService")
protected LegacyCartService cartService;
private int bundleCount = 0;
protected Customer createNamedCustomer() {
Customer customer = customerService... | 0true | integration_src_test_java_org_broadleafcommerce_core_order_service_legacy_LegacyOrderBaseTest.java |
732 | @Service("blRelatedProductsService")
/*
* Service that provides method for finding a product's related products.
*/
public class RelatedProductsServiceImpl implements RelatedProductsService {
@Resource(name="blCategoryDao")
protected CategoryDao categoryDao;
@Resource(name="blProductDao")
pro... | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_catalog_service_RelatedProductsServiceImpl.java |
254 | service.submit(runnable, selector, new ExecutionCallback() {
public void onResponse(Object response) {
result.set(response);
responseLatch.countDown();
}
public void onFailure(Throwable t) {
}
}); | 0true | hazelcast-client_src_test_java_com_hazelcast_client_executor_ClientExecutorServiceSubmitTest.java |
1,254 | public class TransportClientNodesService extends AbstractComponent {
private final TimeValue nodesSamplerInterval;
private final long pingTimeout;
private final ClusterName clusterName;
private final TransportService transportService;
private final ThreadPool threadPool;
private final Vers... | 1no label | src_main_java_org_elasticsearch_client_transport_TransportClientNodesService.java |
1,357 | @Deprecated
public class OPaginatedWithoutRidReuseCluster extends ODurableComponent implements OCluster {
public static final String DEF_EXTENSION = ".pcl";
private static final int DISK_PAGE_SIZE = DISK_CACHE_PAGE_SIZE.getValueAsInteger();
private sta... | 0true | core_src_main_java_com_orientechnologies_orient_core_storage_impl_local_paginated_wal_depricated_OPaginatedWithoutRidReuseCluster.java |
160 | private class DescendingItr extends AbstractItr {
Node<E> startNode() { return last(); }
Node<E> nextNode(Node<E> p) { return pred(p); }
} | 0true | src_main_java_jsr166y_ConcurrentLinkedDeque.java |
1,018 | public interface OrderAttribute extends Serializable {
/**
* Gets the id.
*
* @return the id
*/
Long getId();
/**
* Sets the id.
*
* @param id the new id
*/
void setId(Long id);
/**
* Gets the value.
*
* @return the value
*/
Strin... | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_order_domain_OrderAttribute.java |
1,652 | new Thread(new Runnable() {
public void run() {
map.lock(key);
latch.countDown();
}
}).start(); | 0true | hazelcast_src_test_java_com_hazelcast_map_AsyncTest.java |
1,990 | class SimpleMapStore2 extends SimpleMapStore<String, Long> {
SimpleMapStore2(ConcurrentMap<String, Long> store) {
super(store);
}
public Long load(String key) {
loadCount.incrementAndGet();
return super.load(key);
... | 0true | hazelcast_src_test_java_com_hazelcast_map_mapstore_MapStoreTest.java |
344 | static class MapTryLockThread extends TestHelper {
public MapTryLockThread(IMap map, String upKey, String downKey){
super(map, upKey, downKey);
}
public void doRun() throws Exception{
if(map.tryLock(upKey)){
try{
if(map.tryLock(do... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_map_ClientMapTryLockConcurrentTests.java |
955 | public class OMemoryInputStream extends InputStream {
private byte[] buffer;
private int position = 0;
public OMemoryInputStream() {
}
public OMemoryInputStream(final byte[] iBuffer) {
setSource(iBuffer);
}
public byte[] getAsByteArrayFixed(final int iSize) throws IOException {
if (position ... | 1no label | core_src_main_java_com_orientechnologies_orient_core_serialization_OMemoryInputStream.java |
339 | BackendOperation.execute(new BackendOperation.Transactional<Boolean>() {
@Override
public Boolean call(StoreTransaction txh) throws BackendException {
if (checkExpectedValue)
store.acquireLock(rowKey,column,expectedValueBuffer,txh);
sto... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_diskstorage_configuration_backend_KCVSConfiguration.java |
500 | private final class PartitionImpl implements Partition {
private final int partitionId;
private PartitionImpl(int partitionId) {
this.partitionId = partitionId;
}
public int getPartitionId() {
return partitionId;
}
public Member getOwner() ... | 0true | hazelcast-client_src_main_java_com_hazelcast_client_spi_impl_ClientPartitionServiceImpl.java |
1,475 | public class CustomerAddressForm implements Serializable {
private static final long serialVersionUID = 1L;
protected Address address = new AddressImpl();
protected String addressName;
protected Long customerAddressId;
public CustomerAddressForm() {
address.setPhonePrimary(new PhoneImpl()... | 0true | core_broadleaf-framework-web_src_main_java_org_broadleafcommerce_core_web_controller_account_CustomerAddressForm.java |
952 | public static class InputStream extends java.io.FilterInputStream {
private boolean encode; // Encoding or decoding
private int position; // Current position in the buffer
private byte[] buffer; // Small buffer holding converted data
private int bufferLength; // Length of buffer (3 or 4)
private in... | 0true | core_src_main_java_com_orientechnologies_orient_core_serialization_OBase64Utils.java |
1,371 | public class CancellationRequest extends InvocationClientRequest {
static final int CANCEL_TRY_COUNT = 50;
static final int CANCEL_TRY_PAUSE_MILLIS = 250;
private String uuid;
private Address target;
private int partitionId = -1;
private boolean interrupt;
public CancellationRequest() {
... | 0true | hazelcast_src_main_java_com_hazelcast_executor_client_CancellationRequest.java |
2,685 | threadPool.schedule(recoverAfterTime, ThreadPool.Names.GENERIC, new Runnable() {
@Override
public void run() {
if (recovered.compareAndSet(false, true)) {
logger.trace("performing state recovery...");
... | 0true | src_main_java_org_elasticsearch_gateway_GatewayService.java |
1,444 | @SuppressWarnings("serial")
public class OCommandGremlin extends OCommandRequestTextAbstract {
public OCommandGremlin() {
useCache = true;
}
public OCommandGremlin(final String iText) {
super(iText);
useCache = true;
}
public boolean isIdempotent() {
return false;
}
@Override
public S... | 0true | graphdb_src_main_java_com_orientechnologies_orient_graph_gremlin_OCommandGremlin.java |
1,862 | boolean b = h1.executeTransaction(options, new TransactionalTask<Boolean>() {
public Boolean execute(TransactionalTaskContext context) throws TransactionException {
try {
final TransactionalMap<String, String> txMap = context.getMap("default");
... | 0true | hazelcast_src_test_java_com_hazelcast_map_MapTransactionTest.java |
1,232 | NONE {
@Override
<T> Recycler<T> build(Recycler.C<T> c, int limit, int estimatedThreadPoolSize, int availableProcessors) {
return none(c);
}
}; | 0true | src_main_java_org_elasticsearch_cache_recycler_PageCacheRecycler.java |
993 | @Entity
@DiscriminatorColumn(name = "TYPE")
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "BLC_FULFILLMENT_GROUP_FEE")
@Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE, region = "blOrderElements")
@AdminPresentationMergeOverrides(
{
@AdminPresentationMergeOverride(name = "", merg... | 1no label | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_order_domain_FulfillmentGroupFeeImpl.java |
1,589 | public interface ODistributedServerManager {
public enum STATUS {
OFFLINE, STARTING, ONLINE, SHUTDOWNING
};
public boolean isEnabled();
public STATUS getStatus();
public boolean checkStatus(STATUS string);
public void setStatus(STATUS iStatus);
public boolean isNodeAvailable(final String iNodeNa... | 0true | server_src_main_java_com_orientechnologies_orient_server_distributed_ODistributedServerManager.java |
1,140 | @RunWith(HazelcastParallelClassRunner.class)
@Category(QuickTest.class)
public class DistributedObjectTest extends HazelcastTestSupport {
@Test
public void testMap() {
HazelcastInstance instance = createHazelcastInstance();
DistributedObject object = instance.getMap("test");
test(instan... | 0true | hazelcast_src_test_java_com_hazelcast_core_DistributedObjectTest.java |
3,630 | public class SimpleDynamicTemplatesTests extends ElasticsearchTestCase {
@Test
public void testMatchTypeOnly() throws Exception {
XContentBuilder builder = JsonXContent.contentBuilder();
builder.startObject().startObject("person").startArray("dynamic_templates").startObject().startObject("test"... | 0true | src_test_java_org_elasticsearch_index_mapper_dynamictemplate_simple_SimpleDynamicTemplatesTests.java |
414 | private static final class ExecutionCallbackWrapper<T> implements ExecutionCallback<T> {
MultiExecutionCallbackWrapper multiExecutionCallbackWrapper;
Member member;
private ExecutionCallbackWrapper(MultiExecutionCallbackWrapper multiExecutionCallback, Member member) {
this.mult... | 0true | hazelcast-client_src_main_java_com_hazelcast_client_proxy_ClientExecutorServiceProxy.java |
1,118 | public static class RequestInfo {
public RequestInfo(SearchRequest source, int i) {
request = source;
numTerms = i;
}
SearchRequest request;
int numTerms;
} | 0true | src_test_java_org_elasticsearch_benchmark_scripts_score_BasicScriptBenchmark.java |
1,081 | public class OrderBaseTest extends CommonSetupBaseTest {
protected Customer createNamedCustomer() {
Customer customer = customerService.createCustomerFromId(null);
customer.setUsername(String.valueOf(customer.getId()));
return customer;
}
public Order setUpNamedOrder() throws A... | 0true | integration_src_test_java_org_broadleafcommerce_core_order_service_OrderBaseTest.java |
935 | threadPool.executor(executor).execute(new Runnable() {
@Override
public void run() {
int shardIndex = -1;
for (final ShardIterator shardIt : shardsIts) {
shardIndex... | 0true | src_main_java_org_elasticsearch_action_support_broadcast_TransportBroadcastOperationAction.java |
226 | private static final class SimulateLoadTask implements Callable, Serializable, HazelcastInstanceAware {
private static final long serialVersionUID = 1;
private final int delay;
private final int taskId;
private final String latchId;
private transient HazelcastInstance hz;
... | 0true | hazelcast-client_src_main_java_com_hazelcast_client_examples_ClientTestApp.java |
443 | @Deprecated
public @interface AdminPresentationMapOverride {
/**
* The name of the property whose AdminPresentation annotation should be overwritten
*
* @return the name of the property that should be overwritten
*/
String name();
/**
* The AdminPresentation to overwrite the prope... | 0true | common_src_main_java_org_broadleafcommerce_common_presentation_override_AdminPresentationMapOverride.java |
1,651 | map.addEntryListener(new EntryAdapter<String, String>() {
public void entryEvicted(EntryEvent<String, String> event) {
latch.countDown();
}
}, true); | 0true | hazelcast_src_test_java_com_hazelcast_map_AsyncTest.java |
34 | @SuppressWarnings("unchecked")
public abstract class OMVRBTreeEntry<K, V> implements Map.Entry<K, V>, Comparable<OMVRBTreeEntry<K, V>> {
protected OMVRBTree<K, V> tree;
private int pageSplitItems;
public static final int BINARY_SEARCH_THRESHOLD = 10;
/**
* Constructor called on unmarshallin... | 0true | commons_src_main_java_com_orientechnologies_common_collection_OMVRBTreeEntry.java |
4,663 | private final PercolatorType queryCountPercolator = new PercolatorType() {
@Override
public byte id() {
return 0x02;
}
@Override
public ReduceResult reduce(List<PercolateShardResponse> shardResults) {
return countPercolator.reduce(shardResults);
... | 1no label | src_main_java_org_elasticsearch_percolator_PercolatorService.java |
290 | private static class StoreSnapshot extends PrefetchingIterator<File> implements ResourceIterator<File>
{
private final Iterator<File> files;
private final Resource[] thingsToCloseWhenDone;
StoreSnapshot( Iterator<File> files, Resource... thingsToCloseWhenDone )
{
thi... | 0true | community_kernel_src_main_java_org_neo4j_kernel_impl_nioneo_xa_NeoStoreFileListing.java |
712 | constructors[COLLECTION_COMPARE_AND_REMOVE] = new ConstructorFunction<Integer, Portable>() {
public Portable createNew(Integer arg) {
return new CollectionCompareAndRemoveRequest();
}
}; | 0true | hazelcast_src_main_java_com_hazelcast_collection_CollectionPortableHook.java |
326 | public class ExternalTransactionControlIT
{
public @Rule
ImpermanentDatabaseRule dbRule = new ImpermanentDatabaseRule();
private enum Labels implements Label
{
MY_LABEL;
}
@Test
public void shouldAllowSuspendingAndResumingTransactions() throws Exception
{
// Given
... | 0true | community_kernel_src_test_java_org_neo4j_kernel_impl_transaction_ExternalTransactionControlIT.java |
2,036 | public interface InjectionListener<I> {
/**
* Invoked by Guice after it injects the fields and methods of instance.
*
* @param injectee instance that Guice injected dependencies into
*/
void afterInjection(I injectee);
} | 0true | src_main_java_org_elasticsearch_common_inject_spi_InjectionListener.java |
2,841 | private static class DefaultNodeGroup implements NodeGroup {
final PartitionTable groupPartitionTable = new PartitionTable();
final Map<Address, PartitionTable> nodePartitionTables = new HashMap<Address, PartitionTable>();
final Set<Address> nodes = nodePartitionTables.keySet();
fina... | 1no label | hazelcast_src_main_java_com_hazelcast_partition_impl_PartitionStateGeneratorImpl.java |
300 | public class SequenceCharacterIterator implements CharacterIterator {
private int fIndex= -1;
private final CharSequence fSequence;
private final int fFirst;
private final int fLast;
private void invariant() {
Assert.isTrue(fIndex >= fFirst);
Assert.isTrue(fIndex <= fLast);
}
... | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_editor_SequenceCharacterIterator.java |
2,898 | public class NumericDoubleAnalyzer extends NumericAnalyzer<NumericDoubleTokenizer> {
private final static IntObjectOpenHashMap<NamedAnalyzer> builtIn;
static {
builtIn = new IntObjectOpenHashMap<NamedAnalyzer>();
builtIn.put(Integer.MAX_VALUE, new NamedAnalyzer("_double/max", AnalyzerScope.GLO... | 0true | src_main_java_org_elasticsearch_index_analysis_NumericDoubleAnalyzer.java |
1,317 | public interface LocalNodeMasterListener {
/**
* Called when local node is elected to be the master
*/
void onMaster();
/**
* Called when the local node used to be the master, a new master was elected and it's no longer the local node.
*/
void offMaster();
/**
* The name ... | 0true | src_main_java_org_elasticsearch_cluster_LocalNodeMasterListener.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,035 | public static class FieldOrder {
public static final int NAME = 1000;
public static final int PRICE = 2000;
public static final int QUANTITY = 3000;
public static final int RETAILPRICE = 4000;
public static final int SALEPRICE = 5000;
publi... | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_order_domain_OrderItemImpl.java |
7 | fBrowser.addOpenWindowListener(new OpenWindowListener() {
@Override
public void open(WindowEvent event) {
event.required= true; // Cancel opening of new windows
}
}); | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_browser_BrowserInformationControl.java |
2,763 | public class HttpStats implements Streamable, ToXContent {
private long serverOpen;
private long totalOpen;
HttpStats() {
}
public HttpStats(long serverOpen, long totalOpen) {
this.serverOpen = serverOpen;
this.totalOpen = totalOpen;
}
public long getServerOpen() {
... | 0true | src_main_java_org_elasticsearch_http_HttpStats.java |
1,098 | public class QueueStoreConfigReadOnly extends QueueStoreConfig {
public QueueStoreConfigReadOnly(QueueStoreConfig config) {
super(config);
}
public QueueStoreConfig setStoreImplementation(QueueStore storeImplementation) {
throw new UnsupportedOperationException("This config is read-only");... | 0true | hazelcast_src_main_java_com_hazelcast_config_QueueStoreConfigReadOnly.java |
87 | public interface StaticAssetService extends SandBoxItemListener {
public StaticAsset findStaticAssetById(Long id);
public List<StaticAsset> readAllStaticAssets();
public StaticAsset findStaticAssetByFullUrl(String fullUrl, SandBox targetSandBox);
/**
* Used when uploading a file to Broadle... | 0true | admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_file_service_StaticAssetService.java |
1,078 | public class OSQLFilter extends OSQLPredicate implements OCommandPredicate {
public OSQLFilter(final String iText, final OCommandContext iContext, final String iFilterKeyword) {
super();
context = iContext;
parserText = iText;
parserTextUpperCase = iText.toUpperCase();
try {
final int lastPos = parserGet... | 1no label | core_src_main_java_com_orientechnologies_orient_core_sql_filter_OSQLFilter.java |
1,220 | public class PaymentProcessContextFactory implements ProcessContextFactory {
@Resource(name = "blSecurePaymentInfoService")
protected SecurePaymentInfoService securePaymentInfoService;
@Resource(name = "blOrderService")
protected OrderService orderService;
protected PaymentActionType paymentActio... | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_payment_service_workflow_PaymentProcessContextFactory.java |
911 | public abstract class AbstractListenableActionFuture<T, L> extends AdapterActionFuture<T, L> implements ListenableActionFuture<T> {
final boolean listenerThreaded;
final ThreadPool threadPool;
volatile Object listeners;
boolean executedListeners = false;
protected AbstractListenableActionFuture... | 0true | src_main_java_org_elasticsearch_action_support_AbstractListenableActionFuture.java |
421 | public class RestoreSnapshotResponse extends ActionResponse implements ToXContent {
@Nullable
private RestoreInfo restoreInfo;
RestoreSnapshotResponse(@Nullable RestoreInfo restoreInfo) {
this.restoreInfo = restoreInfo;
}
RestoreSnapshotResponse() {
}
/**
* Returns restore i... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_snapshots_restore_RestoreSnapshotResponse.java |
1,552 | public class OServerMain {
private static OServer instance;
public static OServer create() throws Exception {
instance = new OServer();
return instance;
}
public static OServer server() {
return instance;
}
public static void main(final String[] args) throws Exception {
instance = OServer... | 0true | server_src_main_java_com_orientechnologies_orient_server_OServerMain.java |
376 | public class MetadataNamingStrategy extends org.springframework.jmx.export.naming.MetadataNamingStrategy {
public ObjectName getObjectName(Object managedBean, String beanKey) throws MalformedObjectNameException {
managedBean = AspectUtil.exposeRootBean(managedBean);
return super.getObjectName(manag... | 0true | common_src_main_java_org_broadleafcommerce_common_jmx_MetadataNamingStrategy.java |
6 | Collections.sort(abbreviationsForPhrase, new Comparator<String>() {
@Override
public int compare(String o1, String o2) {
return o1.length() - o2.length();
}
}); | 0true | tableViews_src_main_java_gov_nasa_arc_mct_abbreviation_impl_AbbreviationsManager.java |
317 | public class NodesHotThreadsAction extends ClusterAction<NodesHotThreadsRequest, NodesHotThreadsResponse, NodesHotThreadsRequestBuilder> {
public static final NodesHotThreadsAction INSTANCE = new NodesHotThreadsAction();
public static final String NAME = "cluster/nodes/hot_threads";
private NodesHotThread... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_node_hotthreads_NodesHotThreadsAction.java |
109 | public static class Adapter implements Monitor
{
@Override
public void txStarted( Xid xid )
{
}
@Override
public void txCommitted( Xid xid )
{
}
@Override
public void txRolledBack( X... | 0true | community_kernel_src_main_java_org_neo4j_kernel_impl_transaction_TxManager.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.