Unnamed: 0 int64 0 6.45k | func stringlengths 29 253k | target class label 2
classes | project stringlengths 36 167 |
|---|---|---|---|
2,484 | public static final Params EMPTY_PARAMS = new Params() {
@Override
public String param(String key) {
return null;
}
@Override
public String param(String key, String defaultValue) {
return defaultValue;
}
@Override
public boole... | 0true | src_main_java_org_elasticsearch_common_xcontent_ToXContent.java |
2,824 | private static class LocalPartitionListener implements PartitionListener {
final Address thisAddress;
private InternalPartitionServiceImpl partitionService;
private LocalPartitionListener(InternalPartitionServiceImpl partitionService, Address thisAddress) {
this.thisAddress = th... | 1no label | hazelcast_src_main_java_com_hazelcast_partition_impl_InternalPartitionServiceImpl.java |
882 | public class OQueryBlock extends OAbstractBlock {
public static final String NAME = "query";
@Override
public Object processBlock(final OComposableProcessor iManager, final OCommandContext iContext, final ODocument iConfig,
ODocument iOutput, final boolean iReadOnly) {
if (!(iConfig instanceof ODocumen... | 0true | core_src_main_java_com_orientechnologies_orient_core_processor_block_OQueryBlock.java |
294 | class RestorePreviousSelectionAction extends Action {
private CeylonEditor editor;
private List<IRegion> previous = new ArrayList<IRegion>();
private boolean restoring;
public RestorePreviousSelectionAction() {
this(null);
}
@Override
public boolean isEnabled() {
return... | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_editor_RestorePreviousSelectionAction.java |
402 | public class ORecordTrackedSet extends AbstractCollection<OIdentifiable> implements Set<OIdentifiable>, ORecordElement {
protected final ORecord<?> sourceRecord;
protected Map<Object, Object> map = new HashMap<Object, Object>();
private STATUS status = STATUS.NOT_LOADED;
protected final static Objec... | 0true | core_src_main_java_com_orientechnologies_orient_core_db_record_ORecordTrackedSet.java |
2,773 | public class SSLSocketChannelWrapper extends DefaultSocketChannelWrapper {
private static final boolean DEBUG = false;
private final ByteBuffer in;
private final ByteBuffer emptyBuffer;
private final ByteBuffer netOutBuffer;
// "reliable" write transport
private final ByteBuffer netInBuffer;
... | 1no label | hazelcast_src_main_java_com_hazelcast_nio_ssl_SSLSocketChannelWrapper.java |
231 | private static final class DummyInformationProvider
implements IInformationProvider, IInformationProviderExtension {
// private CeylonParseController parseController;
// DummyInformationProvider(CeylonParseController parseController) {
// this.parseController = parseController;... | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_editor_CeylonSourceViewerConfiguration.java |
206 | public interface FieldQueryExtension {
Query query(QueryParseContext parseContext, String queryText);
} | 0true | src_main_java_org_apache_lucene_queryparser_classic_FieldQueryExtension.java |
3,208 | constructors[VECTOR] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {
public IdentifiedDataSerializable createNew(Integer arg) {
return new VectorClock();
}
}; | 1no label | hazelcast_src_main_java_com_hazelcast_replicatedmap_operation_ReplicatedMapDataSerializerHook.java |
796 | public class ODatabaseFunctionFactory implements OSQLFunctionFactory {
@Override
public boolean hasFunction(final String iName) {
final ODatabaseRecord db = ODatabaseRecordThreadLocal.INSTANCE.get();
return db.getMetadata().getFunctionLibrary().getFunction(iName) != null;
}
@Override
public Set<Strin... | 0true | core_src_main_java_com_orientechnologies_orient_core_metadata_function_ODatabaseFunctionFactory.java |
324 | public class OStorageMemoryLinearHashingClusterConfiguration extends OAbstractStorageClusterConfiguration {
public OStorageMemoryLinearHashingClusterConfiguration(final String name, final int id, final int iDataSegmentId) {
super(name, id, iDataSegmentId);
}
} | 0true | core_src_main_java_com_orientechnologies_orient_core_config_OStorageMemoryLinearHashingClusterConfiguration.java |
437 | public final class PartitionServiceProxy implements PartitionService {
private final ClientPartitionService partitionService;
private final Random random = new Random();
public PartitionServiceProxy(ClientPartitionService partitionService) {
this.partitionService = partitionService;
}
@Ov... | 0true | hazelcast-client_src_main_java_com_hazelcast_client_proxy_PartitionServiceProxy.java |
927 | new ConstructorFunction<ObjectNamespace, LockStoreImpl>() {
public LockStoreImpl createNew(ObjectNamespace namespace) {
final ConstructorFunction<ObjectNamespace, LockStoreInfo> ctor =
lockService.getConstructor(namespace.getServiceName());
... | 0true | hazelcast_src_main_java_com_hazelcast_concurrent_lock_LockStoreContainer.java |
1,090 | public class OrderTest extends OrderBaseTest {
private Long orderId = null;
private int numOrderItems = 0;
private Long bundleOrderItemId;
@Resource(name = "blOrderItemService")
private OrderItemService orderItemService;
@Resource
private SkuDao skuDao;
@Resource(name = "blFu... | 0true | integration_src_test_java_org_broadleafcommerce_core_order_service_OrderTest.java |
3,403 | public class UidAndRoutingFieldsVisitor extends FieldsVisitor {
private String routing;
@Override
public Status needsField(FieldInfo fieldInfo) throws IOException {
if (RoutingFieldMapper.NAME.equals(fieldInfo.name)) {
return Status.YES;
} else if (UidFieldMapper.NAME.equals(fi... | 0true | src_main_java_org_elasticsearch_index_fieldvisitor_UidAndRoutingFieldsVisitor.java |
2,753 | public class HttpInfo implements Streamable, Serializable, ToXContent {
private BoundTransportAddress address;
private long maxContentLength;
HttpInfo() {
}
public HttpInfo(BoundTransportAddress address, long maxContentLength) {
this.address = address;
this.maxContentLength = maxC... | 0true | src_main_java_org_elasticsearch_http_HttpInfo.java |
3,402 | public class SingleFieldsVisitor extends FieldsVisitor {
private String field;
public SingleFieldsVisitor(String field) {
this.field = field;
}
@Override
public Status needsField(FieldInfo fieldInfo) throws IOException {
// TODO we can potentially skip if we processed a field, the... | 0true | src_main_java_org_elasticsearch_index_fieldvisitor_SingleFieldsVisitor.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 |
3,460 | public class HazelcastClientBeanDefinitionParser extends AbstractHazelcastBeanDefinitionParser {
protected AbstractBeanDefinition parseInternal(Element element, ParserContext parserContext) {
final SpringXmlBuilder springXmlBuilder = new SpringXmlBuilder(parserContext);
springXmlBuilder.handleClien... | 1no label | hazelcast-spring_src_main_java_com_hazelcast_spring_HazelcastClientBeanDefinitionParser.java |
1,622 | public interface DynamicEntityDao {
public abstract Class<?>[] getAllPolymorphicEntitiesFromCeiling(Class<?> ceilingClass);
public abstract Class<?>[] getAllPolymorphicEntitiesFromCeiling(Class<?> ceilingClass, boolean includeUnqualifiedPolymorphicEntities);
public ClassTree getClassTreeFromCeiling(Class... | 0true | admin_broadleaf-open-admin-platform_src_main_java_org_broadleafcommerce_openadmin_server_dao_DynamicEntityDao.java |
1,298 | @Entity
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "BLC_CAT_SEARCH_FACET_EXCL_XREF")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE, region = "blStandardElements")
public class CategoryExcludedSearchFacetImpl implements CategoryExcludedSearchFacet, Serializable {
/**
*
*/
priv... | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_search_domain_CategoryExcludedSearchFacetImpl.java |
2,180 | static class NotDeletedDocIdSetIterator extends FilteredDocIdSetIterator {
private final Bits match;
NotDeletedDocIdSetIterator(DocIdSetIterator innerIter, Bits match) {
super(innerIter);
this.match = match;
}
@Override
protected boolean match(int d... | 0true | src_main_java_org_elasticsearch_common_lucene_search_ApplyAcceptedDocsFilter.java |
3,687 | public static class Defaults extends AbstractFieldMapper.Defaults {
public static final String NAME = SourceFieldMapper.NAME;
public static final boolean ENABLED = true;
public static final long COMPRESS_THRESHOLD = -1;
public static final String FORMAT = null; // default format is t... | 0true | src_main_java_org_elasticsearch_index_mapper_internal_SourceFieldMapper.java |
1,299 | @Singleton
public static class MasterAwareService extends AbstractLifecycleComponent<MasterAwareService> implements LocalNodeMasterListener {
private final ClusterService clusterService;
private volatile boolean master;
@Inject
public MasterAwareService(Settings settings, Clust... | 0true | src_test_java_org_elasticsearch_cluster_ClusterServiceTests.java |
2,646 | zenPingA.setNodesProvider(new DiscoveryNodesProvider() {
@Override
public DiscoveryNodes nodes() {
return DiscoveryNodes.builder().put(nodeA).localNodeId("A").build();
}
@Override
public NodeService nodeService() {
retu... | 0true | src_test_java_org_elasticsearch_discovery_zen_ping_multicast_MulticastZenPingTests.java |
517 | MessageListener listener = new MessageListener() {
public void onMessage(Message message) {
latch.countDown();
}
}; | 0true | hazelcast-client_src_test_java_com_hazelcast_client_topic_ClientTopicTest.java |
214 | return new RecordIterator<KeyValueEntry>() {
private final Iterator<KeyValueEntry> entries = result.iterator();
@Override
public boolean hasNext() {
return entries.hasNext();
}
@Override
pub... | 0true | titan-berkeleyje_src_main_java_com_thinkaurelius_titan_diskstorage_berkeleyje_BerkeleyJEKeyValueStore.java |
354 | @RunWith(HazelcastSerialClassRunner.class)
@Category(SlowTest.class)
public class ClientMapReduceTest
extends AbstractClientMapReduceJobTest {
private static final String MAP_NAME = "default";
@After
public void shutdown() {
HazelcastClient.shutdownAll();
Hazelcast.shutdownAll();
... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_mapreduce_ClientMapReduceTest.java |
387 | public class SupportLevel extends Level {
public SupportLevel(int level, String levelStr, int syslogEquivalent) {
super(level, levelStr, syslogEquivalent);
}
public static final int SUPPORT_INT = ERROR_INT + 10;
public static final Level SUPPORT = new SupportLevel(SUPPORT_INT, "SUPPORT", 6);
... | 0true | common_src_main_java_org_broadleafcommerce_common_logging_SupportLevel.java |
273 | titleLabel.addModifyListener(new ModifyListener() {
@Override
public void modifyText(ModifyEvent e) {
titleLabel.setStyleRanges(styleTitle(titleLabel).getStyleRanges());
}
}); | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_editor_PeekDefinitionPopup.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 |
191 | public interface TransferQueue<E> extends BlockingQueue<E> {
/**
* Transfers the element to a waiting consumer immediately, if possible.
*
* <p>More precisely, transfers the specified element immediately
* if there exists a consumer already waiting to receive it (in
* {@link #take} or timed... | 0true | src_main_java_jsr166y_TransferQueue.java |
941 | public class VerifyCustomerMaxOfferUsesActivity extends BaseActivity<CheckoutContext> {
@Resource(name="blOfferAuditService")
protected OfferAuditService offerAuditService;
@Resource(name = "blOfferService")
protected OfferService offerService;
@Override
public CheckoutContext execute(Che... | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_offer_service_workflow_VerifyCustomerMaxOfferUsesActivity.java |
1,625 | @RunWith(HazelcastParallelClassRunner.class)
@Category(QuickTest.class)
public class TimedMemberStateTest extends HazelcastTestSupport {
@Test
public void testSerialization() throws InterruptedException {
HazelcastInstance hz = createHazelcastInstance();
SerializationService serializationServic... | 0true | hazelcast_src_test_java_com_hazelcast_management_TimedMemberStateTest.java |
1,201 | public interface MultiMap<K, V> extends BaseMultiMap<K, V>, DistributedObject {
/**
* Returns the name of this multimap.
*
* @return the name of this multimap
*/
String getName();
/**
* Stores a key-value pair in the multimap.
* <p/>
* <p><b>Warning:</b></p>
* <p>
... | 0true | hazelcast_src_main_java_com_hazelcast_core_MultiMap.java |
331 | public abstract class BaseHandler implements MergeHandler, Comparable<Object> {
protected int priority;
protected String xpath;
protected MergeHandler[] children = {};
protected String name;
public int getPriority() {
return priority;
}
public String getXPath() {
return xp... | 0true | common_src_main_java_org_broadleafcommerce_common_extensibility_context_merge_handlers_BaseHandler.java |
2,659 | public class UnicastZenPingTests extends ElasticsearchTestCase {
@Test
public void testSimplePings() {
Settings settings = ImmutableSettings.EMPTY;
int startPort = 11000 + randomIntBetween(0, 1000);
int endPort = startPort + 10;
settings = ImmutableSettings.builder().put(setting... | 0true | src_test_java_org_elasticsearch_discovery_zen_ping_unicast_UnicastZenPingTests.java |
120 | public interface OVariableParserListener {
public Object resolve(String iVariable);
} | 0true | commons_src_main_java_com_orientechnologies_common_parser_OVariableParserListener.java |
4,628 | public final class InternalNode implements Node {
private final Lifecycle lifecycle = new Lifecycle();
private final Injector injector;
private final Settings settings;
private final Environment environment;
private final PluginsService pluginsService;
private final Client client;
pub... | 1no label | src_main_java_org_elasticsearch_node_internal_InternalNode.java |
1,272 | nodesService.execute(new TransportClientNodesService.NodeListenerCallback<Response>() {
@Override
public void doWithNode(DiscoveryNode node, ActionListener<Response> listener) throws ElasticsearchException {
proxy.execute(node, request, listener);
}
},... | 0true | src_main_java_org_elasticsearch_client_transport_support_InternalTransportClusterAdminClient.java |
3,707 | public static class Builder extends Mapper.Builder<Builder, VersionFieldMapper> {
DocValuesFormatProvider docValuesFormat;
public Builder() {
super(Defaults.NAME);
}
@Override
public VersionFieldMapper build(BuilderContext context) {
return new Vers... | 0true | src_main_java_org_elasticsearch_index_mapper_internal_VersionFieldMapper.java |
2,172 | public class OrDocIdSet extends DocIdSet {
private final DocIdSet[] sets;
public OrDocIdSet(DocIdSet[] sets) {
this.sets = sets;
}
@Override
public boolean isCacheable() {
for (DocIdSet set : sets) {
if (!set.isCacheable()) {
return false;
}... | 0true | src_main_java_org_elasticsearch_common_lucene_docset_OrDocIdSet.java |
1,876 | public interface PreProcessModule {
void processModule(Module module);
} | 0true | src_main_java_org_elasticsearch_common_inject_PreProcessModule.java |
1,261 | public class ODataHoleInfo implements Comparable<ODataHoleInfo> {
public int size;
public long dataOffset;
public int holeOffset;
public ODataHoleInfo() {
}
public ODataHoleInfo(final int iRecordSize, final long dataOffset, final int holeOffset) {
this.size = iRecordSize;
this.dataOffset = dataOffset;
thi... | 0true | core_src_main_java_com_orientechnologies_orient_core_storage_impl_local_ODataHoleInfo.java |
757 | public class ListGetOperation extends CollectionOperation {
private int index;
public ListGetOperation() {
}
public ListGetOperation(String name, int index) {
super(name);
this.index = index;
}
@Override
public void beforeRun() throws Exception {
}
@Override
... | 0true | hazelcast_src_main_java_com_hazelcast_collection_list_ListGetOperation.java |
2,608 | = new ConstructorFunction<Address, ConnectionMonitor>() {
public ConnectionMonitor createNew(Address endpoint) {
return new ConnectionMonitor(TcpIpConnectionManager.this, endpoint);
}
}; | 1no label | hazelcast_src_main_java_com_hazelcast_nio_TcpIpConnectionManager.java |
5,324 | public class TermsParser implements Aggregator.Parser {
@Override
public String type() {
return StringTerms.TYPE.name();
}
@Override
public AggregatorFactory parse(String aggregationName, XContentParser parser, SearchContext context) throws IOException {
String field = null;
... | 1no label | src_main_java_org_elasticsearch_search_aggregations_bucket_terms_TermsParser.java |
1,919 | InvocationHandler invocationHandler = new InvocationHandler() {
public Object invoke(Object proxy, Method method, Object[] creationArgs) throws Throwable {
// pass methods from Object.class to the proxy
if (method.getDeclaringClass().equals(Object.class)) {
... | 0true | src_main_java_org_elasticsearch_common_inject_assistedinject_FactoryProvider.java |
411 | public class ClientConditionProxy extends ClientProxy implements ICondition {
private final String conditionId;
private final ClientLockProxy lockProxy;
private volatile Data key;
private final InternalLockNamespace namespace;
public ClientConditionProxy(String instanceName, ClientLockProxy clien... | 1no label | hazelcast-client_src_main_java_com_hazelcast_client_proxy_ClientConditionProxy.java |
3,652 | public static class Builder extends AbstractFieldMapper.Builder<Builder, AllFieldMapper> {
private boolean enabled = Defaults.ENABLED;
// an internal flag, automatically set if we encounter boosting
boolean autoBoost = false;
public Builder() {
super(Defaults.NAME, new... | 0true | src_main_java_org_elasticsearch_index_mapper_internal_AllFieldMapper.java |
3,519 | public static class Aggregator extends ObjectMapperListener {
public final List<ObjectMapper> mappers = new ArrayList<ObjectMapper>();
@Override
public void objectMapper(ObjectMapper objectMapper) {
mappers.add(objectMapper);
}
} | 0true | src_main_java_org_elasticsearch_index_mapper_ObjectMapperListener.java |
284 | @RunWith(HazelcastParallelClassRunner.class)
@Category(QuickTest.class)
public class ClientStaticLBTest {
@AfterClass
public static void destroy() {
HazelcastClient.shutdownAll();
Hazelcast.shutdownAll();
}
@Test
public void testStaticLB_withMembers() {
TestHazelcastInstanc... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_loadBalancer_ClientStaticLBTest.java |
633 | public class OIndexTxAwareMultiValue extends OIndexTxAware<Collection<OIdentifiable>> {
public OIndexTxAwareMultiValue(final ODatabaseRecord iDatabase, final OIndex<Collection<OIdentifiable>> iDelegate) {
super(iDatabase, iDelegate);
}
@Override
public Collection<OIdentifiable> get(final Object key) {
... | 0true | core_src_main_java_com_orientechnologies_orient_core_index_OIndexTxAwareMultiValue.java |
18 | static class ByteEntry implements Comparable<ByteEntry> {
final ByteBuffer key;
final ByteBuffer value;
ByteEntry(ByteBuffer key, ByteBuffer value) {
this.value = value;
this.key = key;
}
@Override
public int compareTo(ByteEntry byteEntry) {... | 0true | titan-test_src_main_java_com_thinkaurelius_titan_TestByteBuffer.java |
904 | public interface PromotionRounding {
/**
* It is sometimes problematic to offer percentage-off offers with regards to rounding. For example,
* consider an item that costs 9.99 and has a 50% promotion. To be precise, the offer value is 4.995,
* but this may be a strange value to display to the us... | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_offer_service_discount_domain_PromotionRounding.java |
460 | public interface ResourceMinificationService {
/**
* Given the source byte[], will return a byte[] that represents the YUI-compressor minified version
* of the byte[]. The behavior of this method is controlled via the following properties:
*
* <ul>
* <li>minify.enabled - whether or not t... | 0true | common_src_main_java_org_broadleafcommerce_common_resource_service_ResourceMinificationService.java |
107 | public class OIOException extends OException {
private static final long serialVersionUID = -3003977236203691448L;
public OIOException(String string) {
super(string);
}
public OIOException(String message, Throwable cause) {
super(message, cause);
}
} | 0true | commons_src_main_java_com_orientechnologies_common_io_OIOException.java |
573 | public interface ValueAssignable<T extends Serializable> extends Serializable {
/**
* The value
*
* @return The value
*/
T getValue();
/**
* The value
*
* @param value The value
*/
void setValue(T value);
/**
* The name
*
* @return The name
... | 0true | common_src_main_java_org_broadleafcommerce_common_value_ValueAssignable.java |
1,196 | public interface MessageListener<E> extends EventListener {
/**
* Invoked when a message is received for the added topic. Note that topic guarantees message ordering.
* Therefore there is only one thread invoking onMessage. The user shouldn't keep the thread busy and preferably
* dispatch it via an E... | 0true | hazelcast_src_main_java_com_hazelcast_core_MessageListener.java |
2,594 | private class FDConnectionListener implements TransportConnectionListener {
@Override
public void onNodeConnected(DiscoveryNode node) {
}
@Override
public void onNodeDisconnected(DiscoveryNode node) {
handleTransportDisconnect(node);
}
} | 0true | src_main_java_org_elasticsearch_discovery_zen_fd_MasterFaultDetection.java |
2,013 | @RunWith(HazelcastSerialClassRunner.class)
@Category(QuickTest.class)
public class TestWriteBehindException extends HazelcastTestSupport {
final CountDownLatch latch1 = new CountDownLatch(1);
final CountDownLatch latch2 = new CountDownLatch(1);
@Test
public void testWriteBehindStoreWithException() thr... | 0true | hazelcast_src_test_java_com_hazelcast_map_mapstore_TestWriteBehindException.java |
1,468 | public final class HazelcastCollectionRegion<Cache extends RegionCache> extends AbstractTransactionalDataRegion<Cache>
implements CollectionRegion {
public HazelcastCollectionRegion(final HazelcastInstance instance,
final String regionName, final Properties props,
... | 0true | hazelcast-hibernate_hazelcast-hibernate4_src_main_java_com_hazelcast_hibernate_region_HazelcastCollectionRegion.java |
4 | public interface Action<A> { void accept(A a); } | 0true | src_main_java_jsr166e_CompletableFuture.java |
217 | protected class SelectNextSubWordAction extends NextSubWordAction {
/**
* Creates a new select next sub-word action.
*/
public SelectNextSubWordAction() {
super(ST.SELECT_WORD_NEXT);
}
@Override
protected void setCaretPosition(final int positio... | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_editor_CeylonEditor.java |
960 | public abstract class AbstractCompressionTest {
protected void testCompression(String name) {
long seed = System.currentTimeMillis();
System.out.println("Compression seed " + seed);
Random random = new Random(seed);
final int iterationsCount = 1000;
for (int i = 0; i < iterationsCount; i++) {
... | 0true | core_src_test_java_com_orientechnologies_orient_core_serialization_compression_impl_AbstractCompressionTest.java |
1,672 | runnable = new Runnable() { public void run() { map.remove(null, "value"); } }; | 0true | hazelcast_src_test_java_com_hazelcast_map_BasicMapTest.java |
1,583 | public interface LogListener {
void log(LogEvent logEvent);
} | 0true | hazelcast_src_main_java_com_hazelcast_logging_LogListener.java |
2,933 | public class MultiResultSet extends AbstractSet<QueryableEntry> {
private Set<Object> index;
private final List<ConcurrentMap<Data, QueryableEntry>> resultSets
= new ArrayList<ConcurrentMap<Data, QueryableEntry>>();
public MultiResultSet() {
}
public void addResultSet(ConcurrentMap<Dat... | 1no label | hazelcast_src_main_java_com_hazelcast_query_impl_MultiResultSet.java |
35 | @Service("blSkuFieldService")
public class SkuFieldServiceImpl extends AbstractRuleBuilderFieldService {
@Override
public void init() {
fields.add(new FieldData.Builder()
.label("rule_skuName")
.name("name")
.operators("blcOperators_Text")
... | 0true | admin_broadleaf-admin-module_src_main_java_org_broadleafcommerce_admin_web_rulebuilder_service_SkuFieldServiceImpl.java |
1,547 | Arrays.sort(nodes, new Comparator<RoutingNode>() {
@Override
public int compare(RoutingNode o1, RoutingNode o2) {
return nodeCounts.get(o1.nodeId()) - nodeCounts.get(o2.nodeId());
}
}); | 0true | src_main_java_org_elasticsearch_cluster_routing_allocation_allocator_EvenShardsCountAllocator.java |
1,449 | final ByteArrayOutputStream bytes = new ByteArrayOutputStream() {
public synchronized byte[] toByteArray() {
return buf;
}
}; | 0true | graphdb_src_main_java_com_orientechnologies_orient_graph_gremlin_OGremlinHelper.java |
1,576 | public abstract class ODistributedAbstractPlugin extends OServerPluginAbstract implements ODistributedServerManager,
ODatabaseLifecycleListener {
public static final String REPLICATOR_USER = "replicator";
protected static final String MASTER_AUT... | 1no label | server_src_main_java_com_orientechnologies_orient_server_distributed_ODistributedAbstractPlugin.java |
1,094 | public class QueueConfig {
public final static int DEFAULT_MAX_SIZE = 0;
public final static int DEFAULT_SYNC_BACKUP_COUNT = 1;
public final static int DEFAULT_ASYNC_BACKUP_COUNT = 0;
public final static int DEFAULT_EMPTY_QUEUE_TTL = -1;
private String name;
private List<ItemListenerConfig> li... | 0true | hazelcast_src_main_java_com_hazelcast_config_QueueConfig.java |
470 | public class ExternalModuleNode implements ModuleNode {
private RepositoryNode repositoryNode;
private List<IPackageFragmentRoot> binaryArchives = new ArrayList<>();
protected String moduleSignature;
public ExternalModuleNode(RepositoryNode repositoryNode, String moduleSignature) {
this.mod... | 1no label | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_navigator_ExternalModuleNode.java |
602 | public class OIndexFullText extends OIndexMultiValues {
private static final String CONFIG_STOP_WORDS = "stopWords";
private static final String CONFIG_SEPARATOR_CHARS = "separatorChars";
private static final String CONFIG_IGNORE_CHARS = "ignoreChars";
private static String DEF_SEPARATOR_CHARS ... | 1no label | core_src_main_java_com_orientechnologies_orient_core_index_OIndexFullText.java |
2,851 | public class DelimitedPayloadTokenFilterFactory extends AbstractTokenFilterFactory {
static final char DEFAULT_DELIMITER = '|';
static final PayloadEncoder DEFAULT_ENCODER = new FloatEncoder();
static final String ENCODING = "encoding";
static final String DELIMITER = "delimiter";
char de... | 0true | src_main_java_org_elasticsearch_index_analysis_DelimitedPayloadTokenFilterFactory.java |
3,441 | public abstract class BlobStoreIndexShardGateway extends AbstractIndexShardComponent implements IndexShardGateway {
protected final ThreadPool threadPool;
protected final InternalIndexShard indexShard;
protected final Store store;
protected final ByteSizeValue chunkSize;
protected final BlobSto... | 0true | src_main_java_org_elasticsearch_index_gateway_blobstore_BlobStoreIndexShardGateway.java |
909 | makeDbCall(iMyDb, new ODbRelatedCall<Object>() {
public Object call() {
if (iCurrent.getInternalStatus() == STATUS.NOT_LOADED)
iCurrent.reload();
return null;
}
}); | 0true | core_src_main_java_com_orientechnologies_orient_core_record_impl_ODocumentHelper.java |
351 | public class MergePersistenceUnitManager extends DefaultPersistenceUnitManager {
private static final Log LOG = LogFactory.getLog(MergePersistenceUnitManager.class);
protected HashMap<String, PersistenceUnitInfo> mergedPus = new HashMap<String, PersistenceUnitInfo>();
protected final boolean jpa2ApiPresen... | 1no label | common_src_main_java_org_broadleafcommerce_common_extensibility_jpa_MergePersistenceUnitManager.java |
1,072 | public enum MaxSizePolicy {
PER_NODE, PER_PARTITION, USED_HEAP_PERCENTAGE, USED_HEAP_SIZE
} | 0true | hazelcast_src_main_java_com_hazelcast_config_MaxSizeConfig.java |
199 | public static class LogPositionCache
{
private final LruCache<Long, TxPosition> txStartPositionCache =
new LruCache<Long, TxPosition>( "Tx start position cache", 10000 );
private final LruCache<Long /*log version*/, Long /*last committed tx*/> logHeaderCache =
new... | 0true | community_kernel_src_main_java_org_neo4j_kernel_impl_transaction_xaframework_LogExtractor.java |
99 | public class Precision extends AbstractDecimal {
public static final int DECIMALS = 6;
public static final Precision MIN_VALUE = new Precision(minDoubleValue(DECIMALS));
public static final Precision MAX_VALUE = new Precision(maxDoubleValue(DECIMALS));
private Precision() {}
public Precision(dou... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_core_attribute_Precision.java |
1,113 | public class SocketInterceptorConfig {
private boolean enabled = false;
private String className = null;
private Object implementation = null;
private Properties properties = new Properties();
/**
* Returns the name of the {@link com.hazelcast.nio.SocketInterceptor} implementation class
*... | 0true | hazelcast_src_main_java_com_hazelcast_config_SocketInterceptorConfig.java |
805 | public static enum INDEX_TYPE {
UNIQUE(true), NOTUNIQUE(true), FULLTEXT(true), DICTIONARY(false), PROXY(true), UNIQUE_HASH_INDEX(true), NOTUNIQUE_HASH_INDEX(
true), FULLTEXT_HASH_INDEX(true), DICTIONARY_HASH_INDEX(false);
private final boolean automaticIndexable;
INDEX_TYPE(boolean iValue) {
... | 0true | core_src_main_java_com_orientechnologies_orient_core_metadata_schema_OClass.java |
163 | public abstract class PartitionClientRequest extends ClientRequest {
private static final int TRY_COUNT = 100;
protected void beforeProcess() {
}
protected void afterResponse() {
}
@Override
final void process() {
beforeProcess();
ClientEndpoint endpoint = getEndpoint();
... | 1no label | hazelcast_src_main_java_com_hazelcast_client_PartitionClientRequest.java |
478 | class ColumnValueStore {
private static final double SIZE_THRESHOLD = 0.66;
private Data data;
public ColumnValueStore() {
data = new Data(new Entry[0], 0);
}
boolean isEmpty(StoreTransaction txh) {
Lock lock = getLock(txh);
lock.lock();
try {
return d... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_diskstorage_keycolumnvalue_inmemory_ColumnValueStore.java |
1,186 | public interface BroadleafPaymentModuleService {
/**
* Validates the response received from the payment module.
*
* When implemented it should throw an error with the message received from the payment module. This message
* will be bubbled up and displayed in the admin to the user.
*
... | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_payment_service_BroadleafPaymentModuleService.java |
3,171 | public class DuelFieldDataTests extends AbstractFieldDataTests {
@Override
protected FieldDataType getFieldDataType() {
return null;
}
public static int atLeast(Random random, int i) {
int min = i;
int max = min + (min / 2);
return min + random.nextInt(max - min);
}... | 0true | src_test_java_org_elasticsearch_index_fielddata_DuelFieldDataTests.java |
799 | public class OFunctionLibraryImpl implements OFunctionLibrary {
protected Map<String, OFunction> functions = new ConcurrentHashMap<String, OFunction>();
static {
OCommandManager.instance().registerExecutor(OCommandFunction.class, OCommandExecutorFunction.class);
}
public OFunctionLibraryImpl() {
}
pu... | 0true | core_src_main_java_com_orientechnologies_orient_core_metadata_function_OFunctionLibraryImpl.java |
3,170 | public static abstract class WithOrdinals extends DoubleValues {
protected final Docs ordinals;
protected WithOrdinals(Ordinals.Docs ordinals) {
super(ordinals.isMultiValued());
this.ordinals = ordinals;
}
/**
* Returns the associated ordinals inst... | 0true | src_main_java_org_elasticsearch_index_fielddata_DoubleValues.java |
2,064 | public class MapKeySetOperationFactory implements OperationFactory {
String name;
public MapKeySetOperationFactory() {
}
public MapKeySetOperationFactory(String name) {
this.name = name;
}
@Override
public Operation createOperation() {
return new MapKeySetOperation(name);... | 0true | hazelcast_src_main_java_com_hazelcast_map_operation_MapKeySetOperationFactory.java |
135 | public static final class ClientTestResource extends ExternalResource {
private final Config config;
private HazelcastInstance instance;
private SimpleClient client;
public ClientTestResource(Config config) {
this.config = config;
}
protected void before... | 0true | hazelcast_src_test_java_com_hazelcast_client_ClientTestSupport.java |
657 | public class PutIndexTemplateResponse extends AcknowledgedResponse {
PutIndexTemplateResponse() {
}
PutIndexTemplateResponse(boolean acknowledged) {
super(acknowledged);
}
@Override
public void readFrom(StreamInput in) throws IOException {
super.readFrom(in);
readAckno... | 0true | src_main_java_org_elasticsearch_action_admin_indices_template_put_PutIndexTemplateResponse.java |
2,649 | ping(new PingListener() {
@Override
public void onPing(PingResponse[] pings) {
response.set(pings);
latch.countDown();
}
}, timeout); | 0true | src_main_java_org_elasticsearch_discovery_zen_ping_unicast_UnicastZenPing.java |
1,478 | return OSQLEngine.foreachRecord(new OCallable<Object, OIdentifiable>() {
@Override
public Object call(final OIdentifiable iArgument) {
return move(graph, iArgument, labels);
}
}, iCurrentResult, iContext); | 1no label | graphdb_src_main_java_com_orientechnologies_orient_graph_sql_functions_OSQLFunctionMove.java |
531 | public class Mod43CheckDigitUtil {
private final static String CHARSET = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%";
public static boolean isValidCheckedValue(String value) {
boolean valid = false;
if (value != null && !"".equals(value)) {
String code = value.substring(0, value.... | 0true | common_src_main_java_org_broadleafcommerce_common_util_Mod43CheckDigitUtil.java |
1,822 | class ExposedKeyFactory<T> implements InternalFactory<T>, BindingProcessor.CreationListener {
private final Key<T> key;
private final PrivateElements privateElements;
private BindingImpl<T> delegate;
public ExposedKeyFactory(Key<T> key, PrivateElements privateElements) {
this.key = key;
... | 0true | src_main_java_org_elasticsearch_common_inject_ExposedKeyFactory.java |
899 | @RunWith(HazelcastParallelClassRunner.class)
@Category(QuickTest.class)
public class IdGeneratorTest extends HazelcastTestSupport {
private HazelcastInstance hz;
@Before
public void setUp() {
hz = createHazelcastInstance();
}
@Test
public void testInit() {
testInit(0, false, 0... | 0true | hazelcast_src_test_java_com_hazelcast_concurrent_idgen_IdGeneratorTest.java |
3,328 | static class Empty extends FloatArrayAtomicFieldData {
Empty(int numDocs) {
super(numDocs);
}
@Override
public LongValues getLongValues() {
return LongValues.EMPTY;
}
@Override
public DoubleValues getDoubleValues() {
retu... | 1no label | src_main_java_org_elasticsearch_index_fielddata_plain_FloatArrayAtomicFieldData.java |
3,184 | public class FloatFieldDataTests extends AbstractNumericFieldDataTests {
@Override
protected FieldDataType getFieldDataType() {
return new FieldDataType("float");
}
protected String one() {
return "1.0";
}
protected String two() {
return "2.0";
}
protected Str... | 0true | src_test_java_org_elasticsearch_index_fielddata_FloatFieldDataTests.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.