Unnamed: 0 int64 0 6.45k | func stringlengths 29 253k | target class label 2
classes | project stringlengths 36 167 |
|---|---|---|---|
418 | public class RestoreSnapshotAction extends ClusterAction<RestoreSnapshotRequest, RestoreSnapshotResponse, RestoreSnapshotRequestBuilder> {
public static final RestoreSnapshotAction INSTANCE = new RestoreSnapshotAction();
public static final String NAME = "cluster/snapshot/restore";
private RestoreSnapshot... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_snapshots_restore_RestoreSnapshotAction.java |
3,126 | static class EngineSearcher implements Searcher {
private final String source;
private final IndexSearcher searcher;
private final SearcherManager manager;
private EngineSearcher(String source, IndexSearcher searcher, SearcherManager manager) {
this.source = source;
... | 1no label | src_main_java_org_elasticsearch_index_engine_internal_InternalEngine.java |
1,312 | public interface SearchFacetRange {
/**
* Returns the internal id
*
* @return the internal id
*/
public Long getId();
/**
* Sets the internal id
*
* @param id
*/
public void setId(Long id);
/**
* Gets the minimum value for this SearchFacetRange
... | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_search_domain_SearchFacetRange.java |
53 | @SuppressWarnings("serial")
static final class ForEachEntryTask<K,V>
extends BulkTask<K,V,Void> {
final Action<? super Entry<K,V>> action;
ForEachEntryTask
(BulkTask<K,V,?> p, int b, int i, int f, Node<K,V>[] t,
Action<? super Entry<K,V>> action) {
su... | 0true | src_main_java_jsr166e_ConcurrentHashMapV8.java |
235 | public class CassandraTransaction extends AbstractStoreTransaction {
private static final Logger log = LoggerFactory.getLogger(CassandraTransaction.class);
private final CLevel read;
private final CLevel write;
public CassandraTransaction(BaseTransactionConfig c) {
super(c);
read = C... | 0true | titan-cassandra_src_main_java_com_thinkaurelius_titan_diskstorage_cassandra_CassandraTransaction.java |
740 | public class ListAddAllRequest extends CollectionAddAllRequest {
private int index;
public ListAddAllRequest() {
}
public ListAddAllRequest(String name, List<Data> valueList, int index) {
super(name, valueList);
this.index = index;
}
@Override
protected Operation prepareO... | 0true | hazelcast_src_main_java_com_hazelcast_collection_client_ListAddAllRequest.java |
317 | public class ImportProcessor {
private static final Log LOG = LogFactory.getLog(ImportProcessor.class);
private static final String IMPORT_PATH = "/beans/import";
protected ApplicationContext applicationContext;
protected DocumentBuilder builder;
protected XPath xPath;
public ImportProcessor(... | 0true | common_src_main_java_org_broadleafcommerce_common_extensibility_context_merge_ImportProcessor.java |
3,497 | public interface InternalMapper {
} | 0true | src_main_java_org_elasticsearch_index_mapper_InternalMapper.java |
870 | public interface ShippingOfferService {
public void reviewOffers(Order order) throws PricingException;
} | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_offer_service_ShippingOfferService.java |
1,911 | internalConvertToTypes(new AbstractMatcher<TypeLiteral<?>>() {
public boolean matches(TypeLiteral<?> typeLiteral) {
Type type = typeLiteral.getType();
if (!(type instanceof Class)) {
return false;
}
Class<?> clazz = ... | 0true | src_main_java_org_elasticsearch_common_inject_TypeConverterBindingProcessor.java |
221 | private static final DocsAndPositionsEnum EMPTY = new DocsAndPositionsEnum() {
@Override
public int nextPosition() throws IOException { return 0; }
@Override
public int startOffset() throws IOException { return Integer.MAX_VALUE; }
@Override
public int endOffset() ... | 0true | src_main_java_org_apache_lucene_search_postingshighlight_XPostingsHighlighter.java |
1,111 | public class SetConfig extends CollectionConfig<SetConfig> {
private SetConfigReadOnly readOnly;
public SetConfig() {
}
public SetConfig(SetConfig config) {
super(config);
}
public SetConfigReadOnly getAsReadOnly() {
if (readOnly == null){
readOnly = new SetConfig... | 0true | hazelcast_src_main_java_com_hazelcast_config_SetConfig.java |
240 | assertTrueEventually(new AssertTask() {
public void run() throws Exception {
assertEquals(1, map.size());
}
}); | 0true | hazelcast-client_src_test_java_com_hazelcast_client_executor_ClientExecutorServiceSubmitTest.java |
696 | public class BulkRequest extends ActionRequest<BulkRequest> {
private static final int REQUEST_OVERHEAD = 50;
final List<ActionRequest> requests = Lists.newArrayList();
List<Object> payloads = null;
protected TimeValue timeout = BulkShardRequest.DEFAULT_TIMEOUT;
private ReplicationType replicatio... | 1no label | src_main_java_org_elasticsearch_action_bulk_BulkRequest.java |
528 | ex.execute(new Runnable() {
public void run() {
multiMap.put(key, "value");
final TransactionContext context = client.newTransactionContext();
try {
context.beginTransaction();
final ... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_txn_ClientTxnMultiMapTest.java |
1,071 | createIndexAction.execute(new CreateIndexRequest(request.index()).cause("auto(update api)").masterNodeTimeout(request.timeout()), new ActionListener<CreateIndexResponse>() {
@Override
public void onResponse(CreateIndexResponse result) {
innerExecute(reques... | 0true | src_main_java_org_elasticsearch_action_update_TransportUpdateAction.java |
3,250 | public class GeoDistanceComparator extends NumberComparatorBase<Double> {
protected final IndexGeoPointFieldData<?> indexFieldData;
protected final double lat;
protected final double lon;
protected final DistanceUnit unit;
protected final GeoDistance geoDistance;
protected final GeoDistance.Fi... | 1no label | src_main_java_org_elasticsearch_index_fielddata_fieldcomparator_GeoDistanceComparator.java |
21 | }), new Function<ByteEntry, Vertex>() {
@Override
public Vertex apply(@Nullable ByteEntry entry) {
return new ByteVertex(entry.key.getLong(8), tx);
}
}); | 0true | titan-test_src_main_java_com_thinkaurelius_titan_TestByteBuffer.java |
1,475 | public class RoutingNode implements Iterable<MutableShardRouting> {
private final String nodeId;
private final DiscoveryNode node;
private final List<MutableShardRouting> shards;
public RoutingNode(String nodeId, DiscoveryNode node) {
this(nodeId, node, new ArrayList<MutableShardRouting>());... | 0true | src_main_java_org_elasticsearch_cluster_routing_RoutingNode.java |
464 | public class CeylonNavigatorLabelProvider extends
CeylonLabelProvider implements ICommonLabelProvider {
ICommonContentExtensionSite extensionSite;
public CeylonNavigatorLabelProvider() {
super(true); // small images
}
@Override
public StyledString getStyledText(Object element)... | 1no label | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_navigator_CeylonNavigatorLabelProvider.java |
220 | Arrays.sort(passages, new Comparator<Passage>() {
@Override
public int compare(Passage left, Passage right) {
return left.startOffset - right.startOffset;
}
}); | 0true | src_main_java_org_apache_lucene_search_postingshighlight_XPostingsHighlighter.java |
234 | private class TransactionFactory extends XaTransactionFactory
{
@Override
public XaTransaction create( long lastCommittedTxWhenTransactionStarted, TransactionState state )
{
return new NeoStoreTransaction( lastCommittedTxWhenTransactionStarted, getLogicalLog(), state,
... | 0true | community_kernel_src_main_java_org_neo4j_kernel_impl_nioneo_xa_NeoStoreXaDataSource.java |
6,109 | public class SnapshotsService extends AbstractComponent implements ClusterStateListener {
private final ClusterService clusterService;
private final RepositoriesService repositoriesService;
private final ThreadPool threadPool;
private final IndicesService indicesService;
private final Transport... | 1no label | src_main_java_org_elasticsearch_snapshots_SnapshotsService.java |
957 | public interface OSerializableStream extends Serializable {
/**
* Marshalls the object. Transforms the current object in byte[] form to being stored or transferred over the network.
*
* @return The byte array representation of the object
* @see #fromStream(byte[])
* @throws OSerializationException
* ... | 0true | core_src_main_java_com_orientechnologies_orient_core_serialization_OSerializableStream.java |
1,491 | @SuppressWarnings({ "unchecked" })
public class OObjectLazyListIterator<TYPE> implements Iterator<TYPE>, Serializable {
private static final long serialVersionUID = 3714399452499077452L;
private final ProxyObject sourceRecord;
private final OObjectLazyList<TYPE> list;
private String ... | 0true | object_src_main_java_com_orientechnologies_orient_object_db_OObjectLazyListIterator.java |
893 | public class CountDownOperation extends BackupAwareCountDownLatchOperation implements Notifier, IdentifiedDataSerializable {
private boolean shouldNotify;
public CountDownOperation() {
}
public CountDownOperation(String name) {
super(name);
}
@Override
public void run() throws Ex... | 0true | hazelcast_src_main_java_com_hazelcast_concurrent_countdownlatch_operations_CountDownOperation.java |
2,889 | public final class Predicates {
//we don't want instances.
private Predicates() {
}
public static Predicate instanceOf(final Class klass) {
return new InstanceOfPredicate(klass);
}
private static Comparable readAttribute(Map.Entry entry, String attribute) {
QueryableEntry quer... | 1no label | hazelcast_src_main_java_com_hazelcast_query_Predicates.java |
1,556 | @XmlRootElement(name = "orient-server")
public class OServerConfiguration {
public static final String FILE_NAME = "server-config.xml";
// private static final String HEADER = "OrientDB Server configuration";
@XmlTransient
public String location;
@XmlEleme... | 0true | server_src_main_java_com_orientechnologies_orient_server_config_OServerConfiguration.java |
2,626 | public static class PingResponse implements Streamable {
public static PingResponse[] EMPTY = new PingResponse[0];
private ClusterName clusterName;
private DiscoveryNode target;
private DiscoveryNode master;
private PingResponse() {
}
public Ping... | 1no label | src_main_java_org_elasticsearch_discovery_zen_ping_ZenPing.java |
1,540 | final Comparator<MutableShardRouting> comparator = new Comparator<MutableShardRouting>() {
@Override
public int compare(MutableShardRouting o1,
MutableShardRouting o2) {
if (o1.primary() ^ o2.primary()) {
... | 0true | src_main_java_org_elasticsearch_cluster_routing_allocation_allocator_BalancedShardsAllocator.java |
890 | public class PromotableFulfillmentGroupImpl implements PromotableFulfillmentGroup {
private static final long serialVersionUID = 1L;
protected FulfillmentGroup fulfillmentGroup;
protected PromotableOrder promotableOrder;
protected PromotableItemFactory itemFactory;
protected List<PromotableOrderIte... | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_offer_service_discount_domain_PromotableFulfillmentGroupImpl.java |
80 | class ChangeParametersProposal implements ICompletionProposal,
ICompletionProposalExtension6 {
private final Declaration dec;
private final CeylonEditor editor;
ChangeParametersProposal(Declaration dec, CeylonEditor editor) {
this.dec = dec;
this.editor = editor;
}
... | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_correct_ChangeParametersProposal.java |
3,656 | public class AnalyzerMapper implements Mapper, InternalMapper, RootMapper {
public static final String NAME = "_analyzer";
public static final String CONTENT_TYPE = "_analyzer";
public static class Defaults {
public static final String PATH = "_analyzer";
}
public static class Builder ext... | 1no label | src_main_java_org_elasticsearch_index_mapper_internal_AnalyzerMapper.java |
159 | private class MockedLogLoader implements LogLoader
{
private long version;
private long tx;
private final File baseFile;
private final ByteBuffer activeBuffer;
private final int identifier = 1;
private final LogPruneStrategy pruning;
private final Map<Long... | 0true | community_kernel_src_test_java_org_neo4j_kernel_impl_transaction_xaframework_TestLogPruneStrategy.java |
460 | el[6] = 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.ofBytes(entry, ByteEntryGetter.S... | 0true | titan-test_src_test_java_com_thinkaurelius_titan_diskstorage_keycolumnvalue_StaticArrayEntryTest.java |
3,319 | public static class Builder implements IndexFieldData.Builder {
@Override
public IndexFieldData<?> build(Index index, @IndexSettings Settings indexSettings, FieldMapper<?> mapper, IndexFieldDataCache cache,
CircuitBreakerService breakerService) {
r... | 0true | src_main_java_org_elasticsearch_index_fielddata_plain_DoubleArrayIndexFieldData.java |
1,426 | public class CategoryHandlerMapping extends BLCAbstractHandlerMapping {
private String controllerName="blCategoryController";
@Resource(name = "blCatalogService")
private CatalogService catalogService;
public static final String CURRENT_CATEGORY_ATTRIBUTE_NAME = "category";
@Override... | 0true | core_broadleaf-framework-web_src_main_java_org_broadleafcommerce_core_web_catalog_CategoryHandlerMapping.java |
1,105 | public class OrderMultishipOptionDTO {
protected Long id;
protected Long orderItemId;
protected Long addressId;
protected Long fulfillmentOptionId;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Long getOrderItemId() {
... | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_order_service_call_OrderMultishipOptionDTO.java |
1,974 | class TTLReachabilityHandler extends AbstractReachabilityHandler {
public TTLReachabilityHandler() {
}
@Override
public Record handle(Record record, long criteria, long timeInNanos) {
if (record == null) {
return null;
}
boolean result;
final long ttl = reco... | 0true | hazelcast_src_main_java_com_hazelcast_map_eviction_TTLReachabilityHandler.java |
731 | public class DeleteByQueryAction extends Action<DeleteByQueryRequest, DeleteByQueryResponse, DeleteByQueryRequestBuilder> {
public static final DeleteByQueryAction INSTANCE = new DeleteByQueryAction();
public static final String NAME = "deleteByQuery";
private DeleteByQueryAction() {
super(NAME);
... | 0true | src_main_java_org_elasticsearch_action_deletebyquery_DeleteByQueryAction.java |
2,181 | public abstract class CachedFilter extends Filter {
public static boolean isCached(Filter filter) {
return filter instanceof CachedFilter;
}
} | 0true | src_main_java_org_elasticsearch_common_lucene_search_CachedFilter.java |
468 | public interface SandBox extends Serializable {
public Long getId();
public void setId(Long id);
/**
* The name of the sandbox.
* Certain sandbox names are reserved in the system. User created
* sandboxes cannot start with "", "approve_", or "deploy_".
*
* @return String sandb... | 0true | common_src_main_java_org_broadleafcommerce_common_sandbox_domain_SandBox.java |
877 | public class CountDownLatchService implements ManagedService, RemoteService, MigrationAwareService {
/**
* The service name of this CountDownLatchService.
*/
public static final String SERVICE_NAME = "hz:impl:countDownLatchService";
private final ConcurrentMap<String, CountDownLatchInfo> latches... | 0true | hazelcast_src_main_java_com_hazelcast_concurrent_countdownlatch_CountDownLatchService.java |
94 | class ReadOnlyTransactionImpl implements Transaction
{
private static final int RS_ENLISTED = 0;
private static final int RS_SUSPENDED = 1;
private static final int RS_DELISTED = 2;
private static final int RS_READONLY = 3; // set in prepare
private final byte globalId[];
private int status = S... | 0true | community_kernel_src_main_java_org_neo4j_kernel_impl_transaction_ReadOnlyTransactionImpl.java |
611 | public abstract class OIndexMultiValues extends OIndexAbstract<Set<OIdentifiable>> {
public OIndexMultiValues(final String type, String algorithm, OIndexEngine<Set<OIdentifiable>> indexEngine,
String valueContainerAlgorithm) {
super(type, algorithm, indexEngine, valueContainerAlgorithm);
}
public Set<O... | 1no label | core_src_main_java_com_orientechnologies_orient_core_index_OIndexMultiValues.java |
3,339 | public static class Builder implements IndexFieldData.Builder {
@Override
public IndexFieldData<?> build(Index index, @IndexSettings Settings indexSettings, FieldMapper<?> mapper, IndexFieldDataCache cache,
CircuitBreakerService breakerService) {
r... | 0true | src_main_java_org_elasticsearch_index_fielddata_plain_FloatArrayIndexFieldData.java |
1,646 | @Component("blPasswordFieldMetadataProvider")
@Scope("prototype")
public class PasswordFieldMetadataProvider extends AbstractFieldMetadataProvider implements FieldMetadataProvider {
@Override
public int getOrder() {
return FieldMetadataProvider.BASIC;
}
@Override
public FieldProviderRespon... | 0true | admin_broadleaf-open-admin-platform_src_main_java_org_broadleafcommerce_openadmin_server_dao_provider_metadata_PasswordFieldMetadataProvider.java |
3,754 | private class RequestWrapper extends HttpServletRequestWrapper {
final ResponseWrapper res;
HazelcastHttpSession hazelcastSession;
String requestedSessionId;
public RequestWrapper(final HttpServletRequest req,
final ResponseWrapper res) {
su... | 1no label | hazelcast-wm_src_main_java_com_hazelcast_web_WebFilter.java |
138 | public class DistributedObjectInfo implements Portable {
private String serviceName;
private String name;
DistributedObjectInfo() {
}
DistributedObjectInfo(String serviceName, String name) {
this.serviceName = serviceName;
this.name = name;
}
@Override
public int get... | 0true | hazelcast_src_main_java_com_hazelcast_client_DistributedObjectInfo.java |
3,662 | public static class Defaults extends NumberFieldMapper.Defaults {
public static final String NAME = "_boost";
public static final Float NULL_VALUE = null;
public static final FieldType FIELD_TYPE = new FieldType(NumberFieldMapper.Defaults.FIELD_TYPE);
static {
FIELD_TYP... | 0true | src_main_java_org_elasticsearch_index_mapper_internal_BoostFieldMapper.java |
1,520 | @Component("blProductOptionDisplayProcessor")
public class ProductOptionDisplayProcessor extends AbstractLocalVariableDefinitionElementProcessor {
/**
* Sets the name of this processor to be used in Thymeleaf template
*/
public ProductOptionDisplayProcessor() {
super("product_option_display")... | 0true | core_broadleaf-framework-web_src_main_java_org_broadleafcommerce_core_web_processor_ProductOptionDisplayProcessor.java |
1,084 | public class OSQLFilterItemFieldAll extends OSQLFilterItemFieldMultiAbstract {
public static final String NAME = "ALL";
public static final String FULL_NAME = "ALL()";
public OSQLFilterItemFieldAll(final OSQLPredicate iQueryCompiled, final String iName) {
super(iQueryCompiled, iName, OStringSerializerHelper.ge... | 0true | core_src_main_java_com_orientechnologies_orient_core_sql_filter_OSQLFilterItemFieldAll.java |
538 | public class ORemoteFetchListener implements OFetchListener {
final Set<ODocument> recordsToSend;
public ORemoteFetchListener(final Set<ODocument> iRecordsToSend) {
recordsToSend = iRecordsToSend;
}
public void processStandardField(ORecordSchemaAware<?> iRecord, Object iFieldValue, String iFieldName, OFe... | 1no label | core_src_main_java_com_orientechnologies_orient_core_fetch_remote_ORemoteFetchListener.java |
862 | public class OSecurityShared extends OSharedResourceAdaptive implements OSecurity, OCloseable {
public static final String RESTRICTED_CLASSNAME = "ORestricted";
public static final String IDENTITY_CLASSNAME = "OIdentity";
public static final String ALLOW_ALL_FIELD = "_allow";
public static final St... | 1no label | core_src_main_java_com_orientechnologies_orient_core_metadata_security_OSecurityShared.java |
1,752 | private static class RemoveEntryProcessor extends AbstractEntryProcessor {
RemoveEntryProcessor() {
}
public Object process(Map.Entry entry) {
entry.setValue(null);
return entry;
}
} | 0true | hazelcast_src_test_java_com_hazelcast_map_EntryProcessorTest.java |
1,126 | @Beta
public interface AsyncAtomicLong extends IAtomicLong {
ICompletableFuture<Long> asyncAddAndGet(long delta);
ICompletableFuture<Boolean> asyncCompareAndSet(long expect, long update);
ICompletableFuture<Long> asyncDecrementAndGet();
ICompletableFuture<Long> asyncGet();
ICompletableFuture<Lo... | 0true | hazelcast_src_main_java_com_hazelcast_core_AsyncAtomicLong.java |
65 | public interface TitanIndexQuery {
/**
* Specifies the maxium number of elements to return
*
* @param limit
* @return
*/
public TitanIndexQuery limit(int limit);
/**
* Specifies the offset of the query. Query results will be retrieved starting at the given offset.
* @par... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_core_TitanIndexQuery.java |
666 | public class SkuDaoTest extends BaseTest {
private Long skuId;
@Resource
private SkuDao skuDao;
@Resource
private CatalogService catalogService;
@Test(groups = { "createSku" }, dataProvider = "basicSku", dataProviderClass = SkuDaoDataProvider.class, dependsOnGroups = { "readCustomer", "c... | 0true | integration_src_test_java_org_broadleafcommerce_core_catalog_dao_SkuDaoTest.java |
1,248 | public abstract class AbstractClient implements InternalClient {
@Override
public <Request extends ActionRequest, Response extends ActionResponse, RequestBuilder extends ActionRequestBuilder<Request, Response, RequestBuilder>> RequestBuilder prepareExecute(final Action<Request, Response, RequestBuilder> action... | 1no label | src_main_java_org_elasticsearch_client_support_AbstractClient.java |
69 | public interface TitanRelation extends TitanElement {
/**
* Establishes a unidirectional edge between this relation and the given vertex for the specified label.
* The label must be defined {@link EdgeLabel#isUnidirected()}.
*
* @param label
* @param vertex
*/
public void setPrope... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_core_TitanRelation.java |
161 | private static final class SingleTargetCallback implements Callback<Object> {
final Address target;
final MultiTargetCallback parent;
private SingleTargetCallback(Address target, MultiTargetCallback parent) {
this.target = target;
this.parent = parent;
}
... | 0true | hazelcast_src_main_java_com_hazelcast_client_MultiTargetClientRequest.java |
1,601 | public class ODefaultReplicationConflictResolver implements OReplicationConflictResolver {
private static final String DISTRIBUTED_CONFLICT_CLASS = "ODistributedConflict";
private static final String FIELD_RECORD = "record";
private static final String FIELD_NODE =... | 0true | server_src_main_java_com_orientechnologies_orient_server_distributed_conflict_ODefaultReplicationConflictResolver.java |
841 | return new IAnswer<Order>() {
@Override
public Order answer() throws Throwable {
return (Order) EasyMock.getCurrentArguments()[0];
}
}; | 0true | core_broadleaf-framework_src_test_java_org_broadleafcommerce_core_offer_service_OfferDataItemProvider.java |
2,530 | new HashMap<String, Object>() {{
put("nested", 2);
put("nested_2", 3);
}})); | 0true | src_test_java_org_elasticsearch_common_xcontent_support_XContentMapValuesTests.java |
3,507 | public class MapperService extends AbstractIndexComponent implements Iterable<DocumentMapper> {
public static final String DEFAULT_MAPPING = "_default_";
private static ObjectOpenHashSet<String> META_FIELDS = ObjectOpenHashSet.from(
"_uid", "_id", "_type", "_all", "_analyzer", "_boost", "_parent", ... | 1no label | src_main_java_org_elasticsearch_index_mapper_MapperService.java |
406 | @SuppressWarnings("serial")
public class OTrackedSet<T> extends HashSet<T> implements ORecordElement, OTrackedMultiValue<T, T>, Serializable {
protected final ORecord<?> sourceRecord;
private STATUS status = STATUS.NOT_LOADED;
private Set<OMultiValueChangeListener<T, T>> changeListeners =... | 0true | core_src_main_java_com_orientechnologies_orient_core_db_record_OTrackedSet.java |
906 | private final class OSimpleMultiValueChangeListener<K, V> implements OMultiValueChangeListener<K, V> {
private final String fieldName;
private OSimpleMultiValueChangeListener(final String fieldName) {
this.fieldName = fieldName;
}
public void onAfterRecordChanged(final OMultiValueChangeEvent<K... | 0true | core_src_main_java_com_orientechnologies_orient_core_record_impl_ODocument.java |
1,451 | public class CheckoutForm implements Serializable {
private static final long serialVersionUID = 8866879738364589339L;
private String emailAddress;
private Address shippingAddress = new AddressImpl();
private Address billingAddress = new AddressImpl();
private String creditCardNumber;
... | 0true | core_broadleaf-framework-web_src_main_java_org_broadleafcommerce_core_web_checkout_model_CheckoutForm.java |
822 | db.getStorage().callInLock(new Callable<Object>() {
@Override
public Object call() throws Exception {
saveInternal(OMetadataDefault.CLUSTER_INTERNAL_NAME);
return null;
}
}, true); | 0true | core_src_main_java_com_orientechnologies_orient_core_metadata_schema_OSchemaShared.java |
1,903 | public class QueryEventFilter extends EntryEventFilter {
Predicate predicate = null;
public QueryEventFilter(boolean includeValue, Data key, Predicate predicate) {
super(includeValue, key);
this.predicate = predicate;
}
public QueryEventFilter() {
super();
}
public O... | 1no label | hazelcast_src_main_java_com_hazelcast_map_QueryEventFilter.java |
271 | private static class ThriftGetter implements StaticArrayEntry.GetColVal<ColumnOrSuperColumn,ByteBuffer> {
private final EntryMetaData[] schema;
private ThriftGetter(EntryMetaData[] schema) {
this.schema = schema;
}
@Override
public ByteBuffer getColumn(ColumnOr... | 0true | titan-cassandra_src_main_java_com_thinkaurelius_titan_diskstorage_cassandra_thrift_CassandraThriftKeyColumnValueStore.java |
361 | @Deprecated
public class OGraphDatabase extends ODatabaseDocumentTx {
private final boolean preferSBTreeSet = OGlobalConfiguration.PREFER_SBTREE_SET.getValueAsBoolean();
public enum LOCK_MODE {
NO_LOCKING, DATABASE_LEVEL_LOCKING, RECORD_LEVEL_LOCKING
}
public enum DIRECTION {
BOTH, IN, OUT
}
publ... | 0true | core_src_main_java_com_orientechnologies_orient_core_db_graph_OGraphDatabase.java |
111 | class FilterExtendsSatisfiesVisitor extends Visitor {
boolean filter = false;
@Override
public void visit(Tree.ExtendedType that) {
super.visit(that);
if (that.getType()==node) {
filter = true;
}
... | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_correct_CreateTypeParameterProposal.java |
2,208 | return new Filter() {
@Override
public DocIdSet getDocIdSet(AtomicReaderContext context, Bits acceptDocs) {
return null;
}
}; | 0true | src_test_java_org_elasticsearch_common_lucene_search_XBooleanFilterLuceneTests.java |
2,218 | public static class CustomRandomAccessFilterStrategy extends FilteredQuery.RandomAccessFilterStrategy {
private final int threshold;
public CustomRandomAccessFilterStrategy() {
this.threshold = -1;
}
public CustomRandomAccessFilterStrategy(int threshold) {
... | 0true | src_main_java_org_elasticsearch_common_lucene_search_XFilteredQuery.java |
1,009 | public class OStreamSerializerString implements OStreamSerializer {
public static final String NAME = "s";
public static final OStreamSerializerString INSTANCE = new OStreamSerializerString();
public String getName() {
return NAME;
}
public Object fromStream(final byte[] iStream) throws IOException ... | 0true | core_src_main_java_com_orientechnologies_orient_core_serialization_serializer_stream_OStreamSerializerString.java |
2,043 | public class ClearOperationFactory implements OperationFactory {
String name;
public ClearOperationFactory() {
}
public ClearOperationFactory(String name) {
this.name = name;
}
@Override
public Operation createOperation() {
return new ClearOperation(name);
}
@Ove... | 0true | hazelcast_src_main_java_com_hazelcast_map_operation_ClearOperationFactory.java |
225 | private static class HazelcastInstanceAwareObject implements HazelcastInstanceAware {
HazelcastInstance hazelcastInstance;
public HazelcastInstance getHazelcastInstance() {
return hazelcastInstance;
}
@Override
public void setHazelcastInstance(HazelcastInstance... | 0true | hazelcast-client_src_main_java_com_hazelcast_client_examples_ClientTestApp.java |
72 | public interface TitanVertexQuery<Q extends TitanVertexQuery<Q>> extends BaseVertexQuery<Q>, VertexQuery {
/* ---------------------------------------------------------------
* Query Specification (overwrite to merge BaseVertexQuery with Blueprint's VertexQuery)
* --------------------------------------------... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_core_TitanVertexQuery.java |
1,850 | static class ProviderBindingImpl<T> extends BindingImpl<Provider<T>>
implements ProviderBinding<Provider<T>> {
final BindingImpl<T> providedBinding;
ProviderBindingImpl(InjectorImpl injector, Key<Provider<T>> key, Binding<T> providedBinding) {
super(injector, key, providedBi... | 0true | src_main_java_org_elasticsearch_common_inject_InjectorImpl.java |
77 | public final class ClientDataSerializerHook implements DataSerializerHook {
public static final int ID = FactoryIdHelper.getFactoryId(FactoryIdHelper.CLIENT_DS_FACTORY, -3);
public static final int CLIENT_RESPONSE = 1;
@Override
public int getFactoryId() {
return ID;
}
@Override
... | 0true | hazelcast_src_main_java_com_hazelcast_client_ClientDataSerializerHook.java |
457 | public class GeneratedResource extends AbstractResource implements Serializable {
private static final long serialVersionUID = 7044543270746433688L;
protected long timeGenerated;
protected String hashRepresentation;
protected final byte[] source;
protected final String description;
/... | 1no label | common_src_main_java_org_broadleafcommerce_common_resource_GeneratedResource.java |
293 | @RunWith(HazelcastSerialClassRunner.class)
@Category(QuickTest.class)
public class ClientLockTest {
static final String name = "test";
static HazelcastInstance hz;
static ILock l;
@BeforeClass
public static void init() {
Hazelcast.newHazelcastInstance();
hz = HazelcastClient.newHaz... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_lock_ClientLockTest.java |
2,056 | public abstract class KeyBasedMapOperation extends Operation implements PartitionAwareOperation {
protected String name;
protected Data dataKey;
protected long threadId;
protected Data dataValue = null;
protected long ttl = -1;
protected transient MapService mapService;
protected transient... | 0true | hazelcast_src_main_java_com_hazelcast_map_operation_KeyBasedMapOperation.java |
1,309 | public interface SearchFacet {
/**
* Returns the internal id
*
* @return the internal id
*/
public Long getId();
/**
* Sets the internal id
*
* @param id
*/
public void setId(Long id);
/**
* Returns the field associated with this facet.
*
... | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_search_domain_SearchFacet.java |
350 | public enum ElasticSearchSetup {
/**
* Start an ES TransportClient connected to
* {@link com.thinkaurelius.titan.graphdb.configuration.GraphDatabaseConfiguration#INDEX_HOSTS}.
*/
TRANSPORT_CLIENT {
@Override
public Connection connect(Configuration config) throws IOException {
... | 0true | titan-es_src_main_java_com_thinkaurelius_titan_diskstorage_es_ElasticSearchSetup.java |
331 | fFrameList.addPropertyChangeListener(new IPropertyChangeListener() { // connect after the actions (order of property listener)
public void propertyChange(PropertyChangeEvent event) {
fPart.updateTitle();
fPart.updateToolbar();
}
}); | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_explorer_PackageExplorerActionGroup.java |
2,802 | public static class AnalyzersBindings {
private final Map<String, Class<? extends AnalyzerProvider>> analyzers = Maps.newHashMap();
public AnalyzersBindings() {
}
public void processAnalyzer(String name, Class<? extends AnalyzerProvider> analyzerProvider) {
... | 0true | src_main_java_org_elasticsearch_index_analysis_AnalysisModule.java |
1,288 | @ClusterScope(scope = Scope.TEST, numNodes = 0)
public class ClusterServiceTests extends ElasticsearchIntegrationTest {
@Test
public void testTimeoutUpdateTask() throws Exception {
Settings settings = settingsBuilder()
.put("discovery.type", "local")
.build();
cl... | 0true | src_test_java_org_elasticsearch_cluster_ClusterServiceTests.java |
2,630 | private static class CompoundPingListener implements PingListener {
private final PingListener listener;
private final AtomicInteger counter;
private ConcurrentMap<DiscoveryNode, PingResponse> responses = ConcurrentCollections.newConcurrentMap();
private CompoundPingListener(Ping... | 0true | src_main_java_org_elasticsearch_discovery_zen_ping_ZenPingService.java |
1,750 | private static class MyObject implements DataSerializable {
int serializedCount = 0;
int deserializedCount = 0;
public MyObject() {
}
@Override
public void writeData(ObjectDataOutput out) throws IOException {
out.writeInt(++serializedCount);
... | 0true | hazelcast_src_test_java_com_hazelcast_map_EntryProcessorTest.java |
1,443 | public class ProductLinkTag extends CategoryLinkTag {
private static final long serialVersionUID = 1L;
private Product product;
@Override
public void doTag() throws JspException, IOException {
JspWriter out = getJspContext().getOut();
out.println(getUrl(product));
}
public vo... | 0true | core_broadleaf-framework-web_src_main_java_org_broadleafcommerce_core_web_catalog_taglib_ProductLinkTag.java |
148 | (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_extra_AtomicDoubleArray.java |
1,030 | public class OCommandExecutorSQLCreateFunction extends OCommandExecutorSQLAbstract {
public static final String NAME = "CREATE FUNCTION";
private String name;
private String code;
private String language;
private boolean idempotent = false;
private List<S... | 0true | core_src_main_java_com_orientechnologies_orient_core_sql_OCommandExecutorSQLCreateFunction.java |
1,741 | map.addEntryListener(new EntryListener<Integer, Integer>() {
@Override
public void entryAdded(EntryEvent<Integer, Integer> event) {
addCount.incrementAndGet();
latch.countDown();
}
@Override
public void entryRemoved(Ent... | 0true | hazelcast_src_test_java_com_hazelcast_map_EntryProcessorTest.java |
795 | private static class FailingFunction implements IFunction<Long, Long> {
@Override
public Long apply(Long input) {
throw new WoohaaException();
}
} | 0true | hazelcast_src_test_java_com_hazelcast_concurrent_atomiclong_AtomicLongTest.java |
2,498 | START_OBJECT {
@Override
public boolean isValue() {
return false;
}
}, | 0true | src_main_java_org_elasticsearch_common_xcontent_XContentParser.java |
3,710 | public class IpFieldMapper extends NumberFieldMapper<Long> {
public static final String CONTENT_TYPE = "ip";
public static String longToIp(long longIp) {
int octet3 = (int) ((longIp >> 24) % 256);
int octet2 = (int) ((longIp >> 16) % 256);
int octet1 = (int) ((longIp >> 8) % 256);
... | 1no label | src_main_java_org_elasticsearch_index_mapper_ip_IpFieldMapper.java |
286 | private static final ThreadLocal<Random> THREAD_LOCAL_RANDOM = new ThreadLocal<Random>() {
@Override
public Random initialValue() {
return new Random();
}
}; | 0true | titan-cassandra_src_main_java_com_thinkaurelius_titan_diskstorage_cassandra_thrift_thriftpool_CTConnectionFactory.java |
1,332 | public class SolrContext {
public static final String PRIMARY = "primary";
public static final String REINDEX = "reindex";
protected static SolrServer primaryServer = null;
protected static SolrServer reindexServer = null;
public static void setPrimaryServer(SolrServer server) {
primarySe... | 1no label | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_search_service_solr_SolrContext.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.