Unnamed: 0 int64 0 6.45k | func stringlengths 29 253k | target class label 2
classes | project stringlengths 36 167 |
|---|---|---|---|
7 | class ClusterInstance
{
private final Executor stateMachineExecutor;
private final Logging logging;
private final MultiPaxosServerFactory factory;
private final ProtocolServer server;
private final MultiPaxosContext ctx;
private final InMemoryAcceptorInstanceStore acceptorInstanceStore;
priv... | 1no label | enterprise_ha_src_test_java_org_neo4j_ha_correctness_ClusterInstance.java |
599 | interface ValuesTransformer<V> {
Collection<OIdentifiable> transformFromValue(V value);
V transformToValue(Collection<OIdentifiable> collection);
} | 0true | core_src_main_java_com_orientechnologies_orient_core_index_OIndexEngine.java |
1,067 | public class MapIndexConfigReadOnly extends MapIndexConfig {
public MapIndexConfigReadOnly(MapIndexConfig config) {
super(config);
}
public MapIndexConfig setAttribute(String attribute) {
throw new UnsupportedOperationException("This config is read-only");
}
public MapIndexConfig ... | 0true | hazelcast_src_main_java_com_hazelcast_config_MapIndexConfigReadOnly.java |
47 | static final class PackageProposal extends CompletionProposal {
private final boolean withBody;
private final int len;
private final Package p;
private final String completed;
private final CeylonParseController cpc;
PackageProposal(int offset, String prefix, boolean... | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_complete_PackageCompletions.java |
849 | return new IAnswer<OrderItem>() {
@Override
public OrderItem answer() throws Throwable {
Order order = (Order) EasyMock.getCurrentArguments()[0];
order.getOrderItems().add((OrderItem) EasyMock.getCurrentArguments()[1]);
if (((OrderItem) Eas... | 0true | core_broadleaf-framework_src_test_java_org_broadleafcommerce_core_offer_service_OfferDataItemProvider.java |
900 | public interface ORecordPositional<T> extends ORecordInternal<T>, Iterator<T> {
public <E> E field(int iIndex);
public ORecordPositional<T> field(int iIndex, Object iValue);
public int size();
public ORecordPositional<T> add(Object iValue);
} | 0true | core_src_main_java_com_orientechnologies_orient_core_record_ORecordPositional.java |
609 | public class UpdateSettingsRequest extends AcknowledgedRequest<UpdateSettingsRequest> {
private String[] indices;
private IndicesOptions indicesOptions = IndicesOptions.fromOptions(false, false, true, true);
private Settings settings = EMPTY_SETTINGS;
UpdateSettingsRequest() {
}
/**
* Co... | 0true | src_main_java_org_elasticsearch_action_admin_indices_settings_put_UpdateSettingsRequest.java |
956 | public abstract class TransportMasterNodeReadOperationAction<Request extends MasterNodeReadOperationRequest, Response extends ActionResponse> extends TransportMasterNodeOperationAction<Request, Response> {
public static final String FORCE_LOCAL_SETTING = "action.master.force_local";
private Boolean forceLocal... | 0true | src_main_java_org_elasticsearch_action_support_master_TransportMasterNodeReadOperationAction.java |
1,455 | public class Value {
private final Object version;
private final Object value;
private final SoftLock lock;
private final long creationTime;
public Value(final Object version, final Object value, final long creationTime) {
this.version = version;
this.value = value;
this... | 0true | hazelcast-hibernate_hazelcast-hibernate3_src_main_java_com_hazelcast_hibernate_local_Value.java |
3,148 | return new BytesValues(values.isMultiValued()) {
@Override
public int setDocument(int docId) {
this.docId = docId;
return values.setDocument(docId);
}
@Override
public BytesRef nextValue... | 0true | src_main_java_org_elasticsearch_index_fielddata_AbstractAtomicNumericFieldData.java |
6,451 | class TribeClusterStateListener implements ClusterStateListener {
private final InternalNode tribeNode;
private final String tribeName;
TribeClusterStateListener(InternalNode tribeNode) {
this.tribeNode = tribeNode;
this.tribeName = tribeNode.settings().get(TRIBE_NA... | 1no label | src_main_java_org_elasticsearch_tribe_TribeService.java |
678 | public class TransportGetWarmersAction extends TransportClusterInfoAction<GetWarmersRequest, GetWarmersResponse> {
@Inject
public TransportGetWarmersAction(Settings settings, TransportService transportService, ClusterService clusterService, ThreadPool threadPool) {
super(settings, transportService, clu... | 1no label | src_main_java_org_elasticsearch_action_admin_indices_warmer_get_TransportGetWarmersAction.java |
1,361 | @Deprecated
public interface CodeType extends Serializable {
public void setId(Long id);
public Long getId();
public void setCodeType(String type);
public String getCodeType();
public void setKey(String key);
public String getKey();
public void setDescription(String description);
... | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_util_domain_CodeType.java |
494 | new RejectedExecutionHandler() {
public void rejectedExecution(Runnable r, ThreadPoolExecutor executor) {
String message = "Internal executor rejected task: " + r + ", because client is shutting down...";
LOGGER.finest(message);
... | 0true | hazelcast-client_src_main_java_com_hazelcast_client_spi_impl_ClientExecutionServiceImpl.java |
851 | DOUBLE("Double", 5, new Class<?>[] { Double.class, Double.TYPE }, new Class<?>[] { Double.class, Number.class }) {
}, | 0true | core_src_main_java_com_orientechnologies_orient_core_metadata_schema_OType.java |
515 | public class SystemTimeTest extends TestCase {
private TimeSource mockTimeSource;
protected void setUp() throws Exception {
super.setUp();
mockTimeSource = createMock(TimeSource.class);
}
protected void tearDown() throws Exception {
SystemTime.reset();
super.tearDown();... | 0true | common_src_test_java_org_broadleafcommerce_common_time_SystemTimeTest.java |
1,965 | @Entity
@EntityListeners(value = { TemporalTimestampListener.class })
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "BLC_ADDRESS")
@AdminPresentationMergeOverrides(
{
@AdminPresentationMergeOverride(name = "phonePrimary", mergeEntries =
@AdminPresentationMergeEntry(propertyType =... | 1no label | core_broadleaf-profile_src_main_java_org_broadleafcommerce_profile_core_domain_AddressImpl.java |
965 | public abstract class TransportNodesOperationAction<Request extends NodesOperationRequest, Response extends NodesOperationResponse, NodeRequest extends NodeOperationRequest, NodeResponse extends NodeOperationResponse> extends TransportAction<Request, Response> {
protected final ClusterName clusterName;
protec... | 0true | src_main_java_org_elasticsearch_action_support_nodes_TransportNodesOperationAction.java |
2,304 | public class ThreadLocalRecyclerTests extends AbstractRecyclerTests {
@Override
protected Recycler<byte[]> newRecycler() {
return Recyclers.threadLocal(Recyclers.dequeFactory(RECYCLER_C, 10));
}
} | 0true | src_test_java_org_elasticsearch_common_recycler_ThreadLocalRecyclerTests.java |
315 | clusterService.submitStateUpdateTask("cluster_health (wait_for_events [" + request.waitForEvents() + "])", request.waitForEvents(), new ProcessedClusterStateUpdateTask() {
@Override
public ClusterState execute(ClusterState currentState) {
return currentSta... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_health_TransportClusterHealthAction.java |
2,707 | cluster().fullRestart(new RestartCallback() {
@Override
public Settings onNodeStopped(String nodeName) throws Exception {
return settingsBuilder().put("gateway.type", "local").build();
}
@Override
public boolean doRestart(S... | 0true | src_test_java_org_elasticsearch_gateway_local_QuorumLocalGatewayTests.java |
1,121 | @Deprecated
public interface LegacyOrderService extends OrderService {
public FulfillmentGroup findDefaultFulfillmentGroupForOrder(Order order);
/**
* Note: This method will automatically associate the given <b>order</b> to the given <b>itemRequest</b> such that
* then resulting {@link OrderItem} wi... | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_order_service_legacy_LegacyOrderService.java |
1,360 | @Repository("blCodeTypeDao")
public class CodeTypeDaoImpl implements CodeTypeDao {
@PersistenceContext(unitName="blPU")
protected EntityManager em;
@Resource(name="blEntityConfiguration")
protected EntityConfiguration entityConfiguration;
public CodeType create() {
return ((CodeType) enti... | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_util_dao_CodeTypeDaoImpl.java |
867 | public class GetAndSetOperation extends AtomicReferenceBackupAwareOperation {
private Data newValue;
private Data returnValue;
public GetAndSetOperation() {
}
public GetAndSetOperation(String name, Data newValue) {
super(name);
this.newValue = newValue;
}
@Override
pu... | 0true | hazelcast_src_main_java_com_hazelcast_concurrent_atomicreference_operations_GetAndSetOperation.java |
443 | new Thread(){
public void run() {
for (int i=0; i<1000; i++){
q.offer("item"+i);
latch.countDown();
latch1.countDown();
}
}
}.start(); | 0true | hazelcast-client_src_test_java_com_hazelcast_client_queue_ClientQueuePerformanceTest.java |
3,082 | static class DeleteByQuery {
private final Query query;
private final BytesReference source;
private final String[] filteringAliases;
private final Filter aliasFilter;
private final String[] types;
private final Filter parentFilter;
private Operation.Origin or... | 0true | src_main_java_org_elasticsearch_index_engine_Engine.java |
1,323 | assertThat(awaitBusy(new Predicate<Object>() {
public boolean apply(Object obj) {
boolean success = true;
for(Client client : cluster()) {
ClusterState state = client.admin().cluster().prepareState().setLocal(true).execute().actionGet().getState();... | 0true | src_test_java_org_elasticsearch_cluster_MinimumMasterNodesTests.java |
3,296 | final class BinaryDVNumericAtomicFieldData extends AbstractAtomicNumericFieldData {
private final AtomicReader reader;
private final BinaryDocValues values;
private final NumericType numericType;
BinaryDVNumericAtomicFieldData(AtomicReader reader, BinaryDocValues values, NumericType numericType) {
... | 0true | src_main_java_org_elasticsearch_index_fielddata_plain_BinaryDVNumericAtomicFieldData.java |
2,272 | public class TrieNode<T> {
private transient String key;
private transient T value;
private boolean isWildcard;
private final String wildcard;
private transient String namedWildcard;
private ImmutableMap<String, TrieNode<T>> children;
private final TrieNode... | 0true | src_main_java_org_elasticsearch_common_path_PathTrie.java |
347 | public class ConfigurationOnlyState {
private static final ThreadLocal<ConfigurationOnlyState> CONFIGURATIONONLYSTATE = ThreadLocalManager.createThreadLocal(ConfigurationOnlyState.class);
public static ConfigurationOnlyState getState() {
return CONFIGURATIONONLYSTATE.get();
}
public static vo... | 0true | common_src_main_java_org_broadleafcommerce_common_extensibility_jpa_ConfigurationOnlyState.java |
446 | public interface KeyColumnValueStoreManager extends StoreManager {
/**
* Opens an ordered database by the given name. If the database does not exist, it is
* created. If it has already been opened, the existing handle is returned.
*
* @param name Name of database
* @return Database Handle... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_diskstorage_keycolumnvalue_KeyColumnValueStoreManager.java |
601 | @Component("blCurrencyResolver")
public class BroadleafCurrencyResolverImpl implements BroadleafCurrencyResolver {
private final Log LOG = LogFactory.getLog(BroadleafCurrencyResolverImpl.class);
/**
* Parameter/Attribute name for the current currency code
*/
public static String CURRENCY_CODE_PA... | 0true | common_src_main_java_org_broadleafcommerce_common_web_BroadleafCurrencyResolverImpl.java |
380 | static class MyEntryListener implements EntryListener {
public AtomicInteger add = new AtomicInteger(0);
public void entryAdded(EntryEvent event) {
add.incrementAndGet();
}
public void entryRemoved(EntryEvent event) {
}
public void entryUpdated(EntryEve... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_multimap_ClientMultiMapListenerStressTest.java |
1,035 | public class OCommandExecutorSQLDelete extends OCommandExecutorSQLAbstract implements OCommandDistributedReplicateRequest,
OCommandResultListener {
public static final String NAME = "DELETE FROM";
public static final String KEYWORD_DELETE = "DELETE";
private static final String VALUE_NOT_FOUN... | 0true | core_src_main_java_com_orientechnologies_orient_core_sql_OCommandExecutorSQLDelete.java |
6 | public class HBaseStatus {
private static final Logger log =
LoggerFactory.getLogger(HBaseStatus.class);
private final File file;
private final String version;
private HBaseStatus(File file, String version) {
Preconditions.checkNotNull(file);
Preconditions.checkNotNull(ver... | 0true | titan-hbase-parent_titan-hbase-core_src_test_java_com_thinkaurelius_titan_HBaseStatus.java |
1,152 | public class NodesStressTest {
private Node[] nodes;
private int numberOfNodes = 2;
private Client[] clients;
private AtomicLong idGenerator = new AtomicLong();
private int fieldNumLimit = 50;
private long searcherIterations = 10;
private Searcher[] searcherThreads = new Searcher[1];
... | 0true | src_test_java_org_elasticsearch_benchmark_stress_NodesStressTest.java |
456 | public class OSBTreeIndexRIDContainerSerializationPerformanceTest {
public static final int CYCLE_COUNT = 20000;
private static final int WARMUP_CYCLE_COUNT = 30000;
public static final ODirectMemoryPointer POINTER = new ODirectMemoryPointer(2048l);
public st... | 0true | core_src_test_java_com_orientechnologies_orient_core_db_record_ridset_sbtree_OSBTreeIndexRIDContainerSerializationPerformanceTest.java |
2,032 | private static class RecordingBinder implements Binder, PrivateBinder {
private final Stage stage;
private final Set<Module> modules;
private final List<Element> elements;
private final Object source;
private final SourceProvider sourceProvider;
/**
* The bi... | 0true | src_main_java_org_elasticsearch_common_inject_spi_Elements.java |
203 | public abstract class ClientAbstractSelectionHandler implements SelectionHandler, Runnable {
protected final ILogger logger;
protected final SocketChannelWrapper socketChannel;
protected final ClientConnection connection;
protected final ClientConnectionManagerImpl connectionManager;
protected ... | 0true | hazelcast-client_src_main_java_com_hazelcast_client_connection_nio_ClientAbstractSelectionHandler.java |
391 | public class IndexMutation extends Mutation<IndexEntry,IndexEntry> {
private final boolean isNew;
private boolean isDeleted;
public IndexMutation(List<IndexEntry> additions, List<IndexEntry> deletions, boolean isNew, boolean isDeleted) {
super(additions, deletions);
Preconditions.checkArgu... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_diskstorage_indexing_IndexMutation.java |
1,291 | new OCommandOutputListener() {
@Override
public void onMessage(String text) {
System.out.println(text);
}
}); | 0true | core_src_test_java_com_orientechnologies_orient_core_storage_impl_local_paginated_LocalPaginatedStorageRestoreFromWAL.java |
1,597 | public class StandardLoggerFactory extends LoggerFactorySupport implements LoggerFactory {
@Override
protected ILogger createLogger(String name) {
final Logger l = Logger.getLogger(name);
return new StandardLogger(l);
}
static class StandardLogger extends AbstractLogger {
priva... | 0true | hazelcast_src_main_java_com_hazelcast_logging_StandardLoggerFactory.java |
413 | @Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE})
public @interface AdminPresentationClass {
/**
* <p>Specify whether or not the open admin module persistence mechanism
* should traverse ManyToOne or OneToOne field boundaries in the entity
* when retrieving and populating field val... | 0true | common_src_main_java_org_broadleafcommerce_common_presentation_AdminPresentationClass.java |
624 | public class TransportIndicesStatsAction extends TransportBroadcastOperationAction<IndicesStatsRequest, IndicesStatsResponse, TransportIndicesStatsAction.IndexShardStatsRequest, ShardStats> {
private final IndicesService indicesService;
@Inject
public TransportIndicesStatsAction(Settings settings, ThreadP... | 1no label | src_main_java_org_elasticsearch_action_admin_indices_stats_TransportIndicesStatsAction.java |
1,321 | new SingleSourceUnitPackage(pkg, sourceUnitFullPath), moduleManager, CeylonBuilder.getProjectTypeChecker(project), tokens) {
@Override
protected boolean reuseExistingDescriptorModels() { ... | 1no label | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_core_model_JDTModule.java |
381 | public interface LocaleService {
/**
* @return the locale for the passed in code
*/
public Locale findLocaleByCode(String localeCode);
/**
* @return the default locale
*/
public Locale findDefaultLocale();
/**
* @return a list of all known locales
*/
public List<... | 0true | common_src_main_java_org_broadleafcommerce_common_locale_service_LocaleService.java |
386 | public interface OMultiValueChangeListener<K, V> {
/**
* Called when operation on collection is completed.
*
* @param event Operation description.
*/
public void onAfterRecordChanged(OMultiValueChangeEvent<K, V> event);
} | 0true | core_src_main_java_com_orientechnologies_orient_core_db_record_OMultiValueChangeListener.java |
497 | return scheduledExecutor.scheduleWithFixedDelay(new Runnable() {
public void run() {
executeInternal(command);
}
}, initialDelay, period, unit); | 1no label | hazelcast-client_src_main_java_com_hazelcast_client_spi_impl_ClientExecutionServiceImpl.java |
846 | public class AtomicReferencePortableHook implements PortableHook {
static final int F_ID = FactoryIdHelper.getFactoryId(FactoryIdHelper.ATOMIC_REFERENCE_PORTABLE_FACTORY, -21);
static final int GET = 1;
static final int SET = 2;
static final int GET_AND_SET = 3;
static final int IS_NULL = 4;
s... | 0true | hazelcast_src_main_java_com_hazelcast_concurrent_atomicreference_client_AtomicReferencePortableHook.java |
747 | @Test
public class SBTreeWAL extends SBTreeTest {
static {
OGlobalConfiguration.INDEX_TX_MODE.setValue("FULL");
}
private String buildDirectory;
private String actualStorageDir;
private String expectedStorageDir;
private OWrit... | 1no label | core_src_test_java_com_orientechnologies_orient_core_index_sbtree_local_SBTreeWAL.java |
962 | public final class GetRemainingLeaseRequest extends KeyBasedClientRequest
implements Portable {
private Data key;
public GetRemainingLeaseRequest() {
}
public GetRemainingLeaseRequest(Data key) {
this.key = key;
}
@Override
protected Operation prepareOperation() {
... | 0true | hazelcast_src_main_java_com_hazelcast_concurrent_lock_client_GetRemainingLeaseRequest.java |
733 | public class CollectionCompareAndRemoveRequest extends CollectionRequest {
private Set<Data> valueSet;
private boolean retain;
public CollectionCompareAndRemoveRequest() {
}
public CollectionCompareAndRemoveRequest(String name, Set<Data> valueSet, boolean retain) {
super(name);
t... | 0true | hazelcast_src_main_java_com_hazelcast_collection_client_CollectionCompareAndRemoveRequest.java |
3,318 | public class DoubleArrayIndexFieldData extends AbstractIndexFieldData<DoubleArrayAtomicFieldData> implements IndexNumericFieldData<DoubleArrayAtomicFieldData> {
private final CircuitBreakerService breakerService;
public static class Builder implements IndexFieldData.Builder {
@Override
public... | 0true | src_main_java_org_elasticsearch_index_fielddata_plain_DoubleArrayIndexFieldData.java |
845 | public class TransportMultiSearchAction extends TransportAction<MultiSearchRequest, MultiSearchResponse> {
private final ClusterService clusterService;
private final TransportSearchAction searchAction;
@Inject
public TransportMultiSearchAction(Settings settings, ThreadPool threadPool, TransportServic... | 0true | src_main_java_org_elasticsearch_action_search_TransportMultiSearchAction.java |
1,355 | ShardFailedTransportHandler.ACTION, shardRoutingEntry, new EmptyTransportResponseHandler(ThreadPool.Names.SAME) {
@Override
public void handleException(TransportException exp) {
logger.warn("failed to send failed shard to [{}]", exp, clusterService... | 0true | src_main_java_org_elasticsearch_cluster_action_shard_ShardStateAction.java |
3,321 | public class FSTBytesAtomicFieldData implements AtomicFieldData.WithOrdinals<ScriptDocValues.Strings> {
public static FSTBytesAtomicFieldData empty(int numDocs) {
return new Empty(numDocs);
}
// 0 ordinal in values means no value (its null)
protected final Ordinals ordinals;
private volat... | 0true | src_main_java_org_elasticsearch_index_fielddata_plain_FSTBytesAtomicFieldData.java |
1,595 | public class Slf4jFactory extends LoggerFactorySupport {
@Override
protected ILogger createLogger(String name) {
final Logger l = LoggerFactory.getLogger(name);
return new Slf4jLogger(l);
}
static class Slf4jLogger extends AbstractLogger {
private final Logger logger;
... | 0true | hazelcast_src_main_java_com_hazelcast_logging_Slf4jFactory.java |
333 | static class NodeInfoRequest extends NodeOperationRequest {
NodesInfoRequest request;
NodeInfoRequest() {
}
NodeInfoRequest(String nodeId, NodesInfoRequest request) {
super(request, nodeId);
this.request = request;
}
@Override
publi... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_node_info_TransportNodesInfoAction.java |
392 | final Iterator<OIdentifiable> subIterator = new OLazyIterator<OIdentifiable>() {
private int pos = -1;
public boolean hasNext() {
return pos < size() - 1;
}
public OIdentifiable next() {
return ORecordLazyList.this.rawGet(++pos);
}
public void remove() {
... | 0true | core_src_main_java_com_orientechnologies_orient_core_db_record_ORecordLazyList.java |
1,137 | public class DistributedObjectEvent {
private EventType eventType;
private String serviceName;
private DistributedObject distributedObject;
public DistributedObjectEvent(EventType eventType, String serviceName, DistributedObject distributedObject) {
this.eventType = eventType;
this.s... | 0true | hazelcast_src_main_java_com_hazelcast_core_DistributedObjectEvent.java |
690 | @Embeddable
public class Dimension implements Serializable {
private static final long serialVersionUID = 1L;
@Column(name = "WIDTH")
@AdminPresentation(friendlyName = "ProductDimension_Product_Width", order = 1000,
tab = ProductImpl.Presentation.Tab.Name.Shipping, tabOrder = ProductImpl.Presenta... | 1no label | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_catalog_domain_Dimension.java |
2,188 | public class MatchNoDocsFilter extends Filter {
@Override
public DocIdSet getDocIdSet(AtomicReaderContext context, Bits acceptDocs) throws IOException {
return null;
}
@Override
public int hashCode() {
return this.getClass().hashCode();
}
@Override
public boolean equal... | 0true | src_main_java_org_elasticsearch_common_lucene_search_MatchNoDocsFilter.java |
110 | class CreateTypeParameterProposal extends CorrectionProposal {
CreateTypeParameterProposal(String desc, Image image,
int offset, int length, TextFileChange change) {
super(desc, change, new Region(offset, length), image);
}
private static void addProposal(Collection<ICompletio... | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_correct_CreateTypeParameterProposal.java |
1,058 | public class OCommandExecutorSQLTruncateClass extends OCommandExecutorSQLAbstract implements OCommandDistributedReplicateRequest {
public static final String KEYWORD_TRUNCATE = "TRUNCATE";
public static final String KEYWORD_CLASS = "CLASS";
private OClass schemaClass;
@SuppressWarnings("unchecke... | 0true | core_src_main_java_com_orientechnologies_orient_core_sql_OCommandExecutorSQLTruncateClass.java |
1,316 | fuzzyCheckpointExecutor.scheduleWithFixedDelay(new Runnable() {
@Override
public void run() {
try {
makeFuzzyCheckpoint();
} catch (Throwable e) {
OLogManager.instance().error(this, "Error during background fuzzy checkpoint creation for storage " + name,... | 0true | core_src_main_java_com_orientechnologies_orient_core_storage_impl_local_paginated_OLocalPaginatedStorage.java |
2,311 | public class RoundingTests extends ElasticsearchTestCase {
public void testInterval() {
final long interval = randomIntBetween(1, 100);
Rounding.Interval rounding = new Rounding.Interval(interval);
for (int i = 0; i < 1000; ++i) {
long l = Math.max(randomLong(), Long.MIN_VALUE +... | 0true | src_test_java_org_elasticsearch_common_rounding_RoundingTests.java |
471 | .weigher(new Weigher<KeySliceQuery, EntryList>() {
@Override
public int weigh(KeySliceQuery keySliceQuery, EntryList entries) {
return GUAVA_CACHE_ENTRY_SIZE + KEY_QUERY_SIZE + entries.getByteSize();
}
})... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_diskstorage_keycolumnvalue_cache_ExpirationKCVSCache.java |
562 | public class StaticLB implements LoadBalancer {
private final Member member;
public StaticLB(Member member) {
this.member = member;
}
@Override
public void init(Cluster cluster, ClientConfig config) {
}
@Override
public Member next() {
return member;
}
} | 0true | hazelcast-client_src_main_java_com_hazelcast_client_util_StaticLB.java |
3,438 | public static enum Stage {
NONE,
INDEX,
TRANSLOG,
FINALIZE,
DONE,
FAILURE
} | 0true | src_main_java_org_elasticsearch_index_gateway_SnapshotStatus.java |
124 | {
@Override
public void checkOperation( OperationType operationType, File onFile, int bytesWrittenTotal,
int bytesWrittenThisCall, long channelPosition ) throws IOException
{
if ( !broken.get() && bytesWrittenTotal == 4 ... | 0true | community_kernel_src_test_java_org_neo4j_kernel_impl_transaction_xaframework_TestDirectMappedLogBuffer.java |
3,726 | public class DynamicTemplate {
public static enum MatchType {
SIMPLE,
REGEX;
public static MatchType fromString(String value) {
if ("simple".equals(value)) {
return SIMPLE;
} else if ("regex".equals(value)) {
return REGEX;
... | 1no label | src_main_java_org_elasticsearch_index_mapper_object_DynamicTemplate.java |
1,362 | @Entity
@Table(name = "BLC_CODE_TYPES")
@Inheritance(strategy=InheritanceType.JOINED)
@Cache(usage=CacheConcurrencyStrategy.READ_WRITE, region="blStandardElements")
@Deprecated
public class CodeTypeImpl implements CodeType {
public static final long serialVersionUID = 1L;
@Id
@GeneratedValue(generator = "... | 1no label | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_util_domain_CodeTypeImpl.java |
1,867 | class MembersInjectorImpl<T> implements MembersInjector<T> {
private final TypeLiteral<T> typeLiteral;
private final InjectorImpl injector;
private final ImmutableList<SingleMemberInjector> memberInjectors;
private final ImmutableList<MembersInjector<? super T>> userMembersInjectors;
private final I... | 0true | src_main_java_org_elasticsearch_common_inject_MembersInjectorImpl.java |
44 | abstract static class BulkTask<K,V,R> extends CountedCompleter<R> {
Node<K,V>[] tab; // same as Traverser
Node<K,V> next;
int index;
int baseIndex;
int baseLimit;
final int baseSize;
int batch; // split control
BulkTask(BulkTask<K,... | 0true | src_main_java_jsr166e_ConcurrentHashMapV8.java |
1,817 | constructors[QUERY_RESULT_SET] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {
public IdentifiedDataSerializable createNew(Integer arg) {
return new QueryResultSet();
}
}; | 0true | hazelcast_src_main_java_com_hazelcast_map_MapDataSerializerHook.java |
1,031 | @SuppressWarnings("unchecked")
public class OCommandExecutorSQLCreateIndex extends OCommandExecutorSQLAbstract implements OCommandDistributedReplicateRequest {
public static final String KEYWORD_CREATE = "CREATE";
public static final String KEYWORD_INDEX = "INDEX";
public static final String KEYWORD_ON = "ON... | 1no label | core_src_main_java_com_orientechnologies_orient_core_sql_OCommandExecutorSQLCreateIndex.java |
203 | public class OServerAdmin {
private OStorageRemote storage;
private int sessionId = -1;
/**
* Creates the object passing a remote URL to connect.
*
* @param iURL
* URL to connect. It supports only the "remote" storage type.
* @throws IOException
*/
public OServerAdmin(Str... | 0true | client_src_main_java_com_orientechnologies_orient_client_remote_OServerAdmin.java |
912 | final Object myValue = makeDbCall(iMyDb, new ODbRelatedCall<Object>() {
public Object call() {
return myEntry.getValue();
}
}); | 0true | core_src_main_java_com_orientechnologies_orient_core_record_impl_ODocumentHelper.java |
1,670 | runnable = new Runnable() { public void run() { map.put("key", null); } }; | 0true | hazelcast_src_test_java_com_hazelcast_map_BasicMapTest.java |
3,396 | public class SortedSetDVBytesIndexFieldData extends DocValuesIndexFieldData implements IndexFieldData.WithOrdinals<SortedSetDVBytesAtomicFieldData> {
public SortedSetDVBytesIndexFieldData(Index index, Names fieldNames) {
super(index, fieldNames);
}
@Override
public boolean valuesOrdered() {
... | 0true | src_main_java_org_elasticsearch_index_fielddata_plain_SortedSetDVBytesIndexFieldData.java |
5,878 | public class QueryPhase implements SearchPhase {
private final FacetPhase facetPhase;
private final AggregationPhase aggregationPhase;
private final SuggestPhase suggestPhase;
private RescorePhase rescorePhase;
@Inject
public QueryPhase(FacetPhase facetPhase, AggregationPhase aggregationPhase,... | 1no label | src_main_java_org_elasticsearch_search_query_QueryPhase.java |
1,613 | private static class LocalNodeMasterListeners implements ClusterStateListener {
private final List<LocalNodeMasterListener> listeners = new CopyOnWriteArrayList<LocalNodeMasterListener>();
private final ThreadPool threadPool;
private volatile boolean master = false;
private LocalNo... | 0true | src_main_java_org_elasticsearch_cluster_service_InternalClusterService.java |
24 | public class LogMatchers
{
public static List<LogEntry> logEntries( FileSystemAbstraction fileSystem, String logPath ) throws IOException
{
StoreChannel fileChannel = fileSystem.open( new File( logPath ), "r" );
ByteBuffer buffer = ByteBuffer.allocateDirect( 9 + Xid.MAXGTRIDSIZE + Xid.MAXBQUALSI... | 1no label | community_kernel_src_test_java_org_neo4j_kernel_impl_transaction_xaframework_LogMatchers.java |
3,015 | public class QueryParserCacheModule extends AbstractModule {
private final Settings settings;
public QueryParserCacheModule(Settings settings) {
this.settings = settings;
}
@Override
protected void configure() {
bind(QueryParserCache.class)
.to(settings.getAsClass(... | 0true | src_main_java_org_elasticsearch_index_cache_query_parser_QueryParserCacheModule.java |
1,482 | public abstract class OSQLFunctionPathFinder<T extends Comparable<T>> extends OSQLFunctionMathAbstract {
protected OrientBaseGraph db;
protected Set<Vertex> settledNodes;
protected Set<Vertex> unSettledNodes;
protected Map<Vertex, Vertex> predecessors;
protected Map<Vertex, T> distanc... | 1no label | graphdb_src_main_java_com_orientechnologies_orient_graph_sql_functions_OSQLFunctionPathFinder.java |
1,399 | public class MetaDataDeleteIndexService extends AbstractComponent {
private final ThreadPool threadPool;
private final ClusterService clusterService;
private final AllocationService allocationService;
private final NodeIndexDeletedAction nodeIndexDeletedAction;
private final MetaDataService met... | 0true | src_main_java_org_elasticsearch_cluster_metadata_MetaDataDeleteIndexService.java |
1,126 | public class NativeConstantScoreScript extends AbstractSearchScript {
public static final String NATIVE_CONSTANT_SCRIPT_SCORE = "native_constant_script_score";
public static class Factory implements NativeScriptFactory {
@Override
public ExecutableScript newScript(@Nullable Map<String, Ob... | 0true | src_test_java_org_elasticsearch_benchmark_scripts_score_script_NativeConstantScoreScript.java |
338 | static class Deal implements Serializable {
Integer id;
Deal(Integer id) {
this.id = id;
}
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
} | 0true | hazelcast-client_src_test_java_com_hazelcast_client_map_ClientMapTest.java |
566 | public class AuthorizationOperation extends AbstractOperation implements JoinOperation {
private String groupName;
private String groupPassword;
private Boolean response = Boolean.TRUE;
public AuthorizationOperation() {
}
public AuthorizationOperation(String groupName, String groupPassword) {... | 0true | hazelcast_src_main_java_com_hazelcast_cluster_AuthorizationOperation.java |
382 | public class ClusterRerouteResponse extends AcknowledgedResponse {
private ClusterState state;
ClusterRerouteResponse() {
}
ClusterRerouteResponse(boolean acknowledged, ClusterState state) {
super(acknowledged);
this.state = state;
}
/**
* Returns the cluster state resu... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_reroute_ClusterRerouteResponse.java |
152 | return getGlobalConfiguration(new BackendOperation.TransactionalProvider() {
@Override
public StoreTransaction openTx() throws BackendException {
return manager.beginTransaction(StandardBaseTransactionConfig.of(config.get(TIMESTAMP_PROVIDER),features.getKe... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_diskstorage_Backend.java |
129 | @RunWith(HazelcastSerialClassRunner.class)
@Category(QuickTest.class)
public class ClientServiceTest extends HazelcastTestSupport {
@Before
@After
public void cleanup() {
HazelcastClient.shutdownAll();
Hazelcast.shutdownAll();
}
@Test
public void testConnectedClients() {
... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_ClientServiceTest.java |
1,885 | public class EntityForm {
protected static final Log LOG = LogFactory.getLog(EntityForm.class);
public static final String HIDDEN_GROUP = "hiddenGroup";
public static final String MAP_KEY_GROUP = "keyGroup";
public static final String DEFAULT_GROUP_NAME = "Default";
public static final Integer... | 1no label | admin_broadleaf-open-admin-platform_src_main_java_org_broadleafcommerce_openadmin_web_form_entity_EntityForm.java |
235 | assertTrueEventually(new AssertTask() {
public void run() throws Exception {
assertEquals(CLUSTER_SIZE, map.size());
}
}); | 0true | hazelcast-client_src_test_java_com_hazelcast_client_executor_ClientExecutorServiceExecuteTest.java |
1,688 | public abstract class OBinaryNetworkProtocolAbstract extends ONetworkProtocol {
protected OChannelBinaryServer channel;
protected int requestType;
protected int clientTxId;
protected final Level logClientExceptions;
protected final boolean logClientFullStackTr... | 1no label | server_src_main_java_com_orientechnologies_orient_server_network_protocol_binary_OBinaryNetworkProtocolAbstract.java |
192 | public static class ClientProperty {
private final String name;
private final String value;
ClientProperty(ClientConfig config, String name) {
this(config, name, (String) null);
}
ClientProperty(ClientConfig config, String name, ClientProperty defaultValue) {
... | 0true | hazelcast-client_src_main_java_com_hazelcast_client_config_ClientProperties.java |
657 | OProfiler.METRIC_TYPE.SIZE, new OProfiler.OProfilerHookValue() {
public Object getValue() {
return map != null ? map.getMaxUpdatesBeforeSave() : "-";
}
}, profilerMetadataPrefix + "maxUpdateBeforeSave"); | 0true | core_src_main_java_com_orientechnologies_orient_core_index_engine_OMVRBTreeIndexEngine.java |
4,269 | public class FsTranslog extends AbstractIndexShardComponent implements Translog {
public static final String INDEX_TRANSLOG_FS_TYPE = "index.translog.fs.type";
class ApplySettings implements IndexSettingsService.Listener {
@Override
public void onRefreshSettings(Settings settings) {
... | 1no label | src_main_java_org_elasticsearch_index_translog_fs_FsTranslog.java |
782 | docMapper.parse(SourceToParse.source(getResponse.getSourceAsBytesRef()).type(request.type()).id(request.id()), new DocumentMapper.ParseListenerAdapter() {
@Override
public boolean beforeFieldAdded(FieldMapper fieldMapper, Field field, Object parseContext) {
if (!field.fie... | 0true | src_main_java_org_elasticsearch_action_mlt_TransportMoreLikeThisAction.java |
1,522 | @SuppressWarnings("rawtypes")
public class OJPAPersistenceProvider implements PersistenceProvider {
/** the log used by this class. */
private static Logger logger = Logger.getLogger(OJPAPersistenceProvider.class.getName());
private Collection<? extends PersistenceUnitInfo> persistenceUnits = nul... | 0true | object_src_main_java_com_orientechnologies_orient_object_jpa_OJPAPersistenceProvider.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.