Unnamed: 0 int64 0 6.45k | func stringlengths 29 253k | target class label 2
classes | project stringlengths 36 167 |
|---|---|---|---|
221 | private static class TransactionBegin extends Exception {
private static final long serialVersionUID = 1L;
private TransactionBegin(String msg) {
super(msg);
}
} | 0true | titan-berkeleyje_src_main_java_com_thinkaurelius_titan_diskstorage_berkeleyje_BerkeleyJEStoreManager.java |
580 | executionService.scheduleWithFixedDelay(executorName, new Runnable() {
public void run() {
heartBeater();
}
}, heartbeatInterval, heartbeatInterval, TimeUnit.SECONDS); | 1no label | hazelcast_src_main_java_com_hazelcast_cluster_ClusterServiceImpl.java |
304 | @RunWith(HazelcastSerialClassRunner.class)
@Category(QuickTest.class)
public class ClientMapIssueTest {
@After
public void reset(){
HazelcastClient.shutdownAll();
Hazelcast.shutdownAll();
}
@Test
public void testOperationNotBlockingAfterClusterShutdown() throws InterruptedExceptio... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_map_ClientMapIssueTest.java |
328 | public class TransactionalConfiguration implements WriteConfiguration {
private final WriteConfiguration config;
private final Map<String,Object> readValues;
private final Map<String,Object> writtenValues;
public TransactionalConfiguration(WriteConfiguration config) {
Preconditions.checkNotNu... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_diskstorage_configuration_TransactionalConfiguration.java |
1,202 | public class OperationTimeoutException extends HazelcastException {
public OperationTimeoutException() {
}
public OperationTimeoutException(String message) {
super(message);
}
public OperationTimeoutException(String op, String message) {
super("[" + op + "] " + message);
}
} | 0true | hazelcast_src_main_java_com_hazelcast_core_OperationTimeoutException.java |
151 | public class ODateSerializer implements OBinarySerializer<Date> {
public static ODateSerializer INSTANCE = new ODateSerializer();
public static final byte ID = 4;
public int getObjectSize(Date object, Object... hints) {
return OLongSerializer.LONG_SIZE;
}
public void serialize(Date object, byte[] strea... | 0true | commons_src_main_java_com_orientechnologies_common_serialization_types_ODateSerializer.java |
562 | public class OCompositeIndexDefinition extends OAbstractIndexDefinition {
private final List<OIndexDefinition> indexDefinitions;
private String className;
private int multiValueDefinitionIndex = -1;
public OCompositeIndexDefinition() {
indexDefinitions = new A... | 0true | core_src_main_java_com_orientechnologies_orient_core_index_OCompositeIndexDefinition.java |
1,400 | @XmlRootElement(name = "orderAttribute")
@XmlAccessorType(value = XmlAccessType.FIELD)
public class OrderAttributeWrapper extends BaseWrapper implements
APIWrapper<OrderAttribute> {
@XmlElement
protected Long id;
@XmlElement
protected String name;
@XmlElement
protected Str... | 0true | core_broadleaf-framework-web_src_main_java_org_broadleafcommerce_core_web_api_wrapper_OrderAttributeWrapper.java |
300 | public abstract class AbstractConfiguration implements Configuration {
private final ConfigNamespace root;
protected AbstractConfiguration(ConfigNamespace root) {
Preconditions.checkNotNull(root);
Preconditions.checkArgument(!root.isUmbrella(),"Root cannot be an umbrella namespace");
... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_diskstorage_configuration_AbstractConfiguration.java |
3,030 | public class DocValuesFormats {
private static final ImmutableMap<String, PreBuiltDocValuesFormatProvider.Factory> builtInDocValuesFormats;
static {
MapBuilder<String, PreBuiltDocValuesFormatProvider.Factory> builtInDocValuesFormatsX = MapBuilder.newMapBuilder();
for (String name : DocValuesFo... | 0true | src_main_java_org_elasticsearch_index_codec_docvaluesformat_DocValuesFormats.java |
546 | refreshAction.execute(Requests.refreshRequest(request.indices()), new ActionListener<RefreshResponse>() {
@Override
public void onResponse(RefreshResponse refreshResponse) {
removeMapping();
... | 1no label | src_main_java_org_elasticsearch_action_admin_indices_mapping_delete_TransportDeleteMappingAction.java |
708 | constructors[COLLECTION_REMOVE_LISTENER] = new ConstructorFunction<Integer, Portable>() {
public Portable createNew(Integer arg) {
return new CollectionRemoveListenerRequest();
}
}; | 0true | hazelcast_src_main_java_com_hazelcast_collection_CollectionPortableHook.java |
1,438 | public class Invalidation implements DataSerializable {
private Object key;
private Object version;
public Invalidation() {
}
public Invalidation(final Object key, final Object version) {
this.key = key;
this.version = version;
}
public Object getKey() {
return ke... | 0true | hazelcast-hibernate_hazelcast-hibernate4_src_main_java_com_hazelcast_hibernate_local_Invalidation.java |
191 | public class ClientProperties {
public static final String PROP_CONNECTION_TIMEOUT = "hazelcast.client.connection.timeout";
public static final String PROP_CONNECTION_TIMEOUT_DEFAULT = "5000";
public static final String PROP_HEARTBEAT_INTERVAL = "hazelcast.client.heartbeat.interval";
public static fi... | 1no label | hazelcast-client_src_main_java_com_hazelcast_client_config_ClientProperties.java |
371 | future.andThen(new ExecutionCallback<Integer>() {
@Override
public void onResponse(Integer response) {
try {
result[0] = response.intValue();
} finally {
semaphore.release();
}
}
... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_mapreduce_DistributedMapperClientMapReduceTest.java |
351 | @SuppressWarnings("unchecked")
public abstract class ODatabaseWrapperAbstract<DB extends ODatabase> implements ODatabase {
protected DB underlying;
protected ODatabaseComplex<?> databaseOwner;
public ODatabaseWrapperAbstract(final DB iDatabase) {
underlying = iDatabase;
databaseOwner = (... | 0true | core_src_main_java_com_orientechnologies_orient_core_db_ODatabaseWrapperAbstract.java |
854 | execute(request, new ActionListener<SearchResponse>() {
@Override
public void onResponse(SearchResponse result) {
try {
channel.sendResponse(result);
} catch (Throwable e) {
onFailure(e);
... | 0true | src_main_java_org_elasticsearch_action_search_TransportSearchScrollAction.java |
66 | public class AwsURLEncoder {
private AwsURLEncoder() {
}
public static String urlEncode(String string) {
String encoded;
try {
encoded = URLEncoder.encode(string, "UTF-8").replace("+", "%20");
} catch (UnsupportedEncodingException e) {
throw new HazelcastExce... | 0true | hazelcast-cloud_src_main_java_com_hazelcast_aws_utility_AwsURLEncoder.java |
319 | public static class Provider extends TransactionManagerProvider
{
public Provider()
{
super( NAME );
}
@Override
public AbstractTransactionManager loadTransactionManager(
String txLogDir, XaDataSourceManager xaDataSourceManager, KernelPanicEve... | 0true | community_kernel_src_test_java_org_neo4j_kernel_impl_transaction_JOTMTransactionManager.java |
1,114 | static class IntEntry {
int key;
int counter;
IntEntry(int key, int counter) {
this.key = key;
this.counter = counter;
}
} | 0true | src_test_java_org_elasticsearch_benchmark_hppc_StringMapAdjustOrPutBenchmark.java |
2,495 | public class AddEntryListenerRequest extends CallableClientRequest implements RetryableRequest {
String name;
Data key;
boolean includeValue;
public AddEntryListenerRequest() {
}
public AddEntryListenerRequest(String name, Data key, boolean includeValue) {
this.name = name;
th... | 1no label | hazelcast_src_main_java_com_hazelcast_multimap_operations_client_AddEntryListenerRequest.java |
146 | public class TitanId {
/**
* Converts a user provided long id into a Titan vertex id. The id must be positive and can be at most 61 bits long.
* This method is useful when providing ids during vertex creation via {@link com.tinkerpop.blueprints.Graph#addVertex(Object)}.
*
* @param id long id
... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_core_util_TitanId.java |
263 | assertTrueEventually(new AssertTask() {
@Override
public void run() {
assertEquals(executions, counter.get());
}
}); | 0true | hazelcast-client_src_test_java_com_hazelcast_client_executor_ExecutionDelayTest.java |
511 | public class OEntityManagerInternal extends OEntityManager {
public static final OEntityManagerInternal INSTANCE = new OEntityManagerInternal();
} | 0true | core_src_main_java_com_orientechnologies_orient_core_entity_OEntityManagerInternal.java |
1,113 | public class RemoveFromCartException extends Exception {
private static final long serialVersionUID = 1L;
public RemoveFromCartException() {
super();
}
public RemoveFromCartException(String message, Throwable cause) {
super(message, cause);
}
public RemoveFromCartException(St... | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_order_service_exception_RemoveFromCartException.java |
1,155 | public class HazelcastInstanceNotActiveException extends IllegalStateException {
public HazelcastInstanceNotActiveException() {
super("Hazelcast instance is not active!");
}
} | 1no label | hazelcast_src_main_java_com_hazelcast_core_HazelcastInstanceNotActiveException.java |
1,356 | public static final class TestRecord implements OWALRecord {
private OLogSequenceNumber lsn;
private byte[] data;
private boolean updateMasterRecord;
public TestRecord() {
}
public TestRecord(int size, boolean updateMasterRecord) {
Random random = new Random();
... | 0true | core_src_test_java_com_orientechnologies_orient_core_storage_impl_local_paginated_wal_WriteAheadLogTest.java |
1,486 | public class BroadleafRatingsController {
@Resource(name = "blRatingService")
protected RatingService ratingService;
@Resource(name = "blCatalogService")
protected CatalogService catalogService;
protected String formView = "catalog/partials/review";
protected String successView = "catalog/... | 0true | core_broadleaf-framework-web_src_main_java_org_broadleafcommerce_core_web_controller_catalog_BroadleafRatingsController.java |
1,855 | @RunWith(HazelcastParallelClassRunner.class)
@Category(NightlyTest.class)
public class MapTransactionStressTest extends HazelcastTestSupport {
@Test
public void testTxnGetForUpdateAndIncrementStressTest() throws TransactionException, InterruptedException {
Config config = new Config();
final Te... | 0true | hazelcast_src_test_java_com_hazelcast_map_MapTransactionStressTest.java |
1,199 | public interface MigrationListener extends EventListener {
/**
* Invoked when a partition migration is started.
*
* @param migrationEvent event
*/
void migrationStarted(MigrationEvent migrationEvent);
/**
* Invoked when a partition migration is completed.
*
* @param migr... | 0true | hazelcast_src_main_java_com_hazelcast_core_MigrationListener.java |
1,285 | es.submit(new Runnable() {
public void run() {
IMap map = hazelcast.getMap("default");
while (true) {
int keyInt = (int) (RANDOM.nextFloat() * ENTRY_COUNT);
int operation = ((int) (RANDOM.nextFloat() * 10... | 0true | hazelcast_src_main_java_com_hazelcast_examples_SimpleFunctionalMapTest.java |
1,196 | public class PaymentInfoServiceTest extends BaseTest {
String userName = new String();
private PaymentInfo paymentInfo;
@Resource
private PaymentInfoService paymentInfoService;
@Resource(name = "blOrderService")
private OrderService orderService;
@Resource
private CustomerAddressDao ... | 0true | integration_src_test_java_org_broadleafcommerce_core_payment_service_PaymentInfoServiceTest.java |
2,062 | public final class Modules {
private Modules() {
}
public static final Module EMPTY_MODULE = new Module() {
public void configure(Binder binder) {
}
};
/**
* Returns a builder that creates a module that overlays override modules over the given
* modules. If a key is bound... | 0true | src_main_java_org_elasticsearch_common_inject_util_Modules.java |
26 | final class ImportVisitor extends Visitor {
private final String prefix;
private final CommonToken token;
private final int offset;
private final Node node;
private final CeylonParseController cpc;
private final List<ICompletionProposal> result;
ImportVisitor(String prefix, CommonToken... | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_complete_ImportVisitor.java |
513 | public class OCommandExecutionException extends OException {
private static final long serialVersionUID = -7430575036316163711L;
public OCommandExecutionException(String message, Throwable cause) {
super(message, cause);
}
public OCommandExecutionException(String message) {
super(message);
}
} | 0true | core_src_main_java_com_orientechnologies_orient_core_exception_OCommandExecutionException.java |
67 | public class TransactionAlreadyActiveException extends IllegalStateException
{
public TransactionAlreadyActiveException( Thread thread, Transaction tx )
{
super( "Thread '" + thread.getName() + "' tried to resume " + tx + ", but that transaction is already active" );
}
} | 0true | community_kernel_src_main_java_org_neo4j_kernel_impl_transaction_TransactionAlreadyActiveException.java |
3,461 | private class SpringXmlBuilder extends SpringXmlBuilderHelper {
private final ParserContext parserContext;
private BeanDefinitionBuilder builder;
private ManagedMap nearCacheConfigMap;//= new HashMap<String, NearCacheConfig>();
public SpringXmlBuilder(ParserContext parserContext... | 1no label | hazelcast-spring_src_main_java_com_hazelcast_spring_HazelcastClientBeanDefinitionParser.java |
5,209 | public class DateHistogramBuilder extends ValuesSourceAggregationBuilder<DateHistogramBuilder> {
private Object interval;
private Histogram.Order order;
private Long minDocCount;
private String preZone;
private String postZone;
private boolean preZoneAdjustLargeInterval;
long preOffset = 0;... | 1no label | src_main_java_org_elasticsearch_search_aggregations_bucket_histogram_DateHistogramBuilder.java |
9 | public class OLazyIteratorListWrapper<T> implements OLazyIterator<T> {
private ListIterator<T> underlying;
public OLazyIteratorListWrapper(ListIterator<T> iUnderlying) {
underlying = iUnderlying;
}
public boolean hasNext() {
return underlying.hasNext();
}
public T next() {
return underlying.next();
}
... | 0true | commons_src_main_java_com_orientechnologies_common_collection_OLazyIteratorListWrapper.java |
961 | @Test
public class GZIPCompressionTest extends AbstractCompressionTest {
public void testGZIPCompression() {
testCompression(OGZIPCompression.NAME);
}
} | 0true | core_src_test_java_com_orientechnologies_orient_core_serialization_compression_impl_GZIPCompressionTest.java |
484 | public class ClientCallFuture<V> implements ICompletableFuture<V>, Callback {
private Object response;
private final ClientRequest request;
private final ClientExecutionServiceImpl executionService;
private final ClientInvocationServiceImpl invocationService;
private final SerializationService... | 1no label | hazelcast-client_src_main_java_com_hazelcast_client_spi_impl_ClientCallFuture.java |
421 | }, new TxJob() {
@Override
public void run(IndexTransaction tx) {
//do nothing
}
}); | 0true | titan-test_src_main_java_com_thinkaurelius_titan_diskstorage_indexing_IndexProviderTest.java |
442 | trackedSet.addChangeListener(new OMultiValueChangeListener<String, String>() {
public void onAfterRecordChanged(final OMultiValueChangeEvent<String, String> event) {
Assert.assertEquals(event.getChangeType(), OMultiValueChangeEvent.OChangeType.ADD);
Assert.assertNull(event.getOldValue());
... | 0true | core_src_test_java_com_orientechnologies_orient_core_db_record_TrackedSetTest.java |
1,890 | boolean b = h1.executeTransaction(options, new TransactionalTask<Boolean>() {
public Boolean execute(TransactionalTaskContext context) throws TransactionException {
final TransactionalMap<Object, Object> txMap = context.getMap("putWithTTL");
txMap.put("1", "value", 5,... | 0true | hazelcast_src_test_java_com_hazelcast_map_MapTransactionTest.java |
453 | public class OIndexRIDContainerSBTree implements Set<OIdentifiable> {
public static final String INDEX_FILE_EXTENSION = ".irs";
private OSBTreeBonsai<OIdentifiable, Boolean> tree;
protected static final OProfilerMBean PROFILER = Orient.instance().getProfiler();
public OI... | 0true | core_src_main_java_com_orientechnologies_orient_core_db_record_ridset_sbtree_OIndexRIDContainerSBTree.java |
3,322 | static class BytesValues extends org.elasticsearch.index.fielddata.BytesValues.WithOrdinals {
protected final FST<Long> fst;
protected final Ordinals.Docs ordinals;
// per-thread resources
protected final BytesReader in;
protected final Arc<Long> firstArc = new Arc<Long>();... | 0true | src_main_java_org_elasticsearch_index_fielddata_plain_FSTBytesAtomicFieldData.java |
265 | public class AppendCallable implements Callable<String>, DataSerializable{
public static final String APPENDAGE = ":CallableResult";
private String msg;
public AppendCallable() {
}
public AppendCallable(String msg) {
this.msg = msg;
}
public String call() throws Exception {
... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_executor_tasks_AppendCallable.java |
327 | public class NavigateActionGroup extends ActionGroup {
private OpenEditorActionGroup fOpenEditorActionGroup;
private OpenViewActionGroup fOpenViewActionGroup;
/**
* Creates a new <code>NavigateActionGroup</code>. The group requires
* that the selection provided by the part's selection provider i... | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_explorer_NavigateActionGroup.java |
3,128 | private static final class RecoveryCounter {
private volatile int ongoingRecoveries = 0;
synchronized void increment() {
ongoingRecoveries++;
}
synchronized void decrement() {
ongoingRecoveries--;
if (ongoingRecoveries == 0) {
not... | 0true | src_main_java_org_elasticsearch_index_engine_internal_InternalEngine.java |
35 | @SuppressWarnings("unchecked")
public class OMVRBTreeEntryMemory<K, V> extends OMVRBTreeEntry<K, V> {
protected int size = 1;
protected int pageSize;
protected K[] keys;
protected V[] values;
protected OMVRBTreeEntryMemory<K, V> left = null;
protected OMVRBTreeEnt... | 0true | commons_src_main_java_com_orientechnologies_common_collection_OMVRBTreeEntryMemory.java |
1,297 | @Test
public class LocalPaginatedStorageRestoreTx {
private ODatabaseDocumentTx testDocumentTx;
private ODatabaseDocumentTx baseDocumentTx;
private File buildDir;
private ExecutorService executorService = Executors.newCachedThreadPool();
@BeforeClass
public void beforeClass() {
Stri... | 0true | core_src_test_java_com_orientechnologies_orient_core_storage_impl_local_paginated_LocalPaginatedStorageRestoreTx.java |
1,407 | @XmlRootElement(name = "paymentReferenceMap")
@XmlAccessorType(value = XmlAccessType.FIELD)
public class PaymentReferenceMapWrapper extends BaseWrapper {
@XmlElement
protected PaymentInfoWrapper paymentInfo;
@XmlElement
protected ReferencedWrapper referenced;
public PaymentInfoWrapper getPaymentI... | 0true | core_broadleaf-framework-web_src_main_java_org_broadleafcommerce_core_web_api_wrapper_PaymentReferenceMapWrapper.java |
1,684 | map.addEntryListener(new EntryAdapter<String, String>() {
public void entryAdded(final EntryEvent<String, String> e) {
testEvent(e);
}
public void entryRemoved(final EntryEvent<String, String> e) {
testEvent(e);
}
priv... | 0true | hazelcast_src_test_java_com_hazelcast_map_BasicMapTest.java |
1,841 | localContext = new ThreadLocal<Object[]>() {
protected Object[] initialValue() {
return new Object[1];
}
}; | 0true | src_main_java_org_elasticsearch_common_inject_InjectorImpl.java |
519 | @Component("blApplicationContextHolder")
public class ApplicationContextHolder implements ApplicationContextAware {
protected static ApplicationContext context;
public static ApplicationContext getApplicationContext() {
return context;
}
@Override
public void setApplicationContext... | 0true | common_src_main_java_org_broadleafcommerce_common_util_ApplicationContextHolder.java |
2,798 | public abstract class AbstractTokenizerFactory extends AbstractIndexComponent implements TokenizerFactory {
private final String name;
protected final Version version;
public AbstractTokenizerFactory(Index index, @IndexSettings Settings indexSettings, String name, Settings settings) {
super(inde... | 0true | src_main_java_org_elasticsearch_index_analysis_AbstractTokenizerFactory.java |
847 | DECIMAL("Decimal", 21, new Class<?>[] { BigDecimal.class }, new Class<?>[] { BigDecimal.class, Number.class }) {
}; | 0true | core_src_main_java_com_orientechnologies_orient_core_metadata_schema_OType.java |
1,060 | public interface BandedWeightFulfillmentOption extends FulfillmentOption {
public List<FulfillmentWeightBand> getBands();
public void setBands(List<FulfillmentWeightBand> bands);
} | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_order_fulfillment_domain_BandedWeightFulfillmentOption.java |
1,004 | public class OStreamSerializerLong implements OStreamSerializer {
public static final String NAME = "lo";
public static final OStreamSerializerLong INSTANCE = new OStreamSerializerLong();
public String getName() {
return NAME;
}
public Object fromStream(final byte[] iStream) throws IOException {
re... | 0true | core_src_main_java_com_orientechnologies_orient_core_serialization_serializer_stream_OStreamSerializerLong.java |
415 | private static final class MultiExecutionCallbackWrapper implements MultiExecutionCallback {
private final AtomicInteger members;
private final MultiExecutionCallback multiExecutionCallback;
private final Map<Member, Object> values;
private MultiExecutionCallbackWrapper(int memberS... | 0true | hazelcast-client_src_main_java_com_hazelcast_client_proxy_ClientExecutorServiceProxy.java |
684 | @Entity
@Polymorphism(type = PolymorphismType.EXPLICIT)
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "BLC_CATEGORY_PRODUCT_XREF")
@AdminPresentationClass(excludeFromPolymorphism = false)
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE, region="blStandardElements")
public class CategoryProductXrefImp... | 1no label | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_catalog_domain_CategoryProductXrefImpl.java |
1,193 | public interface PaymentInfoFactory {
public PaymentInfo constructPaymentInfo(Order order);
} | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_payment_service_PaymentInfoFactory.java |
1,695 | Thread thread = new Thread(new Runnable() {
public void run() {
try {
firstBool.set(map.tryRemove("key1", 1, TimeUnit.SECONDS));
latch2.countDown();
latch1.await();
secondBool.set(map.tryRemove("key1", 1,... | 0true | hazelcast_src_test_java_com_hazelcast_map_BasicMapTest.java |
1,591 | public class ODistributedStorage implements OStorage, OFreezableStorage {
protected final OServer serverInstance;
protected final ODistributedServerManager dManager;
protected final OStorageEmbedded wrapped;
public ODistributedStorage(final OServer iServer, final OStorageEmbedded wra... | 1no label | server_src_main_java_com_orientechnologies_orient_server_distributed_ODistributedStorage.java |
3,751 | public class ParseMappingTypeLevelTests extends ElasticsearchTestCase {
@Test
public void testTypeLevel() throws Exception {
String mapping = XContentFactory.jsonBuilder().startObject().startObject("type")
.startObject("_source").field("enabled", false).endObject()
.endO... | 0true | src_test_java_org_elasticsearch_index_mapper_typelevels_ParseMappingTypeLevelTests.java |
325 | public class NodesInfoRequest extends NodesOperationRequest<NodesInfoRequest> {
private boolean settings = true;
private boolean os = true;
private boolean process = true;
private boolean jvm = true;
private boolean threadPool = true;
private boolean network = true;
private boolean transpor... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_node_info_NodesInfoRequest.java |
1,049 | public class MultiTermVectorsTests extends AbstractTermVectorTests {
@Test
public void testDuelESLucene() throws Exception {
AbstractTermVectorTests.TestFieldSetting[] testFieldSettings = getFieldSettings();
createIndexBasedOnFieldSettings(testFieldSettings, -1);
AbstractTermVectorTests... | 0true | src_test_java_org_elasticsearch_action_termvector_MultiTermVectorsTests.java |
2,000 | private static class IdenticalTo extends AbstractMatcher<Object>
implements Serializable {
private final Object value;
public IdenticalTo(Object value) {
this.value = checkNotNull(value, "value");
}
public boolean matches(Object other) {
return v... | 0true | src_main_java_org_elasticsearch_common_inject_matcher_Matchers.java |
742 | public class ExplainAction extends Action<ExplainRequest, ExplainResponse, ExplainRequestBuilder> {
public static final ExplainAction INSTANCE = new ExplainAction();
public static final String NAME = "explain";
private ExplainAction() {
super(NAME);
}
public ExplainRequestBuilder newReque... | 0true | src_main_java_org_elasticsearch_action_explain_ExplainAction.java |
2,449 | executor.execute(new Runnable() {
@Override
public void run() {
try {
wait.await();
} catch (InterruptedException e) {
throw new RuntimeException(e);
}
executed1.set(true);
... | 0true | src_test_java_org_elasticsearch_common_util_concurrent_EsExecutorsTests.java |
478 | public class GetAliasesResponse extends ActionResponse {
private ImmutableOpenMap<String, List<AliasMetaData>> aliases = ImmutableOpenMap.of();
public GetAliasesResponse(ImmutableOpenMap<String, List<AliasMetaData>> aliases) {
this.aliases = aliases;
}
GetAliasesResponse() {
}
publi... | 0true | src_main_java_org_elasticsearch_action_admin_indices_alias_get_GetAliasesResponse.java |
2 | public class Prover
{
private final Queue<ClusterState> unexploredKnownStates = new LinkedList<>( );
private final ProofDatabase db = new ProofDatabase("./clusterproof");
public static void main(String ... args) throws Exception
{
new Prover().prove();
}
public void prove() throws Exc... | 1no label | enterprise_ha_src_test_java_org_neo4j_ha_correctness_Prover.java |
596 | public interface OIndexEngine<V> {
void init();
void flush();
void create(String indexName, OIndexDefinition indexDefinition, String clusterIndexName, OStreamSerializer valueSerializer,
boolean isAutomatic);
void delete();
void deleteWithoutLoad(String indexName);
void load(ORID indexRid, String ... | 0true | core_src_main_java_com_orientechnologies_orient_core_index_OIndexEngine.java |
1,721 | EntryListener<Object, Object> listener = new EntryListener<Object, Object>() {
public void entryAdded(EntryEvent<Object, Object> event) {
addedKey[0] = event.getKey();
addedValue[0] = event.getValue();
}
public void entryRemoved(EntryEvent<Obj... | 0true | hazelcast_src_test_java_com_hazelcast_map_BasicMapTest.java |
830 | @Entity
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "BLC_ORDER_ITEM_ADJUSTMENT")
@Cache(usage=CacheConcurrencyStrategy.NONSTRICT_READ_WRITE, region="blOrderElements")
@AdminPresentationMergeOverrides(
{
@AdminPresentationMergeOverride(name = "", mergeEntries =
@AdminPresentatio... | 1no label | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_offer_domain_OrderItemAdjustmentImpl.java |
423 | public class TransportRestoreSnapshotAction extends TransportMasterNodeOperationAction<RestoreSnapshotRequest, RestoreSnapshotResponse> {
private final RestoreService restoreService;
@Inject
public TransportRestoreSnapshotAction(Settings settings, TransportService transportService, ClusterService clusterSe... | 1no label | src_main_java_org_elasticsearch_action_admin_cluster_snapshots_restore_TransportRestoreSnapshotAction.java |
3,248 | public final class FloatValuesComparator extends DoubleValuesComparatorBase<Float> {
private final float[] values;
public FloatValuesComparator(IndexNumericFieldData<?> indexFieldData, float missingValue, int numHits, SortMode sortMode) {
super(indexFieldData, missingValue, sortMode);
assert i... | 0true | src_main_java_org_elasticsearch_index_fielddata_fieldcomparator_FloatValuesComparator.java |
2,417 | public interface IntArray extends BigArray {
/**
* Get an element given its index.
*/
public abstract int get(long index);
/**
* Set a value at the given index and return the previous value.
*/
public abstract int set(long index, int value);
/**
* Increment value at the g... | 0true | src_main_java_org_elasticsearch_common_util_IntArray.java |
2,413 | new IntroSorter() {
long pivot;
@Override
protected void swap(int i, int j) {
final long tmp = array[i];
array[i] = array[j];
array[j] = tmp;
}
@Override
protected int compare(int i, int j)... | 0true | src_main_java_org_elasticsearch_common_util_CollectionUtils.java |
387 | public class IndexEntry implements MetaAnnotated, MetaAnnotatable {
public final String field;
public final Object value;
public IndexEntry(final String field, final Object value) {
this(field, value, null);
}
public IndexEntry(final String field, final Object value, Map<EntryMetaData, Ob... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_diskstorage_indexing_IndexEntry.java |
1,043 | public class MultiTermVectorsRequestBuilder extends ActionRequestBuilder<MultiTermVectorsRequest, MultiTermVectorsResponse, MultiTermVectorsRequestBuilder> {
public MultiTermVectorsRequestBuilder(Client client) {
super((InternalClient) client, new MultiTermVectorsRequest());
}
public MultiTermVecto... | 0true | src_main_java_org_elasticsearch_action_termvector_MultiTermVectorsRequestBuilder.java |
1,842 | public class ContextType implements Serializable, BroadleafEnumerationType {
private static final long serialVersionUID = 1L;
private static final Map<String, ContextType> TYPES = new LinkedHashMap<String, ContextType>();
public static final ContextType GLOBAL = new ContextType("GLOBAL", "Global");
p... | 1no label | admin_broadleaf-open-admin-platform_src_main_java_org_broadleafcommerce_openadmin_server_service_type_ContextType.java |
942 | public abstract class AcknowledgedRequestBuilder<Request extends AcknowledgedRequest<Request>, Response extends AcknowledgedResponse, RequestBuilder extends AcknowledgedRequestBuilder<Request, Response, RequestBuilder>>
extends MasterNodeOperationRequestBuilder<Request, Response, RequestBuilder> {
protect... | 0true | src_main_java_org_elasticsearch_action_support_master_AcknowledgedRequestBuilder.java |
155 | public static final Map<String, String> REGISTERED_INDEX_PROVIDERS = new HashMap<String, String>() {{
put("lucene", "com.thinkaurelius.titan.diskstorage.lucene.LuceneIndex");
put("elasticsearch", "com.thinkaurelius.titan.diskstorage.es.ElasticSearchIndex");
put("es", "com.thinkaurelius.titan... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_diskstorage_Backend.java |
28 | @Service("blCustomerFieldService")
public class CustomerFieldServiceImpl extends AbstractRuleBuilderFieldService {
@Override
public void init() {
fields.add(new FieldData.Builder()
.label("rule_customerDeactivated")
.name("deactivated")
.operators("blcOpe... | 0true | admin_broadleaf-admin-module_src_main_java_org_broadleafcommerce_admin_web_rulebuilder_service_CustomerFieldServiceImpl.java |
1,520 | public class RebalanceAfterActiveTests extends ElasticsearchAllocationTestCase {
private final ESLogger logger = Loggers.getLogger(RebalanceAfterActiveTests.class);
@Test
public void testRebalanceOnlyAfterAllShardsAreActive() {
AllocationService strategy = createAllocationService(settingsBuilder()... | 0true | src_test_java_org_elasticsearch_cluster_routing_allocation_RebalanceAfterActiveTests.java |
269 | public class EmailException extends RuntimeException {
private static final long serialVersionUID = 1L;
public EmailException() {
super();
}
public EmailException(String arg0, Throwable arg1) {
super(arg0, arg1);
}
public EmailException(String arg0) {
super(arg0);
... | 0true | common_src_main_java_org_broadleafcommerce_common_email_service_exception_EmailException.java |
1,545 | public static class WeightFunction {
private final float indexBalance;
private final float shardBalance;
private final float primaryBalance;
private final EnumMap<Operation, float[]> thetaMap = new EnumMap<BalancedShardsAllocator.Operation, float[]>(Operation.class);
public... | 0true | src_main_java_org_elasticsearch_cluster_routing_allocation_allocator_BalancedShardsAllocator.java |
362 | public class PropertyFilter extends Filter {
protected boolean isJoinTableFilter = false;
protected String propertyName;
public Boolean getJoinTableFilter() {
return isJoinTableFilter;
}
public void setJoinTableFilter(Boolean joinTableFilter) {
isJoinTableFilter = joinTableFilter;... | 0true | common_src_main_java_org_broadleafcommerce_common_filter_PropertyFilter.java |
1,546 | public static class Map extends Mapper<NullWritable, FaunusVertex, NullWritable, WritableComparable> {
private String key;
private boolean isVertex;
private WritableHandler handler;
private SafeMapperOutputs outputs;
@Override
public void setup(final Mapper.Context ... | 1no label | titan-hadoop-parent_titan-hadoop-core_src_main_java_com_thinkaurelius_titan_hadoop_mapreduce_transform_PropertyMap.java |
274 | public final class ExceptionsHelper {
private static final ESLogger logger = Loggers.getLogger(ExceptionsHelper.class);
public static RuntimeException convertToRuntime(Throwable t) {
if (t instanceof RuntimeException) {
return (RuntimeException) t;
}
return new Elasticsearc... | 1no label | src_main_java_org_elasticsearch_ExceptionsHelper.java |
2,610 | class PingRequestHandler extends BaseTransportRequestHandler<PingRequest> {
public static final String ACTION = "discovery/zen/fd/ping";
@Override
public PingRequest newInstance() {
return new PingRequest();
}
@Override
public void messageReceived(PingR... | 1no label | src_main_java_org_elasticsearch_discovery_zen_fd_NodesFaultDetection.java |
2,744 | public class NoneGatewayModule extends AbstractModule implements PreProcessModule {
@Override
public void processModule(Module module) {
if (module instanceof ShardsAllocatorModule) {
((ShardsAllocatorModule) module).setGatewayAllocator(NoneGatewayAllocator.class);
}
}
@Ove... | 0true | src_main_java_org_elasticsearch_gateway_none_NoneGatewayModule.java |
1,639 | public static final Validator DOUBLE_GTE_2 = new Validator() {
@Override
public String validate(String setting, String value) {
try {
if (Double.parseDouble(value) < 2.0) {
return "the value of the setting " + setting + " must be >= 2.0";
... | 0true | src_main_java_org_elasticsearch_cluster_settings_Validator.java |
987 | class Counter {
int count = 0;
void inc() {
count++;
}
int get() {
return count;
}
} | 0true | hazelcast_src_test_java_com_hazelcast_concurrent_semaphore_AdvancedSemaphoreTest.java |
1,711 | runnable = new Runnable() { public void run() { map.getEntryView(null); } }; | 0true | hazelcast_src_test_java_com_hazelcast_map_BasicMapTest.java |
2,384 | public class SizeValue implements Serializable, Streamable {
private long size;
private SizeUnit sizeUnit;
private SizeValue() {
}
public SizeValue(long singles) {
this(singles, SizeUnit.SINGLE);
}
public SizeValue(long size, SizeUnit sizeUnit) {
this.size = size;
... | 0true | src_main_java_org_elasticsearch_common_unit_SizeValue.java |
322 | static class NodeRequest extends NodeOperationRequest {
NodesHotThreadsRequest request;
NodeRequest() {
}
NodeRequest(String nodeId, NodesHotThreadsRequest request) {
super(request, nodeId);
this.request = request;
}
@Override
publi... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_node_hotthreads_TransportNodesHotThreadsAction.java |
1,291 | clusterService1.submitStateUpdateTask("test2", new TimeoutClusterStateUpdateTask() {
@Override
public TimeValue timeout() {
return TimeValue.timeValueMillis(2);
}
@Override
public void onFailure(String source, Throwable t) {
... | 0true | src_test_java_org_elasticsearch_cluster_ClusterServiceTests.java |
337 | new Thread() {
public void run() {
try {
if (tempMap.tryLock("key1", 20, TimeUnit.SECONDS)) {
latch2.countDown();
}
} catch (InterruptedException e) {
e.printStackTrace();
... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_map_ClientMapTest.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.