Unnamed: 0 int64 0 6.45k | func stringlengths 29 253k | target class label 2
classes | project stringlengths 36 167 |
|---|---|---|---|
3,458 | public class GetResult implements Streamable, Iterable<GetField>, ToXContent {
private String index;
private String type;
private String id;
private long version;
private boolean exists;
private Map<String, GetField> fields;
private Map<String, Object> sourceAsMap;
private BytesReferenc... | 0true | src_main_java_org_elasticsearch_index_get_GetResult.java |
122 | @RunWith(HazelcastSerialClassRunner.class)
@Category(QuickTest.class)
public class ClientReconnectTest extends HazelcastTestSupport {
@After
@Before
public void cleanup() throws Exception {
HazelcastClient.shutdownAll();
Hazelcast.shutdownAll();
}
@Test
public void testClientRe... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_ClientReconnectTest.java |
3,765 | public class LogDocMergePolicyProvider extends AbstractMergePolicyProvider<LogDocMergePolicy> {
private final IndexSettingsService indexSettingsService;
private volatile int minMergeDocs;
private volatile int maxMergeDocs;
private volatile int mergeFactor;
private final boolean calibrateSizeByDele... | 1no label | src_main_java_org_elasticsearch_index_merge_policy_LogDocMergePolicyProvider.java |
315 | public class DynamicResourceIterator extends ArrayList<ResourceInputStream> {
private static final Log LOG = LogFactory.getLog(DynamicResourceIterator.class);
private int position = 0;
private int embeddedInsertPosition = 0;
public ResourceInputStream nextResource() {
ResourceInputStream ris ... | 0true | common_src_main_java_org_broadleafcommerce_common_extensibility_context_merge_DynamicResourceIterator.java |
1,522 | @RunWith(HazelcastSerialClassRunner.class)
@Category(QuickTest.class)
public class OutOfMemoryErrorDispatcherTest {
@Before
public void before() {
OutOfMemoryErrorDispatcher.clear();
}
@Test
public void onOutOfMemoryOutOfMemory(){
OutOfMemoryHandler handler = mock(OutOfMemoryHandle... | 0true | hazelcast_src_test_java_com_hazelcast_instance_OutOfMemoryErrorDispatcherTest.java |
710 | constructors[COLLECTION_REMOVE] = new ConstructorFunction<Integer, Portable>() {
public Portable createNew(Integer arg) {
return new CollectionRemoveRequest();
}
}; | 0true | hazelcast_src_main_java_com_hazelcast_collection_CollectionPortableHook.java |
1,050 | public class TermVectorAction extends Action<TermVectorRequest, TermVectorResponse, TermVectorRequestBuilder> {
public static final TermVectorAction INSTANCE = new TermVectorAction();
public static final String NAME = "tv";
private TermVectorAction() {
super(NAME);
}
@Override
public ... | 0true | src_main_java_org_elasticsearch_action_termvector_TermVectorAction.java |
355 | @Deprecated
public class AnnotationsCopyClassTransformer implements BroadleafClassTransformer {
protected SupportLogger logger;
protected String moduleName;
protected Map<String, String> xformTemplates = new HashMap<String, String>();
protected static List<String> transformedMethods = new Arra... | 0true | common_src_main_java_org_broadleafcommerce_common_extensibility_jpa_copy_AnnotationsCopyClassTransformer.java |
1,649 | private class EntryBackupProcessorImpl implements EntryBackupProcessor<K,V>{
@Override
public void processBackup(Map.Entry<K, V> entry) {
process(entry);
}
} | 0true | hazelcast_src_main_java_com_hazelcast_map_AbstractEntryProcessor.java |
1,500 | public interface CurrencyConversionPricingFilter extends Filter {
@SuppressWarnings("rawtypes")
public HashMap getCurrencyConversionContext(ServletRequest request);
public CurrencyConversionService getCurrencyConversionService(ServletRequest request);
} | 0true | core_broadleaf-framework-web_src_main_java_org_broadleafcommerce_core_web_money_CurrencyConversionPricingFilter.java |
1,533 | class StopSAXParser extends SAXException {
/** This class is serializable */
private static final long serialVersionUID = 6173561761817524327L;
} | 0true | object_src_main_java_com_orientechnologies_orient_object_jpa_parsing_PersistenceXmlUtil.java |
801 | public class AlterRequest extends AbstractAlterRequest {
public AlterRequest() {
}
public AlterRequest(String name, Data function) {
super(name, function);
}
@Override
protected Operation prepareOperation() {
return new AlterOperation(name, getFunction());
}
@Override... | 0true | hazelcast_src_main_java_com_hazelcast_concurrent_atomiclong_client_AlterRequest.java |
359 | Collections.sort(indexesToFreeze, new Comparator<OIndex<?>>() {
public int compare(OIndex<?> o1, OIndex<?> o2) {
return o1.getName().compareTo(o2.getName());
}
}); | 0true | core_src_main_java_com_orientechnologies_orient_core_db_document_ODatabaseDocumentTx.java |
185 | private class InnerIDBlockSizer implements IDBlockSizer {
@Override
public long getBlockSize(int idNamespace) {
return blockSize;
}
@Override
public long getIdUpperBound(int idNamespace) {
return idUpperBound;
}
} | 0true | titan-test_src_main_java_com_thinkaurelius_titan_diskstorage_IDAuthorityTest.java |
1,919 | public static class LoggingEntryProcessor extends AbstractEntryProcessor<String, TempData> {
private static final long serialVersionUID = 1L;
public Object process(Map.Entry<String, TempData> entry) {
return true;
}
} | 0true | hazelcast_src_test_java_com_hazelcast_map_TempData.java |
897 | public abstract class TransportSearchTypeAction extends TransportAction<SearchRequest, SearchResponse> {
protected final ClusterService clusterService;
protected final SearchServiceTransportAction searchService;
protected final SearchPhaseController searchPhaseController;
public TransportSearchTypeA... | 1no label | src_main_java_org_elasticsearch_action_search_type_TransportSearchTypeAction.java |
1,180 | public class SimpleUuidBenchmark {
private static long NUMBER_OF_ITERATIONS = 10000;
private static int NUMBER_OF_THREADS = 100;
public static void main(String[] args) throws Exception {
StopWatch stopWatch = new StopWatch().start();
System.out.println("Running " + NUMBER_OF_ITERATIONS);
... | 0true | src_test_java_org_elasticsearch_benchmark_uuid_SimpleUuidBenchmark.java |
2,957 | public interface TokenFilterFactoryFactory {
TokenFilterFactory create(String name, Settings settings);
} | 0true | src_main_java_org_elasticsearch_index_analysis_TokenFilterFactoryFactory.java |
3,192 | public interface IndexFieldDataCache {
<FD extends AtomicFieldData, IFD extends IndexFieldData<FD>> FD load(AtomicReaderContext context, IFD indexFieldData) throws Exception;
/**
* Clears all the field data stored cached in on this index.
*/
void clear();
/**
* Clears all the field dat... | 0true | src_main_java_org_elasticsearch_index_fielddata_IndexFieldDataCache.java |
1,054 | return new TermsEnum() {
int currentTerm = 0;
int freq = 0;
int docFreq = -1;
long totalTermFrequency = -1;
int[] positions = new int[1];
int[] startOffsets = new int[1];
... | 0true | src_main_java_org_elasticsearch_action_termvector_TermVectorFields.java |
3,287 | public abstract class AbstractBytesIndexFieldData<FD extends AtomicFieldData.WithOrdinals<ScriptDocValues.Strings>> extends AbstractIndexFieldData<FD> implements IndexFieldData.WithOrdinals<FD> {
protected Settings frequency;
protected Settings regex;
protected AbstractBytesIndexFieldData(Index index, Set... | 0true | src_main_java_org_elasticsearch_index_fielddata_plain_AbstractBytesIndexFieldData.java |
3,103 | public class EngineModule extends AbstractModule implements SpawnModules {
private final Settings settings;
public EngineModule(Settings settings) {
this.settings = settings;
}
@Override
public Iterable<? extends Module> spawnModules() {
return ImmutableList.of(Modules.createModul... | 0true | src_main_java_org_elasticsearch_index_engine_EngineModule.java |
982 | public class SignalOperation extends BaseSignalOperation implements BackupAwareOperation {
public SignalOperation() {
}
public SignalOperation(ObjectNamespace namespace, Data key, long threadId, String conditionId, boolean all) {
super(namespace, key, threadId, conditionId, all);
}
@Overr... | 0true | hazelcast_src_main_java_com_hazelcast_concurrent_lock_operations_SignalOperation.java |
1,480 | public class Hibernate3CacheEntrySerializerHook
implements SerializerHook {
private static final String SKIP_INIT_MSG = "Hibernate3 not available, skipping serializer initialization";
private final Class<?> cacheEntryClass;
public Hibernate3CacheEntrySerializerHook() {
Class<?> cacheEntry... | 0true | hazelcast-hibernate_hazelcast-hibernate3_src_main_java_com_hazelcast_hibernate_serialization_Hibernate3CacheEntrySerializerHook.java |
125 | static final class ExceptionNode extends WeakReference<ForkJoinTask<?>> {
final Throwable ex;
ExceptionNode next;
final long thrower; // use id not ref to avoid weak cycles
final int hashCode; // store task hashCode before weak ref disappears
ExceptionNode(ForkJoinTask<?> t... | 0true | src_main_java_jsr166e_ForkJoinTask.java |
197 | shell.getDisplay().syncExec(new Runnable() {
@Override
public void run() {
updateTitleImage();
}
... | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_editor_CeylonEditor.java |
357 | public class NodesStatsRequest extends NodesOperationRequest<NodesStatsRequest> {
private CommonStatsFlags indices = new CommonStatsFlags();
private boolean os;
private boolean process;
private boolean jvm;
private boolean threadPool;
private boolean network;
private boolean fs;
private... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_node_stats_NodesStatsRequest.java |
840 | return new IAnswer<FulfillmentGroup>() {
@Override
public FulfillmentGroup answer() throws Throwable {
FulfillmentGroupItemRequest fgItemRequest = (FulfillmentGroupItemRequest) EasyMock.getCurrentArguments()[0];
FulfillmentGroup fg = fgItemRequest.getFulfi... | 0true | core_broadleaf-framework_src_test_java_org_broadleafcommerce_core_offer_service_OfferDataItemProvider.java |
3,582 | public static class CustomFloatNumericField extends CustomNumericField {
private final float number;
private final NumberFieldMapper mapper;
public CustomFloatNumericField(NumberFieldMapper mapper, float number, FieldType fieldType) {
super(mapper, number, fieldType);
... | 0true | src_main_java_org_elasticsearch_index_mapper_core_FloatFieldMapper.java |
252 | public class CassandraEmbeddedKeyColumnValueStore implements KeyColumnValueStore {
private static final Logger log = LoggerFactory.getLogger(CassandraEmbeddedKeyColumnValueStore.class);
private final String keyspace;
private final String columnFamily;
private final CassandraEmbeddedStoreManager storeM... | 0true | titan-cassandra_src_main_java_com_thinkaurelius_titan_diskstorage_cassandra_embedded_CassandraEmbeddedKeyColumnValueStore.java |
665 | constructors[COLLECTION_ITEM] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {
public IdentifiedDataSerializable createNew(Integer arg) {
return new CollectionItem();
}
}; | 0true | hazelcast_src_main_java_com_hazelcast_collection_CollectionDataSerializerHook.java |
3,671 | public static class Defaults extends AbstractFieldMapper.Defaults {
public static final String NAME = IndexFieldMapper.NAME;
public static final String INDEX_NAME = IndexFieldMapper.NAME;
public static final FieldType FIELD_TYPE = new FieldType(AbstractFieldMapper.Defaults.FIELD_TYPE);
... | 1no label | src_main_java_org_elasticsearch_index_mapper_internal_IndexFieldMapper.java |
117 | public static interface ManagedBlocker {
/**
* Possibly blocks the current thread, for example waiting for
* a lock or condition.
*
* @return {@code true} if no additional blocking is necessary
* (i.e., if isReleasable would return true)
* @throws Interr... | 0true | src_main_java_jsr166e_ForkJoinPool.java |
1,102 | public class NonDiscreteOrderItemRequestDTO extends OrderItemRequestDTO {
protected String itemName;
public NonDiscreteOrderItemRequestDTO() {
}
public NonDiscreteOrderItemRequestDTO(String itemName, Integer quantity, Money overrideRetailPrice) {
setItemName(itemName);
setQuantity(qua... | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_order_service_call_NonDiscreteOrderItemRequestDTO.java |
1,222 | final class DeltaScanner implements IResourceDeltaVisitor {
private final BooleanHolder mustDoFullBuild;
private final IProject project;
private final BooleanHolder somethingToBuild;
private final BooleanHolder mustResolveClasspathContainer;
private IPath explodedDirPath;
private Map<IProject, I... | 1no label | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_core_builder_DeltaScanner.java |
617 | public class IndicesStatsAction extends IndicesAction<IndicesStatsRequest, IndicesStatsResponse, IndicesStatsRequestBuilder> {
public static final IndicesStatsAction INSTANCE = new IndicesStatsAction();
public static final String NAME = "indices/stats";
private IndicesStatsAction() {
super(NAME);
... | 0true | src_main_java_org_elasticsearch_action_admin_indices_stats_IndicesStatsAction.java |
470 | public class ExpirationKCVSCache extends KCVSCache {
private static final Logger log =
LoggerFactory.getLogger(ExpirationKCVSCache.class);
//Weight estimation
private static final int STATICARRAYBUFFER_SIZE = STATICARRAYBUFFER_RAW_SIZE + 10; // 10 = last number is average length
private st... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_diskstorage_keycolumnvalue_cache_ExpirationKCVSCache.java |
2,409 | public interface ByteArray extends BigArray {
/**
* Get an element given its index.
*/
public abstract byte get(long index);
/**
* Set a value at the given index and return the previous value.
*/
public abstract byte set(long index, byte value);
/**
* Get a reference to a... | 0true | src_main_java_org_elasticsearch_common_util_ByteArray.java |
13 | final class AscendingEntrySetView extends EntrySetView {
@Override
public Iterator<Map.Entry<K, V>> iterator() {
return new SubMapEntryIterator(absLowest(), absHighFence());
}
} | 0true | commons_src_main_java_com_orientechnologies_common_collection_OMVRBTree.java |
929 | makeDbCall(iOtherDb, new ODbRelatedCall<Object>() {
public Object call() {
iOther.checkForFields();
return null;
}
}); | 0true | core_src_main_java_com_orientechnologies_orient_core_record_impl_ODocumentHelper.java |
1,223 | public class SimplePaymentProcessContextFactory implements ProcessContextFactory {
public ProcessContext createContext(Object seedData) throws WorkflowException {
if(!(seedData instanceof PaymentSeed)){
throw new WorkflowException("Seed data instance is incorrect. " +
"Requi... | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_payment_service_workflow_SimplePaymentProcessContextFactory.java |
1,153 | iMethodParams = OMultiValue.array(iMethodParams, Object.class, new OCallable<Object, Object>() {
@Override
public Object call(final Object iArgument) {
if (iArgument instanceof String && ((String) iArgument).startsWith("$"))
return iContext.getVariable((String) iArgument);
... | 1no label | core_src_main_java_com_orientechnologies_orient_core_sql_method_misc_OSQLMethodRemove.java |
546 | public abstract class ORecordHookAbstract implements ORecordHook {
/**
* It's called just before to create the new iRecord.
*
* @param iiRecord
* The iRecord to create
* @return True if the iRecord has been modified and a new marshalling is required, otherwise false
*/
public RESULT onRe... | 0true | core_src_main_java_com_orientechnologies_orient_core_hook_ORecordHookAbstract.java |
799 | public class AddAndGetRequest extends AtomicLongRequest {
public AddAndGetRequest() {
}
public AddAndGetRequest(String name, long delta) {
super(name, delta);
}
@Override
protected Operation prepareOperation() {
return new AddAndGetOperation(name, delta);
}
@Override
... | 0true | hazelcast_src_main_java_com_hazelcast_concurrent_atomiclong_client_AddAndGetRequest.java |
1,053 | public class JobTrackerConfigReadOnly
extends JobTrackerConfig {
JobTrackerConfigReadOnly(JobTrackerConfig jobTrackerConfig) {
super(jobTrackerConfig);
}
@Override
public JobTrackerConfigReadOnly setName(String name) {
throw new UnsupportedOperationException("This config is rea... | 0true | hazelcast_src_main_java_com_hazelcast_config_JobTrackerConfigReadOnly.java |
1,001 | public class InitRequest extends SemaphoreRequest {
public InitRequest() {
}
public InitRequest(String name, int permitCount) {
super(name, permitCount);
}
@Override
protected Operation prepareOperation() {
return new InitOperation(name, permitCount);
}
@Override
... | 0true | hazelcast_src_main_java_com_hazelcast_concurrent_semaphore_client_InitRequest.java |
1,142 | public class OSQLMethodCharAt extends OAbstractSQLMethod {
public static final String NAME = "charat";
public OSQLMethodCharAt() {
super(NAME, 1);
}
@Override
public Object execute(OIdentifiable iCurrentRecord, OCommandContext iContext, Object ioResult, Object[] iMethodParams) {
i... | 0true | core_src_main_java_com_orientechnologies_orient_core_sql_method_misc_OSQLMethodCharAt.java |
216 | public class OConsoleDatabaseListener implements ODatabaseListener {
OConsoleDatabaseApp console;
public OConsoleDatabaseListener(OConsoleDatabaseApp console) {
this.console = console;
}
public void onCreate(ODatabase iDatabase) {
}
public void onDelete(ODatabase iDatabase) {
}
public void onOpen(ODatabas... | 0true | tools_src_main_java_com_orientechnologies_orient_console_OConsoleDatabaseListener.java |
199 | public class ODatabaseHelper {
public static void createDatabase(ODatabase database, final String url) throws IOException {
createDatabase(database, url, "server", "plocal");
}
public static void createDatabase(ODatabase database, final String url, String type) throws IOException {
createDatabase(databas... | 0true | client_src_main_java_com_orientechnologies_orient_client_db_ODatabaseHelper.java |
1,641 | public class MapConfigRequest implements ConsoleRequest {
private String map;
private MapConfig config;
private boolean update;
private Address target;
public MapConfigRequest() {
}
public MapConfigRequest(String map, MapConfig config) {
this.map = map;
this.config = confi... | 0true | hazelcast_src_main_java_com_hazelcast_management_request_MapConfigRequest.java |
148 | public class Backend implements LockerProvider {
private static final Logger log = LoggerFactory.getLogger(Backend.class);
/**
* These are the names for the edge store and property index databases, respectively.
* The edge store contains all edges and properties. The property index contains an
... | 1no label | titan-core_src_main_java_com_thinkaurelius_titan_diskstorage_Backend.java |
395 | public final class BankersRounding {
public static final int DEFAULT_SCALE = 2;
public static final BigDecimal ZERO = setScale(0);
public static int getScaleForCurrency(Currency currency) {
if (currency != null) {
return currency.getDefaultFractionDigits();
} else {
... | 0true | common_src_main_java_org_broadleafcommerce_common_money_BankersRounding.java |
397 | context.getExecutionService().execute(new Runnable() {
public void run() {
try {
TreeSet<CacheRecord<K>> records = new TreeSet<CacheRecord<K>>(comparator);
records.addAll(cache.values());
... | 0true | hazelcast-client_src_main_java_com_hazelcast_client_nearcache_ClientNearCache.java |
46 | public class TouchCommandProcessor extends MemcacheCommandProcessor<TouchCommand> {
private final ILogger logger;
public TouchCommandProcessor(TextCommandServiceImpl textCommandService) {
super(textCommandService);
logger = textCommandService.getNode().getLogger(this.getClass().getName());
... | 0true | hazelcast_src_main_java_com_hazelcast_ascii_memcache_TouchCommandProcessor.java |
1,388 | @Test
public class OMVRBTreeDatabaseLazySaveCompositeTest extends OMVRBTreeCompositeTest {
private ODatabaseDocumentTx database;
private int oldPageSize;
private int oldEntryPoints;
@BeforeClass
public void beforeClass() {
oldPageSize = OGlobalConfiguration.MVRBTREE_NODE_PAGE_SIZE.getValueAsInte... | 0true | core_src_test_java_com_orientechnologies_orient_core_type_tree_OMVRBTreeDatabaseLazySaveCompositeTest.java |
1,912 | public interface SizeEstimator<T> {
long getSize();
void add(long size);
long getCost(T record);
void reset();
} | 0true | hazelcast_src_main_java_com_hazelcast_map_SizeEstimator.java |
1,643 | public class FieldMetadataProviderAdapter extends AbstractFieldMetadataProvider {
@Override
public FieldProviderResponse addMetadata(AddMetadataRequest addMetadataRequest, Map<String, FieldMetadata> metadata) {
return FieldProviderResponse.NOT_HANDLED;
}
@Override
public FieldProviderRespo... | 0true | admin_broadleaf-open-admin-platform_src_main_java_org_broadleafcommerce_openadmin_server_dao_provider_metadata_FieldMetadataProviderAdapter.java |
721 | preFetchedValues.add(new Map.Entry<K, V>() {
@Override
public K getKey() {
return entry.getKey();
}
@Override
public V getValue() {
return entry.getValue();
}
@Override
public V setValue(V v) {
... | 0true | core_src_main_java_com_orientechnologies_orient_core_index_sbtree_OSBTreeInverseMapEntryIterator.java |
111 | public class TestDeadlockDetection
{
@Test
public void testDeadlockDetection() throws Exception
{
ResourceObject r1 = newResourceObject( "R1" );
ResourceObject r2 = newResourceObject( "R2" );
ResourceObject r3 = newResourceObject( "R3" );
ResourceObject r4 = newResourceObject... | 0true | community_kernel_src_test_java_org_neo4j_kernel_impl_transaction_TestDeadlockDetection.java |
3,129 | class SearchFactory extends SearcherFactory {
@Override
public IndexSearcher newSearcher(IndexReader reader) throws IOException {
IndexSearcher searcher = new IndexSearcher(reader);
searcher.setSimilarity(similarityService.similarity());
if (warmer != null) {
... | 1no label | src_main_java_org_elasticsearch_index_engine_internal_InternalEngine.java |
1,245 | public class NodeClientModule extends AbstractModule {
@Override
protected void configure() {
bind(ClusterAdminClient.class).to(NodeClusterAdminClient.class).asEagerSingleton();
bind(IndicesAdminClient.class).to(NodeIndicesAdminClient.class).asEagerSingleton();
bind(AdminClient.class).t... | 0true | src_main_java_org_elasticsearch_client_node_NodeClientModule.java |
307 | {
@Override
public Object answer( InvocationOnMock invocation ) throws Throwable
{
Long nodeId = (Long) invocation.getArguments()[0];
Lock lock = lockMocks.get( nodeId );
if ( lock == null )
{
... | 0true | community_kernel_src_test_java_org_neo4j_kernel_impl_nioneo_xa_NeoStoreIndexStoreViewTest.java |
2,142 | public interface ReaderContextAware {
public void setNextReader(AtomicReaderContext reader);
} | 0true | src_main_java_org_elasticsearch_common_lucene_ReaderContextAware.java |
677 | public class OHashIndexBucket<K, V> implements Iterable<OHashIndexBucket.Entry<K, V>> {
private static final int MAGIC_NUMBER_OFFSET = 0;
private static final int CRC32_OFFSET = MAGIC_NUMBER_OFFSET + OLongSerializer.LONG_SIZE;
private static final int WAL_SEGMENT... | 0true | core_src_main_java_com_orientechnologies_orient_core_index_hashindex_local_OHashIndexBucket.java |
2,085 | public abstract class Streams {
public static final int BUFFER_SIZE = 1024 * 8;
//---------------------------------------------------------------------
// Copy methods for java.io.File
//---------------------------------------------------------------------
/**
* Copy the contents of the giv... | 0true | src_main_java_org_elasticsearch_common_io_Streams.java |
1,882 | class ProviderToInternalFactoryAdapter<T> implements Provider<T> {
private final InjectorImpl injector;
private final InternalFactory<? extends T> internalFactory;
public ProviderToInternalFactoryAdapter(InjectorImpl injector,
InternalFactory<? extends T> intern... | 0true | src_main_java_org_elasticsearch_common_inject_ProviderToInternalFactoryAdapter.java |
237 | new OProfilerHookValue() {
public Object getValue() {
return getMaxSize();
}
}, profilerMetadataPrefix + "max"); | 0true | core_src_main_java_com_orientechnologies_orient_core_cache_OAbstractRecordCache.java |
1,632 | public static final Validator MEMORY_SIZE = new Validator() {
@Override
public String validate(String setting, String value) {
try {
parseBytesSizeValueOrHeapRatio(value);
} catch (ElasticsearchParseException ex) {
return ex.getMessage();
... | 0true | src_main_java_org_elasticsearch_cluster_settings_Validator.java |
1,498 | public class ExactEntity extends AbstractEntity {
private boolean before3Called = false;
public void reset() {
super.reset();
before3Called = false;
}
@OBeforeSerialization
public void before3() {
before3Called = true;
}
@Override
public boolean callbackExecuted() {
return super.callbackExecuted() &... | 0true | object_src_test_java_com_orientechnologies_orient_object_enhancement_ExactEntity.java |
655 | @Repository("blCategoryDao")
public class CategoryDaoImpl implements CategoryDao {
protected Long currentDateResolution = 10000L;
protected Date cachedDate = SystemTime.asDate();
protected Date getCurrentDateAfterFactoringInDateResolution() {
Date returnDate = SystemTime.getCurrentDateWithinTimeRe... | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_catalog_dao_CategoryDaoImpl.java |
0 | public abstract class AbstractEntryIterator<K, V, T> implements OLazyIterator<T>, OResettable {
OMVRBTree<K, V> tree;
OMVRBTreeEntry<K, V> begin;
OMVRBTreeEntry<K, V> next;
OMVRBTreeEntry<K, V> lastReturned;
int expectedModCount;
int pageIndex;
AbstractEntryIterator... | 0true | commons_src_main_java_com_orientechnologies_common_collection_AbstractEntryIterator.java |
2,028 | public interface ElementVisitor<V> {
/**
* Visit a mapping from a key (type and optional annotation) to the strategy for getting
* instances of the type.
*/
<T> V visit(Binding<T> binding);
/**
* Visit a registration of a scope annotation with the scope that implements it.
*/
... | 0true | src_main_java_org_elasticsearch_common_inject_spi_ElementVisitor.java |
301 | public class OTraverseRecordSetProcess extends OTraverseAbstractProcess<Iterator<OIdentifiable>> {
protected OIdentifiable record;
protected int index = -1;
public OTraverseRecordSetProcess(final OTraverse iCommand, final Iterator<OIdentifiable> iTarget) {
super(iCommand, iTarget);
}
@Suppress... | 1no label | core_src_main_java_com_orientechnologies_orient_core_command_traverse_OTraverseRecordSetProcess.java |
242 | public class DynamicMenuItem extends CommandContributionItem {
private boolean enabled;
public DynamicMenuItem(String id, String label, boolean enabled) {
super(new CommandContributionItemParameter(
PlatformUI.getWorkbench().getActiveWorkbenchWindow(),
id + ".c... | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_editor_DynamicMenuItem.java |
2,964 | public class UniqueTokenFilterFactory extends AbstractTokenFilterFactory {
private final boolean onlyOnSamePosition;
@Inject
public UniqueTokenFilterFactory(Index index, @IndexSettings Settings indexSettings,
@Assisted String name, @Assisted Settings settings) {
... | 0true | src_main_java_org_elasticsearch_index_analysis_UniqueTokenFilterFactory.java |
90 | public interface ObjectToInt<A> {int apply(A a); } | 0true | src_main_java_jsr166e_ConcurrentHashMapV8.java |
3,275 | Collections.sort(ordsAndIds, new Comparator<OrdAndId>() {
@Override
public int compare(OrdAndId o1, OrdAndId o2) {
if (o1.id < o2.id) {
return -1;
}
if (o1.id == o2.id) {
if (o1.ord < o2.ord) {
... | 0true | src_test_java_org_elasticsearch_index_fielddata_ordinals_MultiOrdinalsTests.java |
735 | public class CollectionGetAllRequest extends CollectionRequest {
public CollectionGetAllRequest() {
}
public CollectionGetAllRequest(String name) {
super(name);
}
@Override
protected Operation prepareOperation() {
return new CollectionGetAllOperation(name);
}
@Overrid... | 0true | hazelcast_src_main_java_com_hazelcast_collection_client_CollectionGetAllRequest.java |
2,116 | public enum Releasables {
;
private static void rethrow(Throwable t) {
if (t instanceof RuntimeException) {
throw (RuntimeException) t;
}
if (t instanceof Error) {
throw (Error) t;
}
throw new RuntimeException(t);
}
private static void re... | 0true | src_main_java_org_elasticsearch_common_lease_Releasables.java |
83 | removeListenerActions.add(new Runnable() {
@Override
public void run() {
clientEngine.getProxyService().removeProxyListener(id);
}
}); | 0true | hazelcast_src_main_java_com_hazelcast_client_ClientEndpoint.java |
238 | XPostingsHighlighter highlighter = new XPostingsHighlighter() {
Iterator<String> valuesIterator = Arrays.asList(firstValue, secondValue, thirdValue).iterator();
Iterator<Integer> offsetsIterator = Arrays.asList(0, firstValue.length() + 1, secondValue.length() + 1).iterator();
... | 0true | src_test_java_org_apache_lucene_search_postingshighlight_XPostingsHighlighterTests.java |
2,475 | public abstract class PrioritizedRunnable implements Runnable, Comparable<PrioritizedRunnable> {
private final Priority priority;
public static PrioritizedRunnable wrap(Runnable runnable, Priority priority) {
return new Wrapped(runnable, priority);
}
protected PrioritizedRunnable(Priority pri... | 0true | src_main_java_org_elasticsearch_common_util_concurrent_PrioritizedRunnable.java |
592 | public interface OIndexDefinition extends OIndexCallback {
/**
* @return Names of fields which given index is used to calculate key value. Order of fields is important.
*/
public List<String> getFields();
/**
* @return Names of fields and their index modifiers (like "by value" for fields that hold <code... | 0true | core_src_main_java_com_orientechnologies_orient_core_index_OIndexDefinition.java |
984 | public static class Name {
} | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_order_domain_DiscreteOrderItemImpl.java |
411 | @Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD})
public @interface AdminPresentation {
/**
* <p>Optional - only required if you want to display a friendly name to the user</p>
*
* <p><The friendly name to present to a user for this field in a GUI. If supporting i18N,
* the f... | 0true | common_src_main_java_org_broadleafcommerce_common_presentation_AdminPresentation.java |
958 | public class OrderDaoTest extends BaseTest {
String userName = new String();
Long orderId;
@Resource
private OrderDao orderDao;
@Resource
private CustomerService customerService;
@Test(groups = { "createOrder" }, dataProvider = "basicOrder", dataProviderClass = OrderDataProvider.class, d... | 0true | integration_src_test_java_org_broadleafcommerce_core_order_dao_OrderDaoTest.java |
512 | public class OAllCacheEntriesAreUsedException extends ODatabaseException {
public OAllCacheEntriesAreUsedException(String string) {
super(string);
}
public OAllCacheEntriesAreUsedException(String message, Throwable cause) {
super(message, cause);
}
} | 0true | core_src_main_java_com_orientechnologies_orient_core_exception_OAllCacheEntriesAreUsedException.java |
3,135 | public class QueueProxyImpl<E> extends QueueProxySupport implements IQueue<E>, InitializingObject {
public QueueProxyImpl(String name, QueueService queueService, NodeEngine nodeEngine) {
super(name, queueService, nodeEngine);
}
@Override
public LocalQueueStats getLocalQueueStats() {
re... | 1no label | hazelcast_src_main_java_com_hazelcast_queue_proxy_QueueProxyImpl.java |
2,463 | public class PrioritizedEsThreadPoolExecutor extends EsThreadPoolExecutor {
private AtomicLong insertionOrder = new AtomicLong();
PrioritizedEsThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, ThreadFactory threadFactory) {
super(corePoolSize, maximumPoolSize... | 0true | src_main_java_org_elasticsearch_common_util_concurrent_PrioritizedEsThreadPoolExecutor.java |
1,958 | public static class JoinException extends RuntimeException {
private JoinException(IOException cause) {
super(cause);
}
private static final long serialVersionUID = 1L;
} | 0true | src_main_java_org_elasticsearch_common_inject_internal_Join.java |
3,606 | public static class Builder extends NumberFieldMapper.Builder<Builder, ShortFieldMapper> {
protected Short nullValue = Defaults.NULL_VALUE;
public Builder(String name) {
super(name, new FieldType(Defaults.FIELD_TYPE));
builder = this;
}
public Builder nullV... | 0true | src_main_java_org_elasticsearch_index_mapper_core_ShortFieldMapper.java |
1,229 | addOperation(operations, new Runnable() {
public void run() {
IMap map = hazelcast.getMap("myMap");
try {
map.getAsync(random.nextInt(SIZE)).get();
} catch (InterruptedException e) {
throw new RuntimeException(e)... | 0true | hazelcast_src_main_java_com_hazelcast_examples_AllTest.java |
651 | public class GetIndexTemplatesRequestBuilder extends MasterNodeReadOperationRequestBuilder<GetIndexTemplatesRequest, GetIndexTemplatesResponse, GetIndexTemplatesRequestBuilder> {
public GetIndexTemplatesRequestBuilder(IndicesAdminClient indicesClient) {
super((InternalIndicesAdminClient) indicesClient, new... | 0true | src_main_java_org_elasticsearch_action_admin_indices_template_get_GetIndexTemplatesRequestBuilder.java |
93 | @Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface ConsoleCommand {
String[] aliases() default {};
String description() default "";
boolean splitInWords() default true;
} | 0true | commons_src_main_java_com_orientechnologies_common_console_annotation_ConsoleCommand.java |
251 | fCollapseImports= new FoldingAction(getResourceBundle(), "Projection.CollapseImports.") {
public void run() {
if (editor instanceof CeylonEditor) {
ProjectionAnnotationModel pam = ((CeylonEditor) editor).getCeylonSourceViewer()
.getProj... | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_editor_FoldingActionGroup.java |
1,445 | private static final SoftLock LOCK_FAILURE = new SoftLock() {
@Override
public String toString() {
return "Lock::Failure";
}
}; | 0true | hazelcast-hibernate_hazelcast-hibernate3_src_main_java_com_hazelcast_hibernate_local_LocalRegionCache.java |
712 | public class CountRequest extends BroadcastOperationRequest<CountRequest> {
private static final XContentType contentType = Requests.CONTENT_TYPE;
public static final float DEFAULT_MIN_SCORE = -1f;
private float minScore = DEFAULT_MIN_SCORE;
@Nullable
protected String routing;
@Nullable
... | 0true | src_main_java_org_elasticsearch_action_count_CountRequest.java |
15 | static final class DescendingSubMap<K, V> extends NavigableSubMap<K, V> {
private static final long serialVersionUID = 912986545866120460L;
private final Comparator<? super K> reverseComparator = Collections.reverseOrder(m.comparator);
DescendingSubMap(final OMVRBTree<K, V> m, final boolean f... | 0true | commons_src_main_java_com_orientechnologies_common_collection_OMVRBTree.java |
1,043 | @Entity
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "BLC_ORDER_ITEM_PRICE_DTL")
@Cache(usage=CacheConcurrencyStrategy.NONSTRICT_READ_WRITE, region="blOrderElements")
@AdminPresentationMergeOverrides(
{
@AdminPresentationMergeOverride(name = "", mergeEntries =
@AdminPresentation... | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_order_domain_OrderItemPriceDetailImpl.java |
341 | private static class PartitionAwareKey implements PartitionAware, Serializable {
private final String key;
private final String pk;
private PartitionAwareKey(String key, String pk) {
this.key = key;
this.pk = pk;
}
@Override
public Object get... | 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.