Unnamed: 0 int64 0 6.45k | func stringlengths 29 253k | target class label 2
classes | project stringlengths 36 167 |
|---|---|---|---|
1,274 | return nodesService.execute(new TransportClientNodesService.NodeCallback<ActionFuture<Response>>() {
@Override
public ActionFuture<Response> doWithNode(DiscoveryNode node) throws ElasticsearchException {
return proxy.execute(node, request);
}
}); | 1no label | src_main_java_org_elasticsearch_client_transport_support_InternalTransportIndicesAdminClient.java |
1,611 | public class ODeleteRecordTask extends OAbstractRecordReplicatedTask {
private static final long serialVersionUID = 1L;
public ODeleteRecordTask() {
}
public ODeleteRecordTask(final ORecordId iRid, final ORecordVersion iVersion) {
super(iRid, iVersion);
}
@Override
public Object execute(final OServ... | 0true | server_src_main_java_com_orientechnologies_orient_server_distributed_task_ODeleteRecordTask.java |
9 | display.timerExec(100, new Runnable() {
@Override
public void run() {
fCompleted= true;
}
}); | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_browser_BrowserInformationControl.java |
736 | public class IndexDeleteByQueryResponse extends ActionResponse {
private String index;
private int successfulShards;
private int failedShards;
private ShardOperationFailedException[] failures;
IndexDeleteByQueryResponse(String index, int successfulShards, int failedShards, List<ShardOperationFaile... | 0true | src_main_java_org_elasticsearch_action_deletebyquery_IndexDeleteByQueryResponse.java |
244 | public interface BroadleafCurrency extends Serializable {
public String getCurrencyCode();
public void setCurrencyCode(String code);
public String getFriendlyName();
public void setFriendlyName(String friendlyName);
public boolean getDefaultFlag();
public void setDefaultFlag(boolean defaul... | 0true | common_src_main_java_org_broadleafcommerce_common_currency_domain_BroadleafCurrency.java |
149 | public abstract class KeyBasedClientRequest extends PartitionClientRequest {
protected abstract Object getKey();
protected final int getPartition() {
Object key = getKey();
InternalPartitionService partitionService = clientEngine.getPartitionService();
if (key instanceof String) {
... | 0true | hazelcast_src_main_java_com_hazelcast_client_KeyBasedClientRequest.java |
1,210 | public class PaymentResponseImpl implements PaymentResponse {
protected Map<PaymentInfo, PaymentResponseItem> responses = new HashMap<PaymentInfo, PaymentResponseItem>();
public void addPaymentResponseItem(PaymentInfo paymentInfo, PaymentResponseItem paymentResponseItem) {
responses.put(paymentInfo, p... | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_payment_service_module_PaymentResponseImpl.java |
400 | public class ORecordTrackedIterator implements Iterator<OIdentifiable> {
final private ORecord<?> sourceRecord;
final private Iterator<?> underlying;
public ORecordTrackedIterator(final ORecord<?> iSourceRecord, final Iterator<?> iIterator) {
this.sourceRecord = iSourceRecord;
this.underlying = iIterator;
}
... | 0true | core_src_main_java_com_orientechnologies_orient_core_db_record_ORecordTrackedIterator.java |
2,981 | public interface FilterCache extends IndexComponent, CloseableComponent {
static class EntriesStats {
public final long sizeInBytes;
public final long count;
public EntriesStats(long sizeInBytes, long count) {
this.sizeInBytes = sizeInBytes;
this.count = count;
... | 0true | src_main_java_org_elasticsearch_index_cache_filter_FilterCache.java |
1,402 | @XmlRootElement(name = "orderItemAttribute")
@XmlAccessorType(value = XmlAccessType.FIELD)
public class OrderItemPriceDetailWrapper extends BaseWrapper implements
APIWrapper<OrderItemPriceDetail> {
@XmlElement
protected Long id;
@XmlElement
protected Money totalAdjustmentValue;
@X... | 0true | core_broadleaf-framework-web_src_main_java_org_broadleafcommerce_core_web_api_wrapper_OrderItemPriceDetailWrapper.java |
806 | @SuppressWarnings("unchecked")
public class OClassImpl extends ODocumentWrapperNoClass implements OClass {
private static final long serialVersionUID = 1L;
protected OSchemaShared owner;
protected String name;
protected Class<?> javaClass;
... | 1no label | core_src_main_java_com_orientechnologies_orient_core_metadata_schema_OClassImpl.java |
957 | public abstract class ClusterInfoRequest<T extends ClusterInfoRequest> extends MasterNodeReadOperationRequest<T> {
private String[] indices = Strings.EMPTY_ARRAY;
private String[] types = Strings.EMPTY_ARRAY;
private IndicesOptions indicesOptions = IndicesOptions.strict();
@SuppressWarnings("unchecke... | 0true | src_main_java_org_elasticsearch_action_support_master_info_ClusterInfoRequest.java |
1,622 | @BindingAnnotation
@Target({FIELD, PARAMETER})
@Retention(RUNTIME)
@Documented
public @interface ClusterDynamicSettings {
} | 0true | src_main_java_org_elasticsearch_cluster_settings_ClusterDynamicSettings.java |
1,316 | class ExecutionCallbackAdapterFactory {
//Updates the ExecutionCallbackAdapterFactory.done field. An AtomicBoolean is simpler, but creates another unwanted
//object. Using this approach, you don't create that object.
private static final AtomicReferenceFieldUpdater<ExecutionCallbackAdapterFactory, Boolean>... | 0true | hazelcast_src_main_java_com_hazelcast_executor_ExecutionCallbackAdapterFactory.java |
186 | @RunWith(HazelcastSerialClassRunner.class)
@Category(QuickTest.class)
public class ClientSetTest {
static final String name = "test";
static HazelcastInstance hz;
static HazelcastInstance server;
static ISet set;
@BeforeClass
public static void init(){
Config config = new Config();
... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_collections_ClientSetTest.java |
147 | public abstract class InvocationClientRequest extends ClientRequest {
@Override
final void process() throws Exception {
invoke();
}
protected abstract void invoke();
protected final InvocationBuilder createInvocationBuilder(String serviceName, Operation op, int partitionId) {
retu... | 0true | hazelcast_src_main_java_com_hazelcast_client_InvocationClientRequest.java |
5 | @Component("blChildCategoriesCustomPersistenceHandler")
public class ChildCategoriesCustomPersistenceHandler extends CustomPersistenceHandlerAdapter {
@Override
public Boolean canHandleAdd(PersistencePackage persistencePackage) {
return (!ArrayUtils.isEmpty(persistencePackage.getCustomCriteria()) && pe... | 0true | admin_broadleaf-admin-module_src_main_java_org_broadleafcommerce_admin_server_service_handler_ChildCategoriesCustomPersistenceHandler.java |
380 | @Entity
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "BLC_LOCALE")
@Cache(usage= CacheConcurrencyStrategy.NONSTRICT_READ_WRITE, region="blCMSElements")
@AdminPresentationClass(friendlyName = "LocaleImpl_baseLocale")
public class LocaleImpl implements Locale {
private static final long serialVersio... | 1no label | common_src_main_java_org_broadleafcommerce_common_locale_domain_LocaleImpl.java |
545 | public enum TYPE {
ANY, BEFORE_CREATE, BEFORE_READ, BEFORE_UPDATE, BEFORE_DELETE, AFTER_CREATE, AFTER_READ, AFTER_UPDATE, AFTER_DELETE, CREATE_FAILED, READ_FAILED, UPDATE_FAILED, DELETE_FAILED, CREATE_REPLICATED, READ_REPLICATED, UPDATE_REPLICATED, DELETE_REPLICATED, BEFORE_REPLICA_ADD, AFTER_REPLICA_ADD, BEFORE_... | 0true | core_src_main_java_com_orientechnologies_orient_core_hook_ORecordHook.java |
216 | private class RefactorQuickAccessAction extends QuickMenuAction {
public RefactorQuickAccessAction() {
super(REFACTOR_MENU_ID);
}
protected void fillMenu(IMenuManager menu) {
IContributionItem[] cis = new RefactorMenuItems().getContributionItems();
for (IC... | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_editor_CeylonEditor.java |
163 | public interface URLHandlerDao {
public URLHandler findURLHandlerByURI(String uri);
/**
* Gets all the URL handlers configured in the system
* @return
*/
public List<URLHandler> findAllURLHandlers();
public URLHandler saveURLHandler(URLHandler handler);
} | 0true | admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_url_dao_URLHandlerDao.java |
412 | @Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD})
public @interface AdminPresentationAdornedTargetCollection {
/**
* <p>Optional - field name will be used if not specified</p>
*
* <p>The friendly name to present to a user for this field in a GUI. If supporting i18N,
* the friendl... | 0true | common_src_main_java_org_broadleafcommerce_common_presentation_AdminPresentationAdornedTargetCollection.java |
2,174 | final class Item {
public final DocIdSetIterator iter;
public int doc;
public Item(DocIdSetIterator iter) {
this.iter = iter;
this.doc = -1;
}
} | 0true | src_main_java_org_elasticsearch_common_lucene_docset_OrDocIdSet.java |
3,617 | public static class ValueAndBoost {
private final String value;
private final float boost;
public ValueAndBoost(String value, float boost) {
this.value = value;
this.boost = boost;
}
/**
* Value of string field.
* @return value of s... | 0true | src_main_java_org_elasticsearch_index_mapper_core_StringFieldMapper.java |
1,389 | @XmlRootElement(name = "category")
@XmlAccessorType(value = XmlAccessType.FIELD)
public class CategoryWrapper extends BaseWrapper implements APIWrapper<Category> {
@XmlElement
protected Long id;
@XmlElement
protected String name;
@XmlElement
protected String description;
@XmlElement
... | 0true | core_broadleaf-framework-web_src_main_java_org_broadleafcommerce_core_web_api_wrapper_CategoryWrapper.java |
3,404 | public class UidAndSourceFieldsVisitor extends FieldsVisitor {
@Override
public Status needsField(FieldInfo fieldInfo) throws IOException {
if (SourceFieldMapper.NAME.equals(fieldInfo.name)) {
return Status.YES;
} else if (UidFieldMapper.NAME.equals(fieldInfo.name)) {
re... | 0true | src_main_java_org_elasticsearch_index_fieldvisitor_UidAndSourceFieldsVisitor.java |
4,474 | public class RecoverySettings extends AbstractComponent {
public static final String INDICES_RECOVERY_FILE_CHUNK_SIZE = "indices.recovery.file_chunk_size";
public static final String INDICES_RECOVERY_TRANSLOG_OPS = "indices.recovery.translog_ops";
public static final String INDICES_RECOVERY_TRANSLOG_SIZE =... | 1no label | src_main_java_org_elasticsearch_indices_recovery_RecoverySettings.java |
858 | public class TransportSearchDfsQueryAndFetchAction extends TransportSearchTypeAction {
@Inject
public TransportSearchDfsQueryAndFetchAction(Settings settings, ThreadPool threadPool, ClusterService clusterService,
SearchServiceTransportAction searchService, Searc... | 0true | src_main_java_org_elasticsearch_action_search_type_TransportSearchDfsQueryAndFetchAction.java |
727 | public class ShardDeleteRequest extends ShardReplicationOperationRequest<ShardDeleteRequest> {
private int shardId;
private String type;
private String id;
private boolean refresh = false;
private long version;
ShardDeleteRequest(IndexDeleteRequest request, int shardId) {
super(request... | 0true | src_main_java_org_elasticsearch_action_delete_index_ShardDeleteRequest.java |
816 | public class AlterOperation extends AbstractAlterOperation {
public AlterOperation() {
}
public AlterOperation(String name, IFunction<Long, Long> function) {
super(name, function);
}
@Override
public int getId() {
return AtomicLongDataSerializerHook.ALTER;
}
@Override... | 0true | hazelcast_src_main_java_com_hazelcast_concurrent_atomiclong_operations_AlterOperation.java |
2,045 | public class ContainsValueOperation extends AbstractMapOperation implements PartitionAwareOperation {
private boolean contains = false;
private Data testValue;
public ContainsValueOperation(String name, Data testValue) {
super(name);
this.testValue = testValue;
}
public ContainsVa... | 0true | hazelcast_src_main_java_com_hazelcast_map_operation_ContainsValueOperation.java |
3,757 | final NumericDocValues versionValues = new NumericDocValues() {
@Override
public long get(int index) {
return versions.get(index);
}
}; | 0true | src_main_java_org_elasticsearch_index_merge_policy_IndexUpgraderMergePolicy.java |
360 | public static class ExceptionThrowingMapper
implements Mapper<Integer, Integer, String, Integer> {
@Override
public void map(Integer key, Integer value, Context<String, Integer> context) {
throw new NullPointerException("BUMM!");
}
} | 0true | hazelcast-client_src_test_java_com_hazelcast_client_mapreduce_ClientMapReduceTest.java |
270 | public class ElasticsearchNullPointerException extends ElasticsearchException {
public ElasticsearchNullPointerException() {
super(null);
}
public ElasticsearchNullPointerException(String msg) {
super(msg);
}
public ElasticsearchNullPointerException(String msg, Throwable cause) {
... | 0true | src_main_java_org_elasticsearch_ElasticsearchNullPointerException.java |
1,766 | public class GeoUtils {
/** Earth ellipsoid major axis defined by WGS 84 in meters */
public static final double EARTH_SEMI_MAJOR_AXIS = 6378137.0; // meters (WGS 84)
/** Earth ellipsoid minor axis defined by WGS 84 in meters */
public static final double EARTH_SEMI_MINOR_AXIS = 6356752.314245; /... | 1no label | src_main_java_org_elasticsearch_common_geo_GeoUtils.java |
44 | public class TouchCommand extends AbstractTextCommand {
String key;
int expiration;
boolean noreply;
ByteBuffer response;
public TouchCommand(TextCommandType type, String key, int expiration, boolean noReply) {
super(type);
this.key = key;
this.expiration = expiration;
... | 0true | hazelcast_src_main_java_com_hazelcast_ascii_memcache_TouchCommand.java |
3,095 | static class Refresh {
private final String source;
private boolean force = false;
public Refresh(String source) {
this.source = source;
}
/**
* Forces calling refresh, overriding the check that dirty operations even happened. Defaults
* to tr... | 0true | src_main_java_org_elasticsearch_index_engine_Engine.java |
3,086 | static class Get {
private final boolean realtime;
private final Term uid;
private boolean loadSource = true;
private long version;
private VersionType versionType;
public Get(boolean realtime, Term uid) {
this.realtime = realtime;
this.uid = ... | 0true | src_main_java_org_elasticsearch_index_engine_Engine.java |
2,474 | static class Job extends PrioritizedRunnable {
private final int result;
private final List<Integer> results;
private final CountDownLatch latch;
Job(int result, Priority priority, List<Integer> results, CountDownLatch latch) {
super(priority);
this.result =... | 0true | src_test_java_org_elasticsearch_common_util_concurrent_PrioritizedExecutorsTests.java |
15 | exe.submit(new Runnable() {
private final int number = atomicInt.incrementAndGet();
@Override
public void run() {
try {
Thread.sleep(150);
... | 0true | titan-test_src_main_java_com_thinkaurelius_titan_TestBed.java |
1,558 | @XmlRootElement(name = "entry")
@XmlType(propOrder = { "value", "name" })
public class OServerEntryConfiguration {
@XmlAttribute
public String name;
@XmlAttribute
public String value;
public OServerEntryConfiguration() {
}
public OServerEntryConfiguration(final String iName, final String iValue) {
... | 0true | server_src_main_java_com_orientechnologies_orient_server_config_OServerEntryConfiguration.java |
171 | private class TxManagerDataSourceRegistrationListener implements DataSourceRegistrationListener
{
@Override
public void registeredDataSource( XaDataSource ds )
{
branches.put( new RecoveredBranchInfo( ds.getBranchId() ), true );
boolean everythingRegistered = true... | 0true | community_kernel_src_main_java_org_neo4j_kernel_impl_transaction_TxManager.java |
26 | public class CacheLayer implements StoreReadLayer
{
private static final Function<? super SchemaRule, IndexDescriptor> TO_INDEX_RULE =
new Function<SchemaRule, IndexDescriptor>()
{
@Override
public IndexDescriptor apply( SchemaRule from )
{
IndexRule rule = (Index... | 1no label | community_kernel_src_main_java_org_neo4j_kernel_impl_api_store_CacheLayer.java |
1,181 | public interface PaymentResponseItem extends Serializable {
public String getAuthorizationCode();
public void setAuthorizationCode(String authorizationCode);
public String getMiddlewareResponseCode();
public void setMiddlewareResponseCode(String middlewareResponseCode);
public String getMiddlew... | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_payment_domain_PaymentResponseItem.java |
1,438 | public static class Factory implements MetaData.Custom.Factory<RepositoriesMetaData> {
/**
* {@inheritDoc}
*/
@Override
public String type() {
return TYPE;
}
/**
* {@inheritDoc}
*/
@Override
public Repositories... | 0true | src_main_java_org_elasticsearch_cluster_metadata_RepositoriesMetaData.java |
283 | public class OCommandScriptException extends OException {
private String text;
private int position;
private static final long serialVersionUID = -7430575036316163711L;
public OCommandScriptException(String iMessage) {
super(iMessage, null);
}
public OCommandScriptException(S... | 0true | core_src_main_java_com_orientechnologies_orient_core_command_script_OCommandScriptException.java |
50 | @Component("blTimeDTOCustomPersistenceHandler")
public class TimeDTOCustomPersistenceHandler extends CustomPersistenceHandlerAdapter {
private static final Log LOG = LogFactory.getLog(TimeDTOCustomPersistenceHandler.class);
@Override
public Boolean canHandleFetch(PersistencePackage persistencePackage) {
... | 0true | admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_admin_server_handler_TimeDTOCustomPersistenceHandler.java |
1,748 | public static class Issue1764Data implements DataSerializable {
public static AtomicInteger serializationCount = new AtomicInteger();
public static AtomicInteger deserializationCount = new AtomicInteger();
private String attr1;
private String attr2;
public Issue1764Data() ... | 0true | hazelcast_src_test_java_com_hazelcast_map_EntryProcessorTest.java |
143 | @Test
public class FloatSerializerTest {
private static final int FIELD_SIZE = 4;
private static final Float OBJECT = 3.14f;
private OFloatSerializer floatSerializer;
byte[] stream = new byte[FIELD_SIZE];
@BeforeClass
public void beforeClass() {
floatSerializer = new OFl... | 0true | commons_src_test_java_com_orientechnologies_common_serialization_types_FloatSerializerTest.java |
658 | constructors[LIST_ADD_ALL] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {
public IdentifiedDataSerializable createNew(Integer arg) {
return new ListAddAllOperation();
}
}; | 0true | hazelcast_src_main_java_com_hazelcast_collection_CollectionDataSerializerHook.java |
230 | @PreInitializeConfigOptions
public abstract class AbstractCassandraStoreManager extends DistributedStoreManager implements KeyColumnValueStoreManager {
public enum Partitioner {
RANDOM, BYTEORDER;
public static Partitioner getPartitioner(IPartitioner<?> partitioner) {
return getPartit... | 0true | titan-cassandra_src_main_java_com_thinkaurelius_titan_diskstorage_cassandra_AbstractCassandraStoreManager.java |
3,221 | return new LongValues(values.isMultiValued()) {
@Override
public int setDocument(int docId) {
return values.setDocument(docId);
}
@Override
public long nextValue() {
return (long) values.nextValue();
}
... | 0true | src_main_java_org_elasticsearch_index_fielddata_LongValues.java |
708 | public static class Name {
public static final String Marketing = "ProductImpl_Marketing_Tab";
public static final String Media = "SkuImpl_Media_Tab";
public static final String ProductOptions = "ProductImpl_Product_Options_Tab";
public static ... | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_catalog_domain_ProductImpl.java |
2,127 | public class LogConfigurator {
private static boolean loaded;
private static ImmutableMap<String, String> replacements = new MapBuilder<String, String>()
.put("console", "org.elasticsearch.common.logging.log4j.ConsoleAppender")
.put("async", "org.apache.log4j.AsyncAppender")
... | 0true | src_main_java_org_elasticsearch_common_logging_log4j_LogConfigurator.java |
1,564 | @XmlRootElement(name = "parameter")
@XmlType(propOrder = { "value", "name" })
public class OServerParameterConfiguration {
@XmlAttribute
public String name;
@XmlAttribute
public String value;
public OServerParameterConfiguration() {
}
public OServerParameterConfiguration(final String iName, final Strin... | 0true | server_src_main_java_com_orientechnologies_orient_server_config_OServerParameterConfiguration.java |
7 | static final class ApplyToEither<T,U> extends Completion {
final CompletableFuture<? extends T> src;
final CompletableFuture<? extends T> snd;
final Fun<? super T,? extends U> fn;
final CompletableFuture<U> dst;
final Executor executor;
ApplyToEither(CompletableFuture... | 0true | src_main_java_jsr166e_CompletableFuture.java |
163 | return executeRead(new Callable<KeyIterator>() {
@Override
public KeyIterator call() throws Exception {
return (storeFeatures.isKeyOrdered())
? edgeStore.getKeys(new KeyRangeQuery(EDGESTORE_MIN_KEY, EDGESTORE_MAX_KEY, sliceQuery), storeTx)
... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_diskstorage_BackendTransaction.java |
1,994 | @Entity
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "BLC_PHONE")
@Cache(usage=CacheConcurrencyStrategy.NONSTRICT_READ_WRITE, region="blOrderElements")
public class PhoneImpl implements Phone {
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue(generator = "PhoneId")
... | 1no label | core_broadleaf-profile_src_main_java_org_broadleafcommerce_profile_core_domain_PhoneImpl.java |
1,995 | assertTrueEventually(new AssertTask() {
@Override
public void run() throws Exception {
assertEquals(0, map.size());
}
}); | 0true | hazelcast_src_test_java_com_hazelcast_map_mapstore_MapStoreTest.java |
137 | public final class ClientTypes {
public static final String JAVA = "JVM";
public static final String CSHARP = "CSP";
public static final String CPP = "CPP";
public static final String PYTHON = "PHY";
public static final String RUBY = "RBY";
private ClientTypes() {
}
} | 0true | hazelcast_src_main_java_com_hazelcast_client_ClientTypes.java |
1,653 | public class PersistencePackageRequest {
protected Type type;
protected String ceilingEntityClassname;
protected String configKey;
protected AdornedTargetList adornedList;
protected MapStructure mapStructure;
protected Entity entity;
protected ForeignKey foreignKey;
protected Integer st... | 1no label | admin_broadleaf-open-admin-platform_src_main_java_org_broadleafcommerce_openadmin_server_domain_PersistencePackageRequest.java |
255 | {
@Override
public LabelScanReader newReader()
{
return LabelScanReader.EMPTY;
}
@Override
public LabelScanWriter newWriter()
{
return LabelScanWriter.EMPTY;
}
@Override
public void stop()
{ // Do not... | 0true | community_kernel_src_test_java_org_neo4j_kernel_impl_nioneo_xa_WriteTransactionTest.java |
175 | public class ORef<T> {
public T value;
public ORef() {
}
public ORef(final T object) {
this.value = object;
}
public ORef<T> clear() {
value = null;
return this;
}
@Override
public String toString() {
return value != null ? value.toString() : "ORef<null>";
}
} | 0true | commons_src_main_java_com_orientechnologies_common_types_ORef.java |
1,968 | class NullOutputException extends NullPointerException {
public NullOutputException(String s) {
super(s);
}
} | 0true | src_main_java_org_elasticsearch_common_inject_internal_NullOutputException.java |
407 | EventHandler<PortableItemEvent> eventHandler = new EventHandler<PortableItemEvent>() {
public void handle(PortableItemEvent portableItemEvent) {
E item = includeValue ? (E) getContext().getSerializationService().toObject(portableItemEvent.getItem()) : null;
Member mem... | 1no label | hazelcast-client_src_main_java_com_hazelcast_client_proxy_AbstractClientCollectionProxy.java |
576 | public interface CacheRequest {
public List<CacheItemRequest> getCacheItemRequests();
} | 0true | common_src_main_java_org_broadleafcommerce_common_vendor_service_cache_CacheRequest.java |
979 | public class LockOperation extends BaseLockOperation implements WaitSupport, BackupAwareOperation {
public LockOperation() {
}
public LockOperation(ObjectNamespace namespace, Data key, long threadId, long timeout) {
super(namespace, key, threadId, timeout);
}
public LockOperation(ObjectNa... | 0true | hazelcast_src_main_java_com_hazelcast_concurrent_lock_operations_LockOperation.java |
2,337 | public class JsonSettingsLoaderTests extends ElasticsearchTestCase {
@Test
public void testSimpleJsonSettings() throws Exception {
Settings settings = settingsBuilder()
.loadFromClasspath("org/elasticsearch/common/settings/loader/test-settings.json")
.build();
a... | 0true | src_test_java_org_elasticsearch_common_settings_loader_JsonSettingsLoaderTests.java |
1,881 | public interface Provider<T> {
/**
* Provides an instance of {@code T}. Must never return {@code null}.
*
* @throws OutOfScopeException when an attempt is made to access a scoped object while the scope
* in question is not currently active
* @throws ProvisionExc... | 0true | src_main_java_org_elasticsearch_common_inject_Provider.java |
5,808 | public class FastVectorHighlighter implements Highlighter {
private static final SimpleBoundaryScanner DEFAULT_BOUNDARY_SCANNER = new SimpleBoundaryScanner();
private static final String CACHE_KEY = "highlight-fsv";
private final Boolean termVectorMultiValue;
@Inject
public FastVectorHighlighter(... | 1no label | src_main_java_org_elasticsearch_search_highlight_FastVectorHighlighter.java |
1,357 | @Service("blZipCodeService")
public class ZipCodeServiceImpl implements ZipCodeService {
@Resource(name="blZipCodeDao")
private ZipCodeDao zipCodeDao;
public ZipCode findZipCodeByZipCode(Integer zipCode) {
return zipCodeDao.findZipCodeByZipCode(zipCode);
}
} | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_store_service_ZipCodeServiceImpl.java |
1,000 | public class OStreamSerializerHelper {
public static final String SEPARATOR = "|";
private static final char SHORT_FORM_PREFIX = '!';
public static StringBuilder writeRecordType(final Class<?> cls, final StringBuilder iBuffer) {
// SEARCH INTO THE SERIALIZER REGISTER IF THE IMPLEMENTATION WAS REGISTERED TO... | 0true | core_src_main_java_com_orientechnologies_orient_core_serialization_serializer_stream_OStreamSerializerHelper.java |
254 | public interface EmailTarget extends Serializable {
public String getEmailAddress();
public void setEmailAddress(String emailAddress);
public String[] getCCAddresses();
public void setCCAddresses(String[] ccAddresses);
public String[] getBCCAddresses();
public void setBCCAddresses(String[] BCCA... | 0true | common_src_main_java_org_broadleafcommerce_common_email_domain_EmailTarget.java |
1,071 | public class ORuntimeResult {
private final Object fieldValue;
private final Map<String, Object> projections;
private final ODocument value;
private OCommandContext context;
public ORuntimeResult(final Object iFieldValue, final Map<String, Object> iProjections, final int iPro... | 0true | core_src_main_java_com_orientechnologies_orient_core_sql_ORuntimeResult.java |
380 | public class ClusterRerouteRequest extends AcknowledgedRequest<ClusterRerouteRequest> {
AllocationCommands commands = new AllocationCommands();
boolean dryRun;
public ClusterRerouteRequest() {
}
/**
* Adds allocation commands to be applied to the cluster. Note, can be empty, in which case
... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_reroute_ClusterRerouteRequest.java |
652 | public class ProductDataProvider {
/**
* A basic product is actually a Product and a Sku
*/
@DataProvider(name="basicProduct")
public static Object[][] provideBasicProduct() {
Product ci = new ProductImpl();
Sku defaultSku = new SkuImpl();
defaultSku.setName("setO... | 0true | integration_src_test_java_org_broadleafcommerce_core_catalog_ProductDataProvider.java |
895 | threadPool.executor(ThreadPool.Names.SEARCH).execute(new Runnable() {
@Override
public void run() {
executePhase(shardIndex, node, target.v2());
... | 0true | src_main_java_org_elasticsearch_action_search_type_TransportSearchScrollScanAction.java |
384 | public class OMultiValueChangeEvent<K, V> {
/**
* Operation that is performed on collection.
*/
public static enum OChangeType {
ADD, UPDATE, REMOVE
}
/**
* Operation that is performed on collection.
*/
private final OChangeType changeType;
/**
* Value that indicates position of item in... | 0true | core_src_main_java_com_orientechnologies_orient_core_db_record_OMultiValueChangeEvent.java |
620 | public class PostJoinOperation extends AbstractOperation implements UrgentSystemOperation, JoinOperation {
private Operation[] operations;
public PostJoinOperation() {
}
public PostJoinOperation(final Operation... ops) {
for (Operation op : ops) {
if (op == null) {
... | 0true | hazelcast_src_main_java_com_hazelcast_cluster_PostJoinOperation.java |
263 | @Service("blEmailService")
public class EmailServiceImpl implements EmailService {
@Resource(name = "blEmailTrackingManager")
protected EmailTrackingManager emailTrackingManager;
@Resource(name = "blServerInfo")
protected ServerInfo serverInfo;
protected EmailServiceProducer emailServiceProducer;... | 0true | common_src_main_java_org_broadleafcommerce_common_email_service_EmailServiceImpl.java |
3,092 | public class QueueService implements ManagedService, MigrationAwareService, TransactionalService,
RemoteService, EventPublishingService<QueueEvent, ItemListener> {
public static final String SERVICE_NAME = "hz:impl:queueService";
private final EntryTaskScheduler queueEvictionScheduler;
private fina... | 1no label | hazelcast_src_main_java_com_hazelcast_queue_QueueService.java |
1,527 | final class ConnectionFactoryMetaData implements ResourceAdapterMetaData {
/**
* JCA-Connector specific java packge to be used for all information retrieval
*/
private static final Package HZ_PACKAGE = ConnectionFactoryImpl.class.getPackage();
/**
* @return the implementation title from Haze... | 0true | hazelcast-ra_hazelcast-jca_src_main_java_com_hazelcast_jca_ConnectionFactoryMetaData.java |
1,575 | class ApplySettings implements NodeSettingsService.Listener {
@Override
public void onRefreshSettings(Settings settings) {
boolean disableNewAllocation = settings.getAsBoolean(CLUSTER_ROUTING_ALLOCATION_DISABLE_NEW_ALLOCATION, DisableAllocationDecider.this.disableNewAllocation);
... | 0true | src_main_java_org_elasticsearch_cluster_routing_allocation_decider_DisableAllocationDecider.java |
163 | public abstract class CountedCompleter<T> extends ForkJoinTask<T> {
private static final long serialVersionUID = 5232453752276485070L;
/** This task's completer, or null if none */
final CountedCompleter<?> completer;
/** The number of pending tasks until completion */
volatile int pending;
/*... | 0true | src_main_java_jsr166y_CountedCompleter.java |
687 | public class OLocalHashTable<K, V> extends OSharedResourceAdaptive {
private static final double MERGE_THRESHOLD = 0.2;
private static final long HASH_CODE_MIN_VALUE = 0;
private static final long HASH_CODE_MAX_VALUE = 0xFFFFFFFFFFFFFFFFL;
private long[][] ... | 1no label | core_src_main_java_com_orientechnologies_orient_core_index_hashindex_local_OLocalHashTable.java |
580 | class ShardOptimizeRequest extends BroadcastShardOperationRequest {
private boolean waitForMerge = OptimizeRequest.Defaults.WAIT_FOR_MERGE;
private int maxNumSegments = OptimizeRequest.Defaults.MAX_NUM_SEGMENTS;
private boolean onlyExpungeDeletes = OptimizeRequest.Defaults.ONLY_EXPUNGE_DELETES;
private... | 0true | src_main_java_org_elasticsearch_action_admin_indices_optimize_ShardOptimizeRequest.java |
815 | cls = getDatabase().getStorage().callInLock(new Callable<OClass>() {
@Override
public OClass call() throws Exception {
OClass cls = classes.get(iClassName.toLowerCase());
if (cls == null) {
// CHECK IF CAN AUTO-CREATE IT
final ODatabase ownerDb = getData... | 0true | core_src_main_java_com_orientechnologies_orient_core_metadata_schema_OSchemaShared.java |
1,009 | transportService.sendRequest(node, transportShardAction, new ShardSingleOperationRequest(request, shard.id()), new BaseTransportResponseHandler<Response>() {
@Override
public Response newInstance() {
return newResponse();
... | 0true | src_main_java_org_elasticsearch_action_support_single_custom_TransportSingleCustomOperationAction.java |
3,400 | public class JustSourceFieldsVisitor extends FieldsVisitor {
@Override
public Status needsField(FieldInfo fieldInfo) throws IOException {
if (SourceFieldMapper.NAME.equals(fieldInfo.name)) {
return Status.YES;
}
return source != null ? Status.STOP : Status.NO;
}
} | 0true | src_main_java_org_elasticsearch_index_fieldvisitor_JustSourceFieldsVisitor.java |
1,646 | ois = new java.io.ObjectInputStream(bais) {
@Override
public Class<?> resolveClass(java.io.ObjectStreamClass streamClass)
throws java.io.IOException, ClassNotFoundException {
Class<?> c = Class.forName(streamClas... | 0true | src_main_java_org_elasticsearch_common_Base64.java |
294 | new Thread() {
public void run() {
if (!l.tryLock()) {
latch.countDown();
}
}
}.start(); | 0true | hazelcast-client_src_test_java_com_hazelcast_client_lock_ClientLockTest.java |
1,840 | class InjectorImpl implements Injector, Lookups {
final State state;
final InjectorImpl parent;
boolean readOnly;
BindingsMultimap bindingsMultimap = new BindingsMultimap();
final Initializer initializer;
/**
* Just-in-time binding cache. Guarded by state.lock()
*/
Map<Key<?>, Bin... | 0true | src_main_java_org_elasticsearch_common_inject_InjectorImpl.java |
1,616 | private class TaskPollThread extends Thread {
private final Map<Integer, Class<? extends ConsoleRequest>> consoleRequests =
new HashMap<Integer, Class<? extends ConsoleRequest>>();
private final Random rand = new Random();
TaskPollThread() {
super(instance.node.t... | 1no label | hazelcast_src_main_java_com_hazelcast_management_ManagementCenterService.java |
2,229 | class CustomBoostFactorWeight extends Weight {
final Weight subQueryWeight;
final Bits[] docSets;
public CustomBoostFactorWeight(Weight subQueryWeight, int filterFunctionLength) throws IOException {
this.subQueryWeight = subQueryWeight;
this.docSets = new Bits[filte... | 1no label | src_main_java_org_elasticsearch_common_lucene_search_function_FiltersFunctionScoreQuery.java |
1,530 | @Component("blUrlRewriteProcessor")
public class UrlRewriteProcessor extends AbstractAttributeModifierAttrProcessor {
@Resource(name = "blStaticAssetService")
protected StaticAssetService staticAssetService;
/**
* Sets the name of this processor to be used in Thymeleaf template
*/
public... | 0true | core_broadleaf-framework-web_src_main_java_org_broadleafcommerce_core_web_processor_UrlRewriteProcessor.java |
3,358 | static class WithOrdinals extends GeoPointDoubleArrayAtomicFieldData {
private final BigDoubleArrayList lon, lat;
private final Ordinals ordinals;
public WithOrdinals(BigDoubleArrayList lon, BigDoubleArrayList lat, int numDocs, Ordinals ordinals) {
super(numDocs);
t... | 0true | src_main_java_org_elasticsearch_index_fielddata_plain_GeoPointDoubleArrayAtomicFieldData.java |
3,522 | public static class Document implements Iterable<IndexableField> {
private final List<IndexableField> fields;
private ObjectObjectMap<Object, IndexableField> keyedFields;
public Document() {
fields = Lists.newArrayList();
}
@Override
public Iterator<Ind... | 0true | src_main_java_org_elasticsearch_index_mapper_ParseContext.java |
312 | new Thread() {
public void run() {
try {
map.lock(key);
map.put(key, value);
putWhileLocked.countDown();
checkingKeySet.await();
map.unlock(key);
}catch(Exception e){}
... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_map_ClientMapLockTest.java |
1,432 | executor.scheduleWithFixedDelay(new Runnable() {
public void run() {
cache.cleanup();
}
}, 60, 60, TimeUnit.SECONDS); | 0true | hazelcast-hibernate_hazelcast-hibernate4_src_main_java_com_hazelcast_hibernate_local_CleanupService.java |
305 | public enum OGlobalConfiguration {
// ENVIRONMENT
ENVIRONMENT_DUMP_CFG_AT_STARTUP("environment.dumpCfgAtStartup", "Dumps the configuration at application startup", Boolean.class,
Boolean.FALSE),
ENVIRONMENT_CONCURRENT("environment.concurrent",
"Specifies if running in multi-thread environment. Settin... | 0true | core_src_main_java_com_orientechnologies_orient_core_config_OGlobalConfiguration.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.