Unnamed: 0 int64 0 6.45k | func stringlengths 29 253k | target class label 2
classes | project stringlengths 36 167 |
|---|---|---|---|
327 | static class DummyXaConnection extends XaConnectionHelpImpl
{
private XAResource xaResource = null;
public DummyXaConnection( XaResourceManager xaRm )
{
super( xaRm );
xaResource = new DummyXaResource( xaRm );
}
@Override
public XAResourc... | 0true | community_kernel_src_test_java_org_neo4j_kernel_impl_transaction_DummyXaDataSource.java |
1,932 | public class Annotations {
/**
* Returns true if the given annotation is retained at runtime.
*/
public static boolean isRetainedAtRuntime(Class<? extends Annotation> annotationType) {
Retention retention = annotationType.getAnnotation(Retention.class);
return retention != null && ret... | 0true | src_main_java_org_elasticsearch_common_inject_internal_Annotations.java |
340 | public class CurrentDatabase
{
private final StoreVersionCheck storeVersionCheck;
private static final Map<String, String> fileNamesToTypeDescriptors = new HashMap<String, String>();
static
{
fileNamesToTypeDescriptors.put( NeoStore.DEFAULT_NAME, NeoStore.TYPE_DESCRIPTOR );
fileNamesToT... | 0true | community_kernel_src_main_java_org_neo4j_kernel_impl_storemigration_CurrentDatabase.java |
699 | @Test
public class LRUListTest {
public void testSingleAdd() {
LRUList lruList = new LRUList();
ODirectMemoryPointer directMemoryPointer = new ODirectMemoryPointer(1);
OCachePointer cachePointer = new OCachePointer(directMemoryPointer, new OLogSequenceNumber(0, 0));
lruList.putToMRU(new OCacheEntry(1... | 0true | core_src_test_java_com_orientechnologies_orient_core_index_hashindex_local_cache_LRUListTest.java |
958 | public interface OCompression {
byte[] compress(byte[] content);
byte[] uncompress(byte[] content);
String name();
} | 0true | core_src_main_java_com_orientechnologies_orient_core_serialization_compression_OCompression.java |
932 | public class OrderOfferProcessorTest extends TestCase {
protected OfferDao offerDaoMock;
protected OrderOfferProcessorImpl orderProcessor;
protected OfferDataItemProvider dataProvider = new OfferDataItemProvider();
protected OfferTimeZoneProcessor offerTimeZoneProcessorMock;
@Override
prot... | 0true | core_broadleaf-framework_src_test_java_org_broadleafcommerce_core_offer_service_processor_OrderOfferProcessorTest.java |
762 | public class ListService extends CollectionService {
public static final String SERVICE_NAME = "hz:impl:listService";
private final ConcurrentMap<String, ListContainer> containerMap = new ConcurrentHashMap<String, ListContainer>();
public ListService(NodeEngine nodeEngine) {
super(nodeEngine);
... | 0true | hazelcast_src_main_java_com_hazelcast_collection_list_ListService.java |
320 | public class KCVSConfigTest extends WritableConfigurationTest {
@Override
public WriteConfiguration getConfig() {
final KeyColumnValueStoreManager manager = new InMemoryStoreManager(Configuration.EMPTY);
try {
return new KCVSConfiguration(new BackendOperation.TransactionalProvider()... | 0true | titan-test_src_test_java_com_thinkaurelius_titan_diskstorage_configuration_KCVSConfigTest.java |
1,269 | addOperation(operations, new Runnable() {
public void run() {
IQueue q = hazelcast.getQueue("myQ");
q.isEmpty();
}
}, 1); | 0true | hazelcast_src_main_java_com_hazelcast_examples_AllTest.java |
164 | @Repository("blURLHandlerDao")
public class URlHandlerDaoImpl implements URLHandlerDao {
@PersistenceContext(unitName = "blPU")
protected EntityManager em;
@Resource(name = "blEntityConfiguration")
protected EntityConfiguration entityConfiguration;
@Override
public URLHandler findURLHandlerBy... | 0true | admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_url_dao_URlHandlerDaoImpl.java |
588 | public interface TaxResponse extends Serializable {
public boolean isErrorDetected();
public void setErrorDetected(boolean isErrorDetected);
public String getErrorCode();
public void setErrorCode(String errorCode);
public String getErrorText();
public void setErrorText(String errorText);
... | 0true | common_src_main_java_org_broadleafcommerce_common_vendor_service_message_TaxResponse.java |
281 | public class CTConnection implements Closeable {
private final TTransport transport;
private final Cassandra.Client client;
private final CTConnectionFactory.Config cfg;
public CTConnection(TTransport transport, Client client, CTConnectionFactory.Config cfg) {
this.transport = transport;
... | 0true | titan-cassandra_src_main_java_com_thinkaurelius_titan_diskstorage_cassandra_thrift_thriftpool_CTConnection.java |
3,228 | public class ReplicatedRecord<K, V>
implements IdentifiedDataSerializable {
private final AtomicLong hits = new AtomicLong();
private final AtomicLong lastAccessTime = new AtomicLong();
private K key;
private V value;
private VectorClock vectorClock;
private int latestUpdateHash;
p... | 1no label | hazelcast_src_main_java_com_hazelcast_replicatedmap_record_ReplicatedRecord.java |
23 | {
@Override
public boolean matchesSafely( LogEntry.Done done )
{
return done != null && done.getIdentifier() == identifier;
}
@Override
public void describeTo( Description description )
{
descri... | 1no label | community_kernel_src_test_java_org_neo4j_kernel_impl_transaction_xaframework_LogMatchers.java |
71 | @SuppressWarnings("unchecked")
public class OSharedContainerImpl implements OSharedContainer {
protected Map<String, Object> sharedResources = new HashMap<String, Object>();
public synchronized boolean existsResource(final String iName) {
return sharedResources.containsKey(iName);
}
public synchronized <T> T re... | 0true | commons_src_main_java_com_orientechnologies_common_concur_resource_OSharedContainerImpl.java |
3,336 | static class DoubleValues extends org.elasticsearch.index.fielddata.DoubleValues.WithOrdinals {
private final BigFloatArrayList values;
DoubleValues(BigFloatArrayList values, Ordinals.Docs ordinals) {
super(ordinals);
this.values = values;
}
... | 0true | src_main_java_org_elasticsearch_index_fielddata_plain_FloatArrayAtomicFieldData.java |
3,353 | public abstract class GeoPointDoubleArrayAtomicFieldData extends AtomicGeoPointFieldData<ScriptDocValues> {
private final int numDocs;
protected long size = -1;
public GeoPointDoubleArrayAtomicFieldData(int numDocs) {
this.numDocs = numDocs;
}
@Override
public void close() {
}
... | 0true | src_main_java_org_elasticsearch_index_fielddata_plain_GeoPointDoubleArrayAtomicFieldData.java |
1,093 | public class PermissionPolicyConfig {
private String className = null;
private IPermissionPolicy implementation = null;
private Properties properties = new Properties();
public PermissionPolicyConfig() {
super();
}
public PermissionPolicyConfig(String className) {
super();
... | 0true | hazelcast_src_main_java_com_hazelcast_config_PermissionPolicyConfig.java |
1,072 | indexAction.execute(upsertRequest, new ActionListener<IndexResponse>() {
@Override
public void onResponse(IndexResponse response) {
UpdateResponse update = new UpdateResponse(response.getIndex(), response.getType(), response.getId(), respon... | 1no label | src_main_java_org_elasticsearch_action_update_TransportUpdateAction.java |
299 | {
@Override
public NeoStoreRecord newUnused( Long key, Void additionalData )
{
throw new UnsupportedOperationException();
}
@Override
public NeoStoreRecord load( Long key, Void additionalData... | 0true | community_kernel_src_main_java_org_neo4j_kernel_impl_nioneo_xa_NeoStoreTransaction.java |
2,849 | public class CzechStemTokenFilterFactory extends AbstractTokenFilterFactory {
@Inject
public CzechStemTokenFilterFactory(Index index, @IndexSettings Settings indexSettings, @Assisted String name, @Assisted Settings settings) {
super(index, indexSettings, name, settings);
}
@Override
public... | 0true | src_main_java_org_elasticsearch_index_analysis_CzechStemTokenFilterFactory.java |
1,233 | @Service("blPricingService")
public class PricingServiceImpl implements PricingService {
@Resource(name="blPricingWorkflow")
protected SequenceProcessor pricingWorkflow;
public Order executePricing(Order order) throws PricingException {
try {
PricingContext context = (PricingContext) p... | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_pricing_service_PricingServiceImpl.java |
227 | public interface ModuleConfigurationDao {
public ModuleConfiguration readById(Long id);
public ModuleConfiguration save(ModuleConfiguration config);
public void delete(ModuleConfiguration config);
public List<ModuleConfiguration> readAllByType(ModuleConfigurationType type);
public List<ModuleCo... | 0true | common_src_main_java_org_broadleafcommerce_common_config_dao_ModuleConfigurationDao.java |
593 | public class OIndexDefinitionFactory {
private static final Pattern FILED_NAME_PATTERN = Pattern.compile("\\s+");
/**
* Creates an instance of {@link OIndexDefinition} for automatic index.
*
* @param oClass
* class which will be indexed
* @param fieldNames
* list of properties ... | 0true | core_src_main_java_com_orientechnologies_orient_core_index_OIndexDefinitionFactory.java |
227 | public class ExpirationCacheTest extends KCVSCacheTest {
public static final String METRICS_STRING = "metrics";
public static final long CACHE_SIZE = 1024*1024*48; //48 MB
@Override
public KCVSCache getCache(KeyColumnValueStore store) {
return getCache(store,new StandardDuration(1,TimeUnit.DAY... | 0true | titan-test_src_test_java_com_thinkaurelius_titan_diskstorage_cache_ExpirationCacheTest.java |
5,133 | public abstract class InternalAggregation implements Aggregation, ToXContent, Streamable {
/**
* The aggregation type that holds all the string types that are associated with an aggregation:
* <ul>
* <li>name - used as the parser type</li>
* <li>stream - used as the stream type</li>
... | 1no label | src_main_java_org_elasticsearch_search_aggregations_InternalAggregation.java |
2,378 | SINGLE {
@Override
public long toSingles(long size) {
return size;
}
@Override
public long toKilo(long size) {
return size / (C1 / C0);
}
@Override
public long toMega(long size) {
return size / (C2 / C0);
}... | 0true | src_main_java_org_elasticsearch_common_unit_SizeUnit.java |
1,924 | public abstract class AbstractTxnMapRequest extends BaseTransactionRequest {
String name;
TxnMapRequestType requestType;
Data key;
Data value;
Data newValue;
long ttl = -1;
public AbstractTxnMapRequest() {
}
public AbstractTxnMapRequest(String name, TxnMapRequestType requestType) ... | 0true | hazelcast_src_main_java_com_hazelcast_map_client_AbstractTxnMapRequest.java |
1,453 | return new MessageListener<Object>() {
public void onMessage(final Message<Object> message) {
final Timestamp ts = (Timestamp) message.getMessageObject();
final Object key = ts.getKey();
for (;;) {
final Value value = cache.get(key... | 1no label | hazelcast-hibernate_hazelcast-hibernate3_src_main_java_com_hazelcast_hibernate_local_TimestampsRegionCache.java |
232 | XPostingsHighlighter highlighter = new XPostingsHighlighter() {
@Override
protected PassageFormatter getFormatter(String field) {
return new PassageFormatter() {
PassageFormatter defaultFormatter = new DefaultPassageFormatter();
@O... | 0true | src_test_java_org_apache_lucene_search_postingshighlight_XPostingsHighlighterTests.java |
279 | public interface EmailServiceProducer {
public void send(@SuppressWarnings("rawtypes") final HashMap props);
} | 0true | common_src_main_java_org_broadleafcommerce_common_email_service_message_EmailServiceProducer.java |
565 | public class PutMappingResponse extends AcknowledgedResponse {
PutMappingResponse() {
}
PutMappingResponse(boolean acknowledged) {
super(acknowledged);
}
@Override
public void readFrom(StreamInput in) throws IOException {
super.readFrom(in);
readAcknowledged(in);
... | 0true | src_main_java_org_elasticsearch_action_admin_indices_mapping_put_PutMappingResponse.java |
2,612 | private class SendPingRequest implements Runnable {
private final DiscoveryNode node;
private SendPingRequest(DiscoveryNode node) {
this.node = node;
}
@Override
public void run() {
if (!running) {
return;
}
t... | 1no label | src_main_java_org_elasticsearch_discovery_zen_fd_NodesFaultDetection.java |
2,735 | public class LocalGatewayShardsState extends AbstractComponent implements ClusterStateListener {
private final NodeEnvironment nodeEnv;
private final LocalGatewayMetaState metaState;
private volatile Map<ShardId, ShardStateInfo> currentState = Maps.newHashMap();
@Inject
public LocalGatewayShardsS... | 0true | src_main_java_org_elasticsearch_gateway_local_state_shards_LocalGatewayShardsState.java |
201 | public class OEngineRemote extends OEngineAbstract {
public static final String NAME = "remote";
private static final Map<String, OStorageRemote> sharedStorages = new ConcurrentHashMap<String, OStorageRemote>();
public OEngineRemote() {
}
public OStorage createStorage(final S... | 0true | client_src_main_java_com_orientechnologies_orient_client_remote_OEngineRemote.java |
1,952 | public class MapRemoveEntryListenerRequest extends BaseClientRemoveListenerRequest {
public MapRemoveEntryListenerRequest() {
}
public MapRemoveEntryListenerRequest(String name, String registrationId) {
super(name, registrationId);
}
public Object call() throws Exception {
final ... | 0true | hazelcast_src_main_java_com_hazelcast_map_client_MapRemoveEntryListenerRequest.java |
361 | public class FilterParameter {
protected String name;
protected String type;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getType() {
return type;
}
public void setType(String type) {
... | 0true | common_src_main_java_org_broadleafcommerce_common_filter_FilterParameter.java |
881 | public class TransportSearchScrollQueryAndFetchAction extends AbstractComponent {
private final ThreadPool threadPool;
private final ClusterService clusterService;
private final SearchServiceTransportAction searchService;
private final SearchPhaseController searchPhaseController;
@Inject
pu... | 1no label | src_main_java_org_elasticsearch_action_search_type_TransportSearchScrollQueryAndFetchAction.java |
2,575 | public class NodeIOService implements IOService {
private final Node node;
private final NodeEngineImpl nodeEngine;
public NodeIOService(Node node) {
this.node = node;
this.nodeEngine = node.nodeEngine;
}
public boolean isActive() {
return node.isActive();
}
publi... | 1no label | hazelcast_src_main_java_com_hazelcast_nio_NodeIOService.java |
95 | class TemplateVisitor extends Visitor {
Tree.StringTemplate result;
@Override
public void visit(Tree.StringTemplate that) {
if (that.getStartIndex()<=node.getStartIndex() &&
that.getStopIndex()>=node.getStopIndex()) {
re... | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_correct_ConvertToConcatenationProposal.java |
342 | static class TestMapStore extends MapStoreAdapter<Long, String> {
public volatile CountDownLatch latch;
@Override
public void store(Long key, String value) {
if (latch != null) {
latch.countDown();
}
}
@Override
public void s... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_map_ClientMapTest.java |
311 | return new Predicate<Integer>() {
@Override
public boolean apply(@Nullable Integer num) {
return num!=null && num>0;
}
}; | 0true | titan-core_src_main_java_com_thinkaurelius_titan_diskstorage_configuration_ConfigOption.java |
161 | class RenameProposal implements ICompletionProposal,
ICompletionProposalExtension6 {
private final Declaration dec;
private final CeylonEditor editor;
RenameProposal(Declaration dec,
CeylonEditor editor) {
this.dec = dec;
this.editor = editor;
}
@Overr... | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_correct_RenameProposal.java |
2,613 | private static class DefaultStringCreator implements UTFEncoderDecoder.StringCreator {
@Override
public String buildString(char[] chars) {
return new String(chars);
}
} | 1no label | hazelcast_src_main_java_com_hazelcast_nio_UTFEncoderDecoder.java |
143 | public class GetDistributedObjectsRequest extends ClientRequest {
@Override
void process() throws Exception {
ClientEndpoint endpoint = getEndpoint();
Collection<DistributedObject> distributedObjects = clientEngine.getProxyService().getAllDistributedObjects();
SerializationService serial... | 0true | hazelcast_src_main_java_com_hazelcast_client_GetDistributedObjectsRequest.java |
91 | public enum Geo implements TitanPredicate {
/**
* Whether the intersection between two geographic regions is non-empty
*/
INTERSECT {
@Override
public boolean evaluate(Object value, Object condition) {
Preconditions.checkArgument(condition instanceof Geoshape);
... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_core_attribute_Geo.java |
187 | public class KeyColumn {
public final int key;
public final int column;
public KeyColumn(int key, int column) {
this.key = key;
this.column = column;
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(key).append(column).toHashCode();
}
pu... | 0true | titan-test_src_main_java_com_thinkaurelius_titan_diskstorage_KeyColumn.java |
211 | public class OStorageRemoteSession {
public boolean commandExecuting = false;
public Integer sessionId = -1;
public String serverURL = null;
} | 0true | client_src_main_java_com_orientechnologies_orient_client_remote_OStorageRemoteThreadLocal.java |
4,655 | public class PercolateContext extends SearchContext {
public boolean limit;
public int size;
public boolean doSort;
public byte percolatorTypeId;
private boolean trackScores;
private final PercolateShardRequest request;
private final SearchShardTarget searchShardTarget;
private final I... | 1no label | src_main_java_org_elasticsearch_percolator_PercolateContext.java |
679 | public static class Order {
public static final int General = 1000;
public static final int ActiveDateRange = 2000;
public static final int Advanced = 1000;
} | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_catalog_domain_CategoryImpl.java |
2,515 | public class JsonXContent implements XContent {
public static XContentBuilder contentBuilder() throws IOException {
return XContentBuilder.builder(jsonXContent);
}
private final static JsonFactory jsonFactory;
public final static JsonXContent jsonXContent;
static {
jsonFactory = n... | 0true | src_main_java_org_elasticsearch_common_xcontent_json_JsonXContent.java |
5,100 | class SearchFreeContextRequest extends TransportRequest {
private long id;
SearchFreeContextRequest() {
}
SearchFreeContextRequest(TransportRequest request, long id) {
super(request);
this.id = id;
}
public long id() {
return th... | 1no label | src_main_java_org_elasticsearch_search_action_SearchServiceTransportAction.java |
113 | (new java.security.PrivilegedExceptionAction<sun.misc.Unsafe>() {
public sun.misc.Unsafe run() throws Exception {
Class<sun.misc.Unsafe> k = sun.misc.Unsafe.class;
for (java.lang.reflect.Field f : k.getDeclaredFields()) {
f.setA... | 0true | src_main_java_jsr166e_ForkJoinPool.java |
127 | {
@Override
public boolean accept( LogEntry item )
{
return !(item instanceof LogEntry.Done);
}
}; | 0true | community_kernel_src_test_java_org_neo4j_kernel_impl_transaction_xaframework_TestApplyTransactions.java |
302 | {
@Override
public PropertyRecord newUnused( Long key, PrimitiveRecord additionalData )
{
PropertyRecord record = new PropertyRecord( key );
setOwner( record, additionalData );
return record;
... | 0true | community_kernel_src_main_java_org_neo4j_kernel_impl_nioneo_xa_NeoStoreTransaction.java |
948 | public class OSchedulerTrigger extends ODocumentHookAbstract {
public OSchedulerTrigger() {
setIncludeClasses(OScheduler.CLASSNAME);
}
public DISTRIBUTED_EXECUTION_MODE getDistributedExecutionMode() {
return DISTRIBUTED_EXECUTION_MODE.TARGET_NODE;
}
@Override
public RESULT onRecordBeforeCreate(fin... | 0true | core_src_main_java_com_orientechnologies_orient_core_schedule_OSchedulerTrigger.java |
573 | return new Iterator<ODocument>() {
public boolean hasNext() {
return iterator.hasNext();
}
public ODocument next() {
return iterator.next().document;
}
public void remove() {
iterator.remove();
}
}; | 0true | core_src_main_java_com_orientechnologies_orient_core_index_ODocumentFieldsHashSet.java |
227 | @Documented
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
/**
* Tells to OrientDB to call the method AFTER the record is marshalled and written to the database.
* Applies only to the entity Objects reachable by the OrientDB engine after have registered them.
*/
public @interface OAfterSerialization... | 0true | core_src_main_java_com_orientechnologies_orient_core_annotation_OAfterSerialization.java |
1,584 | public final class Logger {
private static volatile LoggerFactory loggerFactory;
private static final Object FACTORY_LOCK = new Object();
private Logger() {
}
public static ILogger getLogger(Class clazz) {
return getLogger(clazz.getName());
}
public static ILogger getLogger(Strin... | 0true | hazelcast_src_main_java_com_hazelcast_logging_Logger.java |
3,360 | public class GeoPointDoubleArrayIndexFieldData extends AbstractGeoPointIndexFieldData {
private final CircuitBreakerService breakerService;
public static class Builder implements IndexFieldData.Builder {
@Override
public IndexFieldData<?> build(Index index, @IndexSettings Settings indexSettin... | 0true | src_main_java_org_elasticsearch_index_fielddata_plain_GeoPointDoubleArrayIndexFieldData.java |
907 | public class LegacyOfferTest extends LegacyCommonSetupBaseTest {
@Resource
private OfferService offerService;
@Resource
private CustomerService customerService;
@Resource(name = "blOrderService")
private OrderService orderService;
@Resource
private OfferDao offerDao;
@Resource
... | 0true | integration_src_test_java_org_broadleafcommerce_core_offer_service_legacy_LegacyOfferTest.java |
1,617 | public class MapConfigAdapter implements DataSerializable {
private MapConfig config;
public MapConfigAdapter() {
}
public MapConfigAdapter(MapConfig mapConfig) {
this.config = mapConfig;
}
@Override
public void readData(ObjectDataInput in) throws IOException {
config = n... | 0true | hazelcast_src_main_java_com_hazelcast_management_MapConfigAdapter.java |
33 | @Service("blProductFieldService")
public class ProductFieldServiceImpl extends AbstractRuleBuilderFieldService {
@Override
public void init() {
fields.add(new FieldData.Builder()
.label("rule_productUrl")
.name("url")
.operators("blcOperators_Text")
... | 0true | admin_broadleaf-admin-module_src_main_java_org_broadleafcommerce_admin_web_rulebuilder_service_ProductFieldServiceImpl.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 |
28 | public abstract class AbstractCassandraBlueprintsTest extends TitanBlueprintsTest {
@Override
public void beforeSuite() {
//Do nothing
}
@Override
public TitanGraph openGraph(String uid) {
return TitanFactory.open(getGraphConfig());
}
@Override
public boolean supportsM... | 0true | titan-cassandra_src_test_java_com_thinkaurelius_titan_blueprints_AbstractCassandraBlueprintsTest.java |
4,443 | public class IndicesFieldDataCache extends AbstractComponent implements RemovalListener<IndicesFieldDataCache.Key, AtomicFieldData> {
Cache<Key, AtomicFieldData> cache;
private volatile String size;
private volatile long sizeInBytes;
private volatile TimeValue expire;
@Inject
public IndicesF... | 1no label | src_main_java_org_elasticsearch_indices_fielddata_cache_IndicesFieldDataCache.java |
1,651 | public class Classes {
/**
* The package separator character '.'
*/
private static final char PACKAGE_SEPARATOR = '.';
/**
* Return the default ClassLoader to use: typically the thread context
* ClassLoader, if available; the ClassLoader that loaded the ClassUtils
* class will be ... | 0true | src_main_java_org_elasticsearch_common_Classes.java |
98 | @SuppressWarnings("serial")
static final class SearchMappingsTask<K,V,U>
extends BulkTask<K,V,U> {
final BiFun<? super K, ? super V, ? extends U> searchFunction;
final AtomicReference<U> result;
SearchMappingsTask
(BulkTask<K,V,?> p, int b, int i, int f, Node<K,V>[] t... | 0true | src_main_java_jsr166e_ConcurrentHashMapV8.java |
726 | @Entity
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name="BLC_PRODUCT_UP_SALE")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE, region="blStandardElements")
public class UpSaleProductImpl implements RelatedProduct {
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue(genera... | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_catalog_domain_UpSaleProductImpl.java |
646 | public class OSimpleKeyIndexDefinition extends OAbstractIndexDefinition {
private OType[] keyTypes;
public OSimpleKeyIndexDefinition(final OType... keyTypes) {
this.keyTypes = keyTypes;
}
public OSimpleKeyIndexDefinition() {
}
public List<String> getFields() {
return Collections.emptyList();
}
... | 0true | core_src_main_java_com_orientechnologies_orient_core_index_OSimpleKeyIndexDefinition.java |
1,785 | public abstract class ShapeBuilder implements ToXContent {
protected static final ESLogger LOGGER = ESLoggerFactory.getLogger(ShapeBuilder.class.getName());
private static final boolean DEBUG;
static {
// if asserts are enabled we run the debug statements even if they are not logged
// to ... | 1no label | src_main_java_org_elasticsearch_common_geo_builders_ShapeBuilder.java |
3,257 | public class ListPermission extends InstancePermission {
private static final int ADD = 0x4;
private static final int READ = 0x8;
private static final int REMOVE = 0x16;
private static final int LISTEN = 0x32;
private static final int ALL = ADD | REMOVE | READ | CREATE | DESTROY | LISTEN;
publ... | 1no label | hazelcast_src_main_java_com_hazelcast_security_permission_ListPermission.java |
478 | public class ProtoChannelBeanPostProcessor implements BeanPostProcessor, Ordered {
Log LOG = LogFactory.getLog(ProtoChannelBeanPostProcessor.class);
protected List<ChannelProcessor> channelProcessorOverrides;
@Override
public Object postProcessAfterInitialization(Object bean, String beanName)... | 0true | common_src_main_java_org_broadleafcommerce_common_security_channel_ProtoChannelBeanPostProcessor.java |
1,314 | public class SearchFacetResultDTO {
protected SearchFacet facet;
protected String value;
protected BigDecimal minValue;
protected BigDecimal maxValue;
protected Integer quantity;
protected boolean active;
public SearchFacet getFacet() {
return facet;
... | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_search_domain_SearchFacetResultDTO.java |
55 | public class TitanConfigurationException extends TitanException {
private static final long serialVersionUID = 4056436257763972423L;
/**
* @param msg Exception message
*/
public TitanConfigurationException(String msg) {
super(msg);
}
/**
* @param msg Exception message
... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_core_TitanConfigurationException.java |
3,050 | return new FieldsConsumer() {
@Override
public void close() throws IOException {
fieldsConsumer.close();
}
@Override
public TermsConsumer addField(FieldInfo field) throws IOException {
if (UidFieldMapper.NAME.equals(fi... | 0true | src_main_java_org_elasticsearch_index_codec_postingsformat_Elasticsearch090PostingsFormat.java |
728 | public interface CatalogService {
public Product saveProduct(Product product);
public Product findProductById(Long productId);
public List<Product> findProductsByName(String searchName);
/**
* Find a subset of {@code Product} instances whose name starts with
* or is equal to the passed in ... | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_catalog_service_CatalogService.java |
1,444 | public static class EdgeMap extends Mapper<NullWritable, FaunusVertex, NullWritable, FaunusVertex> {
private TitanGraph graph;
private boolean trackState;
private ModifiableHadoopConfiguration faunusConf;
private LoaderScriptWrapper loaderScript;
@Override
public vo... | 1no label | titan-hadoop-parent_titan-hadoop-core_src_main_java_com_thinkaurelius_titan_hadoop_formats_util_TitanGraphOutputMapReduce.java |
563 | public class FileSystemApplicationContextTask extends Task {
private String path;
public String getPath() {
return path;
}
public void setPath(String path) {
this.path = path;
}
} | 0true | common_src_main_java_org_broadleafcommerce_common_util_sql_FileSystemApplicationContextTask.java |
2,687 | public class MorphingPortableReader extends DefaultPortableReader {
public MorphingPortableReader(PortableSerializer serializer, BufferObjectDataInput in, ClassDefinition cd) {
super(serializer, in, cd);
}
@Override
public int readInt(String fieldName) throws IOException {
FieldDefini... | 1no label | hazelcast_src_main_java_com_hazelcast_nio_serialization_MorphingPortableReader.java |
1,953 | public class MapRemoveIfSameRequest extends KeyBasedClientRequest implements Portable, SecureRequest {
protected String name;
protected Data key;
protected Data value;
protected long threadId;
public MapRemoveIfSameRequest() {
}
public MapRemoveIfSameRequest(String name, Data key, Data va... | 0true | hazelcast_src_main_java_com_hazelcast_map_client_MapRemoveIfSameRequest.java |
1,941 | public final class Errors implements Serializable {
/**
* The root errors object. Used to access the list of error messages.
*/
private final Errors root;
/**
* The parent errors object. Used to obtain the chain of source objects.
*/
private final Errors parent;
/**
* The... | 0true | src_main_java_org_elasticsearch_common_inject_internal_Errors.java |
1,943 | public class MapGetRequest extends KeyBasedClientRequest implements Portable, RetryableRequest, SecureRequest {
private String name;
private Data key;
private transient long startTime;
public MapGetRequest() {
}
public MapGetRequest(String name, Data key) {
this.name = name;
t... | 1no label | hazelcast_src_main_java_com_hazelcast_map_client_MapGetRequest.java |
659 | public class ORemoteIndexEngine implements OIndexEngine {
@Override
public void init() {
}
@Override
public void flush() {
}
@Override
public void create(String indexName, OIndexDefinition indexDefinition, String clusterIndexName,
OStreamSerializer valueSerializer, boolean isAutomatic) {
}
... | 1no label | core_src_main_java_com_orientechnologies_orient_core_index_engine_ORemoteIndexEngine.java |
313 | final class ToggleFoldingRunner implements IPartListener2 {
/**
*
*/
private final CeylonEditor editor;
/**
* @param ceylonEditor
*/
ToggleFoldingRunner(CeylonEditor ceylonEditor) {
editor = ceylonEditor;
}
/**
* The workbench page we registered the part listen... | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_editor_ToggleFoldingRunner.java |
276 | public class IntegrityValidator
{
private final NeoStore neoStore;
private final IndexingService indexes;
public IntegrityValidator( NeoStore neoStore, IndexingService indexes )
{
this.neoStore = neoStore;
this.indexes = indexes;
}
public void validateNodeRecord( NodeRecord rec... | 0true | community_kernel_src_main_java_org_neo4j_kernel_impl_nioneo_xa_IntegrityValidator.java |
2,317 | static class PrePostTimeZoneRounding extends TimeZoneRounding {
final static byte ID = 8;
private TimeZoneRounding timeZoneRounding;
private long preOffset;
private long postOffset;
PrePostTimeZoneRounding() { // for serialization
}
PrePostTimeZoneRoundin... | 0true | src_main_java_org_elasticsearch_common_rounding_TimeZoneRounding.java |
500 | @Entity
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "BLC_SITE")
@Cache(usage= CacheConcurrencyStrategy.NONSTRICT_READ_WRITE, region="blCMSElements")
@AdminPresentationClass(friendlyName = "baseSite")
@SQLDelete(sql="UPDATE BLC_SITE SET ARCHIVED = 'Y' WHERE SITE_ID = ?")
public class SiteImpl implement... | 0true | common_src_main_java_org_broadleafcommerce_common_site_domain_SiteImpl.java |
667 | public interface Category extends Serializable {
/**
* Gets the primary key.
*
* @return the primary key
*/
@Nullable
public Long getId();
/**
* Sets the primary key.
*
* @param id the new primary key
*/
public void setId(@Nullable Long id);
/**
... | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_catalog_domain_Category.java |
2,033 | public abstract class AbstractMapOperation extends AbstractNamedOperation {
protected transient MapService mapService;
protected transient MapContainer mapContainer;
public AbstractMapOperation() {
}
public AbstractMapOperation(String name) {
super();
this.name = name;
}
... | 0true | hazelcast_src_main_java_com_hazelcast_map_operation_AbstractMapOperation.java |
2,978 | public class DocSetCacheModule extends AbstractModule {
private final Settings settings;
public DocSetCacheModule(Settings settings) {
this.settings = settings;
}
@Override
protected void configure() {
bind(DocSetCache.class)
.to(settings.getAsClass("index.cache.do... | 0true | src_main_java_org_elasticsearch_index_cache_docset_DocSetCacheModule.java |
28 | public class GetCommandProcessor extends MemcacheCommandProcessor<GetCommand> {
final boolean single;
private final ILogger logger;
public GetCommandProcessor(TextCommandService textCommandService, boolean single) {
super(textCommandService);
this.single = single;
logger = textComma... | 0true | hazelcast_src_main_java_com_hazelcast_ascii_memcache_GetCommandProcessor.java |
3,223 | public static abstract class WithOrdinals extends LongValues {
protected final Docs ordinals;
protected WithOrdinals(Ordinals.Docs ordinals) {
super(ordinals.isMultiValued());
this.ordinals = ordinals;
}
/**
* Returns the associated ordinals instan... | 0true | src_main_java_org_elasticsearch_index_fielddata_LongValues.java |
312 | return new Predicate<Integer>() {
@Override
public boolean apply(@Nullable Integer num) {
return num!=null && num>=0;
}
}; | 0true | titan-core_src_main_java_com_thinkaurelius_titan_diskstorage_configuration_ConfigOption.java |
1,637 | @Component("blAdornedTargetCollectionFieldMetadataProvider")
@Scope("prototype")
public class AdornedTargetCollectionFieldMetadataProvider extends AdvancedCollectionFieldMetadataProvider {
private static final Log LOG = LogFactory.getLog(AdornedTargetCollectionFieldMetadataProvider.class);
protected boolean c... | 0true | admin_broadleaf-open-admin-platform_src_main_java_org_broadleafcommerce_openadmin_server_dao_provider_metadata_AdornedTargetCollectionFieldMetadataProvider.java |
1,911 | public class SimpleEntryView<K,V> implements EntryView<K,V>, IdentifiedDataSerializable {
private K key;
private V value;
private long cost;
private long creationTime;
private long expirationTime;
private long hits;
private long lastAccessTime;
private long lastStoredTime;
private l... | 0true | hazelcast_src_main_java_com_hazelcast_map_SimpleEntryView.java |
3,746 | public class SessionListener implements HttpSessionListener {
public void sessionCreated(HttpSessionEvent httpSessionEvent) {
}
public void sessionDestroyed(HttpSessionEvent httpSessionEvent) {
WebFilter.destroyOriginalSession(httpSessionEvent.getSession());
}
} | 1no label | hazelcast-wm_src_main_java_com_hazelcast_web_SessionListener.java |
1,624 | final TimerTask timerTask = new TimerTask() {
@Override
public void run() {
OLogManager.instance().info(this, "[OAutomaticBackup] Scanning databases to backup...");
int ok = 0, errors = 0;
final Map<String, String> databaseNames = serverInstance.getAvailableStorageNames();
... | 0true | server_src_main_java_com_orientechnologies_orient_server_handler_OAutomaticBackup.java |
250 | public class CustomFieldQuery extends FieldQuery {
private static Field multiTermQueryWrapperFilterQueryField;
static {
try {
multiTermQueryWrapperFilterQueryField = MultiTermQueryWrapperFilter.class.getDeclaredField("query");
multiTermQueryWrapperFilterQueryField.setAccessible... | 1no label | src_main_java_org_apache_lucene_search_vectorhighlight_CustomFieldQuery.java |
2,925 | public static final class NullObject implements Comparable {
@Override
public int compareTo(Object o) {
if (o == this || o instanceof NullObject) {
return 0;
}
return -1;
}
@Override
public int hashCode() {
retu... | 1no label | hazelcast_src_main_java_com_hazelcast_query_impl_IndexImpl.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.