Unnamed: 0 int64 0 6.45k | func stringlengths 29 253k | target class label 2
classes | project stringlengths 36 167 |
|---|---|---|---|
3,213 | SINGLE_VALUED_DENSE_ENUM {
public int numValues(Random r) {
return 1;
}
@Override
public long nextValue(Random r) {
return 1 + r.nextInt(16);
}
}, | 0true | src_test_java_org_elasticsearch_index_fielddata_LongFieldDataTests.java |
57 | public class OLockException extends OException {
private static final long serialVersionUID = 2215169397325875189L;
public OLockException(String iMessage) {
super(iMessage);
// OProfiler.getInstance().updateCounter("system.concurrency.OLockException", +1);
}
public OLockException(String iMessage, Exce... | 0true | commons_src_main_java_com_orientechnologies_common_concur_lock_OLockException.java |
2,455 | public class EsRejectedExecutionException extends ElasticsearchException {
public EsRejectedExecutionException(String message) {
super(message);
}
public EsRejectedExecutionException() {
super(null);
}
public EsRejectedExecutionException(Throwable e) {
super(null, e);
... | 0true | src_main_java_org_elasticsearch_common_util_concurrent_EsRejectedExecutionException.java |
336 | public class NodesRestartRequestBuilder extends NodesOperationRequestBuilder<NodesRestartRequest, NodesRestartResponse, NodesRestartRequestBuilder> {
public NodesRestartRequestBuilder(ClusterAdminClient clusterClient) {
super((InternalClusterAdminClient) clusterClient, new NodesRestartRequest());
}
... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_node_restart_NodesRestartRequestBuilder.java |
1,253 | addOperation(operations, new Runnable() {
public void run() {
ITopic topic = hazelcast.getTopic("myTopic");
topic.publish(String.valueOf(random.nextInt(100000000)));
messagesSend.incrementAndGet();
}
}, 10); | 0true | hazelcast_src_main_java_com_hazelcast_examples_AllTest.java |
3,459 | static final class Fields {
static final XContentBuilderString _INDEX = new XContentBuilderString("_index");
static final XContentBuilderString _TYPE = new XContentBuilderString("_type");
static final XContentBuilderString _ID = new XContentBuilderString("_id");
static final XContent... | 0true | src_main_java_org_elasticsearch_index_get_GetResult.java |
2,123 | private static class SystemErrStream extends OutputStream {
public SystemErrStream() {
}
public void close() {
}
public void flush() {
System.err.flush();
}
public void write(final byte[] b) throws IOException {
if (!Loggers.consoleL... | 0true | src_main_java_org_elasticsearch_common_logging_log4j_ConsoleAppender.java |
2,472 | static class AwaitingJob extends PrioritizedRunnable {
private final CountDownLatch latch;
private AwaitingJob(CountDownLatch latch) {
super(Priority.URGENT);
this.latch = latch;
}
@Override
public void run() {
try {
latc... | 0true | src_test_java_org_elasticsearch_common_util_concurrent_PrioritizedExecutorsTests.java |
196 | public interface MetaAnnotatable {
public Object setMetaData(EntryMetaData key, Object value);
} | 0true | titan-core_src_main_java_com_thinkaurelius_titan_diskstorage_MetaAnnotatable.java |
516 | public class IndicesExistsRequestBuilder extends MasterNodeReadOperationRequestBuilder<IndicesExistsRequest, IndicesExistsResponse, IndicesExistsRequestBuilder> {
public IndicesExistsRequestBuilder(IndicesAdminClient indicesClient, String... indices) {
super((InternalIndicesAdminClient) indicesClient, new ... | 0true | src_main_java_org_elasticsearch_action_admin_indices_exists_indices_IndicesExistsRequestBuilder.java |
147 | public class OBinaryTypeSerializer implements OBinarySerializer<byte[]> {
private static final OBinaryConverter CONVERTER = OBinaryConverterFactory.getConverter();
public static final OBinaryTypeSerializer INSTANCE = new OBinaryTypeSerializer();
public static final byte ID = 17;
public int getObjectSize(int l... | 0true | commons_src_main_java_com_orientechnologies_common_serialization_types_OBinaryTypeSerializer.java |
1,145 | public class UpdateFulfillmentGroupItemActivity extends BaseActivity<CartOperationContext> {
@Resource(name = "blFulfillmentGroupItemStrategy")
protected FulfillmentGroupItemStrategy fgItemStrategy;
@Override
public CartOperationContext execute(CartOperationContext context) throws Exception {
... | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_order_service_workflow_update_UpdateFulfillmentGroupItemActivity.java |
1,525 | public static class Map extends Mapper<NullWritable, FaunusVertex, WritableComparable, LongWritable> {
private String property;
private WritableHandler handler;
private boolean isVertex;
// making use of in-map aggregation/combiner
private CounterMap<Object> map;
pri... | 1no label | titan-hadoop-parent_titan-hadoop-core_src_main_java_com_thinkaurelius_titan_hadoop_mapreduce_sideeffect_ValueGroupCountMapReduce.java |
1,848 | private static class ConvertedConstantBindingImpl<T>
extends BindingImpl<T> implements ConvertedConstantBinding<T> {
final T value;
final Provider<T> provider;
final Binding<String> originalBinding;
ConvertedConstantBindingImpl(
Injector injector, Key<T> ... | 0true | src_main_java_org_elasticsearch_common_inject_InjectorImpl.java |
39 | (new java.security.PrivilegedExceptionAction<sun.misc.Unsafe>() {
public sun.misc.Unsafe run() throws Exception {
Class<sun.misc.Unsafe> k = sun.misc.Unsafe.class;
for (java.lang.reflect.Field f : k.getDeclaredFields()) {
f.setA... | 0true | src_main_java_jsr166e_ConcurrentHashMapV8.java |
178 | public class AnnotationCreator extends ErrorVisitor {
private static class PositionedMessage {
public final String message;
public final Position pos;
public final int code;
public final int severity;
public final boolean syntaxError;
public final int line;
... | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_editor_AnnotationCreator.java |
368 | public class GetRepositoriesAction extends ClusterAction<GetRepositoriesRequest, GetRepositoriesResponse, GetRepositoriesRequestBuilder> {
public static final GetRepositoriesAction INSTANCE = new GetRepositoriesAction();
public static final String NAME = "cluster/repository/get";
private GetRepositoriesAc... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_repositories_get_GetRepositoriesAction.java |
2,894 | public static class GreaterLessPredicate extends EqualPredicate {
boolean equal;
boolean less;
public GreaterLessPredicate() {
}
public GreaterLessPredicate(String attribute, Comparable value, boolean equal, boolean less) {
super(attribute, value);
t... | 1no label | hazelcast_src_main_java_com_hazelcast_query_Predicates.java |
520 | public class TypesExistsAction extends IndicesAction<TypesExistsRequest, TypesExistsResponse, TypesExistsRequestBuilder> {
public static final TypesExistsAction INSTANCE = new TypesExistsAction();
public static final String NAME = "indices/types/exists";
private TypesExistsAction() {
super(NAME);
... | 0true | src_main_java_org_elasticsearch_action_admin_indices_exists_types_TypesExistsAction.java |
319 | private static class GotoResourceDialog extends FilteredResourcesSelectionDialog {
private IJavaModel fJavaModel;
public GotoResourceDialog(Shell parentShell, IContainer container, StructuredViewer viewer) {
super(parentShell, false, container, IResource.FILE | IResource.FOLDER | IResour... | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_explorer_GotoResourceAction.java |
2,150 | protected class AllTermSpanScorer extends SpanScorer {
protected DocsAndPositionsEnum positions;
protected float payloadScore;
protected int payloadsSeen;
public AllTermSpanScorer(TermSpans spans, Weight weight, Similarity.SimScorer docScorer) throws IOException ... | 0true | src_main_java_org_elasticsearch_common_lucene_all_AllTermQuery.java |
143 | static final class HashCode {
static final Random rng = new Random();
int code;
HashCode() {
int h = rng.nextInt(); // Avoid zero to allow xorShift rehash
code = (h == 0) ? 1 : h;
}
} | 0true | src_main_java_jsr166e_Striped64.java |
101 | public class OException extends RuntimeException {
private static final long serialVersionUID = 3882447822497861424L;
public OException() {
}
public OException(final String message) {
super(message);
}
public OException(final Throwable cause) {
super(cause);
}
public OException(final String message, fi... | 0true | commons_src_main_java_com_orientechnologies_common_exception_OException.java |
1,060 | return new Fields() {
@Override
public Iterator<String> iterator() {
return Iterators.emptyIterator();
}
@Override
public Terms terms(String field) throws IOException {
return null;
... | 0true | src_main_java_org_elasticsearch_action_termvector_TermVectorResponse.java |
786 | public interface OfferCodeDao {
public OfferCode readOfferCodeById(Long offerCode);
public OfferCode readOfferCodeByCode(String code);
public OfferCode save(OfferCode offerCode);
public void delete(OfferCode offerCodeId);
public OfferCode create();
} | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_offer_dao_OfferCodeDao.java |
1,625 | public class DynamicSettings {
private ImmutableMap<String, Validator> dynamicSettings = ImmutableMap.of();
public boolean hasDynamicSetting(String key) {
for (String dynamicSetting : dynamicSettings.keySet()) {
if (Regex.simpleMatch(dynamicSetting, key)) {
return true;
... | 0true | src_main_java_org_elasticsearch_cluster_settings_DynamicSettings.java |
1,379 | @RunWith(HazelcastSerialClassRunner.class)
@Category(SlowTest.class)
public class CustomPropertiesTest extends HibernateTestSupport {
@Test
public void test() {
Properties props = getDefaultProperties();
props.put(CacheEnvironment.SHUTDOWN_ON_STOP, "false");
SessionFactory sf = createSe... | 0true | hazelcast-hibernate_hazelcast-hibernate3_src_test_java_com_hazelcast_hibernate_CustomPropertiesTest.java |
1,146 | public class UpdateOrderItemActivity extends BaseActivity<CartOperationContext> {
@Resource(name = "blOrderService")
protected OrderService orderService;
@Override
public CartOperationContext execute(CartOperationContext context) throws Exception {
CartOperationRequest request = context.ge... | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_order_service_workflow_update_UpdateOrderItemActivity.java |
632 | public class OIndexTxAwareDictionary extends OIndexTxAwareOneValue {
public OIndexTxAwareDictionary(ODatabaseRecord iDatabase, OIndex<OIdentifiable> iDelegate) {
super(iDatabase, iDelegate);
}
@Override
public void checkEntry(final OIdentifiable iRecord, final Object iKey) {
}
} | 0true | core_src_main_java_com_orientechnologies_orient_core_index_OIndexTxAwareDictionary.java |
638 | public class OPropertyIndexDefinition extends OAbstractIndexDefinition {
protected String className;
protected String field;
protected OType keyType;
public OPropertyIndexDefinition(final String iClassName, final String iField, final OType iType) {
className = iClassName;
field = iField;
keyType =... | 0true | core_src_main_java_com_orientechnologies_orient_core_index_OPropertyIndexDefinition.java |
427 | @Test
public class TrackedMapTest {
public void testPutOne() {
final ODocument doc = new ODocument();
final OTrackedMap<String> map = new OTrackedMap<String>(doc);
doc.unsetDirty();
Assert.assertFalse(doc.isDirty());
final ORef<Boolean> changed = new ORef<Boolean>(false);
map.addChangeListe... | 0true | core_src_test_java_com_orientechnologies_orient_core_db_record_TrackedMapTest.java |
254 | private static class CommandCapturingVisitor implements Visitor<XaCommand,RuntimeException>
{
private final Collection<XaCommand> commands = new ArrayList<>();
@Override
public boolean visit( XaCommand element ) throws RuntimeException
{
commands.add( element );
... | 0true | community_kernel_src_test_java_org_neo4j_kernel_impl_nioneo_xa_WriteTransactionTest.java |
740 | public class ProductBundlePricingModelType implements Serializable, BroadleafEnumerationType {
private static final long serialVersionUID = 1L;
private static final Map<String, ProductBundlePricingModelType> TYPES = new LinkedHashMap<String, ProductBundlePricingModelType>();
public static final ProductBu... | 1no label | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_catalog_service_type_ProductBundlePricingModelType.java |
310 | private class PropertyBlockIterator extends PrefetchingIterator<PropertyBlock>
{
private final Iterator<PropertyRecord> records;
private Iterator<PropertyBlock> blocks = IteratorUtil.emptyIterator();
PropertyBlockIterator( NodeRecord node )
{
long firstPropertyId = n... | 0true | community_kernel_src_main_java_org_neo4j_kernel_impl_nioneo_xa_NeoStoreIndexStoreView.java |
404 | @SuppressWarnings("serial")
public class OTrackedMap<T> extends LinkedHashMap<Object, T> implements ORecordElement, OTrackedMultiValue<Object, T>, Serializable {
final protected ORecord<?> sourceRecord;
private STATUS status = STATUS.NOT_LOADED;
private Set<OMultiValueChange... | 0true | core_src_main_java_com_orientechnologies_orient_core_db_record_OTrackedMap.java |
1,816 | constructors[QUERY_RESULT_ENTRY] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {
public IdentifiedDataSerializable createNew(Integer arg) {
return new QueryResultEntryImpl();
}
}; | 0true | hazelcast_src_main_java_com_hazelcast_map_MapDataSerializerHook.java |
191 | public abstract class KeyValueStoreTest extends AbstractKCVSTest {
private Logger log = LoggerFactory.getLogger(KeyValueStoreTest.class);
private int numKeys = 2000;
private String storeName = "testStore1";
protected OrderedKeyValueStoreManager manager;
protected StoreTransaction tx;
protect... | 0true | titan-test_src_main_java_com_thinkaurelius_titan_diskstorage_KeyValueStoreTest.java |
775 | public class SkuAvailabilityDataProvider {
@DataProvider(name = "setupSkuAvailability")
public static Object[][] createSkuAvailabilityRecords() {
Object[][] paramArray = new Object[10][1];
Date AVAILABLE_TODAY = SystemTime.asDate();
Date AVAILABLE_NULL = null;
Long LOCATION_NULL... | 0true | integration_src_test_java_org_broadleafcommerce_core_inventory_service_dataprovider_SkuAvailabilityDataProvider.java |
3,669 | public class IndexFieldMapper extends AbstractFieldMapper<String> implements InternalMapper, RootMapper {
public static final String NAME = "_index";
public static final String CONTENT_TYPE = "_index";
public static class Defaults extends AbstractFieldMapper.Defaults {
public static final String ... | 1no label | src_main_java_org_elasticsearch_index_mapper_internal_IndexFieldMapper.java |
2,877 | public class KeywordAnalyzerProvider extends AbstractIndexAnalyzerProvider<KeywordAnalyzer> {
private final KeywordAnalyzer keywordAnalyzer;
@Inject
public KeywordAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, @Assisted String name, @Assisted Settings settings) {
super(index,... | 0true | src_main_java_org_elasticsearch_index_analysis_KeywordAnalyzerProvider.java |
123 | static final class AdaptedRunnable<T> extends ForkJoinTask<T>
implements RunnableFuture<T> {
final Runnable runnable;
T result;
AdaptedRunnable(Runnable runnable, T result) {
if (runnable == null) throw new NullPointerException();
this.runnable = runnable;
... | 0true | src_main_java_jsr166e_ForkJoinTask.java |
4,522 | private class ExpiredDocsCollector extends Collector {
private final MapperService mapperService;
private AtomicReaderContext context;
private List<DocToPurge> docsToPurge = new ArrayList<DocToPurge>();
public ExpiredDocsCollector(String index) {
mapperService = indicesS... | 1no label | src_main_java_org_elasticsearch_indices_ttl_IndicesTTLService.java |
1,082 | public class OSQLFilterItemField extends OSQLFilterItemAbstract {
protected Set<String> preLoadedFields;
protected String[] preLoadedFieldsArray;
protected String name;
protected OCollate collate;
public OSQLFilterItemField(final OBaseParser iQueryToParse, final String iName) {
super(iQueryToP... | 1no label | core_src_main_java_com_orientechnologies_orient_core_sql_filter_OSQLFilterItemField.java |
685 | public class OHashTreeNodeMetadata {
private byte maxLeftChildDepth;
private byte maxRightChildDepth;
private byte nodeLocalDepth;
public OHashTreeNodeMetadata(byte maxLeftChildDepth, byte maxRightChildDepth, byte nodeLocalDepth) {
this.maxLeftChildDepth = maxLeftChildDepth;
this.maxRightChildDepth = ... | 0true | core_src_main_java_com_orientechnologies_orient_core_index_hashindex_local_OHashTreeNodeMetadata.java |
1,147 | public enum EntryEventType {
ADDED(1),
REMOVED(2),
UPDATED(3),
EVICTED(4);
private int type;
private EntryEventType(final int type) {
this.type = type;
}
public int getType() {
return type;
}
public static EntryEventType getByType(final int eventType) {
... | 0true | hazelcast_src_main_java_com_hazelcast_core_EntryEventType.java |
5,361 | public class InternalMin extends MetricsAggregation.SingleValue implements Min {
public final static Type TYPE = new Type("min");
public final static AggregationStreams.Stream STREAM = new AggregationStreams.Stream() {
@Override
public InternalMin readResult(StreamInput in) throws IOException ... | 1no label | src_main_java_org_elasticsearch_search_aggregations_metrics_min_InternalMin.java |
25 | public class DataDTOToMVELTranslatorTest extends TestCase {
private OrderItemFieldServiceImpl orderItemFieldService;
private CustomerFieldServiceImpl customerFieldService;
private OrderFieldServiceImpl orderFieldService;
private FulfillmentGroupFieldServiceImpl fulfillmentGroupFieldService;
@Overr... | 0true | admin_broadleaf-admin-module_src_test_java_org_broadleafcommerce_admin_web_rulebuilder_DataDTOToMVELTranslatorTest.java |
2,559 | public class MasterNotDiscoveredException extends ElasticsearchException {
public MasterNotDiscoveredException() {
super("");
}
public MasterNotDiscoveredException(String message) {
super(message);
}
@Override
public RestStatus status() {
return RestStatus.SERVICE_UNAV... | 0true | src_main_java_org_elasticsearch_discovery_MasterNotDiscoveredException.java |
5,826 | public class PostingsHighlighter implements Highlighter {
private static final String CACHE_KEY = "highlight-postings";
@Override
public String[] names() {
return new String[]{"postings", "postings-highlighter"};
}
@Override
public HighlightField highlight(HighlighterContext highlight... | 1no label | src_main_java_org_elasticsearch_search_highlight_PostingsHighlighter.java |
1,540 | @Service("blUpdateCartService")
public class UpdateCartServiceImpl implements UpdateCartService {
protected static final Log LOG = LogFactory.getLog(UpdateCartServiceImpl.class);
protected static BroadleafCurrency savedCurrency;
@Resource(name="blOrderService")
protected OrderService orderService;
... | 1no label | core_broadleaf-framework-web_src_main_java_org_broadleafcommerce_core_web_service_UpdateCartServiceImpl.java |
1,167 | public abstract class OQueryOperator {
public static enum ORDER {
/**
* Used when order compared to other operator can not be evaluated or has no consequences.
*/
UNKNOWNED,
/**
* Used when this operator must be before the other one
*/
BEFORE,
/**
* Used when this operato... | 1no label | core_src_main_java_com_orientechnologies_orient_core_sql_operator_OQueryOperator.java |
153 | static final class SnapshotIterator<E> implements Iterator<E> {
private final Object[] items;
private int cursor;
SnapshotIterator(ReadMostlyVector<E> v) { items = v.toArray(); }
public boolean hasNext() { return cursor < items.length; }
@SuppressWarnings("unchecked") public ... | 0true | src_main_java_jsr166e_extra_ReadMostlyVector.java |
372 | @SuppressWarnings("unchecked")
public class ODatabaseRaw extends OListenerManger<ODatabaseListener> implements ODatabase {
protected String url;
protected OStorage storage;
protected STATUS status;
protected OIntent currentIntent;
private OData... | 0true | core_src_main_java_com_orientechnologies_orient_core_db_raw_ODatabaseRaw.java |
1,253 | new OProfilerHookValue() {
public Object getValue() {
return lastStrategy;
}
}); | 0true | core_src_main_java_com_orientechnologies_orient_core_storage_fs_OMMapManagerOld.java |
105 | public static class Name {
public static final String Basic = "PageImpl_Basic";
public static final String Page = "PageImpl_Page";
public static final String Rules = "PageImpl_Rules";
} | 0true | admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_page_domain_PageImpl.java |
738 | public class ShardDeleteByQueryResponse extends ActionResponse {
@Override
public void readFrom(StreamInput in) throws IOException {
super.readFrom(in);
}
@Override
public void writeTo(StreamOutput out) throws IOException {
super.writeTo(out);
}
} | 0true | src_main_java_org_elasticsearch_action_deletebyquery_ShardDeleteByQueryResponse.java |
1,148 | public interface EntryListener<K, V> extends EventListener {
/**
* Invoked when an entry is added.
*
* @param event entry event
*/
void entryAdded(EntryEvent<K, V> event);
/**
* Invoked when an entry is removed.
*
* @param event entry event
*/
void entryRemoved(... | 0true | hazelcast_src_main_java_com_hazelcast_core_EntryListener.java |
633 | public class PropertiesVariableExpression implements BroadleafVariableExpression {
@Autowired
protected RuntimeEnvironmentPropertiesManager propMgr;
@Override
public String getName() {
return "props";
}
public String get(String propertyName) {
return propMgr.getPro... | 0true | common_src_main_java_org_broadleafcommerce_common_web_expression_PropertiesVariableExpression.java |
112 | public interface PageRule extends SimpleRule {
/**
* Gets the primary key.
*
* @return the primary key
*/
@Nullable
public Long getId();
/**
* Sets the primary key.
*
* @param id the new primary key
*/
public void setId(@Nullable Long id);
/**
* Bu... | 0true | admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_page_domain_PageRule.java |
3,208 | LONG(64, false, SortField.Type.LONG, Long.MIN_VALUE, Long.MAX_VALUE) {
@Override
public long toLong(BytesRef indexForm) {
return NumericUtils.prefixCodedToLong(indexForm);
}
@Override
public void toIndexForm(Number number, BytesRef byt... | 0true | src_main_java_org_elasticsearch_index_fielddata_IndexNumericFieldData.java |
435 | public class StandardKeyInformation implements KeyInformation {
private final Class<?> dataType;
private final Parameter[] parameters;
private final Cardinality cardinality;
public StandardKeyInformation(Class<?> dataType) {
this(dataType,new Parameter[0]);
}
public StandardKeyInforma... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_diskstorage_indexing_StandardKeyInformation.java |
129 | public class TestApplyTransactions
{
@Test
public void testCommittedTransactionReceivedAreForcedToLog() throws Exception
{
/* GIVEN
* Create a tx on a db (as if the master), extract that, apply on dest (as if pullUpdate on slave).
* Let slave crash uncleanly.
*/
Fi... | 0true | community_kernel_src_test_java_org_neo4j_kernel_impl_transaction_xaframework_TestApplyTransactions.java |
1,595 | public class MapMetadata extends CollectionMetadata {
private String valueClassName;
private String[][] keys;
private boolean isSimpleValue;
private String mediaField;
private String mapKeyValueProperty;
private String mapKeyOptionEntityClass;
private String mapKeyOptionEntityDisplayField;
... | 1no label | admin_broadleaf-open-admin-platform_src_main_java_org_broadleafcommerce_openadmin_dto_MapMetadata.java |
299 | public class NoOpStoreTransaction extends AbstractStoreTransaction {
public NoOpStoreTransaction(BaseTransactionConfig config) {
super(config);
}
} | 0true | titan-core_src_main_java_com_thinkaurelius_titan_diskstorage_common_NoOpStoreTransaction.java |
1,520 | private static class DefaultOutOfMemoryHandler extends OutOfMemoryHandler {
@Override
public void onOutOfMemory(OutOfMemoryError oom, HazelcastInstance[] hazelcastInstances) {
for (HazelcastInstance instance : hazelcastInstances) {
if (instance instanceof HazelcastInstan... | 0true | hazelcast_src_main_java_com_hazelcast_instance_OutOfMemoryErrorDispatcher.java |
3,517 | public class MergeMappingException extends MapperException {
private final String[] failures;
public MergeMappingException(String[] failures) {
super("Merge failed with failures {" + Arrays.toString(failures) + "}");
this.failures = failures;
}
public String[] failures() {
ret... | 0true | src_main_java_org_elasticsearch_index_mapper_MergeMappingException.java |
627 | public class OIndexRebuildOutputListener implements OProgressListener {
private final OIndex<?> idx;
long startTime;
long lastDump;
long lastCounter = 0;
public OIndexRebuildOutputListener(final OIndex<?> idx) {
this.idx = idx;
}
@Override
p... | 0true | core_src_main_java_com_orientechnologies_orient_core_index_OIndexRebuildOutputListener.java |
1,603 | public class Imports {
private static final List<String> imports = new ArrayList<String>();
private static final List<String> evaluates = new ArrayList<String>();
public static final String HDFS = "hdfs";
public static final String LOCAL = "local";
static {
// hadoop
imports.add(... | 1no label | titan-hadoop-parent_titan-hadoop-core_src_main_java_com_thinkaurelius_titan_hadoop_tinkerpop_gremlin_Imports.java |
379 | public class ODatabaseRecordTx extends ODatabaseRecordAbstract {
public static final String TYPE = "record";
private OTransaction currentTx;
public ODatabaseRecordTx(final String iURL, final byte iRecordType) {
super(iURL, iRecordType);
init();
}
public ODatabaseRecord begin() {
return beg... | 1no label | core_src_main_java_com_orientechnologies_orient_core_db_record_ODatabaseRecordTx.java |
1,591 | public abstract class FieldMetadata implements Serializable {
private static final long serialVersionUID = 1L;
private String inheritedFromType;
private String[] availableToTypes;
private Boolean excluded;
private String friendlyName;
private String securityLevel;
private Integer order... | 1no label | admin_broadleaf-open-admin-platform_src_main_java_org_broadleafcommerce_openadmin_dto_FieldMetadata.java |
3,203 | public interface IndexNumericFieldData<FD extends AtomicNumericFieldData> extends IndexFieldData<FD> {
public static enum NumericType {
BYTE(8, false, SortField.Type.INT, Byte.MIN_VALUE, Byte.MAX_VALUE) {
@Override
public long toLong(BytesRef indexForm) {
return INT.... | 0true | src_main_java_org_elasticsearch_index_fielddata_IndexNumericFieldData.java |
1,497 | public class AbstractEntity {
private boolean before1Called = false;
private boolean before2Called = false;
public void reset() {
before1Called = false;
before2Called = false;
}
@OBeforeSerialization
public void before1() {
before1Called = true;
}
@OBeforeSerialization
public void before2() {
before... | 0true | object_src_test_java_com_orientechnologies_orient_object_enhancement_AbstractEntity.java |
1,235 | @Deprecated
public interface ShippingRateService {
public ShippingRate save(ShippingRate shippingRate);
public ShippingRate readShippingRateById(Long id);
public ShippingRate readShippingRateByFeeTypesUnityQty(String feeType, String feeSubType, BigDecimal unitQuantity);
} | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_pricing_service_ShippingRateService.java |
1,394 | interface Factory<T extends Custom> {
String type();
T readFrom(StreamInput in) throws IOException;
void writeTo(T customIndexMetaData, StreamOutput out) throws IOException;
T fromXContent(XContentParser parser) throws IOException;
void toXContent... | 0true | src_main_java_org_elasticsearch_cluster_metadata_MetaData.java |
1,594 | public class ForeignKey implements Serializable, PersistencePerspectiveItem {
private static final long serialVersionUID = 1L;
private String manyToField;
private String originatingField;
private String foreignKeyClass;
private String currentValue;
private String dataSourceName;
privat... | 1no label | admin_broadleaf-open-admin-platform_src_main_java_org_broadleafcommerce_openadmin_dto_ForeignKey.java |
2,427 | public class TestList extends SlicedObjectList<Double> {
public TestList(int capactiy) {
this(new Double[capactiy], 0, capactiy);
}
public TestList(Double[] values, int offset, int length) {
super(values, offset, length);
}
public TestList(D... | 0true | src_test_java_org_elasticsearch_common_util_SlicedObjectListTests.java |
1,588 | public enum DIRECTION {
NONE, IN, OUT, BOTH
} | 0true | server_src_main_java_com_orientechnologies_orient_server_distributed_ODistributedServerLog.java |
1,670 | public interface BlobMetaData {
String name();
long length();
} | 0true | src_main_java_org_elasticsearch_common_blobstore_BlobMetaData.java |
259 | {
@Override
public synchronized Object answer( InvocationOnMock invocation ) throws Throwable
{
Lock mock = mock( Lock.class );
lockMocks.add( mock );
return mock;
}
} ); | 0true | community_kernel_src_test_java_org_neo4j_kernel_impl_nioneo_xa_WriteTransactionTest.java |
1,189 | public class BroadcastActionsTests extends ElasticsearchIntegrationTest {
@Test
public void testBroadcastOperations() throws IOException {
prepareCreate("test", 1).execute().actionGet(5000);
logger.info("Running Cluster Health");
ClusterHealthResponse clusterHealth = client().admin().c... | 0true | src_test_java_org_elasticsearch_broadcast_BroadcastActionsTests.java |
784 | 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_mlt_TransportMoreLikeThisAction.java |
2,848 | public class CzechAnalyzerProvider extends AbstractIndexAnalyzerProvider<CzechAnalyzer> {
private final CzechAnalyzer analyzer;
@Inject
public CzechAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, Environment env, @Assisted String name, @Assisted Settings settings) {
super(inde... | 0true | src_main_java_org_elasticsearch_index_analysis_CzechAnalyzerProvider.java |
1,874 | .setEnabled(true).setImplementation(new MapStoreAdapter() {
public void store(Object key, Object value) {
throw new IllegalStateException("Map store intentionally failed :) ");
}
})); | 0true | hazelcast_src_test_java_com_hazelcast_map_MapTransactionTest.java |
309 | Integer.class, 2, new OConfigurationChangeCallback() {
public void change(final Object iCurrentValue, final Object iNewValue) {
OMMapManagerOld.setOverlapStrategy((Integer) iNewValue);
}
}), | 0true | core_src_main_java_com_orientechnologies_orient_core_config_OGlobalConfiguration.java |
2,673 | public class EnvironmentModule extends AbstractModule {
private final Environment environment;
public EnvironmentModule(Environment environment) {
this.environment = environment;
}
@Override
protected void configure() {
bind(Environment.class).toInstance(environment);
}
} | 0true | src_main_java_org_elasticsearch_env_EnvironmentModule.java |
1,008 | threadPool.executor(executor).execute(new Runnable() {
@Override
public void run() {
try {
Response response = shardOperation(reques... | 0true | src_main_java_org_elasticsearch_action_support_single_custom_TransportSingleCustomOperationAction.java |
429 | public class ClusterStateResponse extends ActionResponse {
private ClusterName clusterName;
private ClusterState clusterState;
public ClusterStateResponse() {
}
ClusterStateResponse(ClusterName clusterName, ClusterState clusterState) {
this.clusterName = clusterName;
this.clusterS... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_state_ClusterStateResponse.java |
551 | public class GetFieldMappingsResponse extends ActionResponse implements ToXContent {
private ImmutableMap<String, ImmutableMap<String, ImmutableMap<String, FieldMappingMetaData>>> mappings = ImmutableMap.of();
GetFieldMappingsResponse(ImmutableMap<String, ImmutableMap<String, ImmutableMap<String, FieldMapping... | 1no label | src_main_java_org_elasticsearch_action_admin_indices_mapping_get_GetFieldMappingsResponse.java |
348 | Map<String, IndexEntry> uniq = new HashMap<String, IndexEntry>(additions.size()) {{
for (IndexEntry e : additions)
put(e.field, e);
}}; | 0true | titan-es_src_main_java_com_thinkaurelius_titan_diskstorage_es_ElasticSearchIndex.java |
3,749 | @SuppressWarnings("deprecation")
public class WebFilter implements Filter {
protected static final String HAZELCAST_SESSION_ATTRIBUTE_SEPARATOR = "::hz::";
private static final ILogger LOGGER = Logger.getLogger(WebFilter.class);
private static final LocalCacheEntry NULL_ENTRY = new LocalCacheEntry();
... | 1no label | hazelcast-wm_src_main_java_com_hazelcast_web_WebFilter.java |
3,037 | public class BloomFilterLucenePostingsFormatProvider extends AbstractPostingsFormatProvider {
public static final class Defaults {
public static final float MAX_SATURATION = 0.1f;
public static final float SATURATION_LIMIT = 0.9f;
}
private final float desiredMaxSaturation;
private fin... | 0true | src_main_java_org_elasticsearch_index_codec_postingsformat_BloomFilterLucenePostingsFormatProvider.java |
1,464 | public class BroadleafLoginController extends BroadleafAbstractController {
@Resource(name="blCustomerService")
protected CustomerService customerService;
@Resource(name="blResetPasswordValidator")
protected ResetPasswordValidator resetPasswordValidator;
@Resource(name="blLoginService... | 1no label | core_broadleaf-framework-web_src_main_java_org_broadleafcommerce_core_web_controller_account_BroadleafLoginController.java |
1,243 | public class NodeAdminClient extends AbstractComponent implements AdminClient {
private final NodeIndicesAdminClient indicesAdminClient;
private final NodeClusterAdminClient clusterAdminClient;
@Inject
public NodeAdminClient(Settings settings, NodeClusterAdminClient clusterAdminClient, NodeIndicesAdm... | 0true | src_main_java_org_elasticsearch_client_node_NodeAdminClient.java |
1,408 | public class CeylonPlugin extends AbstractUIPlugin implements CeylonResources {
public static final String PLUGIN_ID = "com.redhat.ceylon.eclipse.ui";
public static final String DIST_PLUGIN_ID = "com.redhat.ceylon.dist";
public static final String EMBEDDED_REPO_PLUGIN_ID = "com.redhat.ceylon.dist.repo";
... | 1no label | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_ui_CeylonPlugin.java |
276 | @RunWith(HazelcastSerialClassRunner.class)
@Category(QuickTest.class)
public class ClientIdGeneratorTest {
static final String name = "test";
static HazelcastInstance hz;
static IdGenerator i;
@BeforeClass
public static void init() {
Hazelcast.newHazelcastInstance();
hz = Hazelcast... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_idgenerator_ClientIdGeneratorTest.java |
434 | public enum PersistencePerspectiveItemType {
FOREIGNKEY,
ADORNEDTARGETLIST,
MAPSTRUCTURE
} | 0true | common_src_main_java_org_broadleafcommerce_common_presentation_client_PersistencePerspectiveItemType.java |
1,896 | interface SingleMemberInjector {
void inject(Errors errors, InternalContext context, Object o);
InjectionPoint getInjectionPoint();
} | 0true | src_main_java_org_elasticsearch_common_inject_SingleMemberInjector.java |
674 | CollectionUtils.filter(parentFacets, new Predicate() {
@Override
public boolean evaluate(Object arg) {
CategorySearchFacet csf = (CategorySearchFacet) arg;
return !getExcludedSearchFacets().contains(csf.getSearchFacet()) && !returnFacet... | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_catalog_domain_CategoryImpl.java |
124 | client.getLifecycleService().addLifecycleListener(new LifecycleListener() {
@Override
public void stateChanged(LifecycleEvent event) {
connectedLatch.countDown();
}
}); | 0true | hazelcast-client_src_test_java_com_hazelcast_client_ClientReconnectTest.java |
2,910 | @AnalysisSettingsRequired
public class PatternCaptureGroupTokenFilterFactory extends AbstractTokenFilterFactory {
private final Pattern[] patterns;
private final boolean preserveOriginal;
private static final String PATTERNS_KEY = "patterns";
private static final String PRESERVE_ORIG_KEY = "preserve_ori... | 0true | src_main_java_org_elasticsearch_index_analysis_PatternCaptureGroupTokenFilterFactory.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.