Unnamed: 0 int64 0 6.45k | func stringlengths 29 253k | target class label 2
classes | project stringlengths 36 167 |
|---|---|---|---|
1,238 | @Deprecated
public class ShippingServiceImpl implements ShippingService {
protected ShippingModule shippingModule;
@Override
public FulfillmentGroup calculateShippingForFulfillmentGroup(FulfillmentGroup fulfillmentGroup) throws FulfillmentPriceException {
FulfillmentGroup group = shippingModule.ca... | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_pricing_service_ShippingServiceImpl.java |
3,257 | public class LongValuesComparatorSource extends IndexFieldData.XFieldComparatorSource {
private final IndexNumericFieldData<?> indexFieldData;
private final Object missingValue;
private final SortMode sortMode;
public LongValuesComparatorSource(IndexNumericFieldData<?> indexFieldData, @Nullable Object... | 0true | src_main_java_org_elasticsearch_index_fielddata_fieldcomparator_LongValuesComparatorSource.java |
1,892 | boolean b = h1.executeTransaction(options, new TransactionalTask<Boolean>() {
public Boolean execute(TransactionalTaskContext context) throws TransactionException {
try {
final TransactionalMap<String, Integer> txMap = context.getMap("default");
... | 0true | hazelcast_src_test_java_com_hazelcast_map_MapTransactionTest.java |
90 | {
@Override
protected void configure( GraphDatabaseBuilder builder )
{
builder.setConfig( GraphDatabaseSettings.cache_type, "none" );
};
}; | 0true | community_kernel_src_test_java_org_neo4j_kernel_impl_transaction_ReadTransactionLogWritingTest.java |
1,012 | public interface GiftWrapOrderItem extends DiscreteOrderItem {
public List<OrderItem> getWrappedItems();
public void setWrappedItems(List<OrderItem> wrappedItems);
} | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_order_domain_GiftWrapOrderItem.java |
624 | @RunWith(HazelcastSerialClassRunner.class)
@Category(NightlyTest.class)
public class SplitBrainHandlerTest {
@Before
@After
public void killAllHazelcastInstances() throws IOException {
Hazelcast.shutdownAll();
}
@Test(timeout = 100000)
public void testSplitBrainMulticast() throws Exc... | 0true | hazelcast_src_test_java_com_hazelcast_cluster_SplitBrainHandlerTest.java |
1,781 | public static class InternalPolygonBuilder extends BasePolygonBuilder<InternalPolygonBuilder> {
private final MultiPolygonBuilder collection;
private InternalPolygonBuilder(MultiPolygonBuilder collection) {
super();
this.collection = collection;
this.shell = new... | 0true | src_main_java_org_elasticsearch_common_geo_builders_MultiPolygonBuilder.java |
595 | public class IndicesSegmentsRequest extends BroadcastOperationRequest<IndicesSegmentsRequest> {
public IndicesSegmentsRequest() {
this(Strings.EMPTY_ARRAY);
}
public IndicesSegmentsRequest(String... indices) {
super(indices);
indicesOptions(IndicesOptions.fromOptions(false, false, ... | 0true | src_main_java_org_elasticsearch_action_admin_indices_segments_IndicesSegmentsRequest.java |
1,337 | public class ClusterStateUpdateResponse {
private final boolean acknowledged;
public ClusterStateUpdateResponse(boolean acknowledged) {
this.acknowledged = acknowledged;
}
/**
* Whether the cluster state update was acknowledged or not
*/
public boolean isAcknowledged() {
... | 0true | src_main_java_org_elasticsearch_cluster_ack_ClusterStateUpdateResponse.java |
310 | new Thread() {
public void run() {
map.lock(key);
lockedLatch.countDown();
}
}.start(); | 0true | hazelcast-client_src_test_java_com_hazelcast_client_map_ClientMapLockTest.java |
1,096 | @SuppressWarnings("serial")
public class AboutDialog extends JDialog {
private static ImageIcon mctLogoIcon = new ImageIcon(ClassLoader.getSystemResource("images/mctlogo.png"));
public AboutDialog(JFrame frame) {
super(frame);
setDefaultCloseOperation(DISPOSE_ON_CLOSE);
Image image = ... | 1no label | platform_src_main_java_gov_nasa_arc_mct_gui_dialogs_AboutDialog.java |
18 | public interface BiFun<A,B,T> { T apply(A a, B b); } | 0true | src_main_java_jsr166e_CompletableFuture.java |
3,668 | public static class TypeParser implements Mapper.TypeParser {
@Override
public Mapper.Builder parse(String name, Map<String, Object> node, ParserContext parserContext) throws MapperParsingException {
IdFieldMapper.Builder builder = id();
parseField(builder, builder.name, node... | 0true | src_main_java_org_elasticsearch_index_mapper_internal_IdFieldMapper.java |
450 | public class PropertyType {
public static class AdminPresentation {
public static final String FRIENDLYNAME = "friendlyName";
public static final String SECURITYLEVEL = "securityLevel";
public static final String ORDER = "order";
public static final String GRIDORDER = "gridOrder";
... | 0true | common_src_main_java_org_broadleafcommerce_common_presentation_override_PropertyType.java |
2,574 | clusterService.submitStateUpdateTask("zen-disco-minimum_master_nodes_changed", Priority.URGENT, new ProcessedClusterStateUpdateTask() {
@Override
public ClusterState execute(ClusterState currentState) {
final int prevMinimumMasterNode = ZenDiscovery.this.electMaster.minim... | 1no label | src_main_java_org_elasticsearch_discovery_zen_ZenDiscovery.java |
899 | threadPool.executor(ThreadPool.Names.SEARCH).execute(new Runnable() {
@Override
public void run() {
int shardIndex = -1;
for (final ShardIterator shardIt : shardsIts) {
... | 1no label | src_main_java_org_elasticsearch_action_search_type_TransportSearchTypeAction.java |
3,435 | public static class Translog {
private long startTime = 0;
private long time;
private volatile int currentTranslogOperations = 0;
public long startTime() {
return this.startTime;
}
public void startTime(long startTime) {
this.startTime = star... | 0true | src_main_java_org_elasticsearch_index_gateway_RecoveryStatus.java |
1,536 | public class OrderMapReduce {
public static final String CLASS = Tokens.makeNamespace(OrderMapReduce.class) + ".class";
public static final String KEY = Tokens.makeNamespace(OrderMapReduce.class) + ".key";
public static final String TYPE = Tokens.makeNamespace(OrderMapReduce.class) + ".type";
public st... | 1no label | titan-hadoop-parent_titan-hadoop-core_src_main_java_com_thinkaurelius_titan_hadoop_mapreduce_transform_OrderMapReduce.java |
3,226 | public class PagedBytesStringFieldDataTests extends AbstractStringFieldDataTests {
@Override
protected FieldDataType getFieldDataType() {
return new FieldDataType("string", ImmutableSettings.builder().put("format", "paged_bytes"));
}
} | 0true | src_test_java_org_elasticsearch_index_fielddata_PagedBytesStringFieldDataTests.java |
2,192 | public class MoreLikeThisQueryTests extends ElasticsearchTestCase {
@Test
public void testSimple() throws Exception {
Directory dir = new RAMDirectory();
IndexWriter indexWriter = new IndexWriter(dir, new IndexWriterConfig(Lucene.VERSION, Lucene.STANDARD_ANALYZER));
indexWriter.commit()... | 0true | src_test_java_org_elasticsearch_common_lucene_search_MoreLikeThisQueryTests.java |
123 | {
@Override
public boolean matchesSafely( LogEntry.Start entry )
{
return entry != null && entry.getIdentifier() == identifier && entry.getMasterId() == masterId
&& entry.getLocalId() == localId;
}
@Override
... | 0true | community_kernel_src_test_java_org_neo4j_kernel_impl_transaction_xaframework_LogMatchers.java |
574 | private static final class ODocumentWrapper {
private final ODocument document;
private ODocumentWrapper(ODocument document) {
this.document = document;
}
@Override
public int hashCode() {
int hashCode = document.getIdentity().hashCode();
for (Object field : document.fieldValu... | 0true | core_src_main_java_com_orientechnologies_orient_core_index_ODocumentFieldsHashSet.java |
1,340 | Future future = executorService.submit(new Callable<String>() {
@Override
public String call() {
try {
return "success";
} finally {
latch1.countDown();
}
... | 0true | hazelcast_src_test_java_com_hazelcast_executor_ExecutorServiceTest.java |
287 | public class FailedNodeException extends ElasticsearchException {
private final String nodeId;
public FailedNodeException(String nodeId, String msg, Throwable cause) {
super(msg, cause);
this.nodeId = nodeId;
}
public String nodeId() {
return this.nodeId;
}
} | 0true | src_main_java_org_elasticsearch_action_FailedNodeException.java |
2,054 | public final class ScopeBinding implements Element {
private final Object source;
private final Class<? extends Annotation> annotationType;
private final Scope scope;
ScopeBinding(Object source, Class<? extends Annotation> annotationType, Scope scope) {
this.source = checkNotNull(source, "sourc... | 0true | src_main_java_org_elasticsearch_common_inject_spi_ScopeBinding.java |
1,502 | new NoneGatewayAllocator(), new ShardsAllocator() {
@Override
public boolean rebalance(RoutingAllocation allocation) {
return false;
}
@Override
public boolean move(MutableShardRouting shardRouting, RoutingNode node, RoutingAl... | 0true | src_test_java_org_elasticsearch_cluster_routing_allocation_BalanceConfigurationTests.java |
193 | public class TxManagerTest
{
@Test
public void settingTmNotOkShouldAttachCauseToSubsequentErrors() throws Exception
{
// Given
XaDataSourceManager mockXaManager = mock( XaDataSourceManager.class );
File txLogDir = TargetDirectory.forTest( fs.get(), getClass() ).cleanDirectory( "log" ... | 0true | community_kernel_src_test_java_org_neo4j_kernel_impl_transaction_TxManagerTest.java |
3,389 | public class PagedBytesEstimator implements PerValueEstimator {
private final AtomicReaderContext context;
private final MemoryCircuitBreaker breaker;
private long estimatedBytes;
PagedBytesEstimator(AtomicReaderContext context, MemoryCircuitBreaker breaker) {
this.brea... | 1no label | src_main_java_org_elasticsearch_index_fielddata_plain_PagedBytesIndexFieldData.java |
1,080 | @Service("blMergeCartService")
public class MergeCartServiceImpl implements MergeCartService {
@Resource(name = "blOrderService")
protected OrderService orderService;
@Resource(name = "blOrderItemService")
protected OrderItemService orderItemService;
@Resource(name = "blFulfillmentGroupService")
... | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_order_service_MergeCartServiceImpl.java |
3,279 | public final class OrdinalsBuilder implements Closeable {
/**
* Default acceptable overhead ratio. {@link OrdinalsBuilder} memory usage is mostly transient so it is likely a better trade-off to
* trade memory for speed in order to resize less often.
*/
public static final float DEFAULT_ACCEPTABL... | 0true | src_main_java_org_elasticsearch_index_fielddata_ordinals_OrdinalsBuilder.java |
247 | @Category(SerialTests.class)
public class AstyanaxLogTest extends KCVSLogTest {
@BeforeClass
public static void startCassandra() {
CassandraStorageSetup.startCleanEmbedded();
}
@Override
public KeyColumnValueStoreManager openStorageManager() throws BackendException {
return new Ast... | 0true | titan-cassandra_src_test_java_com_thinkaurelius_titan_diskstorage_cassandra_astyanax_AstyanaxLogTest.java |
908 | public abstract class AbstractBaseProcessor implements BaseProcessor {
private static final Log LOG = LogFactory.getLog(AbstractBaseProcessor.class);
private static final Map EXPRESSION_CACHE = new LRUMap(1000);
@Resource(name = "blOfferTimeZoneProcessor")
protected OfferTimeZoneProcessor offerTim... | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_offer_service_processor_AbstractBaseProcessor.java |
1,070 | public class TransportUpdateAction extends TransportInstanceSingleOperationAction<UpdateRequest, UpdateResponse> {
private final TransportDeleteAction deleteAction;
private final TransportIndexAction indexAction;
private final AutoCreateIndex autoCreateIndex;
private final TransportCreateIndexAction cr... | 1no label | src_main_java_org_elasticsearch_action_update_TransportUpdateAction.java |
2,387 | public class MemberStateImpl implements MemberState {
public static final int DEFAULT_PARTITION_COUNT = 271;
Address address = new Address();
Map<String, Long> runtimeProps = new HashMap<String, Long>();
Map<String, LocalMapStatsImpl> mapStats = new HashMap<String, LocalMapStatsImpl>();
Map<String... | 1no label | hazelcast_src_main_java_com_hazelcast_monitor_impl_MemberStateImpl.java |
781 | public class CollectionTxnRemoveOperation extends CollectionBackupAwareOperation {
private long itemId;
private transient CollectionItem item;
public CollectionTxnRemoveOperation() {
}
public CollectionTxnRemoveOperation(String name, long itemId) {
super(name);
this.itemId = item... | 0true | hazelcast_src_main_java_com_hazelcast_collection_txn_CollectionTxnRemoveOperation.java |
153 | assertTrueEventually(new AssertTask() {
@Override
public void run() {
assertEquals(1, listener.events.size());
MembershipEvent event = listener.events.get(0);
assertEquals(MembershipEvent.MEMBER_ADDED, event.getEventType());
... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_MembershipListenerTest.java |
1,210 | SOFT_THREAD_LOCAL {
@Override
<T> Recycler<T> build(Recycler.C<T> c, int limit, int availableProcessors) {
return threadLocal(softFactory(dequeFactory(c, limit)));
}
}, | 0true | src_main_java_org_elasticsearch_cache_recycler_CacheRecycler.java |
1,513 | public class NodeVersionAllocationDeciderTests extends ElasticsearchAllocationTestCase {
private final ESLogger logger = Loggers.getLogger(NodeVersionAllocationDeciderTests.class);
@Test
public void testDoNotAllocateFromPrimary() {
AllocationService strategy = createAllocationService(settingsBuild... | 0true | src_test_java_org_elasticsearch_cluster_routing_allocation_NodeVersionAllocationDeciderTests.java |
430 | public class TransportClusterStateAction extends TransportMasterNodeReadOperationAction<ClusterStateRequest, ClusterStateResponse> {
private final ClusterName clusterName;
@Inject
public TransportClusterStateAction(Settings settings, TransportService transportService, ClusterService clusterService, Thread... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_state_TransportClusterStateAction.java |
205 | Callable<Object> response = new Callable<Object>() {
public Object call() throws Exception {
final OClusterPosition result;
try {
OStorageRemoteThreadLocal.INSTANCE.get().sessionId = sessionId;
beginResponse(network);
... | 0true | client_src_main_java_com_orientechnologies_orient_client_remote_OStorageRemote.java |
1,696 | runnable = new Runnable() { public void run() { map.replace("key", "oldValue", null); } }; | 0true | hazelcast_src_test_java_com_hazelcast_map_BasicMapTest.java |
1,558 | @Retention(RetentionPolicy.RUNTIME)
public @interface ManagedAnnotation {
String value();
boolean operation() default false;
} | 0true | hazelcast_src_main_java_com_hazelcast_jmx_ManagedAnnotation.java |
1,509 | @RunWith(HazelcastParallelClassRunner.class)
@Category(QuickTest.class)
public class ManagedContextInstanceAwareTest extends HazelcastTestSupport {
@Test
public void test(){
Config config = new Config();
ManagedContextImpl managedContext = new ManagedContextImpl();
config.setManagedCont... | 0true | hazelcast_src_test_java_com_hazelcast_instance_ManagedContextInstanceAwareTest.java |
3,753 | private static class LocalCacheEntry {
volatile boolean dirty;
volatile boolean reload;
boolean removed;
private Object value;
} | 1no label | hazelcast-wm_src_main_java_com_hazelcast_web_WebFilter.java |
1,472 | public class OSQLFunctionInE extends OSQLFunctionMove {
public static final String NAME = "inE";
public OSQLFunctionInE() {
super(NAME, 0, 1);
}
@Override
protected Object move(final OrientBaseGraph graph, final OIdentifiable iRecord, final String[] iLabels) {
return v2e(graph, iRecord, Direction.IN... | 1no label | graphdb_src_main_java_com_orientechnologies_orient_graph_sql_functions_OSQLFunctionInE.java |
286 | list.setLabelProvider(new StorageLabelProvider() {
@Override
public String getText(Object element) {
for (IEditorPart part: EditorUtil.getDirtyEditors()) {
if (getFile(part.getEditorInput())==element) {
return "*" + super.getTex... | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_editor_RecentFilesPopup.java |
144 | public static class Order {
public static final int Rules = 1000;
} | 0true | admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_structure_domain_StructuredContentImpl.java |
2,300 | return new Recycler.V<T>() {
@Override
public boolean release() throws ElasticsearchException {
synchronized (lock) {
return delegate.release();
}
}
... | 0true | src_main_java_org_elasticsearch_common_recycler_Recyclers.java |
1,348 | completableFuture.andThen(new ExecutionCallback() {
@Override
public void onResponse(Object response) {
reference2.set(response);
latch2.countDown();
}
@Override
public void onFailure(Throwable t) {
refe... | 0true | hazelcast_src_test_java_com_hazelcast_executor_ExecutorServiceTest.java |
1,441 | public static class Entry {
private final State state;
private final SnapshotId snapshotId;
private final ImmutableMap<ShardId, ShardRestoreStatus> shards;
private final ImmutableList<String> indices;
/**
* Creates new restore metadata
*
* @param s... | 0true | src_main_java_org_elasticsearch_cluster_metadata_RestoreMetaData.java |
318 | public class NodesHotThreadsRequest extends NodesOperationRequest<NodesHotThreadsRequest> {
int threads = 3;
String type = "cpu";
TimeValue interval = new TimeValue(500, TimeUnit.MILLISECONDS);
int snapshots = 10;
/**
* Get hot threads from nodes based on the nodes ids specified. If none are ... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_node_hotthreads_NodesHotThreadsRequest.java |
853 | private class TransportHandler extends BaseTransportRequestHandler<SearchScrollRequest> {
@Override
public SearchScrollRequest newInstance() {
return new SearchScrollRequest();
}
@Override
public void messageReceived(SearchScrollRequest request, final TransportC... | 0true | src_main_java_org_elasticsearch_action_search_TransportSearchScrollAction.java |
68 | private static final class ByteArrayKey
{
private final byte[] bytes;
private ByteArrayKey( byte[] bytes )
{
this.bytes = bytes;
}
@Override
public int hashCode()
{
return Arrays.hashCode( bytes );
}
@Override
... | 0true | community_kernel_src_main_java_org_neo4j_kernel_impl_transaction_TxLog.java |
49 | public interface QueryDescription {
/**
* Returns a string representation of the entire query
* @return
*/
@Override
public String toString();
/**
* Returns how many individual queries are combined into this query, meaning, how many
* queries will be executed in one batch.
... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_core_QueryDescription.java |
92 | public class ReadOnlyTxManager extends AbstractTransactionManager
implements Lifecycle
{
private ThreadLocalWithSize<ReadOnlyTransactionImpl> txThreadMap;
private int eventIdentifierCounter = 0;
private XaDataSourceManager xaDsManager = null;
private final StringLogger logger;
private fin... | 0true | community_kernel_src_main_java_org_neo4j_kernel_impl_transaction_ReadOnlyTxManager.java |
2,106 | public class HandlesStreamsTests extends ElasticsearchTestCase {
@Test
public void testSharedStringHandles() throws Exception {
String test1 = "test1";
String test2 = "test2";
String test3 = "test3";
String test4 = "test4";
String test5 = "test5";
String test6 = ... | 0true | src_test_java_org_elasticsearch_common_io_streams_HandlesStreamsTests.java |
352 | static class NodeShutdownRequest extends TransportRequest {
boolean exit;
NodeShutdownRequest() {
}
NodeShutdownRequest(NodesShutdownRequest request) {
super(request);
this.exit = request.exit();
}
@Override
public void readFrom(Str... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_node_shutdown_TransportNodesShutdownAction.java |
1,511 | public static class Combiner extends Reducer<LongWritable, Holder, LongWritable, Holder> {
private Direction direction;
private Configuration faunusConf;
private static final Logger log =
LoggerFactory.getLogger(Combiner.class);
@Override
public void setup(... | 1no label | titan-hadoop-parent_titan-hadoop-core_src_main_java_com_thinkaurelius_titan_hadoop_mapreduce_sideeffect_LinkMapReduce.java |
1,272 | public class FaunusSerializer {
// This is volatile to support double-checked locking
private static volatile Serializer standardSerializer;
private final FaunusSchemaManager types;
private final boolean trackState;
private final boolean trackPaths;
private final Configuration configuration;
... | 1no label | titan-hadoop-parent_titan-hadoop-core_src_main_java_com_thinkaurelius_titan_hadoop_FaunusSerializer.java |
76 | public interface AttributeHandler<V> {
/**
* Verifies the given (not-null) attribute value is valid.
* Throws an {@link IllegalArgumentException} if the value is invalid,
* otherwise simply returns.
*
* @param value to verify
*/
public void verifyAttribute(V value);
/**
... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_core_attribute_AttributeHandler.java |
3,178 | static final class Fields {
static final XContentBuilderString FIELDDATA = new XContentBuilderString("fielddata");
static final XContentBuilderString MEMORY_SIZE = new XContentBuilderString("memory_size");
static final XContentBuilderString MEMORY_SIZE_IN_BYTES = new XContentBuilderString("m... | 0true | src_main_java_org_elasticsearch_index_fielddata_FieldDataStats.java |
375 | public class HBaseStoreTest extends KeyColumnValueStoreTest {
@BeforeClass
public static void startHBase() throws IOException, BackendException {
HBaseStorageSetup.startHBase();
}
@AfterClass
public static void stopHBase() {
// Workaround for https://issues.apache.org/jira/browse/H... | 0true | titan-hbase-parent_titan-hbase-core_src_test_java_com_thinkaurelius_titan_diskstorage_hbase_HBaseStoreTest.java |
1,426 | class HazelcastInstanceLoader implements IHazelcastInstanceLoader {
private final static ILogger logger = Logger.getLogger(HazelcastInstanceFactory.class);
private final Properties props = new Properties();
private String instanceName = null;
private HazelcastInstance instance;
private Config conf... | 0true | hazelcast-hibernate_hazelcast-hibernate4_src_main_java_com_hazelcast_hibernate_instance_HazelcastInstanceLoader.java |
2,815 | public enum AnalyzerScope {
INDEX,
INDICES,
GLOBAL
} | 0true | src_main_java_org_elasticsearch_index_analysis_AnalyzerScope.java |
1,245 | private static final class LastMMapEntrySearchInfo {
private final int foundMmapIndex;
private final long requestedPosition;
private LastMMapEntrySearchInfo(int foundMmapIndex, long requestedPosition) {
this.foundMmapIndex = foundMmapIndex;
this.requestedPosition = requestedPosition;
}
... | 0true | core_src_main_java_com_orientechnologies_orient_core_storage_fs_OMMapManagerNew.java |
457 | executor.execute(new Runnable() {
@Override
public void run() {
for (int i = 0; i < operations; i++) {
map1.put("foo-" + i, "bar");
}
}
}, 60, EntryEventType.ADDED, operations, 0.75, map1, map2); | 0true | hazelcast-client_src_test_java_com_hazelcast_client_replicatedmap_ClientReplicatedMapTest.java |
643 | public class DeleteIndexTemplateAction extends IndicesAction<DeleteIndexTemplateRequest, DeleteIndexTemplateResponse, DeleteIndexTemplateRequestBuilder> {
public static final DeleteIndexTemplateAction INSTANCE = new DeleteIndexTemplateAction();
public static final String NAME = "indices/template/delete";
... | 0true | src_main_java_org_elasticsearch_action_admin_indices_template_delete_DeleteIndexTemplateAction.java |
776 | public class CollectionRollbackOperation extends CollectionBackupAwareOperation {
private long itemId;
private boolean removeOperation;
public CollectionRollbackOperation() {
}
public CollectionRollbackOperation(String name, long itemId, boolean removeOperation) {
super(name);
th... | 0true | hazelcast_src_main_java_com_hazelcast_collection_txn_CollectionRollbackOperation.java |
124 | class FindInvocationVisitor extends Visitor {
Node node;
Tree.InvocationExpression result;
Tree.InvocationExpression current;
TypedDeclaration parameter;
FindInvocationVisitor(Node node) {
this.node=node;
}
@Override
public void visit(Tree.ListedArgument that) {
Expressio... | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_correct_FindInvocationVisitor.java |
1,495 | @SuppressWarnings("serial")
public class OObjectNotManagedException extends RuntimeException {
public OObjectNotManagedException() {
super();
}
public OObjectNotManagedException(String message, Throwable cause) {
super(message, cause);
}
public OObjectNotManagedException(String message) {
super(message);
... | 0true | object_src_main_java_com_orientechnologies_orient_object_db_OObjectNotManagedException.java |
194 | @Test
public class JNADirectMemoryTest {
public void testLong() {
final Random rnd = new Random();
ODirectMemory directMemory = new OJNADirectMemory();
long value = rnd.nextLong();
long pointer = directMemory.allocate(OLongSerializer.LONG_SIZE);
directMemory.setLong(pointer, value);
Assert.... | 0true | nativeos_src_test_java_com_orientechnologies_nio_JNADirectMemoryTest.java |
577 | public interface IndexValuesResultListener {
boolean addResult(OIdentifiable value);
} | 0true | core_src_main_java_com_orientechnologies_orient_core_index_OIndex.java |
1,776 | public class LineStringBuilder extends BaseLineStringBuilder<LineStringBuilder> {
public static final GeoShapeType TYPE = GeoShapeType.LINESTRING;
@Override
public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException {
builder.startObject();
builder.field(F... | 0true | src_main_java_org_elasticsearch_common_geo_builders_LineStringBuilder.java |
2,522 | public abstract class AbstractXContentGenerator implements XContentGenerator {
@Override
public void writeStringField(String fieldName, String value) throws IOException {
writeFieldName(fieldName);
writeString(value);
}
@Override
public void writeBooleanField(String fieldName, bool... | 0true | src_main_java_org_elasticsearch_common_xcontent_support_AbstractXContentGenerator.java |
1,130 | public class NativePayloadSumNoRecordScoreScript extends AbstractSearchScript {
public static final String NATIVE_PAYLOAD_SUM_NO_RECORD_SCRIPT_SCORE = "native_payload_sum_no_record_script_score";
String field = null;
String[] terms = null;
public static class Factory implements NativeScriptFactory {
... | 0true | src_test_java_org_elasticsearch_benchmark_scripts_score_script_NativePayloadSumNoRecordScoreScript.java |
168 | class TypeProposal implements ICompletionProposal,
ICompletionProposalExtension2 {
private final ProducedType type;
private final int offset;
private final String text;
private final Tree.CompilationUnit rootNode;
private Point selection;
private TypeProposal(int offset, ProducedT... | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_correct_TypeProposal.java |
1,644 | public abstract class OAbstractDistributedQueryExecutor extends OQueryExecutor {
protected final ExecutorService distributedQueryExecutors;
protected final ServerInstance serverInstance;
protected final AtomicInteger failedNodes = new AtomicInteger(0);
protected OAbstractDistributedQueryExecutor(OCommandR... | 0true | distributed_src_main_java_com_orientechnologies_orient_server_hazelcast_oldsharding_OAbstractDistributedQueryExecutor.java |
1,128 | public interface OSQLMethod extends Comparable<OSQLMethod> {
/**
* @return method name
*/
String getName();
/**
* Returns a convinient SQL String representation of the method.
* <p>
* Example :
*
* <pre>
* field.myMethod( param1, param2, [optionalParam3])
* </pre>
*
* This te... | 0true | core_src_main_java_com_orientechnologies_orient_core_sql_method_OSQLMethod.java |
3,753 | static final class Fields {
static final XContentBuilderString MERGES = new XContentBuilderString("merges");
static final XContentBuilderString CURRENT = new XContentBuilderString("current");
static final XContentBuilderString CURRENT_DOCS = new XContentBuilderString("current_docs");
... | 0true | src_main_java_org_elasticsearch_index_merge_MergeStats.java |
2,011 | private static class ValueSetterEntryProcessor extends AbstractEntryProcessor<String, String> {
private final String value;
ValueSetterEntryProcessor(String value) {
this.value = value;
}
public Object process(Map.Entry entry) {
entry.setValue(value);
... | 0true | hazelcast_src_test_java_com_hazelcast_map_mapstore_MapStoreTest.java |
3,705 | public class VersionFieldMapper extends AbstractFieldMapper<Long> implements InternalMapper, RootMapper {
public static final String NAME = "_version";
public static final String CONTENT_TYPE = "_version";
public static class Defaults {
public static final String NAME = VersionFieldMapper.NAME;
... | 1no label | src_main_java_org_elasticsearch_index_mapper_internal_VersionFieldMapper.java |
70 | public interface OSharedContainer {
public boolean existsResource(final String iName);
public <T> T removeResource(final String iName);
public <T> T getResource(final String iName, final Callable<T> iCallback);
} | 0true | commons_src_main_java_com_orientechnologies_common_concur_resource_OSharedContainer.java |
3,793 | public class PercolateStats implements Streamable, ToXContent {
private long percolateCount;
private long percolateTimeInMillis;
private long current;
private long memorySizeInBytes;
private long numQueries;
/**
* Noop constructor for serialazation purposes.
*/
public PercolateSt... | 1no label | src_main_java_org_elasticsearch_index_percolator_stats_PercolateStats.java |
109 | (new java.security.PrivilegedExceptionAction<sun.misc.Unsafe>() {
public sun.misc.Unsafe run() throws Exception {
Class<sun.misc.Unsafe> k = sun.misc.Unsafe.class;
for (java.lang.reflect.Field f : k.getDeclaredFields()) {
f.setA... | 0true | src_main_java_jsr166e_CountedCompleter.java |
170 | {
@Override
public boolean matchesSafely( Iterable<LogEntry> item )
{
Iterator<LogEntry> actualEntries = item.iterator();
for ( Matcher<? extends LogEntry> matcher : matchers )
{
if ( actualEntries.hasNext() ... | 0true | community_kernel_src_test_java_org_neo4j_kernel_impl_transaction_xaframework_LogMatchers.java |
2,523 | public abstract class AbstractXContentParser implements XContentParser {
//Currently this is not a setting that can be changed and is a policy
// that relates to how parsing of things like "boost" are done across
// the whole of Elasticsearch (eg if String "1.0" is a valid float).
// The idea behind k... | 0true | src_main_java_org_elasticsearch_common_xcontent_support_AbstractXContentParser.java |
5,402 | public abstract class FieldDataSource {
public static class MetaData {
public static final MetaData UNKNOWN = new MetaData();
public enum Uniqueness {
UNIQUE,
NOT_UNIQUE,
UNKNOWN;
public boolean unique() {
return this == UNIQUE;
... | 1no label | src_main_java_org_elasticsearch_search_aggregations_support_FieldDataSource.java |
1,401 | public interface AccessDelegate<T extends HazelcastRegion> {
/**
* Get the wrapped cache region
*
* @return The underlying region
*/
T getHazelcastRegion();
/**
* Attempt to retrieve an object from the cache. Mainly used in attempting
* to resolve entities/collections from th... | 0true | hazelcast-hibernate_hazelcast-hibernate3_src_main_java_com_hazelcast_hibernate_access_AccessDelegate.java |
1,742 | map.addEntryListener(new EntryListener<Integer, Integer>() {
@Override
public void entryAdded(EntryEvent<Integer, Integer> event) {
addCount.incrementAndGet();
latch.countDown();
}
@Override
public void entryRemoved(Ent... | 0true | hazelcast_src_test_java_com_hazelcast_map_EntryProcessorTest.java |
2,210 | return new DocIdSet() {
@Override
public DocIdSetIterator iterator() {
return null;
}
@Override
public boolean isCacheable() {
return true;
... | 0true | src_test_java_org_elasticsearch_common_lucene_search_XBooleanFilterLuceneTests.java |
3,457 | public class GetField implements Streamable, Iterable<Object> {
private String name;
private List<Object> values;
private GetField() {
}
public GetField(String name, List<Object> values) {
this.name = name;
this.values = values;
}
public String getName() {
return ... | 0true | src_main_java_org_elasticsearch_index_get_GetField.java |
569 | public class OpenIndexClusterStateUpdateRequest extends IndicesClusterStateUpdateRequest<OpenIndexClusterStateUpdateRequest> {
OpenIndexClusterStateUpdateRequest() {
}
} | 0true | src_main_java_org_elasticsearch_action_admin_indices_open_OpenIndexClusterStateUpdateRequest.java |
3,114 | public class RefreshFailedEngineException extends EngineException {
public RefreshFailedEngineException(ShardId shardId, Throwable t) {
super(shardId, "Refresh failed", t);
}
} | 0true | src_main_java_org_elasticsearch_index_engine_RefreshFailedEngineException.java |
3,006 | public class ShardIdCache extends AbstractIndexShardComponent {
final CounterMetric totalMetric = new CounterMetric();
@Inject
public ShardIdCache(ShardId shardId, @IndexSettings Settings indexSettings) {
super(shardId, indexSettings);
}
public IdCacheStats stats() {
return new Id... | 0true | src_main_java_org_elasticsearch_index_cache_id_ShardIdCache.java |
59 | {
@Override
public void bytesWritten( long numberOfBytes )
{
bytesWritten.addAndGet( numberOfBytes );
}
@Override
public void bytesRead( long numberOfBytes )
{
}
}, TxLog.class.getName() ); | 0true | community_kernel_src_test_java_org_neo4j_kernel_impl_transaction_TestTxLogMonitoring.java |
937 | Thread t = new Thread(new Runnable() {
public void run() {
try {
lock.tryLock(60, TimeUnit.SECONDS);
} catch (InterruptedException ignored) {
latch.countDown();
}
}
}); | 0true | hazelcast_src_test_java_com_hazelcast_concurrent_lock_LockTest.java |
1,376 | public abstract class CustomerEndpoint extends BaseEndpoint {
@Resource(name="blCustomerService")
protected CustomerService customerService;
} | 0true | core_broadleaf-framework-web_src_main_java_org_broadleafcommerce_core_web_api_endpoint_customer_CustomerEndpoint.java |
164 | (new java.security.PrivilegedExceptionAction<sun.misc.Unsafe>() {
public sun.misc.Unsafe run() throws Exception {
Class<sun.misc.Unsafe> k = sun.misc.Unsafe.class;
for (java.lang.reflect.Field f : k.getDeclaredFields()) {
f.setA... | 0true | src_main_java_jsr166y_CountedCompleter.java |
1,234 | public interface AdminClient {
/**
* A client allowing to perform actions/operations against the cluster.
*/
ClusterAdminClient cluster();
/**
* A client allowing to perform actions/operations against the indices.
*/
IndicesAdminClient indices();
} | 0true | src_main_java_org_elasticsearch_client_AdminClient.java |
3,610 | public class StringFieldMapper extends AbstractFieldMapper<String> implements AllFieldMapper.IncludeInAll {
public static final String CONTENT_TYPE = "string";
public static class Defaults extends AbstractFieldMapper.Defaults {
public static final FieldType FIELD_TYPE = new FieldType(AbstractFieldMapp... | 0true | src_main_java_org_elasticsearch_index_mapper_core_StringFieldMapper.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.