Unnamed: 0 int64 0 6.45k | func stringlengths 29 253k | target class label 2
classes | project stringlengths 36 167 |
|---|---|---|---|
2,497 | enum Token {
START_OBJECT {
@Override
public boolean isValue() {
return false;
}
},
END_OBJECT {
@Override
public boolean isValue() {
return false;
}
},
START_ARRAY {
... | 0true | src_main_java_org_elasticsearch_common_xcontent_XContentParser.java |
587 | class ShardRefreshRequest extends BroadcastShardOperationRequest {
private boolean force = true;
ShardRefreshRequest() {
}
public ShardRefreshRequest(String index, int shardId, RefreshRequest request) {
super(index, shardId, request);
force = request.force();
}
public boolean... | 0true | src_main_java_org_elasticsearch_action_admin_indices_refresh_ShardRefreshRequest.java |
304 | public class CommonConfigTest extends WritableConfigurationTest {
@Override
public WriteConfiguration getConfig() {
return new CommonsConfiguration(new BaseConfiguration());
}
@Test
public void testDateParsing() {
BaseConfiguration base = new BaseConfiguration();
CommonsCon... | 0true | titan-test_src_test_java_com_thinkaurelius_titan_diskstorage_configuration_CommonConfigTest.java |
3,432 | public static class Index {
private long startTime = 0;
private long time = 0;
private long version = -1;
private int numberOfFiles = 0;
private long totalSize = 0;
private int numberOfReusedFiles = 0;
private long reusedTotalSize = 0;
private AtomicL... | 0true | src_main_java_org_elasticsearch_index_gateway_RecoveryStatus.java |
3,123 | Arrays.sort(segmentsArr, new Comparator<Segment>() {
@Override
public int compare(Segment o1, Segment o2) {
return (int) (o1.getGeneration() - o2.getGeneration());
}
}); | 1no label | src_main_java_org_elasticsearch_index_engine_internal_InternalEngine.java |
2,620 | private class LeaveRequestRequestHandler extends BaseTransportRequestHandler<LeaveRequest> {
static final String ACTION = "discovery/zen/leave";
@Override
public LeaveRequest newInstance() {
return new LeaveRequest();
}
@Override
public void messageRece... | 0true | src_main_java_org_elasticsearch_discovery_zen_membership_MembershipAction.java |
4,246 | static class Delete implements Operation {
private Term uid;
private long version;
public Delete() {
}
public Delete(Engine.Delete delete) {
this(delete.uid());
this.version = delete.version();
}
public Delete(Term uid) {
... | 1no label | src_main_java_org_elasticsearch_index_translog_Translog.java |
884 | threadPool.executor(ThreadPool.Names.SEARCH).execute(new Runnable() {
@Override
public void run() {
executePhase(shardIndex, node, target.v2());
... | 0true | src_main_java_org_elasticsearch_action_search_type_TransportSearchScrollQueryAndFetchAction.java |
614 | public class MergeClustersOperation extends AbstractClusterOperation {
private Address newTargetAddress;
public MergeClustersOperation() {
}
public MergeClustersOperation(Address newTargetAddress) {
this.newTargetAddress = newTargetAddress;
}
@Override
public void run() {
... | 0true | hazelcast_src_main_java_com_hazelcast_cluster_MergeClustersOperation.java |
844 | public class AlterRequest extends AbstractAlterRequest {
public AlterRequest() {
}
public AlterRequest(String name, Data function) {
super(name, function);
}
@Override
protected Operation prepareOperation() {
return new AlterOperation(name, function);
}
@Override
... | 0true | hazelcast_src_main_java_com_hazelcast_concurrent_atomicreference_client_AlterRequest.java |
426 | private final class ClientTrackableJob<V>
implements TrackableJob<V> {
private final String jobId;
private final Address jobOwner;
private final AbstractCompletableFuture<V> completableFuture;
private ClientTrackableJob(String jobId, Address jobOwner,
... | 0true | hazelcast-client_src_main_java_com_hazelcast_client_proxy_ClientMapReduceProxy.java |
2,629 | ping(new PingListener() {
@Override
public void onPing(PingResponse[] pings) {
response.set(pings);
latch.countDown();
}
}, timeout); | 0true | src_main_java_org_elasticsearch_discovery_zen_ping_ZenPingService.java |
1,420 | public final class HazelcastAccessor {
private HazelcastAccessor(){}
static final ILogger logger = Logger.getLogger(HazelcastAccessor.class);
/**
* Tries to extract <code>HazelcastInstance</code> from <code>Session</code>.
*
* @param session
* @return Currently used <code>HazelcastIns... | 0true | hazelcast-hibernate_hazelcast-hibernate4_src_main_java_com_hazelcast_hibernate_instance_HazelcastAccessor.java |
176 | {
@Override
public long nextSequenceId()
{
return 1;
}
@Override
public long nextRandomLong()
{
return 14; // soo random
}
}; | 0true | community_kernel_src_test_java_org_neo4j_kernel_impl_transaction_XidImplTest.java |
49 | public interface DoubleByDoubleToDouble { double apply(double a, double b); } | 0true | src_main_java_jsr166e_ConcurrentHashMapV8.java |
493 | new RejectedExecutionHandler() {
public void rejectedExecution(Runnable r, ThreadPoolExecutor executor) {
String message = "Internal executor rejected task: " + r + ", because client is shutting down...";
LOGGER.finest(message);
... | 0true | hazelcast-client_src_main_java_com_hazelcast_client_spi_impl_ClientExecutionServiceImpl.java |
74 | public interface VertexLabel extends TitanVertex, TitanSchemaType {
/**
* Whether vertices with this label are partitioned.
*
* @return
*/
public boolean isPartitioned();
/**
* Whether vertices with this label are static, that is, immutable beyond the transaction
* in which t... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_core_VertexLabel.java |
1,484 | public class Hibernate4CacheEntrySerializerHook
implements SerializerHook {
private static final String SKIP_INIT_MSG = "Hibernate4 not available, skipping serializer initialization";
private final Class<?> cacheEntryClass;
public Hibernate4CacheEntrySerializerHook() {
Class<?> cacheEntry... | 1no label | hazelcast-hibernate_hazelcast-hibernate4_src_main_java_com_hazelcast_hibernate_serialization_Hibernate4CacheEntrySerializerHook.java |
1,316 | @Deprecated
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE, region="blStandardElements")
public class SearchInterceptImpl implements SearchIntercept {
@Id
@GeneratedValue(generator = "SearchInterceptId")
@GenericGenerator(
name="SearchInterceptId",
strategy="org.broadleafcommerce.co... | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_search_domain_SearchInterceptImpl.java |
1,111 | public class OrderServiceException extends RuntimeException {
private static final long serialVersionUID = 1L;
public OrderServiceException() {
super();
}
public OrderServiceException(String message, Throwable cause) {
super(message, cause);
}
public OrderServiceExceptio... | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_order_service_exception_OrderServiceException.java |
728 | loadEntriesMinor(key, inclusive, new RangeResultListener<K, V>() {
@Override
public boolean addResult(Map.Entry<K, V> entry) {
result.add(entry.getValue());
if (maxValuesToFetch > -1 && result.size() >= maxValuesToFetch)
return false;
return true;
}
}); | 0true | core_src_main_java_com_orientechnologies_orient_core_index_sbtree_local_OSBTree.java |
699 | constructors[LIST_INDEX_OF] = new ConstructorFunction<Integer, Portable>() {
public Portable createNew(Integer arg) {
return new ListIndexOfRequest();
}
}; | 0true | hazelcast_src_main_java_com_hazelcast_collection_CollectionPortableHook.java |
2,710 | assertThat(awaitBusy(new Predicate<Object>() {
@Override
public boolean apply(Object input) {
logger.info("--> running cluster_health (wait for the shards to startup)");
ClusterHealthResponse clus... | 0true | src_test_java_org_elasticsearch_gateway_local_QuorumLocalGatewayTests.java |
2,830 | private class SyncReplicaVersionTask implements Runnable {
@Override
public void run() {
if (node.isActive() && migrationActive.get()) {
final Address thisAddress = node.getThisAddress();
for (final InternalPartitionImpl partition : partitions) {
... | 1no label | hazelcast_src_main_java_com_hazelcast_partition_impl_InternalPartitionServiceImpl.java |
297 | class SelectEnclosingAction extends Action {
private CeylonEditor editor;
public SelectEnclosingAction() {
this(null);
}
public SelectEnclosingAction(CeylonEditor editor) {
super("Select Enclosing");
setActionDefinitionId(SELECT_ENCLOSING);
setEditor(editor);
}
... | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_editor_SelectEnclosingAction.java |
744 | public class ListRemoveRequest extends CollectionRequest {
int index;
public ListRemoveRequest() {
}
public ListRemoveRequest(String name, int index) {
super(name);
this.index = index;
}
@Override
protected Operation prepareOperation() {
return new ListRemoveOpera... | 0true | hazelcast_src_main_java_com_hazelcast_collection_client_ListRemoveRequest.java |
65 | public interface FieldGroup extends Serializable {
public Long getId();
public void setId(Long id);
public String getName();
public void setName(String name);
public Boolean getInitCollapsedFlag();
public void setInitCollapsedFlag(Boolean initCollapsedFlag);
public List<FieldDefinitio... | 0true | admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_field_domain_FieldGroup.java |
1,033 | public abstract class AbstractTermVectorTests extends ElasticsearchIntegrationTest {
protected static class TestFieldSetting {
final public String name;
final public boolean storedOffset;
final public boolean storedPayloads;
final public boolean storedPositions;
public Test... | 0true | src_test_java_org_elasticsearch_action_termvector_AbstractTermVectorTests.java |
326 | public class NodesInfoRequestBuilder extends NodesOperationRequestBuilder<NodesInfoRequest, NodesInfoResponse, NodesInfoRequestBuilder> {
public NodesInfoRequestBuilder(ClusterAdminClient clusterClient) {
super((InternalClusterAdminClient) clusterClient, new NodesInfoRequest());
}
/**
* Clear... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_node_info_NodesInfoRequestBuilder.java |
477 | public final class RandomGenerator {
private final static char[] CHARSET = new char[] { 'A', 'B', 'C', 'D', 'E',
'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R',
'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '0', '1', '2', '3', '4',
'5', '6', '7', '8', '9' };
priv... | 0true | common_src_main_java_org_broadleafcommerce_common_security_RandomGenerator.java |
306 | public abstract class ConfigElement {
public static final char SEPARATOR = '.';
public static final char[] ILLEGAL_CHARS = new char[]{SEPARATOR,' ','\t','#','@','<','>','?','/',';','"','\'',':','+','(',')','*','^','`','~','$','%','|','\\','{','[',']','}'};
private final ConfigNamespace namespace;
pri... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_diskstorage_configuration_ConfigElement.java |
737 | public class OSBTreeException extends OException {
public OSBTreeException() {
}
public OSBTreeException(String message) {
super(message);
}
public OSBTreeException(Throwable cause) {
super(cause);
}
public OSBTreeException(String message, Throwable cause) {
super(message, cause);
}
} | 0true | core_src_main_java_com_orientechnologies_orient_core_index_sbtree_local_OSBTreeException.java |
1,096 | public class BundleOrderItemRequest {
protected String name;
protected Category category;
protected int quantity;
protected Order order;
protected List<DiscreteOrderItemRequest> discreteOrderItems = new ArrayList<DiscreteOrderItemRequest>();
protected List<BundleOrderItemFeePrice> bundleOrderIt... | 1no label | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_order_service_call_BundleOrderItemRequest.java |
1,560 | public interface ActivityStateManager {
/**
* Register a RollbackHandler instance and some arbitrary state items with the
* StateManager. In the event of a rollbackAllState() call, the StateManager will
* execute all registered RollbackHandler instances. Note, Broadleaf does not try to wrap
* t... | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_workflow_state_ActivityStateManager.java |
2,105 | public class BytesStreamsTests extends ElasticsearchTestCase {
@Test
public void testSimpleStreams() throws Exception {
assumeTrue(Constants.JRE_IS_64BIT);
BytesStreamOutput out = new BytesStreamOutput();
out.writeBoolean(false);
out.writeByte((byte) 1);
out.writeShort((... | 0true | src_test_java_org_elasticsearch_common_io_streams_BytesStreamsTests.java |
1,571 | @ManagedDescription("ReplicatedMap")
public class ReplicatedMapMBean extends HazelcastMBean<ReplicatedMapProxy> {
private final AtomicLong totalAddedEntryCount = new AtomicLong();
private final AtomicLong totalRemovedEntryCount = new AtomicLong();
private final AtomicLong totalUpdatedEntryCount = new Atomi... | 0true | hazelcast_src_main_java_com_hazelcast_jmx_ReplicatedMapMBean.java |
1,759 | public static class PlaneFixedSourceDistance implements FixedSourceDistance {
private final double sourceLatitude;
private final double sourceLongitude;
private final double distancePerDegree;
public PlaneFixedSourceDistance(double sourceLatitude, double sourceLongitude, DistanceUn... | 0true | src_main_java_org_elasticsearch_common_geo_GeoDistance.java |
787 | @Repository("blOfferCodeDao")
public class OfferCodeDaoImpl implements OfferCodeDao {
@PersistenceContext(unitName="blPU")
protected EntityManager em;
@Resource(name="blEntityConfiguration")
protected EntityConfiguration entityConfiguration;
public OfferCode create() {
return ((OfferCode)... | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_offer_dao_OfferCodeDaoImpl.java |
431 | public interface Retriever {
/**
* Returns the {@link IndexRetriever} for a given index.
* @param index
* @return
*/
public IndexRetriever get(String index);
} | 0true | titan-core_src_main_java_com_thinkaurelius_titan_diskstorage_indexing_KeyInformation.java |
2,430 | public class AtomicArray<E> {
private static final AtomicArray EMPTY = new AtomicArray(0);
@SuppressWarnings("unchecked")
public static <E> E empty() {
return (E) EMPTY;
}
private final AtomicReferenceArray<E> array;
private volatile List<Entry<E>> nonNullList;
public AtomicArray... | 0true | src_main_java_org_elasticsearch_common_util_concurrent_AtomicArray.java |
4,276 | public class SimpleFsTranslogFile implements FsTranslogFile {
private final long id;
private final ShardId shardId;
private final RafReference raf;
private final AtomicInteger operationCounter = new AtomicInteger();
private final AtomicLong lastPosition = new AtomicLong(0);
private final Atom... | 1no label | src_main_java_org_elasticsearch_index_translog_fs_SimpleFsTranslogFile.java |
2,139 | public class LuceneTest {
/*
* simple test that ensures that we bumb the version on Upgrade
*/
@Test
public void testVersion() {
ESLogger logger = ESLoggerFactory.getLogger(LuceneTest.class.getName());
Version[] values = Version.values();
assertThat(Version.LUCENE_CURRENT... | 0true | src_test_java_org_elasticsearch_common_lucene_LuceneTest.java |
1,584 | enum EXECUTION_MODE {
RESPONSE, NO_RESPONSE
}; | 0true | server_src_main_java_com_orientechnologies_orient_server_distributed_ODistributedRequest.java |
3,289 | private static final class RegexFilter extends FilteredTermsEnum {
private final Matcher matcher;
private final CharsRef spare = new CharsRef();
public RegexFilter(TermsEnum delegate, Matcher matcher) {
super(delegate, false);
this.matcher = matcher;
... | 0true | src_main_java_org_elasticsearch_index_fielddata_plain_AbstractBytesIndexFieldData.java |
343 | @RunWith(HazelcastParallelClassRunner.class)
@Category(QuickTest.class)
public class ClientMapTryLockConcurrentTests {
static HazelcastInstance client;
static HazelcastInstance server;
@BeforeClass
public static void init() {
server = Hazelcast.newHazelcastInstance();
client = Hazelcas... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_map_ClientMapTryLockConcurrentTests.java |
333 | public class InsertChildrenOf extends BaseHandler {
public Node[] merge(List<Node> nodeList1, List<Node> nodeList2, List<Node> exhaustedNodes) {
if (CollectionUtils.isEmpty(nodeList1) || CollectionUtils.isEmpty(nodeList2)) {
return null;
}
Node node1 = nodeList1.get(0);
... | 0true | common_src_main_java_org_broadleafcommerce_common_extensibility_context_merge_handlers_InsertChildrenOf.java |
721 | public class CollectionTransactionRollbackOperation extends CollectionOperation {
String transactionId;
public CollectionTransactionRollbackOperation() {
}
public CollectionTransactionRollbackOperation(String name, String transactionId) {
super(name);
this.transactionId = transactionI... | 0true | hazelcast_src_main_java_com_hazelcast_collection_CollectionTransactionRollbackOperation.java |
1,496 | public class ODictionaryWrapper extends ODictionary<Object> {
private ODatabaseObject database;
public ODictionaryWrapper(final ODatabaseObject iDatabase,OIndex<OIdentifiable> index) {
super(index);
this.database = iDatabase;
}
@SuppressWarnings("unchecked")
public <RET extends Object> RET get(final String i... | 0true | object_src_main_java_com_orientechnologies_orient_object_dictionary_ODictionaryWrapper.java |
641 | public class CollectionAddBackupOperation extends CollectionOperation implements BackupOperation {
private long itemId;
private Data value;
public CollectionAddBackupOperation() {
}
public CollectionAddBackupOperation(String name, long itemId, Data value) {
super(name);
this.item... | 0true | hazelcast_src_main_java_com_hazelcast_collection_CollectionAddBackupOperation.java |
1,732 | public interface LifecycleComponent<T> extends CloseableComponent {
Lifecycle.State lifecycleState();
void addLifecycleListener(LifecycleListener listener);
void removeLifecycleListener(LifecycleListener listener);
T start() throws ElasticsearchException;
T stop() throws ElasticsearchException;... | 0true | src_main_java_org_elasticsearch_common_component_LifecycleComponent.java |
389 | public static class Builder {
private boolean supportsDocumentTTL = false;
private Mapping defaultStringMapping = Mapping.TEXT;
private Set<Mapping> supportedMappings = Sets.newHashSet();
public Builder supportsDocumentTTL() {
supportsDocumentTTL=true;
retu... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_diskstorage_indexing_IndexFeatures.java |
391 | public class SupportLogger extends Logger {
private static final String FQCN = SupportLevel.class.getName();
protected String moduleName;
public SupportLogger(String moduleName, String name) {
super(name);
this.moduleName = moduleName;
}
/**
* Generate a SUPPORT level log me... | 0true | common_src_main_java_org_broadleafcommerce_common_logging_SupportLogger.java |
1,825 | @Retention(RUNTIME)
@Target(TYPE)
public @interface ImplementedBy {
/**
* The implementation type.
*/
Class<?> value();
} | 0true | src_main_java_org_elasticsearch_common_inject_ImplementedBy.java |
609 | public class BroadleafResourceHttpRequestBeanFactoryPostProcessor implements BeanFactoryPostProcessor {
public void postProcessBeanFactory(ConfigurableListableBeanFactory factory) throws BeansException {
String[] names = factory.getBeanNamesForType(ResourceHttpRequestHandler.class);
for (String n... | 0true | common_src_main_java_org_broadleafcommerce_common_web_BroadleafResourceHttpRequestBeanFactoryPostProcessor.java |
1,927 | public class MapAddEntryListenerSqlRequest extends AbstractMapAddEntryListenerRequest {
private String predicate;
transient private Predicate cachedPredicate;
public MapAddEntryListenerSqlRequest() {
super();
}
public MapAddEntryListenerSqlRequest(String name, boolean includeValue) {
... | 0true | hazelcast_src_main_java_com_hazelcast_map_client_MapAddEntryListenerSqlRequest.java |
232 | private static final class HierarchyPresenterControlCreator
implements IInformationControlCreator {
private CeylonEditor editor;
private HierarchyPresenterControlCreator(CeylonEditor editor) {
this.editor = editor;
}
@Override
public IInformationControl create... | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_editor_CeylonSourceViewerConfiguration.java |
1,718 | runnable = new Runnable() { public void run() { map.putAll(mapWithNullValue); } }; | 0true | hazelcast_src_test_java_com_hazelcast_map_BasicMapTest.java |
273 | public enum PoolExhaustedAction {
BLOCK(GenericKeyedObjectPool.WHEN_EXHAUSTED_BLOCK),
FAIL(GenericKeyedObjectPool.WHEN_EXHAUSTED_FAIL),
GROW(GenericKeyedObjectPool.WHEN_EXHAUSTED_GROW);
private final byte b;
PoolExhaustedAction(byte b) {
this.b = b;
}
... | 0true | titan-cassandra_src_main_java_com_thinkaurelius_titan_diskstorage_cassandra_thrift_CassandraThriftStoreManager.java |
286 | static class NeoStoreCommand extends Command
{
private final NeoStoreRecord record;
private final NeoStore neoStore;
NeoStoreCommand( NeoStore neoStore, NeoStoreRecord record )
{
super( record.getId(), Mode.fromRecordState( record ) );
this.neoStore = neo... | 0true | community_kernel_src_main_java_org_neo4j_kernel_impl_nioneo_xa_Command.java |
157 | class MockConnection implements Connection {
volatile boolean live = true;
final int port;
MockConnection(int port) {
this.port = port;
}
BlockingQueue<SocketWritable> q = new LinkedBlockingQueue<SocketWritable>();
public boolean write(SocketWritable ... | 0true | hazelcast_src_test_java_com_hazelcast_client_MockSimpleClient.java |
195 | public class SocketOptions {
// socket options
private boolean tcpNoDelay;
private boolean keepAlive = true;
private boolean reuseAddress = true;
private int lingerSeconds = 3;
private int bufferSize = -1;
// in kb
public boolean isTcpNoDelay() {
return tcpNoDelay;
}
... | 0true | hazelcast-client_src_main_java_com_hazelcast_client_config_SocketOptions.java |
5,835 | public class SourceScoreOrderFragmentsBuilder extends ScoreOrderFragmentsBuilder {
private final FieldMapper<?> mapper;
private final SearchContext searchContext;
public SourceScoreOrderFragmentsBuilder(FieldMapper<?> mapper, SearchContext searchContext,
String... | 1no label | src_main_java_org_elasticsearch_search_highlight_vectorhighlight_SourceScoreOrderFragmentsBuilder.java |
309 | new Processor() {
@Override
public void visit(Tree.Annotation that) {
super.visit(that);
terminateWithSemicolon(that);
}
@Override
public void visit(Tree.StaticType that) {
... | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_editor_TerminateStatementAction.java |
1,032 | public class ConfigLoader {
private ConfigLoader() {
}
public static Config load(final String path) throws IOException {
final URL url = locateConfig(path);
if (url == null) {
return null;
}
return new UrlXmlConfig(url);
}
public static URL locateConfig... | 0true | hazelcast_src_main_java_com_hazelcast_config_ConfigLoader.java |
272 | public class LogTruncationTest
{
InMemoryLogBuffer inMemoryBuffer = new InMemoryLogBuffer();
@Test
public void testSerializationInFaceOfLogTruncation() throws Exception
{
// TODO: add support for other commands and permutations as well...
assertHandlesLogTruncation( new Command.NodeComm... | 0true | community_kernel_src_test_java_org_neo4j_kernel_impl_nioneo_xa_LogTruncationTest.java |
3,025 | public class DiskDocValuesFormatProvider extends AbstractDocValuesFormatProvider {
private final DocValuesFormat docValuesFormat;
@Inject
public DiskDocValuesFormatProvider(@Assisted String name, @Assisted Settings docValuesFormatSettings) {
super(name);
this.docValuesFormat = new DiskDocV... | 0true | src_main_java_org_elasticsearch_index_codec_docvaluesformat_DiskDocValuesFormatProvider.java |
127 | public interface PropertyKeyMaker extends RelationTypeMaker {
/**
* Configures the {@link com.thinkaurelius.titan.core.Cardinality} of this property key.
*
* @param cardinality
* @return this PropertyKeyMaker
*/
public PropertyKeyMaker cardinality(Cardinality cardinality);
/**
... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_core_schema_PropertyKeyMaker.java |
1,617 | public class OMapReduceCommandTask extends OSQLCommandTask {
private static final long serialVersionUID = 1L;
public OMapReduceCommandTask() {
}
public OMapReduceCommandTask(final String iCommand) {
super(iCommand);
}
@Override
public RESULT_STRATEGY getResultStrategy() {
return RESULT_STRATEGY... | 0true | server_src_main_java_com_orientechnologies_orient_server_distributed_task_OMapReduceCommandTask.java |
2,983 | public class FilterCacheModule extends AbstractModule {
public static final class FilterCacheSettings {
public static final String FILTER_CACHE_TYPE = "index.cache.filter.type";
}
private final Settings settings;
public FilterCacheModule(Settings settings) {
this.settings = settings;
... | 0true | src_main_java_org_elasticsearch_index_cache_filter_FilterCacheModule.java |
165 | public class RemoveDistributedObjectListenerRequest extends BaseClientRemoveListenerRequest {
public static final String CLEAR_LISTENERS_COMMAND = "clear-all-listeners";
public RemoveDistributedObjectListenerRequest() {
}
public RemoveDistributedObjectListenerRequest(String registrationId) {
... | 0true | hazelcast_src_main_java_com_hazelcast_client_RemoveDistributedObjectListenerRequest.java |
931 | public final class LockStoreProxy implements LockStore {
private final LockStoreContainer container;
private final ObjectNamespace namespace;
public LockStoreProxy(LockStoreContainer container, ObjectNamespace namespace) {
this.container = container;
this.namespace = namespace;
}
... | 1no label | hazelcast_src_main_java_com_hazelcast_concurrent_lock_LockStoreProxy.java |
2,772 | public abstract class AbstractIndexComponent implements IndexComponent {
protected final ESLogger logger;
protected final Index index;
protected final Settings indexSettings;
protected final Settings componentSettings;
/**
* Constructs a new index component, with the index name and its set... | 0true | src_main_java_org_elasticsearch_index_AbstractIndexComponent.java |
760 | public class CompositeActivity extends BaseActivity<CheckoutContext> {
private SequenceProcessor workflow;
/* (non-Javadoc)
* @see org.broadleafcommerce.core.workflow.Activity#execute(org.broadleafcommerce.core.workflow.ProcessContext)
*/
@Override
public CheckoutContext execute(CheckoutCont... | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_checkout_service_workflow_CompositeActivity.java |
414 | @Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD})
public @interface AdminPresentationCollection {
/**
* <p>Optional - field name will be used if not specified</p>
*
* <p>The friendly name to present to a user for this field in a GUI. If supporting i18N,
* the friendly name may be... | 0true | common_src_main_java_org_broadleafcommerce_common_presentation_AdminPresentationCollection.java |
2,771 | public class NettyHttpServerTransportModule extends AbstractModule {
@Override
protected void configure() {
bind(HttpServerTransport.class).to(NettyHttpServerTransport.class).asEagerSingleton();
}
} | 0true | src_main_java_org_elasticsearch_http_netty_NettyHttpServerTransportModule.java |
197 | public class OCLibraryFactory {
public static final OCLibraryFactory INSTANCE = new OCLibraryFactory();
private static final CLibrary C_LIBRARY;
static {
if (Platform.isAIX())
C_LIBRARY = new AIXCLibrary();
else
C_LIBRARY = new GeneralCLibrary();
}
public CLibrary library() {
... | 0true | nativeos_src_main_java_com_orientechnologies_nio_OCLibraryFactory.java |
779 | getAction.execute(getRequest, new ActionListener<GetResponse>() {
@Override
public void onResponse(GetResponse getResponse) {
if (!getResponse.isExists()) {
listener.onFailure(new DocumentMissingException(null, request.type(), request.id()));
... | 1no label | src_main_java_org_elasticsearch_action_mlt_TransportMoreLikeThisAction.java |
930 | public class BroadcastShardOperationFailedException extends IndexShardException implements ElasticsearchWrapperException {
public BroadcastShardOperationFailedException(ShardId shardId, String msg) {
super(shardId, msg, null);
}
public BroadcastShardOperationFailedException(ShardId shardId, Throwa... | 0true | src_main_java_org_elasticsearch_action_support_broadcast_BroadcastShardOperationFailedException.java |
82 | LESS_THAN_EQUAL {
@Override
public boolean isValidValueType(Class<?> clazz) {
Preconditions.checkNotNull(clazz);
return Comparable.class.isAssignableFrom(clazz);
}
@Override
public boolean isValidCondition(Object condition) {
return condi... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_core_attribute_Cmp.java |
1,367 | public class ClusterBlock implements Serializable, Streamable, ToXContent {
private int id;
private String description;
private ClusterBlockLevel[] levels;
private boolean retryable;
private boolean disableStatePersistence = false;
private RestStatus status;
ClusterBlock() {
}
... | 1no label | src_main_java_org_elasticsearch_cluster_block_ClusterBlock.java |
938 | Thread t = new Thread(new Runnable() {
public void run() {
final ILock lock = instance1.getLock(name);
lock.lock();
latch.countDown();
}
}); | 0true | hazelcast_src_test_java_com_hazelcast_concurrent_lock_LockTest.java |
1,668 | interface BlobNameFilter {
/**
* Return <tt>false</tt> if the blob should be filtered.
*/
boolean accept(String blobName);
} | 0true | src_main_java_org_elasticsearch_common_blobstore_BlobContainer.java |
614 | indexEngine.getValuesMinor(iRangeTo, isInclusive, MultiValuesTransformer.INSTANCE, new OIndexEngine.ValuesResultListener() {
@Override
public boolean addResult(OIdentifiable identifiable) {
return resultListener.addResult(identifiable);
}
}); | 1no label | core_src_main_java_com_orientechnologies_orient_core_index_OIndexMultiValues.java |
998 | protected class PrimaryOperationRequest implements Streamable {
public int shardId;
public Request request;
public PrimaryOperationRequest() {
}
public PrimaryOperationRequest(int shardId, Request request) {
this.shardId = shardId;
this.request = r... | 0true | src_main_java_org_elasticsearch_action_support_replication_TransportShardReplicationOperationAction.java |
688 | private static final class BucketPath {
private final BucketPath parent;
private final int hashMapOffset;
private final int itemIndex;
private final int nodeIndex;
private final int nodeGlobalDepth;
private final int nodeLocalDepth;
private BucketPath(Bu... | 0true | core_src_main_java_com_orientechnologies_orient_core_index_hashindex_local_OLocalHashTable.java |
112 | public interface LogProcessorFramework {
/**
* Returns a processor builder for the transaction log with the given log identifier.
* Only one processor may be registered per transaction log.
*
* @param logIdentifier Name that identifies the transaction log to be processed,
* ... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_core_log_LogProcessorFramework.java |
428 | BackendOperation.execute(new Callable<Boolean>() {
@Override
public Boolean call() throws Exception {
index.mutate(mutations, keyInformations, indexTx);
return true;
}
@Override
public St... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_diskstorage_indexing_IndexTransaction.java |
1,049 | @SuppressWarnings("unchecked")
public class OCommandExecutorSQLResultsetDelegate extends OCommandExecutorSQLDelegate implements Iterable<OIdentifiable> {
public Iterator<OIdentifiable> iterator() {
return ((OCommandExecutorSQLResultsetAbstract) delegate).iterator();
}
} | 0true | core_src_main_java_com_orientechnologies_orient_core_sql_OCommandExecutorSQLResultsetDelegate.java |
345 | public class PartialTransactionFailureIT
{
@Rule
public TargetDirectory.TestDirectory dir =
TargetDirectory.testDirForTest( PartialTransactionFailureIT.class );
@Test
public void concurrentlyCommittingTransactionsMustNotRotateOutLoggedCommandsOfFailingTransaction()
throws Except... | 0true | community_kernel_src_test_java_org_neo4j_kernel_impl_transaction_PartialTransactionFailureIT.java |
1,104 | public class OrderItemRequestDTO {
private Long skuId;
private Long categoryId;
private Long productId;
private Long orderItemId;
private Integer quantity;
private Money overrideSalePrice;
private Money overrideRetailPrice;
private Map<String,String> itemAttributes = new HashMap<String,... | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_order_service_call_OrderItemRequestDTO.java |
163 | @SuppressWarnings("unchecked")
public class OSynchEventAdapter<RESOURCE_TYPE, RESPONSE_TYPE> {
protected final LinkedHashMap<RESOURCE_TYPE, Object[]> queue = new LinkedHashMap<RESOURCE_TYPE, Object[]>();
public OSynchEventAdapter() {
}
public void registerCallbackCurrentThread(final RESOURCE_TYPE iResource) {
q... | 0true | commons_src_main_java_com_orientechnologies_common_synch_OSynchEventAdapter.java |
703 | public interface ODiskCache {
long openFile(String fileName) throws IOException;
void openFile(long fileId) throws IOException;
OCacheEntry load(long fileId, long pageIndex, boolean checkPinnedPages) throws IOException;
void pinPage(OCacheEntry cacheEntry) throws IOException;
void loadPinnedPage(OCacheEnt... | 0true | core_src_main_java_com_orientechnologies_orient_core_index_hashindex_local_cache_ODiskCache.java |
2,154 | public class TxnLockAndGetOperation extends LockAwareOperation {
private VersionedValue response;
private String ownerUuid;
public TxnLockAndGetOperation() {
}
public TxnLockAndGetOperation(String name, Data dataKey, long timeout, long ttl, String ownerUuid) {
super(name, dataKey, ttl);
... | 1no label | hazelcast_src_main_java_com_hazelcast_map_tx_TxnLockAndGetOperation.java |
38 | public class SimpleCommand extends AbstractTextCommand {
ByteBuffer response;
public SimpleCommand(TextCommandType type) {
super(type);
}
public boolean readFrom(ByteBuffer cb) {
return true;
}
public void setResponse(byte[] value) {
this.response = ByteBuffer.wrap(val... | 0true | hazelcast_src_main_java_com_hazelcast_ascii_memcache_SimpleCommand.java |
1,120 | public class ScriptsConstantScoreBenchmark extends BasicScriptBenchmark {
public static void main(String[] args) throws Exception {
int minTerms = 49;
int maxTerms = 50;
int maxIter = 1000;
int warmerIter = 1000;
init(maxTerms);
List<Results> allResults = new Array... | 0true | src_test_java_org_elasticsearch_benchmark_scripts_score_ScriptsConstantScoreBenchmark.java |
1,495 | public class NonResourceWebContentInterceptor extends WebContentInterceptor {
protected static final int TEN_YEARS_SECONDS = 60 * 60 * 24 * 365 * 10;
@Override
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler)
throws ServletException {
... | 0true | core_broadleaf-framework-web_src_main_java_org_broadleafcommerce_core_web_interceptor_NonResourceWebContentInterceptor.java |
344 | public class ElasticSearchConfigTest {
private static final String INDEX_NAME = "escfg";
@Test
public void testTransportClient() throws BackendException, InterruptedException {
ElasticsearchRunner esr = new ElasticsearchRunner();
esr.start();
ModifiableConfiguration config = GraphD... | 0true | titan-es_src_test_java_com_thinkaurelius_titan_diskstorage_es_ElasticSearchConfigTest.java |
42 | @Persistent
public final class PartitionTimestamps implements Cloneable {
private long startTimestamp;
private long endTimestamp;
public PartitionTimestamps() {
//
}
public PartitionTimestamps(long startTimestamp, long endTimestamp) {
this.startTimestamp = startTimestamp;
... | 0true | timeSequenceFeedAggregator_src_main_java_gov_nasa_arc_mct_buffer_disk_internal_PartitionTimestamps.java |
344 | fOpenAndLinkWithEditorHelper= new OpenAndLinkWithEditorHelper(fViewer) {
@Override
protected void activate(ISelection selection) {
try {
final Object selectedElement= SelectionUtil.getSingleElement(selection);
if (EditorUtility.isOp... | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_explorer_PackageExplorerPart.java |
812 | @Entity
@Table(name = "BLC_OFFER")
@Inheritance(strategy=InheritanceType.JOINED)
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE, region="blStandardElements")
@AdminPresentationClass(populateToOneFields = PopulateToOneFieldsEnum.TRUE, friendlyName = "OfferImpl_baseOffer")
@SQLDelete(sql="UPDATE BLC_OFFER SET ARCHIVE... | 1no label | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_offer_domain_OfferImpl.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.