Unnamed: 0 int64 0 6.45k | func stringlengths 29 253k | target class label 2
classes | project stringlengths 36 167 |
|---|---|---|---|
262 | ex.schedule(new Runnable() {
@Override
public void run() {
hzs.get(1).shutdown();
}
}, 1000, TimeUnit.MILLISECONDS); | 0true | hazelcast-client_src_test_java_com_hazelcast_client_executor_ExecutionDelayTest.java |
590 | public class FinalizeJoinOperation extends MemberInfoUpdateOperation implements JoinOperation {
private PostJoinOperation postJoinOp;
public FinalizeJoinOperation() {
}
public FinalizeJoinOperation(Collection<MemberInfo> members, PostJoinOperation postJoinOp, long masterTime) {
super(members,... | 1no label | hazelcast_src_main_java_com_hazelcast_cluster_FinalizeJoinOperation.java |
2,432 | public abstract class BaseFuture<V> implements Future<V> {
/**
* Synchronization control for AbstractFutures.
*/
private final Sync<V> sync = new Sync<V>();
/*
* Improve the documentation of when InterruptedException is thrown. Our
* behavior matches the JDK's, but the JDK's documentatio... | 0true | src_main_java_org_elasticsearch_common_util_concurrent_BaseFuture.java |
246 | public class StoreRecoverer
{
private final FileSystemAbstraction fs;
public StoreRecoverer()
{
this( new DefaultFileSystemAbstraction() );
}
public StoreRecoverer( FileSystemAbstraction fs )
{
this.fs = fs;
}
public boolean recoveryNeededAt( File dataDir, Map<String,... | 0true | community_kernel_src_main_java_org_neo4j_kernel_impl_recovery_StoreRecoverer.java |
1,820 | constructors[PUT_BACKUP] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {
public IdentifiedDataSerializable createNew(Integer arg) {
return new PutBackupOperation();
}
}; | 0true | hazelcast_src_main_java_com_hazelcast_map_MapDataSerializerHook.java |
448 | public class ClusterStatsRequest extends NodesOperationRequest<ClusterStatsRequest> {
/**
* Get stats from nodes based on the nodes ids specified. If none are passed, stats
* based on all nodes will be returned.
*/
public ClusterStatsRequest(String... nodesIds) {
super(nodesIds);
}
... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_stats_ClusterStatsRequest.java |
29 | public class BerkeleyBlueprintsTest extends TitanBlueprintsTest {
private static final String DEFAULT_SUBDIR = "standard";
private static final Logger log =
LoggerFactory.getLogger(BerkeleyBlueprintsTest.class);
@Override
public Graph generateGraph() {
return generateGraph(DEFAULT... | 0true | titan-berkeleyje_src_test_java_com_thinkaurelius_titan_blueprints_BerkeleyBlueprintsTest.java |
334 | public class NodesRestartAction extends ClusterAction<NodesRestartRequest, NodesRestartResponse, NodesRestartRequestBuilder> {
public static final NodesRestartAction INSTANCE = new NodesRestartAction();
public static final String NAME = "cluster/nodes/restart";
private NodesRestartAction() {
super... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_node_restart_NodesRestartAction.java |
1,961 | public class MapTryPutRequest extends MapPutRequest {
private long timeout;
public MapTryPutRequest() {
}
public MapTryPutRequest(String name, Data key, Data value, long threadId, long timeout) {
super(name, key, value, threadId, -1);
this.timeout = timeout;
}
public int getC... | 0true | hazelcast_src_main_java_com_hazelcast_map_client_MapTryPutRequest.java |
1,297 | public interface CategoryExcludedSearchFacet {
/**
* Gets the internal id
*
* @return the internal id
*/
public Long getId();
/**
* Sets the internal id
*
* @param id
*/
public void setId(Long id);
/**
* Gets the associated category
*
* @... | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_search_domain_CategoryExcludedSearchFacet.java |
2,410 | public enum ByteUtils {
;
public static final int MAX_BYTES_VLONG = 9;
/** Zig-zag decode. */
public static long zigZagDecode(long n) {
return ((n >>> 1) ^ -(n & 1));
}
/** Zig-zag encode: this helps transforming small signed numbers into small positive numbers. */
public static l... | 0true | src_main_java_org_elasticsearch_common_util_ByteUtils.java |
1,833 | class InjectionRequestProcessor extends AbstractProcessor {
private final List<StaticInjection> staticInjections = Lists.newArrayList();
private final Initializer initializer;
InjectionRequestProcessor(Errors errors, Initializer initializer) {
super(errors);
this.initializer = initializer;... | 0true | src_main_java_org_elasticsearch_common_inject_InjectionRequestProcessor.java |
890 | public interface ORecord<T> extends ORecordElement, OIdentifiable, Serializable {
/**
* Removes all the dependencies with other records. All the relationships remain in form of RecordID. If some links contain dirty
* records, the detach cannot be complete and this method returns false.
*
* @return True i... | 0true | core_src_main_java_com_orientechnologies_orient_core_record_ORecord.java |
27 | static final class RunAfterEither extends Completion {
final CompletableFuture<?> src;
final CompletableFuture<?> snd;
final Runnable fn;
final CompletableFuture<Void> dst;
final Executor executor;
RunAfterEither(CompletableFuture<?> src,
Comple... | 0true | src_main_java_jsr166e_CompletableFuture.java |
561 | final SortedSet<OIndex<?>> indexesToLock = new TreeSet<OIndex<?>>(new Comparator<OIndex<?>>() {
public int compare(OIndex<?> indexOne, OIndex<?> indexTwo) {
return indexOne.getName().compareTo(indexTwo.getName());
}
}); | 0true | core_src_main_java_com_orientechnologies_orient_core_index_OClassIndexManager.java |
1,718 | public final class ImmutableOpenMap<KType, VType> implements Iterable<ObjectObjectCursor<KType, VType>> {
private final ObjectObjectOpenHashMap<KType, VType> map;
private ImmutableOpenMap(ObjectObjectOpenHashMap<KType, VType> map) {
this.map = map;
}
/**
* @return Returns the value assoc... | 0true | src_main_java_org_elasticsearch_common_collect_ImmutableOpenMap.java |
3,137 | public class InternalEngineTests extends ElasticsearchTestCase {
protected final ShardId shardId = new ShardId(new Index("index"), 1);
protected ThreadPool threadPool;
private Store store;
private Store storeReplica;
protected Engine engine;
protected Engine replicaEngine;
private Index... | 0true | src_test_java_org_elasticsearch_index_engine_internal_InternalEngineTests.java |
1,660 | public final class Priority implements Comparable<Priority> {
public static Priority fromByte(byte b) {
switch (b) {
case 0:
return URGENT;
case 1:
return HIGH;
case 2:
return NORMAL;
case 3:
ret... | 0true | src_main_java_org_elasticsearch_common_Priority.java |
1,573 | public static enum Type {
YES,
NO,
THROTTLE
} | 0true | src_main_java_org_elasticsearch_cluster_routing_allocation_decider_Decision.java |
1,518 | @SuppressWarnings("unchecked")
public class OObjectIteratorCluster<T> implements OObjectIteratorClusterInterface<T> {
private ODatabaseObject database;
private ORecordIteratorCluster<ODocument> underlying;
private String fetchPlan;
public OObjectIteratorCluster(fina... | 0true | object_src_main_java_com_orientechnologies_orient_object_iterator_OObjectIteratorCluster.java |
300 | @RunWith(HazelcastSerialClassRunner.class)
@Category(QuickTest.class)
public class ClientLockWithTerminationTest {
private HazelcastInstance node1;
private HazelcastInstance node2;
private HazelcastInstance client1;
private HazelcastInstance client2;
private String keyOwnedByNode1;
@Before
... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_lock_ClientLockWithTerminationTest.java |
33 | @Test
public class OMVRBTreeCompositeTest {
protected OMVRBTree<OCompositeKey, Double> tree;
@BeforeMethod
public void beforeMethod() throws Exception {
tree = new OMVRBTreeMemory<OCompositeKey, Double>(4, 0.5f, 2);
for (double i = 1; i < 4; i++) {
for (double j = 1; j < 10; j++) {
final OC... | 0true | core_src_test_java_com_orientechnologies_common_collection_OMVRBTreeCompositeTest.java |
1,478 | @Component("blChangePasswordValidator")
public class ChangePasswordValidator implements Validator {
public static final String DEFAULT_VALID_PASSWORD_REGEX = "[0-9A-Za-z]{4,15}";
private String validPasswordRegex = DEFAULT_VALID_PASSWORD_REGEX;
@Resource(name = "blCustomerService")
protected Customer... | 0true | core_broadleaf-framework-web_src_main_java_org_broadleafcommerce_core_web_controller_account_validator_ChangePasswordValidator.java |
427 | public enum RequiredOverride {
REQUIRED,
NOT_REQUIRED,
IGNORED
} | 0true | common_src_main_java_org_broadleafcommerce_common_presentation_RequiredOverride.java |
1,190 | @edu.umd.cs.findbugs.annotations.SuppressWarnings("SE_BAD_FIELD")
public class MemberLeftException extends ExecutionException implements DataSerializable, RetryableException {
private Member member;
public MemberLeftException() {
}
public MemberLeftException(Member member) {
this.member = mem... | 1no label | hazelcast_src_main_java_com_hazelcast_core_MemberLeftException.java |
1,406 | public static class Request {
final String index;
TimeValue timeout = TimeValue.timeValueSeconds(10);
TimeValue masterTimeout = MasterNodeOperationRequest.DEFAULT_MASTER_NODE_TIMEOUT;
public Request(String index) {
this.index = index;
}
public Request ... | 0true | src_main_java_org_elasticsearch_cluster_metadata_MetaDataDeleteIndexService.java |
965 | public class OSnappyCompression implements OCompression {
public static final String NAME = "snappy";
public static final OSnappyCompression INSTANCE = new OSnappyCompression();
@Override
public byte[] compress(byte[] content) {
return Snappy.compress(content);
}
@Override
public by... | 0true | core_src_main_java_com_orientechnologies_orient_core_serialization_compression_impl_OSnappyCompression.java |
794 | private static class AddOneFunction implements IFunction<Long, Long> {
@Override
public Long apply(Long input) {
return input+1;
}
} | 0true | hazelcast_src_test_java_com_hazelcast_concurrent_atomiclong_AtomicLongTest.java |
335 | public interface WriteConfiguration extends ReadConfiguration {
public<O> void set(String key, O value);
public void remove(String key);
public WriteConfiguration copy();
} | 0true | titan-core_src_main_java_com_thinkaurelius_titan_diskstorage_configuration_WriteConfiguration.java |
399 | public class CreateSnapshotRequest extends MasterNodeOperationRequest<CreateSnapshotRequest> {
private String snapshot;
private String repository;
private String[] indices = EMPTY_ARRAY;
private IndicesOptions indicesOptions = IndicesOptions.strict();
private boolean partial = false;
priva... | 1no label | src_main_java_org_elasticsearch_action_admin_cluster_snapshots_create_CreateSnapshotRequest.java |
2,376 | public class Percent implements Streamable, Serializable {
private double value;
public Percent(double value) {
this.value = value;
}
public double value() {
return value;
}
public String toString() {
return format(value);
}
public static String format(double... | 0true | src_main_java_org_elasticsearch_common_unit_Percent.java |
162 | @Test
public class StringSerializerTest {
private int FIELD_SIZE;
private String OBJECT;
private OStringSerializer stringSerializer;
byte[] stream;
@BeforeClass
public void beforeClass() {
stringSerializer = new OStringSerializer();
Random random = new Ra... | 0true | commons_src_test_java_com_orientechnologies_common_serialization_types_StringSerializerTest.java |
1,136 | public class PriceOrderIfNecessaryActivity extends BaseActivity<CartOperationContext> {
@Resource(name = "blOrderService")
protected OrderService orderService;
@Override
public CartOperationContext execute(CartOperationContext context) throws Exception {
CartOperationRequest request = cont... | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_order_service_workflow_PriceOrderIfNecessaryActivity.java |
552 | public class UrlUtil {
public static String generateUrlKey(String toConvert) {
if (toConvert.matches(".*?\\W.*?")) {
//remove all non-word characters
String result = toConvert.replaceAll("\\W","");
//uncapitalizes the first letter of the url key
return StringU... | 0true | common_src_main_java_org_broadleafcommerce_common_util_UrlUtil.java |
1,204 | longLongMap = build(type, limit, smartSize, availableProcessors, new Recycler.C<LongLongOpenHashMap>() {
@Override
public LongLongOpenHashMap newInstance(int sizing) {
return new LongLongOpenHashMap(size(sizing));
}
@Override
public vo... | 0true | src_main_java_org_elasticsearch_cache_recycler_CacheRecycler.java |
530 | final PortableFactory factory = new PortableFactory() {
public Portable create(int classId) {
switch (classId) {
case CREATE:
return new CreateTransactionRequest();
case COMMIT:
return new CommitT... | 0true | hazelcast_src_main_java_com_hazelcast_client_txn_ClientTxnPortableHook.java |
1,191 | public interface PaymentContext {
/**
* @deprecated
* @see #getTransactionAmount()
*/
public Money getOriginalPaymentAmount();
/**
* @deprecated
* @see #getRemainingTransactionAmount()
*/
public Money getRemainingPaymentAmount();
/**
* The amount that the system... | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_payment_service_PaymentContext.java |
149 | public class OByteSerializer implements OBinarySerializer<Byte> {
/**
* size of byte value in bytes
*/
public static final int BYTE_SIZE = 1;
public static OByteSerializer INSTANCE = new OByteSerializer();
public static final byte ID = 2;
public int getObjectSize(Byte object, Object... hints) {
re... | 0true | commons_src_main_java_com_orientechnologies_common_serialization_types_OByteSerializer.java |
79 | EQUAL {
@Override
public boolean isValidValueType(Class<?> clazz) {
return true;
}
@Override
public boolean isValidCondition(Object condition) {
return true;
}
@Override
public boolean evaluate(Object value, Object condition)... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_core_attribute_Cmp.java |
1,519 | public final class OutOfMemoryErrorDispatcher {
private static final int MAX_REGISTERED_INSTANCES = 50;
private static final HazelcastInstance[] EMPTY_INSTANCES = new HazelcastInstance[0];
private static final AtomicReference<HazelcastInstance[]> INSTANCES_REF =
new AtomicReference<HazelcastIn... | 0true | hazelcast_src_main_java_com_hazelcast_instance_OutOfMemoryErrorDispatcher.java |
2,007 | @Retention(RUNTIME)
@BindingAnnotation
@interface Element {
String setName();
int uniqueId();
} | 0true | src_main_java_org_elasticsearch_common_inject_multibindings_Element.java |
1,320 | assertThat(awaitBusy(new Predicate<Object>() {
public boolean apply(Object obj) {
ClusterState state = client().admin().cluster().prepareState().setLocal(true).execute().actionGet().getState();
return state.blocks().hasGlobalBlock(Discovery.NO_MASTER_BLOCK);
... | 0true | src_test_java_org_elasticsearch_cluster_MinimumMasterNodesTests.java |
1,331 | public interface TimeoutClusterStateUpdateTask extends ProcessedClusterStateUpdateTask {
/**
* If the cluster state update task wasn't processed by the provided timeout, call
* {@link #onFailure(String, Throwable)}
*/
TimeValue timeout();
} | 0true | src_main_java_org_elasticsearch_cluster_TimeoutClusterStateUpdateTask.java |
3,651 | public class AllFieldMapper extends AbstractFieldMapper<Void> implements InternalMapper, RootMapper {
public interface IncludeInAll extends Mapper {
void includeInAll(Boolean includeInAll);
void includeInAllIfNotSet(Boolean includeInAll);
void unsetIncludeInAll();
}
public stati... | 1no label | src_main_java_org_elasticsearch_index_mapper_internal_AllFieldMapper.java |
394 | public class ClientNearCache<K> {
public static final Object NULL_OBJECT = new Object();
public static final int EVICTION_PERCENTAGE = 20;
public static final int TTL_CLEANUP_INTERVAL_MILLS = 5000;
String registrationId;
final ClientNearCacheType cacheType;
final int maxSize;
volatile long... | 1no label | hazelcast-client_src_main_java_com_hazelcast_client_nearcache_ClientNearCache.java |
5,095 | class ClearScrollContextsRequest extends TransportRequest {
ClearScrollContextsRequest() {
}
ClearScrollContextsRequest(TransportRequest request) {
super(request);
}
} | 1no label | src_main_java_org_elasticsearch_search_action_SearchServiceTransportAction.java |
1,628 | public class ThreadDumpOperation extends Operation {
private boolean dumpDeadlocks;
private String result;
public ThreadDumpOperation() {
this(false);
}
public ThreadDumpOperation(boolean dumpDeadlocks) {
this.dumpDeadlocks = dumpDeadlocks;
}
public void beforeRun() throw... | 0true | hazelcast_src_main_java_com_hazelcast_management_operation_ThreadDumpOperation.java |
1,351 | public class ProjectSourceFile extends SourceFile implements IResourceAware {
public ProjectSourceFile(ProjectPhasedUnit phasedUnit) {
super(phasedUnit);
}
@Override
public ProjectPhasedUnit getPhasedUnit() {
return (ProjectPhasedUnit) super.getPhasedUnit();
}
@Override
... | 1no label | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_core_model_ProjectSourceFile.java |
750 | public class TxnListSizeRequest extends TxnCollectionRequest {
public TxnListSizeRequest() {
}
public TxnListSizeRequest(String name) {
super(name);
}
@Override
public Object innerCall() throws Exception {
return getEndpoint().getTransactionContext(txnId).getList(name).size();... | 0true | hazelcast_src_main_java_com_hazelcast_collection_client_TxnListSizeRequest.java |
1,976 | public static final Scoping UNSCOPED = new Scoping() {
public <V> V acceptVisitor(BindingScopingVisitor<V> visitor) {
return visitor.visitNoScoping();
}
@Override
public Scope getScopeInstance() {
return Scopes.NO_SCOPE;
}
@Override
p... | 0true | src_main_java_org_elasticsearch_common_inject_internal_Scoping.java |
1,286 | public static final class RemoteDBRunner {
public static void main(String[] args) throws Exception {
OGlobalConfiguration.CACHE_LEVEL1_ENABLED.setValue(false);
OGlobalConfiguration.CACHE_LEVEL1_SIZE.setValue(0);
OGlobalConfiguration.CACHE_LEVEL2_ENABLED.setValue(false);
OGlobalConfiguratio... | 0true | server_src_test_java_com_orientechnologies_orient_core_storage_impl_local_paginated_LocalPaginatedStorageCreateCrashRestore.java |
767 | public class OIntentMassiveInsert implements OIntent {
private boolean previousLevel1CacheEnabled;
private boolean previousLevel2CacheEnabled;
private boolean previousRetainRecords;
private boolean previousRetainObjects;
public void begin(final ODatabaseRaw iDatabase, final Object... iArgs) {
previousLevel1Cach... | 0true | core_src_main_java_com_orientechnologies_orient_core_intent_OIntentMassiveInsert.java |
488 | @SuppressWarnings("serial")
public class ODatabaseExportException extends RuntimeException {
public ODatabaseExportException() {
super();
}
public ODatabaseExportException(String message, Throwable cause) {
super(message, cause);
}
public ODatabaseExportException(String message) {
super(message);
}
pub... | 0true | core_src_main_java_com_orientechnologies_orient_core_db_tool_ODatabaseExportException.java |
57 | public class HttpPostCommand extends HttpCommand {
boolean nextLine;
boolean readyToReadData;
private ByteBuffer data;
private ByteBuffer line = ByteBuffer.allocate(500);
private String contentType;
private final SocketTextReader socketTextRequestReader;
private boolean chunked;
public... | 0true | hazelcast_src_main_java_com_hazelcast_ascii_rest_HttpPostCommand.java |
17 | public class CompletionProposal implements ICompletionProposal,
ICompletionProposalExtension2, ICompletionProposalExtension4,
ICompletionProposalExtension6 {
protected final String text;
private final Image image;
protected final String prefix;
private final String description;
... | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_complete_CompletionProposal.java |
174 | public class DirectMappedLogBuffer implements LogBuffer
{
// 500k
static final int BUFFER_SIZE = 1024 * 512;
private final StoreChannel fileChannel;
private final ByteBuffer byteBuffer;
private long bufferStartPosition;
private final ByteCounterMonitor monitor;
public DirectMappedLogBuff... | 0true | community_kernel_src_main_java_org_neo4j_kernel_impl_transaction_xaframework_DirectMappedLogBuffer.java |
575 | private static class InitialMembershipListenerImpl implements InitialMembershipListener {
private List<EventObject> events = Collections.synchronizedList(new LinkedList<EventObject>());
public void init(InitialMembershipEvent e) {
events.add(e);
}
public void memberAdd... | 0true | hazelcast_src_test_java_com_hazelcast_cluster_ClusterMembershipTest.java |
6,273 | public class LessThanAssertion extends Assertion {
private static final ESLogger logger = Loggers.getLogger(LessThanAssertion.class);
public LessThanAssertion(String field, Object expectedValue) {
super(field, expectedValue);
}
@Override
@SuppressWarnings("unchecked")
protected void d... | 1no label | src_test_java_org_elasticsearch_test_rest_section_LessThanAssertion.java |
1,259 | addOperation(operations, new Runnable() {
public void run() {
IMap map = hazelcast.getMap("myMap");
Iterator it = map.localKeySet().iterator();
while (it.hasNext()) {
it.next();
}
}
}, 10); | 0true | hazelcast_src_main_java_com_hazelcast_examples_AllTest.java |
1,158 | public class OSQLMethodSize extends OAbstractSQLMethod {
public static final String NAME = "size";
public OSQLMethodSize() {
super(NAME);
}
@Override
public Object execute(final OIdentifiable iCurrentRecord, final OCommandContext iContext, final Object ioResult,
final Object[] iMethodParams) {
... | 1no label | core_src_main_java_com_orientechnologies_orient_core_sql_method_misc_OSQLMethodSize.java |
35 | static final class ThenRun extends Completion {
final CompletableFuture<?> src;
final Runnable fn;
final CompletableFuture<Void> dst;
final Executor executor;
ThenRun(CompletableFuture<?> src,
Runnable fn,
CompletableFuture<Void> dst,
... | 0true | src_main_java_jsr166e_CompletableFuture.java |
3,462 | public class ShardGetModule extends AbstractModule {
@Override
protected void configure() {
bind(ShardGetService.class).asEagerSingleton();
}
} | 0true | src_main_java_org_elasticsearch_index_get_ShardGetModule.java |
758 | public class CompleteOrderActivity extends BaseActivity<CheckoutContext> {
public CompleteOrderActivity() {
//no specific state to set here for the rollback handler; it's always safe for it to run
setAutomaticallyRegisterRollbackHandler(true);
}
@Override
public CheckoutContext exe... | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_checkout_service_workflow_CompleteOrderActivity.java |
1,863 | boolean b = h1.executeTransaction(options, new TransactionalTask<Boolean>() {
public Boolean execute(TransactionalTaskContext context) throws TransactionException {
try {
final TransactionalMap<String, String> txMap = context.getMap("default");
... | 0true | hazelcast_src_test_java_com_hazelcast_map_MapTransactionTest.java |
24 | private SortedSet<Edge> outEdges = new ConcurrentSkipListSet<Edge>(new Comparator<Edge>() {
@Override
public int compare(Edge e1, Edge e2) {
return e1.getEnd().compareTo(e2.getEnd());
}
}); | 0true | titan-test_src_main_java_com_thinkaurelius_titan_TestByteBuffer.java |
2,651 | threadPool.schedule(TimeValue.timeValueMillis(timeout.millis() / 2), ThreadPool.Names.GENERIC, new Runnable() {
@Override
public void run() {
try {
sendPings(timeout, TimeValue.timeValueMillis... | 0true | src_main_java_org_elasticsearch_discovery_zen_ping_unicast_UnicastZenPing.java |
3,604 | public static class Defaults extends AbstractFieldMapper.Defaults {
public static final int PRECISION_STEP = NumericUtils.PRECISION_STEP_DEFAULT;
public static final FieldType FIELD_TYPE = new FieldType(AbstractFieldMapper.Defaults.FIELD_TYPE);
static {
FIELD_TYPE.setTokenized(... | 0true | src_main_java_org_elasticsearch_index_mapper_core_NumberFieldMapper.java |
1,282 | public class ClusterInfo {
private final ImmutableMap<String, DiskUsage> usages;
private final ImmutableMap<String, Long> shardSizes;
public ClusterInfo(ImmutableMap<String, DiskUsage> usages, ImmutableMap<String, Long> shardSizes) {
this.usages = usages;
this.shardSizes = shardSizes;
... | 0true | src_main_java_org_elasticsearch_cluster_ClusterInfo.java |
1,436 | public class CategoryLookupTag extends AbstractCatalogTag {
private static final Log LOG = LogFactory.getLog(CategoryTag.class);
private static final long serialVersionUID = 1L;
private String var;
private String categoryName;
@Override
public void doTag() throws JspException {
catalo... | 0true | core_broadleaf-framework-web_src_main_java_org_broadleafcommerce_core_web_catalog_taglib_CategoryLookupTag.java |
3,689 | public class TTLFieldMapper extends LongFieldMapper implements InternalMapper, RootMapper {
public static final String NAME = "_ttl";
public static final String CONTENT_TYPE = "_ttl";
public static class Defaults extends LongFieldMapper.Defaults {
public static final String NAME = TTLFieldMapper.C... | 1no label | src_main_java_org_elasticsearch_index_mapper_internal_TTLFieldMapper.java |
3,420 | public class IndexShardGatewayException extends IndexShardException {
public IndexShardGatewayException(ShardId shardId, String msg) {
super(shardId, msg);
}
public IndexShardGatewayException(ShardId shardId, String msg, Throwable cause) {
super(shardId, msg, cause);
}
} | 0true | src_main_java_org_elasticsearch_index_gateway_IndexShardGatewayException.java |
2,915 | public class PersianAnalyzerProvider extends AbstractIndexAnalyzerProvider<PersianAnalyzer> {
private final PersianAnalyzer analyzer;
@Inject
public PersianAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, Environment env, @Assisted String name, @Assisted Settings settings) {
su... | 0true | src_main_java_org_elasticsearch_index_analysis_PersianAnalyzerProvider.java |
3,323 | final static class Empty extends FSTBytesAtomicFieldData {
Empty(int numDocs) {
super(null, new EmptyOrdinals(numDocs));
}
@Override
public boolean isMultiValued() {
return false;
}
@Override
public int getNumDocs() {
ret... | 0true | src_main_java_org_elasticsearch_index_fielddata_plain_FSTBytesAtomicFieldData.java |
875 | public class KryoSerializer {
public static final int DEFAULT_MAX_OUTPUT_SIZE = 10 * 1024 * 1024; // 10 MB in bytes
public static final int KRYO_ID_OFFSET = 50;
private final boolean registerRequired;
private final ThreadLocal<Kryo> kryos;
private final Map<Integer,TypeRegistration> registrations;... | 1no label | titan-core_src_main_java_com_thinkaurelius_titan_graphdb_database_serialize_kryo_KryoSerializer.java |
535 | class ShardGatewaySnapshotRequest extends BroadcastShardOperationRequest {
ShardGatewaySnapshotRequest() {
}
public ShardGatewaySnapshotRequest(String index, int shardId, GatewaySnapshotRequest request) {
super(index, shardId, request);
}
@Override
public void readFrom(StreamInput in)... | 0true | src_main_java_org_elasticsearch_action_admin_indices_gateway_snapshot_ShardGatewaySnapshotRequest.java |
796 | static final class Fields {
static final XContentBuilderString TOOK = new XContentBuilderString("took");
static final XContentBuilderString TOTAL = new XContentBuilderString("total");
static final XContentBuilderString MATCHES = new XContentBuilderString("matches");
static final XCon... | 0true | src_main_java_org_elasticsearch_action_percolate_PercolateResponse.java |
464 | public interface QuantityBasedRule extends Serializable {
/**
* The quantity for which a match must be found using the rule. This generally
* equates to order item quantity (e.g. 2 shirts matching the rule are required in order to receive a discount)
*
* @return the quantity of matches required... | 0true | common_src_main_java_org_broadleafcommerce_common_rule_QuantityBasedRule.java |
1,246 | public class OMMapManagerOld extends OMMapManagerAbstract implements OMMapManager {
private static final long MIN_MEMORY = 50000000;
private static OMMapManagerOld.OVERLAP_STRATEGY overlapStrategy;
private static OMMapManager.ALLOC_STRATEGY lastS... | 0true | core_src_main_java_com_orientechnologies_orient_core_storage_fs_OMMapManagerOld.java |
101 | class ConvertToPositionalArgumentsProposal extends CorrectionProposal {
public ConvertToPositionalArgumentsProposal(int offset, Change change) {
super("Convert to positional arguments", change, new Region(offset, 0));
}
public static void addConvertToPositionalArgumentsProposal(Collection<ICom... | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_correct_ConvertToPositionalArgumentsProposal.java |
776 | public class MoreLikeThisRequest extends ActionRequest<MoreLikeThisRequest> {
private static final XContentType contentType = Requests.CONTENT_TYPE;
private String index;
private String type;
private String id;
private String routing;
private String[] fields;
private float percentTerm... | 0true | src_main_java_org_elasticsearch_action_mlt_MoreLikeThisRequest.java |
773 | createIndexAction.execute(new CreateIndexRequest(request.index()).cause("auto(index api)").masterNodeTimeout(request.timeout()), new ActionListener<CreateIndexResponse>() {
@Override
public void onResponse(CreateIndexResponse result) {
innerExecute(request... | 0true | src_main_java_org_elasticsearch_action_index_TransportIndexAction.java |
934 | public class OfferDiscountType implements Serializable, BroadleafEnumerationType {
private static final long serialVersionUID = 1L;
private static final Map<String, OfferDiscountType> TYPES = new LinkedHashMap<String, OfferDiscountType>();
public static final OfferDiscountType PERCENT_OFF = new Offer... | 1no label | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_offer_service_type_OfferDiscountType.java |
589 | public class ServiceMonitor {
private static final Log LOG = LogFactory.getLog(ServiceMonitor.class);
protected Map<ServiceStatusDetectable, StatusHandler> serviceHandlers = new HashMap<ServiceStatusDetectable, StatusHandler>();
protected StatusHandler defaultHandler = new LogStatusHandler();
protecte... | 0true | common_src_main_java_org_broadleafcommerce_common_vendor_service_monitor_ServiceMonitor.java |
1,795 | private static class DummyValue {
} | 0true | hazelcast_src_test_java_com_hazelcast_map_IssuesTest.java |
3,217 | public class ReplicatedMapInitChunkOperation
extends AbstractReplicatedMapOperation
implements IdentifiedDataSerializable {
private String name;
private Member origin;
private ReplicatedRecord[] replicatedRecords;
private int recordCount;
private boolean finalChunk;
private bool... | 1no label | hazelcast_src_main_java_com_hazelcast_replicatedmap_operation_ReplicatedMapInitChunkOperation.java |
1,201 | public class InsufficientFundsException extends PaymentException {
private static final long serialVersionUID = 1L;
public InsufficientFundsException() {
super();
}
public InsufficientFundsException(String message, Throwable cause) {
super(message, cause);
}
public Insufficie... | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_payment_service_exception_InsufficientFundsException.java |
1,852 | class InjectorShell {
private final List<Element> elements;
private final InjectorImpl injector;
private final PrivateElements privateElements;
private InjectorShell(Builder builder, List<Element> elements, InjectorImpl injector) {
this.privateElements = builder.privateElements;
this.e... | 0true | src_main_java_org_elasticsearch_common_inject_InjectorShell.java |
1,305 | public class ProductSearchResult {
protected List<Product> products;
protected List<SearchFacetDTO> facets;
protected Integer totalResults;
protected Integer page;
protected Integer pageSize;
public List<Product> getProducts() {
return products;
}
public void setProdu... | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_search_domain_ProductSearchResult.java |
920 | public interface ItemOfferProcessor extends OrderOfferProcessor {
/**
* Review an item level offer against the list of discountable items from the order. If the
* offer applies, add it to the qualifiedItemOffers list.
*
* @param order the BLC order
* @param qualifiedItemOffers the contain... | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_offer_service_processor_ItemOfferProcessor.java |
884 | return new PortableFactory() {
@Override
public Portable create(int classId) {
switch (classId) {
case COUNT_DOWN:
return new CountDownRequest();
case AWAIT:
return new AwaitRequest();... | 0true | hazelcast_src_main_java_com_hazelcast_concurrent_countdownlatch_client_CountDownLatchPortableHook.java |
1,842 | InternalFactory<T> internalFactory = new InternalFactory<T>() {
public T get(Errors errors, InternalContext context, Dependency dependency)
throws ErrorsException {
errors = errors.withSource(providerKey);
Provider<?> provider = providerBinding.get... | 0true | src_main_java_org_elasticsearch_common_inject_InjectorImpl.java |
1,550 | new OProfilerHookValue() {
@Override
public Object getValue() {
final StringBuilder dbs = new StringBuilder();
for (String dbName : getAvailableStorageNames().keySet()) {
if (dbs.length() > 0)
dbs.append(',');
... | 0true | server_src_main_java_com_orientechnologies_orient_server_OServer.java |
1,472 | public class HazelcastQueryResultsRegion extends AbstractGeneralRegion<LocalRegionCache> implements QueryResultsRegion {
public HazelcastQueryResultsRegion(final HazelcastInstance instance, final String name, final Properties props) {
// Note: We can pass HazelcastInstance as null, because instead of inval... | 0true | hazelcast-hibernate_hazelcast-hibernate3_src_main_java_com_hazelcast_hibernate_region_HazelcastQueryResultsRegion.java |
4,916 | public class RestGetAction extends BaseRestHandler {
@Inject
public RestGetAction(Settings settings, Client client, RestController controller) {
super(settings, client);
controller.registerHandler(GET, "/{index}/{type}/{id}", this);
}
@Override
public void handleRequest(final RestR... | 1no label | src_main_java_org_elasticsearch_rest_action_get_RestGetAction.java |
737 | public class CollectionRemoveRequest extends CollectionRequest {
private Data value;
public CollectionRemoveRequest() {
}
public CollectionRemoveRequest(String name, Data value) {
super(name);
this.value = value;
}
@Override
protected Operation prepareOperation() {
... | 0true | hazelcast_src_main_java_com_hazelcast_collection_client_CollectionRemoveRequest.java |
2,306 | public class RegexTests extends ElasticsearchTestCase {
@Test
public void testFlags() {
String[] supportedFlags = new String[]{"CASE_INSENSITIVE", "MULTILINE", "DOTALL", "UNICODE_CASE", "CANON_EQ", "UNIX_LINES",
"LITERAL", "COMMENTS", "UNICODE_CHAR_CLASS"};
int[] flags = new int... | 0true | src_test_java_org_elasticsearch_common_regex_RegexTests.java |
258 | @Entity
@Table(name = "BLC_EMAIL_TRACKING_CLICKS")
public class EmailTrackingClicksImpl implements EmailTrackingClicks {
/** The Constant serialVersionUID. */
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue(generator = "ClickId")
@GenericGenerator(
name="ClickId",
... | 1no label | common_src_main_java_org_broadleafcommerce_common_email_domain_EmailTrackingClicksImpl.java |
6,416 | public class LocalTransport extends AbstractLifecycleComponent<Transport> implements Transport {
private final ThreadPool threadPool;
private final Version version;
private volatile TransportServiceAdapter transportServiceAdapter;
private volatile BoundTransportAddress boundAddress;
private volatil... | 1no label | src_main_java_org_elasticsearch_transport_local_LocalTransport.java |
950 | public class OBase64Utils {
/* ******** P U B L I C F I E L D S ******** */
/** No options specified. Value is zero. */
public final static int NO_OPTIONS = 0;
/** Specify encoding in first bit. Value is one. */
public final static int ENCODE = 1;
/** Specify decoding in first bit. Value is zero... | 0true | core_src_main_java_com_orientechnologies_orient_core_serialization_OBase64Utils.java |
1,773 | public class OMailPlugin extends OServerPluginAbstract implements OScriptInjection {
private static final String CONFIG_PROFILE_PREFIX = "profile.";
private static final String CONFIG_MAIL_PREFIX = "mail.";
private Map<String, OMailProfile> profiles = new HashMap<String, OMailProfile>... | 1no label | server_src_main_java_com_orientechnologies_orient_server_plugin_mail_OMailPlugin.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.