Unnamed: 0 int64 0 6.45k | func stringlengths 29 253k | target class label 2
classes | project stringlengths 36 167 |
|---|---|---|---|
3,382 | public class PagedBytesAtomicFieldData implements AtomicFieldData.WithOrdinals<ScriptDocValues.Strings> {
public static PagedBytesAtomicFieldData empty(int numDocs) {
return new Empty(numDocs);
}
// 0 ordinal in values means no value (its null)
private final PagedBytes.Reader bytes;
privat... | 0true | src_main_java_org_elasticsearch_index_fielddata_plain_PagedBytesAtomicFieldData.java |
1,184 | Runtime.getRuntime().addShutdownHook(new Thread() {
@Override
public void run() {
node.close();
}
}); | 0true | src_main_java_org_elasticsearch_bootstrap_Bootstrap.java |
184 | ItemListener listener = new ItemListener() {
public void itemAdded(ItemEvent itemEvent) {
latch.countDown();
}
public void itemRemoved(ItemEvent item) {
}
}; | 0true | hazelcast-client_src_test_java_com_hazelcast_client_collections_ClientListTest.java |
1,095 | public class QueueConfigReadOnly extends QueueConfig {
QueueConfigReadOnly(QueueConfig config) {
super(config);
}
public List<ItemListenerConfig> getItemListenerConfigs() {
final List<ItemListenerConfig> itemListenerConfigs = super.getItemListenerConfigs();
final List<ItemListenerC... | 0true | hazelcast_src_main_java_com_hazelcast_config_QueueConfigReadOnly.java |
41 | public class ClusterLeaveReelectionListener
extends ClusterListener.Adapter
{
private final Election election;
private final StringLogger logger;
public ClusterLeaveReelectionListener( Election election, StringLogger logger )
{
this.election = election;
this.logger = logger;
... | 1no label | enterprise_cluster_src_main_java_org_neo4j_cluster_protocol_election_ClusterLeaveReelectionListener.java |
317 | new Thread() {
public void run() {
map.lock(key);
lockedLatch.countDown();
}
}.start(); | 0true | hazelcast-client_src_test_java_com_hazelcast_client_map_ClientMapLockTest.java |
3,344 | public abstract class GeoPointCompressedAtomicFieldData extends AtomicGeoPointFieldData<ScriptDocValues> {
private final int numDocs;
protected long size = -1;
public GeoPointCompressedAtomicFieldData(int numDocs) {
this.numDocs = numDocs;
}
@Override
public void close() {
}
... | 0true | src_main_java_org_elasticsearch_index_fielddata_plain_GeoPointCompressedAtomicFieldData.java |
2,069 | new ModuleWriter(binder()) {
@Override
public <T> Void visit(Binding<T> binding) {
overriddenKeys.add(binding.getKey());
return super.visit(binding);
}
... | 0true | src_main_java_org_elasticsearch_common_inject_util_Modules.java |
1,417 | public class DummyProperty {
private long id;
private int version;
private String key;
private DummyEntity entity;
public DummyProperty() {
}
public DummyProperty(String key) {
super();
this.key = key;
}
public DummyProperty(String key, DummyEntity entity) {
... | 0true | hazelcast-hibernate_hazelcast-hibernate3_src_test_java_com_hazelcast_hibernate_entity_DummyProperty.java |
1,694 | runnable = new Runnable() { public void run() { map.replace("key", null, "newValue"); } }; | 0true | hazelcast_src_test_java_com_hazelcast_map_BasicMapTest.java |
627 | c4.addListenerConfig(new ListenerConfig(new LifecycleListener() {
public void stateChanged(final LifecycleEvent event) {
if (event.getState() == LifecycleState.MERGED) {
latch.countDown();
}
}
})); | 0true | hazelcast_src_test_java_com_hazelcast_cluster_SplitBrainHandlerTest.java |
1,619 | class UpdateTask extends PrioritizedRunnable {
public final String source;
public final ClusterStateUpdateTask updateTask;
public final long addedAt = System.currentTimeMillis();
UpdateTask(String source, Priority priority, ClusterStateUpdateTask updateTask) {
super(pri... | 1no label | src_main_java_org_elasticsearch_cluster_service_InternalClusterService.java |
2,086 | static class InterceptorInfo implements DataSerializable {
String mapName;
final List<Map.Entry<String, MapInterceptor>> interceptors = new LinkedList<Map.Entry<String, MapInterceptor>>();
InterceptorInfo(String mapName) {
this.mapName = mapName;
}
InterceptorI... | 0true | hazelcast_src_main_java_com_hazelcast_map_operation_PostJoinMapOperation.java |
3,313 | static class DoubleValues extends org.elasticsearch.index.fielddata.DoubleValues {
private final BigDoubleArrayList values;
private final FixedBitSet set;
DoubleValues(BigDoubleArrayList values, FixedBitSet set) {
super(false);
this.values = ... | 0true | src_main_java_org_elasticsearch_index_fielddata_plain_DoubleArrayAtomicFieldData.java |
891 | public class CountDownLatchBackupOperation extends BaseCountDownLatchOperation
implements BackupOperation, IdentifiedDataSerializable {
private int count;
public CountDownLatchBackupOperation() {
}
public CountDownLatchBackupOperation(String name, int count) {
super(name);
thi... | 0true | hazelcast_src_main_java_com_hazelcast_concurrent_countdownlatch_operations_CountDownLatchBackupOperation.java |
1,473 | public class RestoreSource implements Streamable, ToXContent {
private SnapshotId snapshotId;
private String index;
RestoreSource() {
}
public RestoreSource(SnapshotId snapshotId, String index) {
this.snapshotId = snapshotId;
this.index = index;
}
public SnapshotId snaps... | 0true | src_main_java_org_elasticsearch_cluster_routing_RestoreSource.java |
506 | public class StressThread extends TestThread {
@Override
public void doRun() throws Exception {
while (!isStopped()) {
int key = random.nextInt(REFERENCE_COUNT);
IAtomicLong reference = references[key];
long value = reference.get();
... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_stress_AtomicLongStableReadStressTest.java |
956 | @Service("blOrderDaoExtensionManager")
public class OrderDaoExtensionManager extends ExtensionManager<OrderDaoExtensionHandler> {
public OrderDaoExtensionManager() {
super(OrderDaoExtensionHandler.class);
}
/**
* By default, this manager will allow other handlers to process the method when a ... | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_order_dao_OrderDaoExtensionManager.java |
1,240 | public final class CeylonClasspathUtil {
private CeylonClasspathUtil() {
// utility class
}
/**
* Get the Ivy classpath container from the selection in the Java package view
*
* @param selection
* the selection
* @return
* @throws JavaModelException
*... | 1no label | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_core_classpath_CeylonClasspathUtil.java |
1,419 | @XmlRootElement(name = "skuAttribute")
@XmlAccessorType(value = XmlAccessType.FIELD)
public class SkuAttributeWrapper extends BaseWrapper implements APIWrapper<SkuAttribute>{
@XmlElement
protected Long id;
@XmlElement
protected Long skuId;
@XmlElement
protected String attributeName;
@Xml... | 0true | core_broadleaf-framework-web_src_main_java_org_broadleafcommerce_core_web_api_wrapper_SkuAttributeWrapper.java |
1,587 | public class ODistributedServerLog {
public enum DIRECTION {
NONE, IN, OUT, BOTH
}
public static boolean isDebugEnabled() {
return OLogManager.instance().isDebugEnabled();
}
public static void debug(final Object iRequester, final String iLocalNode, final String iRemoteNode, final DIRECTION iDirectio... | 0true | server_src_main_java_com_orientechnologies_orient_server_distributed_ODistributedServerLog.java |
1,133 | public class OSQLMethodAsDate extends OAbstractSQLMethod {
public static final String NAME = "asdate";
public OSQLMethodAsDate() {
super(NAME);
}
@Override
public Object execute(OIdentifiable iCurrentRecord, OCommandContext iContext, Object ioResult, Object[] iMethodParams)
throws ParseException ... | 0true | core_src_main_java_com_orientechnologies_orient_core_sql_method_misc_OSQLMethodAsDate.java |
1,635 | Orient.instance().getTimer().schedule(new TimerTask() {
@Override
public void run() {
resynch();
}
}, resyncEvery, resyncEvery); | 0true | distributed_src_main_java_com_orientechnologies_orient_server_hazelcast_OHazelcastDistributedDatabase.java |
567 | public class BindOperation extends AbstractClusterOperation implements JoinOperation {
private Address localAddress;
private Address targetAddress;
private boolean reply;
public BindOperation() {
}
public BindOperation(Address localAddress, final Address targetAddress, final boolean reply) {
... | 0true | hazelcast_src_main_java_com_hazelcast_cluster_BindOperation.java |
339 | public class TransportNodesRestartAction extends TransportNodesOperationAction<NodesRestartRequest, NodesRestartResponse, TransportNodesRestartAction.NodeRestartRequest, NodesRestartResponse.NodeRestartResponse> {
private final Node node;
private final boolean disabled;
private AtomicBoolean restartReque... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_node_restart_TransportNodesRestartAction.java |
703 | createIndexAction.execute(new CreateIndexRequest(index).cause("auto(bulk api)"), new ActionListener<CreateIndexResponse>() {
@Override
public void onResponse(CreateIndexResponse result) {
if (counter.decrementAndGet() == 0) ... | 1no label | src_main_java_org_elasticsearch_action_bulk_TransportBulkAction.java |
800 | public class AlterAndGetRequest extends AbstractAlterRequest {
public AlterAndGetRequest() {
}
public AlterAndGetRequest(String name, Data function) {
super(name, function);
}
@Override
protected Operation prepareOperation() {
return new AlterAndGetOperation(name, getFunction(... | 0true | hazelcast_src_main_java_com_hazelcast_concurrent_atomiclong_client_AlterAndGetRequest.java |
1,219 | public class PaymentActivity extends BaseActivity<WorkflowPaymentContext> {
public static final String ROLLBACK_PAYMENTCONTEXT = "rollback_paymentcontext";
public static final String ROLLBACK_RESPONSEITEM = "rollback_responseitem";
public static final String ROLLBACK_ACTIONTYPE = "rollback_actiontype";
... | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_payment_service_workflow_PaymentActivity.java |
649 | private final class EntriesIterator implements Iterator<Map.Entry<Object, V>> {
private int size = 0;
private int nextEntriesIndex;
private OHashIndexBucket.Entry<Object, V>[] entries;
private EntriesIterator() {
OHashIndexBucket.E... | 0true | core_src_main_java_com_orientechnologies_orient_core_index_engine_OLocalHashTableIndexEngine.java |
209 | private class FindQuickAccessAction extends QuickMenuAction {
public FindQuickAccessAction() {
super(FIND_MENU_ID);
}
protected void fillMenu(IMenuManager menu) {
IContributionItem[] cis = new FindMenuItems().getContributionItems();
for (IContributionItem ... | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_editor_CeylonEditor.java |
1,928 | public class MapAddIndexRequest extends AllPartitionsClientRequest implements Portable, SecureRequest {
private String name;
private String attribute;
private boolean ordered;
public MapAddIndexRequest() {
}
public MapAddIndexRequest(String name, String attribute, boolean ordered) {
t... | 0true | hazelcast_src_main_java_com_hazelcast_map_client_MapAddIndexRequest.java |
72 | @SuppressWarnings("serial")
static final class MapReduceEntriesToLongTask<K,V>
extends BulkTask<K,V,Long> {
final ObjectToLong<Map.Entry<K,V>> transformer;
final LongByLongToLong reducer;
final long basis;
long result;
MapReduceEntriesToLongTask<K,V> rights, nextR... | 0true | src_main_java_jsr166e_ConcurrentHashMapV8.java |
1,544 | public interface Activity<T extends ProcessContext> extends BeanNameAware, Ordered {
/**
* Called by the encompassing processor to activate
* the execution of the Activity
*
* @param context - process context for this workflow
* @return resulting process context
* @throws Exception
... | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_workflow_Activity.java |
3,428 | private class SnapshotRunnable implements Runnable {
@Override
public synchronized void run() {
try {
snapshot("scheduled");
} catch (Throwable e) {
if (indexShard.state() == IndexShardState.CLOSED) {
return;
... | 0true | src_main_java_org_elasticsearch_index_gateway_IndexShardGatewayService.java |
1,079 | public class MultiMapConfigReadOnly extends MultiMapConfig {
public MultiMapConfigReadOnly(MultiMapConfig defConfig) {
super(defConfig);
}
public List<EntryListenerConfig> getEntryListenerConfigs() {
final List<EntryListenerConfig> listenerConfigs = super.getEntryListenerConfigs();
... | 0true | hazelcast_src_main_java_com_hazelcast_config_MultiMapConfigReadOnly.java |
2,270 | public static final Decoder NO_DECODER = new Decoder() {
@Override
public String decode(String value) {
return value;
}
}; | 0true | src_main_java_org_elasticsearch_common_path_PathTrie.java |
405 | public interface OTrackedMultiValue<K, V> {
/**
* Add change listener.
*
* @param changeListener
* Change listener instance.
*/
public void addChangeListener(OMultiValueChangeListener<K, V> changeListener);
/**
* Remove change listener.
*
* @param changeListener
* Change liste... | 0true | core_src_main_java_com_orientechnologies_orient_core_db_record_OTrackedMultiValue.java |
131 | assertTrueEventually(new AssertTask() {
@Override
public void run() throws Exception {
assertEquals(1, clientService.getConnectedClients().size());
}
}, 4); | 0true | hazelcast-client_src_test_java_com_hazelcast_client_ClientServiceTest.java |
1,658 | public class SandBoxActionType implements Serializable, BroadleafEnumerationType {
private static final long serialVersionUID = 1L;
private static final Map<String, SandBoxActionType> TYPES = new LinkedHashMap<String, SandBoxActionType>();
public static final SandBoxActionType EDIT = new SandBoxActio... | 0true | admin_broadleaf-open-admin-platform_src_main_java_org_broadleafcommerce_openadmin_server_domain_SandBoxActionType.java |
593 | public class EmailStatusHandler implements StatusHandler {
@Resource(name="blEmailService")
protected EmailService emailService;
protected EmailInfo emailInfo;
protected EmailTarget emailTarget;
public void handleStatus(String serviceName, ServiceStatusType status) {
String message = serv... | 0true | common_src_main_java_org_broadleafcommerce_common_vendor_service_monitor_handler_EmailStatusHandler.java |
1,590 | public class SafeReducerOutputs {
private final MultipleOutputs outputs;
private final Reducer.Context context;
private final boolean testing;
public SafeReducerOutputs(final Reducer.Context context) {
this.context = context;
this.outputs = new MultipleOutputs(this.context);
th... | 1no label | titan-hadoop-parent_titan-hadoop-core_src_main_java_com_thinkaurelius_titan_hadoop_mapreduce_util_SafeReducerOutputs.java |
2,535 | new HashMap<String, Object>() {{
put("n_field", "value");
put("n_field2", "value2");
}}); | 0true | src_test_java_org_elasticsearch_common_xcontent_support_XContentMapValuesTests.java |
1,517 | @Component("blNamedOrderProcessor")
public class NamedOrderProcessor extends AbstractModelVariableModifierProcessor {
@Resource(name = "blOrderService")
protected OrderService orderService;
/**
* Sets the name of this processor to be used in Thymeleaf template
*
* NOTE: thymeleaf normal... | 0true | core_broadleaf-framework-web_src_main_java_org_broadleafcommerce_core_web_processor_NamedOrderProcessor.java |
360 | public class HBaseCompat0_98 implements HBaseCompat {
@Override
public void setCompression(HColumnDescriptor cd, String algo) {
cd.setCompressionType(Compression.Algorithm.valueOf(algo));
}
@Override
public HTableDescriptor newTableDescriptor(String tableName) {
TableName tn = Tabl... | 0true | titan-hbase-parent_titan-hbase-098_src_main_java_com_thinkaurelius_titan_diskstorage_hbase_HBaseCompat0_98.java |
591 | public class IndexShardSegments implements Iterable<ShardSegments> {
private final ShardId shardId;
private final ShardSegments[] shards;
IndexShardSegments(ShardId shardId, ShardSegments[] shards) {
this.shardId = shardId;
this.shards = shards;
}
public ShardId getShardId() {
... | 0true | src_main_java_org_elasticsearch_action_admin_indices_segments_IndexShardSegments.java |
1,377 | public final class CacheEnvironment {
private CacheEnvironment(){}
public static final String CONFIG_FILE_PATH_LEGACY = Environment.CACHE_PROVIDER_CONFIG;
public static final String CONFIG_FILE_PATH = "hibernate.cache.hazelcast.configuration_file_path";
public static final String USE_NATIVE_CLIENT =... | 0true | hazelcast-hibernate_hazelcast-hibernate3_src_main_java_com_hazelcast_hibernate_CacheEnvironment.java |
1,780 | assertTrueEventually(new AssertTask() {
@Override
public void run() throws Exception {
assertTrue(map.size() < size);
}
}); | 0true | hazelcast_src_test_java_com_hazelcast_map_EvictionTest.java |
3,367 | public final class BasicOperationScheduler {
public static final int TERMINATION_TIMEOUT_SECONDS = 3;
private final ILogger logger;
private final Node node;
private final ExecutionService executionService;
private final BasicOperationProcessor processor;
//the generic workqueues are shared b... | 1no label | hazelcast_src_main_java_com_hazelcast_spi_impl_BasicOperationScheduler.java |
2,807 | private static class ExtendedProcessor extends AnalysisBinderProcessor {
@Override
public void processCharFilters(CharFiltersBindings charFiltersBindings) {
charFiltersBindings.processCharFilter("mapping", MappingCharFilterFactory.class);
}
@Override
public void ... | 0true | src_main_java_org_elasticsearch_index_analysis_AnalysisModule.java |
1,844 | public class MapRecordKey {
final String mapName;
final Data key;
public MapRecordKey(String mapName, Data key) {
this.mapName = mapName;
this.key = key;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.g... | 0true | hazelcast_src_main_java_com_hazelcast_map_MapRecordKey.java |
1,368 | public final class MemberCallableTaskOperation extends BaseCallableTaskOperation
implements IdentifiedDataSerializable {
public MemberCallableTaskOperation() {
}
public MemberCallableTaskOperation(String name, String uuid, Callable callable) {
super(name, uuid, callable);
}
@Overr... | 0true | hazelcast_src_main_java_com_hazelcast_executor_MemberCallableTaskOperation.java |
286 | public abstract class ActionResponse extends TransportResponse {
@Override
public void readFrom(StreamInput in) throws IOException {
super.readFrom(in);
}
@Override
public void writeTo(StreamOutput out) throws IOException {
super.writeTo(out);
}
} | 0true | src_main_java_org_elasticsearch_action_ActionResponse.java |
1,589 | public class NodeVersionAllocationDecider extends AllocationDecider {
@Inject
public NodeVersionAllocationDecider(Settings settings) {
super(settings);
}
@Override
public Decision canAllocate(ShardRouting shardRouting, RoutingNode node, RoutingAllocation allocation) {
String source... | 0true | src_main_java_org_elasticsearch_cluster_routing_allocation_decider_NodeVersionAllocationDecider.java |
260 | ex.schedule(new Runnable() {
@Override
public void run() {
hzs.get(1).getLifecycleService().terminate();
}
}, 1000, TimeUnit.MILLISECONDS); | 0true | hazelcast-client_src_test_java_com_hazelcast_client_executor_ExecutionDelayTest.java |
1,644 | public class CodecTests extends ElasticsearchIntegrationTest {
@Test
public void testFieldsWithCustomPostingsFormat() throws Exception {
try {
client().admin().indices().prepareDelete("test").execute().actionGet();
} catch (Exception e) {
// ignore
}
... | 0true | src_test_java_org_elasticsearch_codecs_CodecTests.java |
1,905 | class TypeConverterBindingProcessor extends AbstractProcessor {
TypeConverterBindingProcessor(Errors errors) {
super(errors);
}
/**
* Installs default converters for primitives, enums, and class literals.
*/
public void prepareBuiltInConverters(InjectorImpl injector) {
this.i... | 0true | src_main_java_org_elasticsearch_common_inject_TypeConverterBindingProcessor.java |
855 | public abstract class ReadRequest extends PartitionClientRequest implements Portable, SecureRequest {
protected String name;
public ReadRequest() {
}
public ReadRequest(String name) {
this.name = name;
}
@Override
protected int getPartition() {
ClientEngine clientEngine =... | 0true | hazelcast_src_main_java_com_hazelcast_concurrent_atomicreference_client_ReadRequest.java |
2,318 | static class TimeIntervalTimeZoneRounding extends TimeZoneRounding {
final static byte ID = 5;
private long interval;
private DateTimeZone preTz;
private DateTimeZone postTz;
TimeIntervalTimeZoneRounding() { // for serialization
}
TimeIntervalTimeZoneRound... | 0true | src_main_java_org_elasticsearch_common_rounding_TimeZoneRounding.java |
130 | public class OBinaryConverterFactory {
private static final boolean unsafeWasDetected;
static {
boolean unsafeDetected = false;
try {
Class<?> sunClass = Class.forName("sun.misc.Unsafe");
unsafeDetected = sunClass != null;
} catch (ClassNotFoundException cnfe) {
// Ignore
}
... | 0true | commons_src_main_java_com_orientechnologies_common_serialization_OBinaryConverterFactory.java |
3,647 | public class LatLonAndGeohashMappingGeoPointTests extends ElasticsearchTestCase {
@Test
public void testLatLonValues() throws Exception {
String mapping = XContentFactory.jsonBuilder().startObject().startObject("type")
.startObject("properties").startObject("point").field("type", "geo_p... | 0true | src_test_java_org_elasticsearch_index_mapper_geo_LatLonAndGeohashMappingGeoPointTests.java |
532 | @Deprecated
public class GatewaySnapshotRequest extends BroadcastOperationRequest<GatewaySnapshotRequest> {
GatewaySnapshotRequest() {
}
/**
* Constructs a new gateway snapshot against one or more indices. No indices means the gateway snapshot
* will be executed against all indices.
*/
... | 0true | src_main_java_org_elasticsearch_action_admin_indices_gateway_snapshot_GatewaySnapshotRequest.java |
102 | static class Traverser<K,V> {
Node<K,V>[] tab; // current table; updated if resized
Node<K,V> next; // the next entry to use
TableStack<K,V> stack, spare; // to save/restore on ForwardingNodes
int index; // index of bin to use next
int baseIndex; ... | 0true | src_main_java_jsr166e_ConcurrentHashMapV8.java |
2,585 | public class SocketAcceptor implements Runnable {
private final ServerSocketChannel serverSocketChannel;
private final TcpIpConnectionManager connectionManager;
private final ILogger logger;
public SocketAcceptor(ServerSocketChannel serverSocketChannel, TcpIpConnectionManager connectionManager) {
... | 1no label | hazelcast_src_main_java_com_hazelcast_nio_SocketAcceptor.java |
2,581 | private class MasterNodeFailureListener implements MasterFaultDetection.Listener {
@Override
public void onMasterFailure(DiscoveryNode masterNode, String reason) {
handleMasterGone(masterNode, reason);
}
@Override
public void onDisconnectedFromMaster() {
... | 0true | src_main_java_org_elasticsearch_discovery_zen_ZenDiscovery.java |
792 | public interface CandidateFulfillmentGroupOffer extends Serializable {
public Money getDiscountedPrice();
public void setDiscountedPrice(Money discountedPrice);
public FulfillmentGroup getFulfillmentGroup();
public void setFulfillmentGroup(FulfillmentGroup fulfillmentGroup);
public void set... | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_offer_domain_CandidateFulfillmentGroupOffer.java |
856 | Transformer adjustmentToOfferTransformer = new Transformer() {
@Override
public Object transform(Object input) {
return ((Adjustment)input).getOffer();
}
}; | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_offer_service_OfferServiceImpl.java |
1,200 | public class OQueryOperatorPlus extends OQueryOperator {
public OQueryOperatorPlus() {
super("+", 9, false);
}
@Override
public Object evaluateRecord(final OIdentifiable iRecord, ODocument iCurrentResult, final OSQLFilterCondition iCondition,
Object iLeft, Object iRight, OCommandContext iContext) {
... | 0true | core_src_main_java_com_orientechnologies_orient_core_sql_operator_math_OQueryOperatorPlus.java |
1,610 | public class OCreateRecordTask extends OAbstractRecordReplicatedTask {
private static final long serialVersionUID = 1L;
protected byte[] content;
protected byte recordType;
public OCreateRecordTask() {
}
public OCreateRecordTask(final ORecordId iRid, final byte[] iContent, final OReco... | 0true | server_src_main_java_com_orientechnologies_orient_server_distributed_task_OCreateRecordTask.java |
167 | public interface SecureRequest {
Permission getRequiredPermission();
} | 0true | hazelcast_src_main_java_com_hazelcast_client_SecureRequest.java |
330 | Comparator<Object> nameCompare = new Comparator<Object>() {
public int compare(Object arg0, Object arg1) {
return ((Node) arg0).getNodeName().compareTo(((Node) arg1).getNodeName());
}
}; | 0true | common_src_main_java_org_broadleafcommerce_common_extensibility_context_merge_handlers_AttributePreserveInsert.java |
2,453 | pool.execute(new Runnable() {
public void run() {
latch.countDown();
try {
barrier.await();
barrier.await();
} catch (Throwable e) {
barrier.reset(e);
... | 0true | src_test_java_org_elasticsearch_common_util_concurrent_EsExecutorsTests.java |
6,304 | public class MockFSDirectoryService extends FsDirectoryService {
private final MockDirectoryHelper helper;
private FsDirectoryService delegateService;
@Inject
public MockFSDirectoryService(ShardId shardId, @IndexSettings Settings indexSettings, IndexStore indexStore) {
super(shardId, indexSett... | 1no label | src_test_java_org_elasticsearch_test_store_MockFSDirectoryService.java |
752 | public class MultiGetItemResponse implements Streamable {
private GetResponse response;
private MultiGetResponse.Failure failure;
MultiGetItemResponse() {
}
public MultiGetItemResponse(GetResponse response, MultiGetResponse.Failure failure) {
this.response = response;
this.failur... | 0true | src_main_java_org_elasticsearch_action_get_MultiGetItemResponse.java |
240 | highlighter = new XPostingsHighlighter() {
@Override
protected Passage[] getEmptyHighlight(String fieldName, BreakIterator bi, int maxPassages) {
return new Passage[0];
}
}; | 0true | src_test_java_org_apache_lucene_search_postingshighlight_XPostingsHighlighterTests.java |
262 | @Inherited
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@TestGroup(enabled = true, sysProperty = SYSPROP_INTEGRATION)
public @interface IntegrationTests {
} | 0true | src_test_java_org_apache_lucene_util_AbstractRandomizedTest.java |
2,079 | public class EmailOpenTrackingServlet extends HttpServlet {
private static final long serialVersionUID = 1L;
private static final Log LOG = LogFactory.getLog(EmailOpenTrackingServlet.class);
/*
* (non-Javadoc)
* @see javax.servlet.http.HttpServlet#doGet(javax.servlet.http.HttpServletRequest , j... | 1no label | core_broadleaf-profile-web_src_main_java_org_broadleafcommerce_profile_web_email_EmailOpenTrackingServlet.java |
236 | .registerHookValue(profilerPrefix + "current", "Number of entries in cache", METRIC_TYPE.SIZE, new OProfilerHookValue() {
public Object getValue() {
return getSize();
}
}, profilerMetadataPrefix + "current"); | 0true | core_src_main_java_com_orientechnologies_orient_core_cache_OAbstractRecordCache.java |
408 | runConflictingTx(new TxJob() {
@Override
public void run(IndexTransaction tx) {
tx.delete(defStore, defDoc, TEXT, ImmutableMap.of(), true);
}
}, new TxJob() { | 0true | titan-test_src_main_java_com_thinkaurelius_titan_diskstorage_indexing_IndexProviderTest.java |
818 | public class ClearScrollResponse extends ActionResponse {
private boolean succeeded;
public ClearScrollResponse(boolean succeeded) {
this.succeeded = succeeded;
}
ClearScrollResponse() {
}
public boolean isSucceeded() {
return succeeded;
}
@Override
public void r... | 1no label | src_main_java_org_elasticsearch_action_search_ClearScrollResponse.java |
345 | return new IShowInTargetList() {
public String[] getShowInTargetIds() {
return new String[] { JavaPlugin.ID_RES_NAV };
}
}; | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_explorer_PackageExplorerPart.java |
978 | public interface DiscreteOrderItemFeePrice extends Serializable {
public abstract Long getId();
public abstract void setId(Long id);
public DiscreteOrderItem getDiscreteOrderItem();
public void setDiscreteOrderItem(DiscreteOrderItem discreteOrderItem);
public abstract Money getAmount();
pu... | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_order_domain_DiscreteOrderItemFeePrice.java |
3,274 | Collections.sort(ordsAndIds, new Comparator<OrdAndId>() {
@Override
public int compare(OrdAndId o1, OrdAndId o2) {
if (o1.ord < o2.ord) {
return -1;
}
if (o1.ord == o2.ord) {
if (o1.id < o2.id) {
... | 0true | src_test_java_org_elasticsearch_index_fielddata_ordinals_MultiOrdinalsTests.java |
3,209 | FLOAT(32, true, SortField.Type.FLOAT, Float.NEGATIVE_INFINITY, Float.POSITIVE_INFINITY) {
@Override
public double toDouble(BytesRef indexForm) {
return NumericUtils.sortableIntToFloat(NumericUtils.prefixCodedToInt(indexForm));
}
@Override
... | 0true | src_main_java_org_elasticsearch_index_fielddata_IndexNumericFieldData.java |
311 | private abstract class NodeStoreScan<RESULT, FAILURE extends Exception> implements StoreScan<FAILURE>
{
private volatile boolean continueScanning;
protected abstract RESULT read( NodeRecord node );
protected abstract void process( RESULT result ) throws FAILURE;
@Override
... | 0true | community_kernel_src_main_java_org_neo4j_kernel_impl_nioneo_xa_NeoStoreIndexStoreView.java |
400 | static enum EvictionPolicy {
NONE, LRU, LFU
} | 0true | hazelcast-client_src_main_java_com_hazelcast_client_nearcache_ClientNearCache.java |
225 | XPostingsHighlighter highlighter = new XPostingsHighlighter() {
@Override
protected BreakIterator getBreakIterator(String field) {
return new WholeBreakIterator();
}
@Override
protected char getMultiValuedSeparator(String field) {
... | 0true | src_test_java_org_apache_lucene_search_postingshighlight_XPostingsHighlighterTests.java |
1,057 | public static enum Flag {
// Do not change the order of these flags we use
// the ordinal for encoding! Only append to the end!
Positions, Offsets, Payloads, FieldStatistics, TermStatistics;
} | 0true | src_main_java_org_elasticsearch_action_termvector_TermVectorRequest.java |
349 | SafeRunner.run(new ISafeRunnable() {
public void run() throws Exception {
fWorkingSetModel= new WorkingSetModel(fMemento);
}
public void handleException(Throwable exception) {
fWorkingSetModel= new WorkingSetModel(null);
}
}... | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_explorer_PackageExplorerPart.java |
2,731 | public static class NodeLocalGatewayMetaState extends NodeOperationResponse {
private MetaData metaData;
NodeLocalGatewayMetaState() {
}
public NodeLocalGatewayMetaState(DiscoveryNode node, MetaData metaData) {
super(node);
this.metaData = metaData;
... | 0true | src_main_java_org_elasticsearch_gateway_local_state_meta_TransportNodesListGatewayMetaState.java |
1,333 | public interface SolrHelperService {
/**
* Swaps the primary and reindex cores.
* If the reindex core is null, we are operating in single core mode. In this scenario, no swap occurs.
*
* @throws ServiceException
*/
public void swapActiveCores() throws ServiceException;
/**
... | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_search_service_solr_SolrHelperService.java |
430 | trackedMap.addChangeListener(new OMultiValueChangeListener<Object, String>() {
public void onAfterRecordChanged(final OMultiValueChangeEvent<Object, String> event) {
firedEvents.add(event);
}
}); | 0true | core_src_test_java_com_orientechnologies_orient_core_db_record_TrackedMapTest.java |
1,125 | public class OrderItemSplitContainer {
protected OrderItem key;
protected List<PromotableOrderItem> splitItems = new ArrayList<PromotableOrderItem>();
public OrderItem getKey() {
return key;
}
public void setKey(OrderItem key) {
this.key = key;
}
public Li... | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_order_service_manipulation_OrderItemSplitContainer.java |
1,948 | public class MapPutIfAbsentRequest extends MapPutRequest {
public MapPutIfAbsentRequest() {
}
public MapPutIfAbsentRequest(String name, Data key, Data value, long threadId) {
super(name, key, value, threadId);
}
public MapPutIfAbsentRequest(String name, Data key, Data value, long threadId... | 0true | hazelcast_src_main_java_com_hazelcast_map_client_MapPutIfAbsentRequest.java |
1,280 | public class OPhysicalPositionSerializer implements OBinarySerializer<OPhysicalPosition> {
public static final OPhysicalPositionSerializer INSTANCE = new OPhysicalPositionSerializer();
public static final byte ID = 50;
@Override
public int getObjectSize(OPhysicalPosition object, Object... hints) {
return g... | 0true | core_src_main_java_com_orientechnologies_orient_core_storage_impl_local_eh_OPhysicalPositionSerializer.java |
461 | public class CeylonNavigatorContentProvider implements
IPipelinedTreeContentProvider2, ICeylonModelListener {
private org.eclipse.ui.navigator.IExtensionStateModel javaNavigatorStateModel;
private boolean isFlatLayout() {
return javaNavigatorStateModel.getBooleanProperty(Values.IS_LAYOUT_FLAT);
}
... | 1no label | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_navigator_CeylonNavigatorContentProvider.java |
2,355 | public class JobSupervisor {
private final ConcurrentMap<Object, Reducer> reducers = new ConcurrentHashMap<Object, Reducer>();
private final ConcurrentMap<Integer, Set<Address>> remoteReducers = new ConcurrentHashMap<Integer, Set<Address>>();
private final AtomicReference<DefaultContext> context = new Atom... | 1no label | hazelcast_src_main_java_com_hazelcast_mapreduce_impl_task_JobSupervisor.java |
903 | public interface ORecordStringable {
public String value();
public ORecordStringable value(String iValue);
} | 0true | core_src_main_java_com_orientechnologies_orient_core_record_ORecordStringable.java |
83 | public static class Order {
public static final int File_Details = 2000;
public static final int Advanced = 3000;
} | 0true | admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_file_domain_StaticAssetImpl.java |
1,599 | public class OperationRoutingModule extends AbstractModule implements SpawnModules {
private final Settings settings;
public OperationRoutingModule(Settings settings) {
this.settings = settings;
}
@Override
public Iterable<? extends Module> spawnModules() {
return ImmutableList.of... | 0true | src_main_java_org_elasticsearch_cluster_routing_operation_OperationRoutingModule.java |
242 | private static class Comparison
{
private final Collection<Field> fields = new ArrayList<Field>();
Comparison( Class<?> type )
{
for ( Field field : type.getDeclaredFields() )
{
if ( field.getDeclaringClass() == type )
{
... | 0true | community_kernel_src_test_java_org_neo4j_kernel_impl_nioneo_xa_TransactionWriterTest.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.