Unnamed: 0 int64 0 6.45k | func stringlengths 29 253k | target class label 2
classes | project stringlengths 36 167 |
|---|---|---|---|
429 | public interface KeyInformation {
/**
* Returns the data type of the key's values.
*
* @return
*/
public Class<?> getDataType();
/**
* Returns the parameters of the key's configuration.
*
* @return
*/
public Parameter[] getParameters();
/**
* Returns t... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_diskstorage_indexing_KeyInformation.java |
878 | public class PromotionQualifier implements Serializable{
private static final long serialVersionUID = 1L;
private Offer promotion;
private OfferItemCriteria itemCriteria;
private int quantity;
private int finalizedQuantity;
public Offer getPromotion() {
return promotion;
}... | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_offer_service_discount_PromotionQualifier.java |
3,989 | public class FunctionScoreQueryParser implements QueryParser {
public static final String NAME = "function_score";
ScoreFunctionParserMapper funtionParserMapper;
@Inject
public FunctionScoreQueryParser(ScoreFunctionParserMapper funtionParserMapper) {
this.funtionParserMapper = funtionParserMap... | 1no label | src_main_java_org_elasticsearch_index_query_functionscore_FunctionScoreQueryParser.java |
3,330 | static class DoubleValues extends DenseDoubleValues {
private final BigFloatArrayList values;
DoubleValues(BigFloatArrayList values) {
super(false);
this.values = values;
}
@Override
public double nextValue() {
... | 0true | src_main_java_org_elasticsearch_index_fielddata_plain_FloatArrayAtomicFieldData.java |
98 | @Repository("blPageDao")
public class PageDaoImpl implements PageDao {
private static SandBox DUMMY_SANDBOX = new SandBoxImpl();
{
DUMMY_SANDBOX.setId(-1l);
}
@PersistenceContext(unitName = "blPU")
protected EntityManager em;
@Resource(name="blEntityConfiguration")
protected Entit... | 0true | admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_page_dao_PageDaoImpl.java |
482 | private static class RowIterator implements KeyIterator {
private final Iterator<Map.Entry<StaticBuffer, ColumnValueStore>> rows;
private final SliceQuery columnSlice;
private final StoreTransaction transaction;
private Map.Entry<StaticBuffer, ColumnValueStore> currentRow;
p... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_diskstorage_keycolumnvalue_inmemory_InMemoryKeyColumnValueStore.java |
19 | final class InverseEntryIterator extends AbstractEntryIterator<K, V, Map.Entry<K, V>> {
InverseEntryIterator(final OMVRBTreeEntry<K, V> last) {
super(last);
// we have to set ourselves after current index to make iterator work
if (last != null) {
pageIndex = last.getTree().getPageIndex()... | 0true | commons_src_main_java_com_orientechnologies_common_collection_OMVRBTree.java |
3,266 | public class TopicPermission extends InstancePermission {
private static final int PUBLISH = 0x4;
private static final int LISTEN = 0x8;
private static final int ALL = CREATE | DESTROY | LISTEN | PUBLISH;
public TopicPermission(String name, String... actions) {
super(name, actions);
}
... | 1no label | hazelcast_src_main_java_com_hazelcast_security_permission_TopicPermission.java |
308 | new Thread() {
public void run() {
map.lock(key);
lockedLatch.countDown();
}
}.start(); | 0true | hazelcast-client_src_test_java_com_hazelcast_client_map_ClientMapLockTest.java |
381 | public interface OIdentifiable extends Comparable<OIdentifiable>, Comparator<OIdentifiable> {
/**
* Returns the record identity.
*
* @return ORID instance
*/
public ORID getIdentity();
/**
* Returns the record instance.
*
* @return ORecord instance
*/
public <T extends ORecord<?>> T getRecord();
... | 0true | core_src_main_java_com_orientechnologies_orient_core_db_record_OIdentifiable.java |
272 | result.append(desc, new Styler() {
@Override
public void applyStyles(TextStyle textStyle) {
textStyle.font=new Font(title.getDisplay(), fontDatas);
}
}); | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_editor_PeekDefinitionPopup.java |
723 | public interface SkuFee extends Serializable {
public Long getId();
public void setId(Long id);
/**
* Get the name of the surcharge
*
* @return the surcharge name
*/
public String getName();
/**
* Sets the name of the surcharge
*
* @param name
*/
... | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_catalog_domain_SkuFee.java |
1,405 | public interface OBackupable {
void backup(OutputStream out, Map<String, Object> options, Callable<Object> callable) throws IOException;
void restore(InputStream in, Map<String, Object> options, Callable<Object> callable) throws IOException;
} | 0true | core_src_main_java_com_orientechnologies_orient_core_util_OBackupable.java |
986 | @SuppressWarnings({ "unchecked", "serial" })
public abstract class ORecordSerializerCSVAbstract extends ORecordSerializerStringAbstract {
public static final char FIELD_VALUE_SEPARATOR = ':';
private final boolean preferSBTreeRIDSet = OGlobalConfiguration.PREFER_SBTREE_SET.getValueAsBoolean();
protected ab... | 0true | core_src_main_java_com_orientechnologies_orient_core_serialization_serializer_record_string_ORecordSerializerCSVAbstract.java |
3,311 | static final class LongValues extends DenseLongValues {
private final BigDoubleArrayList values;
LongValues(BigDoubleArrayList values) {
super(false);
this.values = values;
}
@Override
public long nextValue() {
... | 0true | src_main_java_org_elasticsearch_index_fielddata_plain_DoubleArrayAtomicFieldData.java |
2,946 | @AnalysisSettingsRequired
public class StemmerOverrideTokenFilterFactory extends AbstractTokenFilterFactory {
private final StemmerOverrideMap overrideMap;
@Inject
public StemmerOverrideTokenFilterFactory(Index index, @IndexSettings Settings indexSettings, Environment env, @Assisted String name, @Assisted... | 0true | src_main_java_org_elasticsearch_index_analysis_StemmerOverrideTokenFilterFactory.java |
1,829 | return new Initializable<T>() {
public T get(Errors errors) throws ErrorsException {
return instance;
}
@Override
public String toString() {
return String.valueOf(instance);
}
}; | 0true | src_main_java_org_elasticsearch_common_inject_Initializables.java |
855 | public class ParsedScrollId {
public static final String QUERY_THEN_FETCH_TYPE = "queryThenFetch";
public static final String QUERY_AND_FETCH_TYPE = "queryAndFetch";
public static final String SCAN = "scan";
private final String source;
private final String type;
private final Tuple<String... | 0true | src_main_java_org_elasticsearch_action_search_type_ParsedScrollId.java |
100 | static class Segment<K,V> extends ReentrantLock implements Serializable {
private static final long serialVersionUID = 2249069246763182397L;
final float loadFactor;
Segment(float lf) { this.loadFactor = lf; }
} | 0true | src_main_java_jsr166e_ConcurrentHashMapV8.java |
209 | public class QueryParserSettings {
public static final boolean DEFAULT_ALLOW_LEADING_WILDCARD = true;
public static final boolean DEFAULT_ANALYZE_WILDCARD = false;
public static final float DEFAULT_BOOST = 1.f;
private String queryString;
private String defaultField;
private float boost = DEFA... | 0true | src_main_java_org_apache_lucene_queryparser_classic_QueryParserSettings.java |
378 | .ackTimeout(request.timeout()), new ActionListener<RepositoriesService.RegisterRepositoryResponse>() {
@Override
public void onResponse(RepositoriesService.RegisterRepositoryResponse response) {
listener.onResponse(new PutRepositoryResponse(response.isAcknowledge... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_repositories_put_TransportPutRepositoryAction.java |
1,075 | public class MemberAttributeConfigReadOnly extends MemberAttributeConfig {
MemberAttributeConfigReadOnly(MemberAttributeConfig source) {
super(source);
}
@Override
public void setStringAttribute(String key, String value) {
throw new UnsupportedOperationException("This config is read-on... | 0true | hazelcast_src_main_java_com_hazelcast_config_MemberAttributeConfigReadOnly.java |
6,029 | public final class NoisyChannelSpellChecker {
public static final double REAL_WORD_LIKELYHOOD = 0.95d;
public static final int DEFAULT_TOKEN_LIMIT = 10;
private final double realWordLikelihood;
private final boolean requireUnigram;
private final int tokenLimit;
public NoisyChannelSpellChecker()... | 1no label | src_main_java_org_elasticsearch_search_suggest_phrase_NoisyChannelSpellChecker.java |
803 | public class AtomicLongPortableHook implements PortableHook {
static final int F_ID = FactoryIdHelper.getFactoryId(FactoryIdHelper.ATOMIC_LONG_PORTABLE_FACTORY, -17);
static final int ADD_AND_GET = 1;
static final int COMPARE_AND_SET = 2;
static final int GET_AND_ADD = 3;
static final int GET_AND_... | 0true | hazelcast_src_main_java_com_hazelcast_concurrent_atomiclong_client_AtomicLongPortableHook.java |
889 | threadPool.executor(ThreadPool.Names.SEARCH).execute(new Runnable() {
@Override
public void run() {
executeQueryPhase(shardIndex, counter, node, target.v2());
... | 0true | src_main_java_org_elasticsearch_action_search_type_TransportSearchScrollQueryThenFetchAction.java |
700 | public class BulkShardRequest extends ShardReplicationOperationRequest<BulkShardRequest> {
private int shardId;
private BulkItemRequest[] items;
private boolean refresh;
BulkShardRequest() {
}
BulkShardRequest(String index, int shardId, boolean refresh, BulkItemRequest[] items) {
th... | 0true | src_main_java_org_elasticsearch_action_bulk_BulkShardRequest.java |
648 | public class CollectionContainsOperation extends CollectionOperation {
Set<Data> valueSet;
public CollectionContainsOperation() {
}
public CollectionContainsOperation(String name, Set<Data> valueSet) {
super(name);
this.valueSet = valueSet;
}
@Override
public int getId() ... | 0true | hazelcast_src_main_java_com_hazelcast_collection_CollectionContainsOperation.java |
422 | public class ClientMapReduceProxy
extends ClientProxy
implements JobTracker {
private final ConcurrentMap<String, ClientTrackableJob> trackableJobs = new ConcurrentHashMap<String, ClientTrackableJob>();
public ClientMapReduceProxy(String instanceName, String serviceName, String objectName) {
... | 1no label | hazelcast-client_src_main_java_com_hazelcast_client_proxy_ClientMapReduceProxy.java |
450 | public class KeySliceQuery extends SliceQuery {
private final StaticBuffer key;
public KeySliceQuery(StaticBuffer key, StaticBuffer sliceStart, StaticBuffer sliceEnd) {
super(sliceStart, sliceEnd);
Preconditions.checkNotNull(key);
this.key=key;
}
public KeySliceQuery(StaticBuf... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_diskstorage_keycolumnvalue_KeySliceQuery.java |
2,041 | public final class InjectionRequest<T> implements Element {
private final Object source;
private final TypeLiteral<T> type;
private final T instance;
public InjectionRequest(Object source, TypeLiteral<T> type, T instance) {
this.source = checkNotNull(source, "source");
this.type = chec... | 0true | src_main_java_org_elasticsearch_common_inject_spi_InjectionRequest.java |
1,932 | public class MapContainsValueRequest extends AllPartitionsClientRequest implements Portable, RetryableRequest, SecureRequest {
private String name;
private Data value;
public MapContainsValueRequest() {
}
public MapContainsValueRequest(String name, Data value) {
this.name = name;
... | 0true | hazelcast_src_main_java_com_hazelcast_map_client_MapContainsValueRequest.java |
1,869 | boolean b = h1.executeTransaction(options, new TransactionalTask<Boolean>() {
public Boolean execute(TransactionalTaskContext context) throws TransactionException {
final TransactionalMap<Object, Object> txMap = context.getMap("default");
assertNull(txMap.replace("1",... | 0true | hazelcast_src_test_java_com_hazelcast_map_MapTransactionTest.java |
456 | public static class AdminPresentationToOneLookup {
public static final String LOOKUPDISPLAYPROPERTY = "lookupDisplayProperty";
public static final String USESERVERSIDEINSPECTIONCACHE = "useServerSideInspectionCache";
public static final String LOOKUPTYPE = "lookupType";
public static... | 0true | common_src_main_java_org_broadleafcommerce_common_presentation_override_PropertyType.java |
23 | static class EdgeVertex extends Vertex {
private SortedSet<Edge> outEdges = new ConcurrentSkipListSet<Edge>(new Comparator<Edge>() {
@Override
public int compare(Edge e1, Edge e2) {
return e1.getEnd().compareTo(e2.getEnd());
}
});
EdgeVer... | 0true | titan-test_src_main_java_com_thinkaurelius_titan_TestByteBuffer.java |
1,044 | public class OCommandExecutorSQLGrant extends OCommandExecutorSQLPermissionAbstract {
public static final String KEYWORD_GRANT = "GRANT";
private static final String KEYWORD_TO = "TO";
@SuppressWarnings("unchecked")
public OCommandExecutorSQLGrant parse(final OCommandRequest iRequest) {
init((OCommandR... | 0true | core_src_main_java_com_orientechnologies_orient_core_sql_OCommandExecutorSQLGrant.java |
1,110 | differences.add(new OSQLFunctionDifference() {
@Override
protected boolean returnDistributedResult() {
return true;
}
}); | 0true | core_src_test_java_com_orientechnologies_orient_core_sql_functions_coll_SQLFunctionDifferenceTest.java |
476 | public interface EventHandler<E> {
void handle(E event);
/**
* This method is called when registration request response is successfully returned from node.
*
* Note that this method will also be called while first registered node is dead
* and re-registering to a second node.
*/
... | 0true | hazelcast-client_src_main_java_com_hazelcast_client_spi_EventHandler.java |
33 | @edu.umd.cs.findbugs.annotations.SuppressWarnings("EI_EXPOSE_REP")
public class MemcacheEntry implements DataSerializable, TextCommandConstants {
private byte[] bytes;
private byte[] value;
private int flag;
public MemcacheEntry(String key, byte[] value, int flag) {
byte[] flagBytes = stringToB... | 0true | hazelcast_src_main_java_com_hazelcast_ascii_memcache_MemcacheEntry.java |
3,474 | public class ContentPath {
public static enum Type {
JUST_NAME,
FULL,
}
private Type pathType;
private final char delimiter;
private final StringBuilder sb;
private final int offset;
private int index = 0;
private String[] path = new String[10];
private String... | 0true | src_main_java_org_elasticsearch_index_mapper_ContentPath.java |
438 | public enum UnspecifiedBooleanType {
TRUE,FALSE,UNSPECIFIED
} | 0true | common_src_main_java_org_broadleafcommerce_common_presentation_client_UnspecifiedBooleanType.java |
1,602 | public class OReplicationConflictException extends ODistributedException {
private static final String MESSAGE_REMOTE_VERSION = "remote=v";
private static final String MESSAGE_LOCAL_VERSION = "local=v";
private static final long serialVersionUID = 1L;
private final ORID localRID;
private ... | 0true | server_src_main_java_com_orientechnologies_orient_server_distributed_conflict_OReplicationConflictException.java |
207 | public class MapperQueryParser extends QueryParser {
public static final ImmutableMap<String, FieldQueryExtension> fieldQueryExtensions;
static {
fieldQueryExtensions = ImmutableMap.<String, FieldQueryExtension>builder()
.put(ExistsFieldQueryExtension.NAME, new ExistsFieldQueryExtensio... | 0true | src_main_java_org_apache_lucene_queryparser_classic_MapperQueryParser.java |
488 | public final class ClientClusterServiceImpl implements ClientClusterService {
private static final ILogger LOGGER = Logger.getLogger(ClientClusterService.class);
private static final int SLEEP_TIME = 1000;
private final HazelcastClient client;
private final ClientConnectionManagerImpl connectionManage... | 1no label | hazelcast-client_src_main_java_com_hazelcast_client_spi_impl_ClientClusterServiceImpl.java |
1,430 | public class ProductHandlerMapping extends BLCAbstractHandlerMapping {
private String controllerName="blProductController";
@Resource(name = "blCatalogService")
private CatalogService catalogService;
public static final String CURRENT_PRODUCT_ATTRIBUTE_NAME = "currentProduct";
@Overr... | 0true | core_broadleaf-framework-web_src_main_java_org_broadleafcommerce_core_web_catalog_ProductHandlerMapping.java |
4,189 | public class BlobStoreIndexShardRepository extends AbstractComponent implements IndexShardRepository {
private BlobStore blobStore;
private BlobPath basePath;
private final String repositoryName;
private ByteSizeValue chunkSize;
private final IndicesService indicesService;
private RateLimi... | 1no label | src_main_java_org_elasticsearch_index_snapshots_blobstore_BlobStoreIndexShardRepository.java |
433 | public class RawQuery extends BaseQuery {
private final String store;
private final String query;
private final Parameter[] parameters;
private int offset;
public RawQuery(String store, String query, Parameter[] parameters) {
Preconditions.checkNotNull(store);
Preconditions.checkA... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_diskstorage_indexing_RawQuery.java |
295 | new Thread() {
public void run() {
if (!l.tryLock()) {
latch.countDown();
}
try {
if (l.tryLock(5, TimeUnit.SECONDS)) {
latch.countDown();
}
} catch (In... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_lock_ClientLockTest.java |
1,422 | public class OChannelBinaryAsynchClientSynch extends OChannelBinaryAsynchClient {
public OChannelBinaryAsynchClientSynch(final String remoteHost, final int remotePort, final OContextConfiguration iConfig)
throws IOException {
super(remoteHost, remotePort, iConfig, OChannelBinaryProtocol.CURRENT_PROTOCOL_VE... | 0true | enterprise_src_main_java_com_orientechnologies_orient_enterprise_channel_binary_OChannelBinaryAsynchClientSynch.java |
916 | public class LockProxy extends AbstractDistributedObject<LockServiceImpl> implements ILock {
private final String name;
private final LockProxySupport lockSupport;
private final Data key;
private final int partitionId;
public LockProxy(NodeEngine nodeEngine, LockServiceImpl lockService, String nam... | 1no label | hazelcast_src_main_java_com_hazelcast_concurrent_lock_LockProxy.java |
172 | public static class Stats {
public AtomicLong puts = new AtomicLong();
public AtomicLong gets = new AtomicLong();
public AtomicLong removes = new AtomicLong();
public Stats getAndReset() {
long putsNow = puts.getAndSet(0);
long getsNow = gets.getAndSet(0);
... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_SimpleMapTestFromClient.java |
215 | protected abstract class PreviousSubWordAction extends TextNavigationAction {
protected CeylonWordIterator fIterator= new CeylonWordIterator();
/**
* Creates a new previous sub-word action.
*
* @param code Action code for the default operation. Must be an action code fro... | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_editor_CeylonEditor.java |
3,090 | static interface Operation {
static enum Type {
CREATE,
INDEX,
DELETE
}
static enum Origin {
PRIMARY,
REPLICA,
RECOVERY
}
Type opType();
Origin origin();
} | 0true | src_main_java_org_elasticsearch_index_engine_Engine.java |
3,514 | public class MapperServiceModule extends AbstractModule {
@Override
protected void configure() {
bind(MapperService.class).asEagerSingleton();
}
} | 0true | src_main_java_org_elasticsearch_index_mapper_MapperServiceModule.java |
3,412 | public class CommitPointsTests extends ElasticsearchTestCase {
private final ESLogger logger = Loggers.getLogger(CommitPointsTests.class);
@Test
public void testCommitPointXContent() throws Exception {
ArrayList<CommitPoint.FileInfo> indexFiles = Lists.newArrayList();
indexFiles.add(new Co... | 0true | src_test_java_org_elasticsearch_index_gateway_CommitPointsTests.java |
1,925 | public interface AnnotatedBindingBuilder<T> extends LinkedBindingBuilder<T> {
/**
* See the EDSL examples at {@link org.elasticsearch.common.inject.Binder}.
*/
LinkedBindingBuilder<T> annotatedWith(
Class<? extends Annotation> annotationType);
/**
* See the EDSL examples at {@li... | 0true | src_main_java_org_elasticsearch_common_inject_binder_AnnotatedBindingBuilder.java |
2,033 | return new AnnotatedElementBuilder() {
public void annotatedWith(Class<? extends Annotation> annotationType) {
}
public void annotatedWith(Annotation annotation) {
}
}; | 0true | src_main_java_org_elasticsearch_common_inject_spi_Elements.java |
396 | public class ClusterSearchShardsResponse extends ActionResponse implements ToXContent {
private ClusterSearchShardsGroup[] groups;
private DiscoveryNode[] nodes;
ClusterSearchShardsResponse() {
}
public ClusterSearchShardsGroup[] getGroups() {
return groups;
}
public DiscoveryNo... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_shards_ClusterSearchShardsResponse.java |
158 | public abstract class MultiPartitionClientRequest extends ClientRequest {
@Override
final void process() throws Exception {
ClientEndpoint endpoint = getEndpoint();
OperationFactory operationFactory = new OperationFactoryWrapper(createOperationFactory(), endpoint.getUuid());
Map<Integer... | 0true | hazelcast_src_main_java_com_hazelcast_client_MultiPartitionClientRequest.java |
2,078 | public class PartitionCheckIfLoadedOperationFactory implements OperationFactory {
String name;
public PartitionCheckIfLoadedOperationFactory() {
}
public PartitionCheckIfLoadedOperationFactory(String name) {
this.name = name;
}
@Override
public Operation createOperation() {
... | 0true | hazelcast_src_main_java_com_hazelcast_map_operation_PartitionCheckIfLoadedOperationFactory.java |
1,812 | class ConstructorInjector<T> {
private final ImmutableSet<InjectionPoint> injectableMembers;
private final SingleParameterInjector<?>[] parameterInjectors;
private final ConstructionProxy<T> constructionProxy;
private final MembersInjectorImpl<T> membersInjector;
ConstructorInjector(ImmutableSet<I... | 0true | src_main_java_org_elasticsearch_common_inject_ConstructorInjector.java |
981 | public class ORecordSerializerFactory {
private static final ORecordSerializerFactory instance = new ORecordSerializerFactory();
private Map<String, ORecordSerializer> implementations = new HashMap<String, ORecordSerializer>();
private ORecordSerializer defaultRecordFormat;
public ORecordSerialize... | 0true | core_src_main_java_com_orientechnologies_orient_core_serialization_serializer_record_ORecordSerializerFactory.java |
1,362 | public static class MemberCheck implements Callable<Member>, Serializable, HazelcastInstanceAware {
private Member localMember;
public Member call() throws Exception {
return localMember;
}
@Override
public void setHazelcastInstance(HazelcastInstance hazelcastI... | 0true | hazelcast_src_test_java_com_hazelcast_executor_ExecutorServiceTest.java |
1,354 | public abstract class SourceFile extends CeylonUnit {
public SourceFile(IdePhasedUnit phasedUnit) {
createPhasedUnitRef(phasedUnit);
}
@Override
protected IdePhasedUnit setPhasedUnitIfNecessary() { return phasedUnitRef.get(); }
@Override
public String getSourceFullPath() {
... | 1no label | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_core_model_SourceFile.java |
835 | public class MVELTest extends BaseTest {
private StringBuffer functions = new StringBuffer();
public MVELTest() {
InputStream is = this.getClass().getResourceAsStream("/org/broadleafcommerce/core/offer/service/mvelFunctions.mvel");
try {
BufferedReader reader = new BufferedReader(n... | 0true | integration_src_test_java_org_broadleafcommerce_core_offer_service_MVELTest.java |
6,204 | public final class MockInternalEngine extends InternalEngine implements Engine {
public static final ConcurrentMap<AssertingSearcher, RuntimeException> INFLIGHT_ENGINE_SEARCHERS = new ConcurrentHashMap<AssertingSearcher, RuntimeException>();
public static final String WRAP_READER_RATIO = "index.engine.mock.rand... | 1no label | src_test_java_org_elasticsearch_test_engine_MockInternalEngine.java |
4,664 | private final PercolatorType matchPercolator = new PercolatorType() {
@Override
public byte id() {
return 0x03;
}
@Override
public ReduceResult reduce(List<PercolateShardResponse> shardResults) {
long foundMatches = 0;
int numMatches = 0;... | 1no label | src_main_java_org_elasticsearch_percolator_PercolatorService.java |
1,117 | public class TopicConfigReadOnly extends TopicConfig {
public TopicConfigReadOnly(TopicConfig config) {
super(config);
}
public List<ListenerConfig> getMessageListenerConfigs() {
final List<ListenerConfig> messageListenerConfigs = super.getMessageListenerConfigs();
final List<Liste... | 0true | hazelcast_src_main_java_com_hazelcast_config_TopicConfigReadOnly.java |
2,895 | public class NumericAnalyzerTests extends ElasticsearchTestCase {
@Test
public void testAttributeEqual() throws IOException {
final int precisionStep = 8;
final double value = randomDouble();
NumericDoubleAnalyzer analyzer = new NumericDoubleAnalyzer(precisionStep);
final Token... | 0true | src_test_java_org_elasticsearch_index_analysis_NumericAnalyzerTests.java |
63 | FindDeclarationNodeVisitor fdv = new FindDeclarationNodeVisitor(typeDec) {
@Override
public void visit(Tree.ObjectDefinition that) {
if (that.getDeclarationModel().getType().getDeclaration().equals(typeDec)) {
declarationNode = that;
}
... | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_correct_AddSatisfiesProposal.java |
1,220 | Executors.newSingleThreadExecutor().execute(new Runnable() {
public void run() {
while (true) {
try {
//noinspection BusyWait
Thread.sleep(STATS_SECONDS * ONE_SECOND);
System.out.println("clu... | 0true | hazelcast_src_main_java_com_hazelcast_examples_AllTest.java |
613 | indexEngine.getValuesMajor(iRangeFrom, isInclusive, MultiValuesTransformer.INSTANCE, new OIndexEngine.ValuesResultListener() {
@Override
public boolean addResult(OIdentifiable identifiable) {
return valuesResultListener.addResult(identifiable);
}
}); | 1no label | core_src_main_java_com_orientechnologies_orient_core_index_OIndexMultiValues.java |
2,217 | public final class XFilteredQuery extends Query {
private final Filter rawFilter;
private final FilteredQuery delegate;
private final FilterStrategy strategy;
/**
* Constructs a new query which applies a filter to the results of the original query.
* {@link Filter#getDocIdSet} will be called ... | 0true | src_main_java_org_elasticsearch_common_lucene_search_XFilteredQuery.java |
1,173 | public static class Group {
public static class Name {
public static final String Items = "PaymentInfoImpl_Items";
}
public static class Order {
public static final int Items = 1000;
}
} | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_payment_domain_PaymentInfoImpl.java |
65 | public class RFC2104HMAC {
private RFC2104HMAC(){}
public static String calculateRFC2104HMAC(String data, String key)
throws SignatureException {
String result;
try {
SecretKeySpec signingKey = new SecretKeySpec(stringToBytes(key),
SIGNATURE_METHOD);... | 0true | hazelcast-cloud_src_main_java_com_hazelcast_aws_security_RFC2104HMAC.java |
816 | public static class Order {
public static final int Description = 1000;
public static final int Amount = 2000;
public static final int ActivityRange = 3000;
public static final int Qualifiers = 4000;
public static final int Item... | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_offer_domain_OfferImpl.java |
2,680 | interface GatewayStateRecoveredListener {
void onSuccess(ClusterState recoveredState);
void onFailure(String message);
} | 0true | src_main_java_org_elasticsearch_gateway_Gateway.java |
31 | public class IncrementCommandProcessor extends MemcacheCommandProcessor<IncrementCommand> {
private final ILogger logger;
public IncrementCommandProcessor(TextCommandServiceImpl textCommandService) {
super(textCommandService);
logger = textCommandService.getNode().getLogger(this.getClass().get... | 0true | hazelcast_src_main_java_com_hazelcast_ascii_memcache_IncrementCommandProcessor.java |
405 | public class UnmaskRange {
public static final int BEGINNINGTYPE = 0;
public static final int ENDTYPE = 1;
private int positionType;
private int length;
public UnmaskRange(int startPosition, int length) {
this.positionType = startPosition;
this.length = length;
}
public i... | 0true | common_src_main_java_org_broadleafcommerce_common_payment_UnmaskRange.java |
1,222 | public class SimplePaymentContext implements ProcessContext {
public final static long serialVersionUID = 1L;
private boolean stopEntireProcess = false;
private PaymentSeed seedData;
public void setSeedData(Object seedObject) {
this.seedData = (PaymentSeed) seedObject;
}
public boole... | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_payment_service_workflow_SimplePaymentContext.java |
210 | @Deprecated
public class HydratedCacheElement extends Hashtable<String, Object> {
private static final long serialVersionUID = 1L;
public Object getCacheElementItem(String elementItemName, Serializable parentKey) {
return get(elementItemName + "_" + parentKey);
}
public Object putCacheEle... | 0true | common_src_main_java_org_broadleafcommerce_common_cache_engine_HydratedCacheElement.java |
256 | return new RecordIterator<Entry>() {
final Iterator<Entry> columns = CassandraHelper.makeEntryIterator(
Iterables.filter(currentRow.cf.getSortedColumns(), new FilterDeletedColumns(nowMillis)),
entryGetter,
sliceQuery.get... | 0true | titan-cassandra_src_main_java_com_thinkaurelius_titan_diskstorage_cassandra_embedded_CassandraEmbeddedKeyColumnValueStore.java |
17 | public class TestByteBuffer {
private static final int NUM = 1000;
private static final double FRACTION = 0.2;
private static final int ROUNDSIZE = 5;
private static final int TRIALS = 5;
private static final boolean CHECK_VALUE = true;
private static final Random random = new Random();
p... | 0true | titan-test_src_main_java_com_thinkaurelius_titan_TestByteBuffer.java |
1,902 | public enum Stage {
/**
* We're running in a tool (an IDE plugin for example). We need binding meta data but not a
* functioning Injector. Do not inject members of instances. Do not load eager singletons. Do as
* little as possible so our tools run nice and snappy. Injectors created in this stage ca... | 0true | src_main_java_org_elasticsearch_common_inject_Stage.java |
780 | @SuppressWarnings("deprecation")
public class OfferDataProvider {
@DataProvider(name = "offerDataProvider")
public static Object[][] provideBasicOffer(){
List<Offer> allOffers = new ArrayList<Offer>();
OfferImpl o = new OfferImpl();
o.setDiscountType(OfferDiscountType.AMOUNT_OFF);
... | 0true | integration_src_test_java_org_broadleafcommerce_core_offer_OfferDataProvider.java |
2,764 | static final class Fields {
static final XContentBuilderString HTTP = new XContentBuilderString("http");
static final XContentBuilderString CURRENT_OPEN = new XContentBuilderString("current_open");
static final XContentBuilderString TOTAL_OPENED = new XContentBuilderString("total_opened");
... | 0true | src_main_java_org_elasticsearch_http_HttpStats.java |
1,550 | private class BeanInfo {
final String name;
final String description;
transient Method method;
public BeanInfo(String name, String description, Method method){
this.name = name;
this.description = description;
this.method = method;
}
... | 0true | hazelcast_src_main_java_com_hazelcast_jmx_HazelcastMBean.java |
77 | public interface AttributeSerializer<V> extends AttributeHandler<V> {
/**
* Reads an attribute from the given ReadBuffer.
* <p/>
* It is expected that this read operation adjusts the position in the ReadBuffer to after the attribute value.
*
* @param buffer ReadBuffer to read attribute fro... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_core_attribute_AttributeSerializer.java |
696 | public interface ProductBundle extends Product, Serializable {
/**
* @return The pricing model for this bundle
*
* ITEM_SUM indicates that the bundle is priced by the sum of the contained items.
* BUNDLE indicates that the bundle is priced by the price on the bundle itself.
*/
public P... | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_catalog_domain_ProductBundle.java |
274 | public interface JMSEmailServiceProducer extends EmailServiceProducer {
/**
* @return the emailServiceTemplate
*/
public JmsTemplate getEmailServiceTemplate();
/**
* @param emailServiceTemplate the emailServiceTemplate to set
*/
public void setEmailServiceTemplate(JmsTemplate email... | 0true | common_src_main_java_org_broadleafcommerce_common_email_service_jms_JMSEmailServiceProducer.java |
2,592 | threadPool.generic().execute(new Runnable() {
@Override
public void run() {
for (Listener listener : listeners) {
listener.onDisconnectedFromMaster();
}
}
}); | 0true | src_main_java_org_elasticsearch_discovery_zen_fd_MasterFaultDetection.java |
1,411 | private static final SoftLock LOCK_SUCCESS = new SoftLock() {}; | 1no label | hazelcast-hibernate_hazelcast-hibernate3_src_main_java_com_hazelcast_hibernate_distributed_IMapRegionCache.java |
558 | public abstract class OAbstractIndexDefinition extends ODocumentWrapperNoClass implements OIndexDefinition {
protected OCollate collate = new ODefaultCollate();
protected OAbstractIndexDefinition() {
super(new ODocument());
}
public OCollate getCollate() {
return collate;
}
public void setCollate... | 0true | core_src_main_java_com_orientechnologies_orient_core_index_OAbstractIndexDefinition.java |
1,470 | new OGremlinHelper.OGremlinCallback() {
@Override
public boolean call(ScriptEngine iEngine, OrientBaseGraph iGraph) {
final ODocument document = (ODocument) iCurrentRecord;
if (document.getSchemaClass() != null && document.getSchemaClass().isSubClassOf("E")) {
... | 1no label | graphdb_src_main_java_com_orientechnologies_orient_graph_sql_functions_OSQLFunctionGremlin.java |
665 | sbTree.loadEntriesBetween(rangeFrom, fromInclusive, rangeTo, toInclusive, new OSBTree.RangeResultListener<Object, V>() {
@Override
public boolean addResult(Map.Entry<Object, V> entry) {
return addToResult(transformer, valuesResultListener, entry.getValue());
}
}); | 0true | core_src_main_java_com_orientechnologies_orient_core_index_engine_OSBTreeIndexEngine.java |
2,508 | public class XContentString extends SerializedString {
public XContentString(String v) {
super(v);
}
} | 0true | src_main_java_org_elasticsearch_common_xcontent_XContentString.java |
611 | @Component("blSandBoxResolver")
public class BroadleafSandBoxResolverImpl implements BroadleafSandBoxResolver {
private final Log LOG = LogFactory.getLog(BroadleafSandBoxResolverImpl.class);
/**
* Property used to disable sandbox mode. Some implementations will want to
* turn off sandboxes in ... | 1no label | common_src_main_java_org_broadleafcommerce_common_web_BroadleafSandBoxResolverImpl.java |
465 | public static class AliasActions {
private String[] indices = Strings.EMPTY_ARRAY;
private String[] aliases = Strings.EMPTY_ARRAY;
private AliasAction aliasAction;
public AliasActions(AliasAction.Type type, String[] indices, String[] aliases) {
aliasAction = new ... | 0true | src_main_java_org_elasticsearch_action_admin_indices_alias_IndicesAliasesRequest.java |
1,849 | interface MethodInvoker {
Object invoke(Object target, Object... parameters)
throws IllegalAccessException, InvocationTargetException;
} | 0true | src_main_java_org_elasticsearch_common_inject_InjectorImpl.java |
1,454 | public class OrderMultishipOptionForm implements Serializable {
private static final long serialVersionUID = -5989681894142759293L;
protected List<OrderMultishipOptionDTO> options;
public List<OrderMultishipOptionDTO> getOptions() {
return options;
}
public void setOptions(List<Order... | 0true | core_broadleaf-framework-web_src_main_java_org_broadleafcommerce_core_web_checkout_model_OrderMultishipOptionForm.java |
241 | public interface OCacheLevelTwoLocator {
public OCache primaryCache(final String storageName);
} | 0true | core_src_main_java_com_orientechnologies_orient_core_cache_OCacheLevelTwoLocator.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.