Unnamed: 0 int64 0 6.45k | func stringlengths 29 253k | target class label 2
classes | project stringlengths 36 167 |
|---|---|---|---|
151 | systemConfig = getGlobalConfiguration(new BackendOperation.TransactionalProvider() {
@Override
public StoreTransaction openTx() throws BackendException {
return storeManagerLocking.beginTransaction(StandardBaseTransactionConfig.of(
... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_diskstorage_Backend.java |
1,194 | public interface PaymentInfoService {
public PaymentInfo save(PaymentInfo paymentInfo);
public PaymentResponseItem save(PaymentResponseItem paymentResponseItem);
public PaymentLog save(PaymentLog log);
public PaymentInfo readPaymentInfoById(Long paymentId);
public List<PaymentInfo> readPaymentI... | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_payment_service_PaymentInfoService.java |
262 | @Category(SerialTests.class)
public class EmbeddedLogTest extends KCVSLogTest {
@BeforeClass
public static void startCassandra() {
CassandraStorageSetup.startCleanEmbedded();
}
@Override
public KeyColumnValueStoreManager openStorageManager() throws BackendException {
return new Cas... | 0true | titan-cassandra_src_test_java_com_thinkaurelius_titan_diskstorage_cassandra_embedded_EmbeddedLogTest.java |
2,102 | public abstract class StreamInput extends InputStream {
private static final ThreadLocal<SoftReference<char[]>> charCache = new ThreadLocal<SoftReference<char[]>>();
private static char[] charCache(int size) {
SoftReference<char[]> ref = charCache.get();
char[] arr = (ref == null) ? null : ref... | 0true | src_main_java_org_elasticsearch_common_io_stream_StreamInput.java |
3,570 | public static class Builder extends NumberFieldMapper.Builder<Builder, DateFieldMapper> {
protected TimeUnit timeUnit = Defaults.TIME_UNIT;
protected String nullValue = Defaults.NULL_VALUE;
protected FormatDateTimeFormatter dateTimeFormatter = Defaults.DATE_TIME_FORMATTER;
privat... | 0true | src_main_java_org_elasticsearch_index_mapper_core_DateFieldMapper.java |
425 | public class IndexQuery extends BaseQuery implements BackendQuery<IndexQuery> {
public static final ImmutableList<OrderEntry> NO_ORDER = ImmutableList.of();
private final String store;
private final Condition condition;
private final ImmutableList<OrderEntry> orders;
private final int hashcode;
... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_diskstorage_indexing_IndexQuery.java |
89 | RenameRefactoring refactoring = new RenameRefactoring(editor) {
@Override
public String getName() {
return "Convert method to getter";
};
@Override
protected void renameNode(TextChange tfc, Node node, Tree.Co... | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_correct_ConvertMethodToGetterProposal.java |
220 | }, SERIALIZABLE {
@Override
void configure(TransactionConfig cfg) {
cfg.setSerializableIsolation(true);
}
}; | 0true | titan-berkeleyje_src_main_java_com_thinkaurelius_titan_diskstorage_berkeleyje_BerkeleyJEStoreManager.java |
1,417 | new OProfilerHookValue() {
public Object getValue() {
return metricReceivedBytes;
}
}, dictProfilerMetric + ".receivedBytes"); | 0true | enterprise_src_main_java_com_orientechnologies_orient_enterprise_channel_OChannel.java |
1,123 | public class WanTargetClusterConfig {
String groupName = "dev";
String groupPassword = "dev-pass";
String replicationImpl;
Object replicationImplObject;
List<String> endpoints; // ip:port
public String getGroupName() {
return groupName;
}
public WanTargetClusterConfig setGroupN... | 0true | hazelcast_src_main_java_com_hazelcast_config_WanTargetClusterConfig.java |
190 | new ThreadLocal<ThreadLocalRandom>() {
protected ThreadLocalRandom initialValue() {
return new ThreadLocalRandom();
}
}; | 0true | src_main_java_jsr166y_ThreadLocalRandom.java |
467 | static class TrySemaphoreThread extends SemaphoreTestThread{
public TrySemaphoreThread(ISemaphore semaphore, AtomicInteger upTotal, AtomicInteger downTotal){
super(semaphore, upTotal, downTotal);
}
public void iterativelyRun() throws Exception{
if(semaphore.tryAcquir... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_semaphore_ClientSemaphoreThreadedTest.java |
816 | getDatabase().getStorage().callInLock(new Callable<Object>() {
@Override
public Object call() throws Exception {
final OClass clazz = classes.remove(iOldName.toLowerCase());
classes.put(iNewName.toLowerCase(), clazz);
return null;
}
}, true); | 0true | core_src_main_java_com_orientechnologies_orient_core_metadata_schema_OSchemaShared.java |
1,655 | public class OQueryExecutorsFactory {
public static final OQueryExecutorsFactory INSTANCE = new OQueryExecutorsFactory();
private static final Set<Class> ALWAYS_DISTRIBUTABLE = new HashSet<Class>(Arrays.<Class> asList(
OC... | 0true | distributed_src_main_java_com_orientechnologies_orient_server_hazelcast_oldsharding_OQueryExecutorsFactory.java |
1,447 | public class CategoryBreadcrumbTei extends TagExtraInfo {
@Override
public VariableInfo[] getVariableInfo(TagData tagData) {
List<VariableInfo> infos = new ArrayList<VariableInfo>(2);
String variableName = tagData.getAttributeString("var");
infos.add(new VariableInfo(variableName, Stri... | 0true | core_broadleaf-framework-web_src_main_java_org_broadleafcommerce_core_web_catalog_taglib_tei_CategoryBreadcrumbTei.java |
165 | @Test
public abstract class SpeedTestAbstract implements SpeedTest {
protected final SpeedTestData data;
protected SpeedTestAbstract() {
data = new SpeedTestData();
}
protected SpeedTestAbstract(final long iCycles) {
data = new SpeedTestData(iCycles);
}
protected SpeedTestAbstract(final SpeedTestGroup iGro... | 0true | commons_src_test_java_com_orientechnologies_common_test_SpeedTestAbstract.java |
1,959 | public final class LinkedBindingImpl<T> extends BindingImpl<T> implements LinkedKeyBinding<T> {
final Key<? extends T> targetKey;
public LinkedBindingImpl(Injector injector, Key<T> key, Object source,
InternalFactory<? extends T> internalFactory, Scoping scoping,
... | 0true | src_main_java_org_elasticsearch_common_inject_internal_LinkedBindingImpl.java |
3,031 | public class MemoryDocValuesFormatProvider extends AbstractDocValuesFormatProvider {
private final DocValuesFormat docValuesFormat;
@Inject
public MemoryDocValuesFormatProvider(@Assisted String name, @Assisted Settings docValuesFormatSettings) {
super(name);
this.docValuesFormat = new Memo... | 0true | src_main_java_org_elasticsearch_index_codec_docvaluesformat_MemoryDocValuesFormatProvider.java |
481 | public class CsrfFilter extends GenericFilterBean {
protected static final Log LOG = LogFactory.getLog(CsrfFilter.class);
@Resource(name="blExploitProtectionService")
protected ExploitProtectionService exploitProtectionService;
protected List<String> excludedRequestPatterns;
@Override
pub... | 0true | common_src_main_java_org_broadleafcommerce_common_security_handler_CsrfFilter.java |
260 | public interface OCommand {
/**
* Executes command.
*
* @return The result of command if any, otherwise null
*/
public Object execute();
public OCommandContext getContext();
} | 0true | core_src_main_java_com_orientechnologies_orient_core_command_OCommand.java |
1,467 | binder.registerCustomEditor(Country.class, "address.country", new PropertyEditorSupport() {
@Override
public void setAsText(String text) {
Country country = countryService.findCountryByAbbreviation(text);
setValue(country);
}
}); | 0true | core_broadleaf-framework-web_src_main_java_org_broadleafcommerce_core_web_controller_account_BroadleafManageCustomerAddressesController.java |
1,438 | public class CategoryTagTest extends BaseTagLibTest {
private CategoryTag categoryTag;
private Category category;
public void test_categoryTag() throws JspException {
categoryTag.setJspContext(pageContext);
categoryTag.setVar("categoryVar");
categoryTag.setCatalogService(catalo... | 0true | core_broadleaf-framework-web_src_test_java_org_broadleafcommerce_core_web_catalog_taglib_CategoryTagTest.java |
4,045 | public class ChildrenConstantScoreQuery extends Query {
private final Query originalChildQuery;
private final String parentType;
private final String childType;
private final Filter parentFilter;
private final int shortCircuitParentDocSet;
private final Filter nonNestedDocsFilter;
private ... | 1no label | src_main_java_org_elasticsearch_index_search_child_ChildrenConstantScoreQuery.java |
876 | public class OrderOfferComparator implements Comparator<PromotableCandidateOrderOffer> {
public static OrderOfferComparator INSTANCE = new OrderOfferComparator();
public int compare(PromotableCandidateOrderOffer p1, PromotableCandidateOrderOffer p2) {
Integer priority1 = p1.getPriority();... | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_offer_service_discount_OrderOfferComparator.java |
749 | public class TxnListRemoveRequest extends TxnCollectionRequest {
public TxnListRemoveRequest() {
}
public TxnListRemoveRequest(String name, Data value) {
super(name, value);
}
@Override
public Object innerCall() throws Exception {
return getEndpoint().getTransactionContext(txn... | 0true | hazelcast_src_main_java_com_hazelcast_collection_client_TxnListRemoveRequest.java |
1,955 | public class MapRemoveRequest extends KeyBasedClientRequest implements Portable, SecureRequest {
protected String name;
protected Data key;
protected long threadId;
protected transient long startTime;
public MapRemoveRequest() {
}
public MapRemoveRequest(String name, Data key, long thread... | 1no label | hazelcast_src_main_java_com_hazelcast_map_client_MapRemoveRequest.java |
988 | public static class Order {
public static final int OrderItems = 2000;
} | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_order_domain_DiscreteOrderItemImpl.java |
282 | @RunWith(HazelcastParallelClassRunner.class)
@Category(QuickTest.class)
public class ClientRandomLBTest {
@AfterClass
public static void destroy() {
HazelcastClient.shutdownAll();
Hazelcast.shutdownAll();
}
@Test
public void testRandomLB_withoutMembers() {
RandomLB lb = new... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_loadBalancer_ClientRandomLBTest.java |
612 | new OIndexEngine.ValuesResultListener() {
@Override
public boolean addResult(OIdentifiable identifiable) {
return resultListener.addResult(identifiable);
}
}); | 1no label | core_src_main_java_com_orientechnologies_orient_core_index_OIndexMultiValues.java |
3,093 | static class Optimize {
private boolean waitForMerge = true;
private int maxNumSegments = -1;
private boolean onlyExpungeDeletes = false;
private boolean flush = false;
public Optimize() {
}
public boolean waitForMerge() {
return waitForMerge;
... | 0true | src_main_java_org_elasticsearch_index_engine_Engine.java |
922 | final Iterator<?> myIterator = makeDbCall(iMyDb, new ODbRelatedCall<Iterator<?>>() {
public Iterator<?> call() {
return mySet.iterator();
}
}); | 0true | core_src_main_java_com_orientechnologies_orient_core_record_impl_ODocumentHelper.java |
410 | public class TransportDeleteSnapshotAction extends TransportMasterNodeOperationAction<DeleteSnapshotRequest, DeleteSnapshotResponse> {
private final SnapshotsService snapshotsService;
@Inject
public TransportDeleteSnapshotAction(Settings settings, TransportService transportService, ClusterService clusterSe... | 1no label | src_main_java_org_elasticsearch_action_admin_cluster_snapshots_delete_TransportDeleteSnapshotAction.java |
1,413 | @XmlRootElement(name = "product")
@XmlAccessorType(value = XmlAccessType.FIELD)
public class ProductWrapper extends BaseWrapper implements APIWrapper<Product> {
@XmlElement
protected Long id;
@XmlElement
protected String name;
@XmlElement
protected String description;
@XmlElement
pro... | 0true | core_broadleaf-framework-web_src_main_java_org_broadleafcommerce_core_web_api_wrapper_ProductWrapper.java |
1,218 | public class TitanSchemaVertex extends CacheVertex implements SchemaSource {
public TitanSchemaVertex(StandardTitanTx tx, long id, byte lifecycle) {
super(tx, id, lifecycle);
}
private String name = null;
@Override
public String getName() {
if (name == null) {
TitanPro... | 1no label | titan-core_src_main_java_com_thinkaurelius_titan_graphdb_types_vertices_TitanSchemaVertex.java |
3,168 | return new DoubleValues(values.isMultiValued()) {
@Override
public int setDocument(int docId) {
return values.setDocument(docId);
}
@Override
public double nextValue() {
return (double) values.nextValue();
... | 0true | src_main_java_org_elasticsearch_index_fielddata_DoubleValues.java |
2,170 | public static class IteratorBasedIterator extends DocIdSetIterator {
private final int max;
private DocIdSetIterator it1;
private int lastReturn = -1;
private int innerDocid = -1;
private final long cost;
IteratorBasedIterator(int max, DocIdSetIterator it) throws IOE... | 0true | src_main_java_org_elasticsearch_common_lucene_docset_NotDocIdSet.java |
1,581 | static class Log4jLogger extends AbstractLogger {
private final Logger logger;
private final Level level;
public Log4jLogger(Logger logger) {
this.logger = logger;
if (logger.getLevel() == org.apache.log4j.Level.DEBUG) {
level = Level.FINEST;
... | 0true | hazelcast_src_main_java_com_hazelcast_logging_Log4jFactory.java |
1,927 | public interface AnnotatedElementBuilder {
/**
* See the EDSL examples at {@link org.elasticsearch.common.inject.Binder}.
*/
void annotatedWith(Class<? extends Annotation> annotationType);
/**
* See the EDSL examples at {@link org.elasticsearch.common.inject.Binder}.
*/
void annota... | 0true | src_main_java_org_elasticsearch_common_inject_binder_AnnotatedElementBuilder.java |
1,234 | @SuppressWarnings("deprecation")
public class PricingTest extends BaseTest {
@Resource
private CustomerService customerService;
@Resource(name = "blOrderService")
private OrderService orderService;
@Resource
private ShippingRateService shippingRateService;
@Resource
private Catal... | 0true | integration_src_test_java_org_broadleafcommerce_core_pricing_service_PricingTest.java |
4,486 | threadPool.generic().execute(new Runnable() {
@Override
public void run() {
doRecovery(request, status, listener);
}
}); | 1no label | src_main_java_org_elasticsearch_indices_recovery_RecoveryTarget.java |
3,160 | return new BytesValues(values.isMultiValued()) {
@Override
public int setDocument(int docId) {
this.docId = docId;
return values.setDocument(docId);
}
@Override
public BytesRef nextValue() {
GeoPoint va... | 0true | src_main_java_org_elasticsearch_index_fielddata_AtomicGeoPointFieldData.java |
1,554 | @ManagedDescription("ILock")
public class LockMBean extends HazelcastMBean<ILock> {
protected LockMBean(ILock managedObject, ManagementService service) {
super(managedObject, service);
objectName = service.createObjectName("ILock", managedObject.getName());
}
@ManagedAnnotation("name")
... | 1no label | hazelcast_src_main_java_com_hazelcast_jmx_LockMBean.java |
485 | @Service("blExploitProtectionService")
public class ExploitProtectionServiceImpl implements ExploitProtectionService {
private static final String CSRFTOKEN = "csrfToken";
private static final String CSRFTOKENPARAMETER = "csrfToken";
private static final Log LOG = LogFactory.getLog(ExploitProtectionService... | 1no label | common_src_main_java_org_broadleafcommerce_common_security_service_ExploitProtectionServiceImpl.java |
457 | el[5] = StaticArrayEntryList.of(Iterables.transform(entries.entrySet(),new Function<Map.Entry<Integer, Long>, Entry>() {
@Nullable
@Override
public Entry apply(@Nullable Map.Entry<Integer, Long> entry) {
return StaticArrayEntry.ofByteBuffer(entry, BBEntryGette... | 0true | titan-test_src_test_java_com_thinkaurelius_titan_diskstorage_keycolumnvalue_StaticArrayEntryTest.java |
804 | public static enum ATTRIBUTES {
NAME, SHORTNAME, SUPERCLASS, OVERSIZE, STRICTMODE, ADDCLUSTER, REMOVECLUSTER, CUSTOM, ABSTRACT
} | 0true | core_src_main_java_com_orientechnologies_orient_core_metadata_schema_OClass.java |
60 | @Entity
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "BLC_FLD_DEF")
@Cache(usage= CacheConcurrencyStrategy.NONSTRICT_READ_WRITE, region="blCMSElements")
public class FieldDefinitionImpl implements FieldDefinition {
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue(gener... | 0true | admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_field_domain_FieldDefinitionImpl.java |
1,341 | Collections.sort(products, new Comparator<Product>() {
public int compare(Product o1, Product o2) {
return new Integer(productIds.indexOf(o1.getId())).compareTo(productIds.indexOf(o2.getId()));
}
}); | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_search_service_solr_SolrSearchServiceImpl.java |
52 | @Controller("blAdminAssetUploadController")
@RequestMapping("/{sectionKey}")
public class AdminAssetUploadController extends AdminAbstractController {
@Resource(name = "blEntityConfiguration")
protected EntityConfiguration entityConfiguration;
@Resource(name = "blStaticAssetStorageService")
protec... | 0true | admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_admin_web_controller_AdminAssetUploadController.java |
2,570 | threadPool.generic().execute(new Runnable() {
@Override
public void run() {
currentJoinThread = Thread.currentThread();
try {
innerJoinCluster();
} finally {
currentJoinThread = null;
... | 0true | src_main_java_org_elasticsearch_discovery_zen_ZenDiscovery.java |
308 | new Processor() {
@Override
public void visit(Tree.Expression that) {
super.visit(that);
if (that.getStopIndex()<=endOfCodeInLine &&
that.getStartIndex()>=startOfCodeInLine) {
Token et = that.getMainEndToken();
... | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_editor_TerminateStatementAction.java |
435 | static final class Fields {
static final XContentBuilderString SHARDS = new XContentBuilderString("shards");
static final XContentBuilderString TOTAL = new XContentBuilderString("total");
static final XContentBuilderString PRIMARIES = new XContentBuilderString("primaries");
... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_stats_ClusterStatsIndices.java |
1,668 | runnable = new Runnable() { public void run() { map.get(null); } }; | 0true | hazelcast_src_test_java_com_hazelcast_map_BasicMapTest.java |
277 | public class Attachment implements Serializable {
private static final long serialVersionUID = 1L;
private String filename;
private byte[] data;
private String mimeType;
public String getFilename() {
return filename;
}
public void setFilename(String filename) {
this.filen... | 0true | common_src_main_java_org_broadleafcommerce_common_email_service_message_Attachment.java |
1,110 | public class ServicesConfig {
private boolean enableDefaults = true;
private final Map<String, ServiceConfig> services = new HashMap<String, ServiceConfig>();
public ServicesConfig() {
}
public boolean isEnableDefaults() {
return enableDefaults;
}
public ServicesConfig setEnable... | 0true | hazelcast_src_main_java_com_hazelcast_config_ServicesConfig.java |
2,238 | public class ScriptScoreFunction extends ScoreFunction {
private final String sScript;
private final Map<String, Object> params;
private final SearchScript script;
public ScriptScoreFunction(String sScript, Map<String, Object> params, SearchScript script) {
super(CombineFunction.REPLACE... | 1no label | src_main_java_org_elasticsearch_common_lucene_search_function_ScriptScoreFunction.java |
5,807 | private static class CustomWeightedSpanTermExtractor extends WeightedSpanTermExtractor {
public CustomWeightedSpanTermExtractor() {
super();
}
public CustomWeightedSpanTermExtractor(String defaultField) {
super(defaultField);
}
@Override
pro... | 1no label | src_main_java_org_elasticsearch_search_highlight_CustomQueryScorer.java |
49 | @SuppressWarnings("restriction")
public class OUnsafeByteArrayComparator implements Comparator<byte[]> {
public static final OUnsafeByteArrayComparator INSTANCE = new OUnsafeByteArrayComparator();
private static final Unsafe unsafe;
private static final int BYTE_ARRA... | 0true | commons_src_main_java_com_orientechnologies_common_comparator_OUnsafeByteArrayComparator.java |
990 | @SuppressWarnings("serial")
public class ORecordSerializerJSON extends ORecordSerializerStringAbstract {
public static final String NAME = "json";
public static final ORecordSerializerJSON INSTANCE = new ORecordSerializerJSON();
public static final String ... | 1no label | core_src_main_java_com_orientechnologies_orient_core_serialization_serializer_record_string_ORecordSerializerJSON.java |
2,540 | public class SimpleQueryTests extends ElasticsearchIntegrationTest {
@Test
public void passQueryAsStringTest() throws Exception {
assertAcked(prepareCreate("test").setSettings(SETTING_NUMBER_OF_SHARDS, 1));
client().prepareIndex("test", "type1", "1").setSource("field1", "value1_1", "field2", "... | 0true | src_test_java_org_elasticsearch_count_query_SimpleQueryTests.java |
966 | public final class LockRequest extends AbstractLockRequest {
public LockRequest() {
}
public LockRequest(Data key, long threadId, long ttl, long timeout) {
super(key, threadId, ttl, timeout);
}
@Override
protected InternalLockNamespace getNamespace() {
String name = getName();... | 1no label | hazelcast_src_main_java_com_hazelcast_concurrent_lock_client_LockRequest.java |
2,094 | public class BytesStreamOutput extends StreamOutput implements BytesStream {
public static final int DEFAULT_SIZE = 2 * 1024;
public static final int OVERSIZE_LIMIT = 256 * 1024;
/**
* The buffer where data is stored.
*/
protected byte buf[];
/**
* The number of valid bytes in the... | 1no label | src_main_java_org_elasticsearch_common_io_stream_BytesStreamOutput.java |
2,486 | public static class MapParams implements Params {
private final Map<String, String> params;
public MapParams(Map<String, String> params) {
this.params = params;
}
@Override
public String param(String key) {
return params.get(key);
}
... | 0true | src_main_java_org_elasticsearch_common_xcontent_ToXContent.java |
792 | new Thread() {
public void run() {
long delta = (long) (Math.random() * 1000);
for (int j = 0; j < 10000; j++) {
atomicLong.addAndGet(delta);
}
for (int j = 0; j < 10000; j++) {
... | 0true | hazelcast_src_test_java_com_hazelcast_concurrent_atomiclong_AtomicLongTest.java |
1,276 | public class OStorageVariableParser implements OVariableParserListener {
public static final String STORAGE_PATH = "STORAGE_PATH";
private String dbPath;
public static final String VAR_BEGIN = "${";
public static final String VAR_END = "}";
public static final String DB_PATH_VARIABLE = VAR_BEGIN +... | 0true | core_src_main_java_com_orientechnologies_orient_core_storage_impl_local_OStorageVariableParser.java |
745 | public class ExplainResponse extends ActionResponse {
private boolean exists;
private Explanation explanation;
private GetResult getResult;
ExplainResponse() {
}
public ExplainResponse(boolean exists) {
this.exists = exists;
}
public ExplainResponse(boolean exists, Explanatio... | 0true | src_main_java_org_elasticsearch_action_explain_ExplainResponse.java |
1,579 | public class ODistributedException extends OException {
private static final long serialVersionUID = 1L;
public ODistributedException() {
}
public ODistributedException(String message, Throwable cause) {
super(message, cause);
}
public ODistributedException(String message) {
super(message);
}
... | 0true | server_src_main_java_com_orientechnologies_orient_server_distributed_ODistributedException.java |
6,018 | public final class Correction {
public static final Correction[] EMPTY = new Correction[0];
public double score;
public final Candidate[] candidates;
public Correction(double score, Candidate[] candidates) {
this.score = score;
this.candidates = candidates;
}
@Override
pub... | 1no label | src_main_java_org_elasticsearch_search_suggest_phrase_Correction.java |
1,657 | public static enum Flag {
STRICT
} | 0true | src_main_java_org_elasticsearch_common_ParseField.java |
313 | return new Predicate<Long>() {
@Override
public boolean apply(@Nullable Long num) {
return num!=null && num>0;
}
}; | 0true | titan-core_src_main_java_com_thinkaurelius_titan_diskstorage_configuration_ConfigOption.java |
1,812 | public abstract class AbstractMoneyFieldPersistenceProvider extends FieldPersistenceProviderAdapter {
@Override
public FieldProviderResponse extractValue(ExtractValueRequest extractValueRequest, Property property) throws PersistenceException {
if (!canHandleExtraction(extractValueRequest, property)... | 1no label | admin_broadleaf-open-admin-platform_src_main_java_org_broadleafcommerce_openadmin_server_service_persistence_module_provider_AbstractMoneyFieldPersistenceProvider.java |
2,071 | public class MergeOperation extends BasePutOperation {
private MapMergePolicy mergePolicy;
private EntryView<Data, Data> mergingEntry;
private boolean merged = false;
public MergeOperation(String name, Data dataKey, EntryView<Data, Data> entryView, MapMergePolicy policy) {
super(name, dataKey,... | 1no label | hazelcast_src_main_java_com_hazelcast_map_operation_MergeOperation.java |
472 | public interface ClientInvocationService {
<T> ICompletableFuture<T> invokeOnRandomTarget(ClientRequest request) throws Exception;
<T> ICompletableFuture<T> invokeOnTarget(ClientRequest request, Address target) throws Exception;
<T> ICompletableFuture<T> invokeOnKeyOwner(ClientRequest request, Object key... | 0true | hazelcast-client_src_main_java_com_hazelcast_client_spi_ClientInvocationService.java |
1,416 | new OProfilerHookValue() {
public Object getValue() {
return metricTransmittedBytes;
}
}, dictProfilerMetric + ".transmittedBytes"); | 0true | enterprise_src_main_java_com_orientechnologies_orient_enterprise_channel_OChannel.java |
571 | public class OpenIndexRequestBuilder extends AcknowledgedRequestBuilder<OpenIndexRequest, OpenIndexResponse, OpenIndexRequestBuilder> {
public OpenIndexRequestBuilder(IndicesAdminClient indicesClient) {
super((InternalIndicesAdminClient) indicesClient, new OpenIndexRequest());
}
public OpenIndexRe... | 0true | src_main_java_org_elasticsearch_action_admin_indices_open_OpenIndexRequestBuilder.java |
394 | public class ClusterSearchShardsRequest extends MasterNodeReadOperationRequest<ClusterSearchShardsRequest> {
private String[] indices;
@Nullable
private String routing;
@Nullable
private String preference;
private String[] types = Strings.EMPTY_ARRAY;
private IndicesOptions indicesOptions = ... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_shards_ClusterSearchShardsRequest.java |
774 | mappingUpdatedAction.execute(mappingRequest, new ActionListener<MappingUpdatedAction.MappingUpdatedResponse>() {
@Override
public void onResponse(MappingUpdatedAction.MappingUpdatedResponse mappingUpdatedResponse) {
// all is well
latch... | 0true | src_main_java_org_elasticsearch_action_index_TransportIndexAction.java |
914 | final Iterator<?> myIterator = makeDbCall(iMyDb, new ODbRelatedCall<Iterator<?>>() {
public Iterator<?> call() {
return myCollection.iterator();
}
}); | 0true | core_src_main_java_com_orientechnologies_orient_core_record_impl_ODocumentHelper.java |
698 | constructors[LIST_REMOVE] = new ConstructorFunction<Integer, Portable>() {
public Portable createNew(Integer arg) {
return new ListRemoveRequest();
}
}; | 0true | hazelcast_src_main_java_com_hazelcast_collection_CollectionPortableHook.java |
1,123 | public class NativeScriptExamplesPlugin extends AbstractPlugin {
@Override
public String name() {
return "native-script-example";
}
@Override
public String description() {
return "Native script examples";
}
public void onModule(ScriptModule module) {
module.regist... | 0true | src_test_java_org_elasticsearch_benchmark_scripts_score_plugin_NativeScriptExamplesPlugin.java |
1,973 | public class ProviderMethod<T> implements ProviderWithDependencies<T> {
private final Key<T> key;
private final Class<? extends Annotation> scopeAnnotation;
private final Object instance;
private final Method method;
private final ImmutableSet<Dependency<?>> dependencies;
private final List<Prov... | 0true | src_main_java_org_elasticsearch_common_inject_internal_ProviderMethod.java |
785 | @RunWith(HazelcastParallelClassRunner.class)
@Category(QuickTest.class)
public class AtomicLongClientRequestTest extends ClientTestSupport {
static final String name = "test";
protected Config createConfig() {
return new Config();
}
private IAtomicLong getAtomicLong() {
return getInst... | 0true | hazelcast_src_test_java_com_hazelcast_concurrent_atomiclong_AtomicLongClientRequestTest.java |
1,046 | public class OrderItemTest extends TestCase {
private PromotableOrderItemPriceDetail priceDetail1;
private PromotableCandidateItemOffer candidateOffer;
private Offer offer;
@Override
protected void setUp() throws Exception {
PromotableOrder promotableOrder = new PromotableOrderImpl(new... | 0true | core_broadleaf-framework_src_test_java_org_broadleafcommerce_core_order_domain_OrderItemTest.java |
1,016 | public class ReduceOperation extends SemaphoreBackupAwareOperation implements IdentifiedDataSerializable {
public ReduceOperation() {
}
public ReduceOperation(String name, int permitCount) {
super(name, permitCount);
}
@Override
public void run() throws Exception {
Permit perm... | 0true | hazelcast_src_main_java_com_hazelcast_concurrent_semaphore_operations_ReduceOperation.java |
566 | public class TransportPutMappingAction extends TransportMasterNodeOperationAction<PutMappingRequest, PutMappingResponse> {
private final MetaDataMappingService metaDataMappingService;
@Inject
public TransportPutMappingAction(Settings settings, TransportService transportService, ClusterService clusterServi... | 1no label | src_main_java_org_elasticsearch_action_admin_indices_mapping_put_TransportPutMappingAction.java |
303 | AccessController.doPrivileged(new PrivilegedAction<Object>() {
public Object run() {
try {
if (!InstrumentationRuntimeFactory.class.getClassLoader().equals(
ClassLoader.getSystemClassLoader())) {
return null;
... | 0true | common_src_main_java_org_broadleafcommerce_common_extensibility_InstrumentationRuntimeFactory.java |
6 | public class StateHandlingStatementOperations implements
KeyReadOperations,
KeyWriteOperations,
EntityOperations,
SchemaReadOperations,
SchemaWriteOperations
{
private final StoreReadLayer storeLayer;
private final LegacyPropertyTrackers legacyPropertyTrackers;
privat... | 1no label | community_kernel_src_main_java_org_neo4j_kernel_impl_api_StateHandlingStatementOperations.java |
2,828 | private static class ReplicaSyncEntryProcessor implements ScheduledEntryProcessor<Integer, ReplicaSyncInfo> {
private InternalPartitionServiceImpl partitionService;
public ReplicaSyncEntryProcessor(InternalPartitionServiceImpl partitionService) {
this.partitionService = partitionServic... | 1no label | hazelcast_src_main_java_com_hazelcast_partition_impl_InternalPartitionServiceImpl.java |
3,327 | public abstract class FloatArrayAtomicFieldData extends AbstractAtomicNumericFieldData {
public static FloatArrayAtomicFieldData empty(int numDocs) {
return new Empty(numDocs);
}
private final int numDocs;
protected long size = -1;
public FloatArrayAtomicFieldData(int numDocs) {
... | 1no label | src_main_java_org_elasticsearch_index_fielddata_plain_FloatArrayAtomicFieldData.java |
1,356 | public class JDTAnnotation implements AnnotationMirror {
private Map<String, Object> values;
public JDTAnnotation(AnnotationBinding annotation) {
values = new HashMap<String, Object>();
ElementValuePair[] annotationVaues = annotation.getElementValuePairs();
for (ElementValuePair annota... | 1no label | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_core_model_mirror_JDTAnnotation.java |
1,319 | public class OPaginatedCluster extends ODurableComponent implements OCluster {
public static final String DEF_EXTENSION = ".pcl";
private static final int DISK_PAGE_SIZE = DISK_CACHE_PAGE_SIZE.getValueAsInteger();
private static final int ... | 1no label | core_src_main_java_com_orientechnologies_orient_core_storage_impl_local_paginated_OPaginatedCluster.java |
1,473 | public class BroadleafUpdateAccountController extends BroadleafAbstractController {
@Resource(name = "blCustomerService")
protected CustomerService customerService;
@Resource(name = "blUpdateAccountValidator")
protected UpdateAccountValidator updateAccountValidator;
protected String accountUp... | 0true | core_broadleaf-framework-web_src_main_java_org_broadleafcommerce_core_web_controller_account_BroadleafUpdateAccountController.java |
1,357 | clusterService.submitStateUpdateTask("shard-failed (" + shardRoutingEntry.shardRouting + "), reason [" + shardRoutingEntry.reason + "]", Priority.HIGH, new ClusterStateUpdateTask() {
@Override
public ClusterState execute(ClusterState currentState) {
List<ShardRoutingEntr... | 0true | src_main_java_org_elasticsearch_cluster_action_shard_ShardStateAction.java |
542 | public class DeleteMappingResponse extends AcknowledgedResponse {
DeleteMappingResponse() {
}
DeleteMappingResponse(boolean acknowledged) {
super(acknowledged);
}
@Override
public void readFrom(StreamInput in) throws IOException {
super.readFrom(in);
readAcknowledged(... | 0true | src_main_java_org_elasticsearch_action_admin_indices_mapping_delete_DeleteMappingResponse.java |
642 | public class CollectionAddOperation extends CollectionBackupAwareOperation {
protected Data value;
protected long itemId = -1;
public CollectionAddOperation() {
}
public CollectionAddOperation(String name, Data value) {
super(name);
this.value = value;
}
@Override
pub... | 0true | hazelcast_src_main_java_com_hazelcast_collection_CollectionAddOperation.java |
2,072 | public class MergeRemoveOperation extends BaseRemoveOperation {
private long removeTime;
private boolean merged = false;
public MergeRemoveOperation(String name, Data dataKey, long removeTime) {
super(name, dataKey);
this.removeTime = removeTime;
}
public MergeRemoveOperation() {
... | 0true | hazelcast_src_main_java_com_hazelcast_map_operation_MergeRemoveOperation.java |
1,575 | public class AdornedTargetList implements PersistencePerspectiveItem {
private static final long serialVersionUID = 1L;
private String collectionFieldName;
private String linkedObjectPath;
private String targetObjectPath;
private String adornedTargetEntityClassname;
private String adornedTarge... | 1no label | admin_broadleaf-open-admin-platform_src_main_java_org_broadleafcommerce_openadmin_dto_AdornedTargetList.java |
95 | static final class ReservationNode<K,V> extends Node<K,V> {
ReservationNode() {
super(RESERVED, null, null, null);
}
Node<K,V> find(int h, Object k) {
return null;
}
} | 0true | src_main_java_jsr166e_ConcurrentHashMapV8.java |
3,317 | static class LongValues extends org.elasticsearch.index.fielddata.LongValues.WithOrdinals {
private final BigDoubleArrayList values;
LongValues(BigDoubleArrayList values, Ordinals.Docs ordinals) {
super(ordinals);
this.values = values;
}
... | 0true | src_main_java_org_elasticsearch_index_fielddata_plain_DoubleArrayAtomicFieldData.java |
1,366 | public enum TXSTATUS {
INVALID, BEGUN, COMMITTING, ROLLBACKING
} | 0true | core_src_main_java_com_orientechnologies_orient_core_tx_OTransaction.java |
248 | public static class ResourceHolder
{
private final TxEventSyncHookFactory syncHookFactory;
private final Transaction tx;
private final XaConnection connection;
private final NeoStoreTransaction resource;
private boolean enlisted;
ResourceHolder( TxEventSyncHookFa... | 0true | community_kernel_src_main_java_org_neo4j_kernel_impl_persistence_PersistenceManager.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.