Unnamed: 0 int64 0 6.45k | func stringlengths 29 253k | target class label 2
classes | project stringlengths 36 167 |
|---|---|---|---|
300 | private final RecordChanges<Long, Collection<DynamicRecord>, SchemaRule> schemaRuleChanges = new RecordChanges<>(new RecordChanges.Loader<Long, Collection<DynamicRecord>, SchemaRule>() {
@Override
public Collection<DynamicRecord> newUnused(Long key, SchemaRule additionalData)
{
r... | 0true | community_kernel_src_main_java_org_neo4j_kernel_impl_nioneo_xa_NeoStoreTransaction.java |
910 | public class TransportSuggestAction extends TransportBroadcastOperationAction<SuggestRequest, SuggestResponse, ShardSuggestRequest, ShardSuggestResponse> {
private final IndicesService indicesService;
private final SuggestPhase suggestPhase;
@Inject
public TransportSuggestAction(Settings settings, Th... | 1no label | src_main_java_org_elasticsearch_action_suggest_TransportSuggestAction.java |
2,871 | public class HunspellTokenFilterFactoryTests extends ElasticsearchTestCase {
@Test
public void testDedup() throws IOException {
Settings settings = settingsBuilder()
.put("path.conf", getResource("/indices/analyze/conf_dir"))
.put("index.analysis.filter.en_US.type", "hun... | 0true | src_test_java_org_elasticsearch_index_analysis_HunspellTokenFilterFactoryTests.java |
179 | public class XidImpl implements Xid
{
interface Seed
{
long nextRandomLong();
long nextSequenceId();
}
public static final Seed DEFAULT_SEED = new Seed()
{
private long nextSequenceId = 0;
private final Random r = new Random();
@Override
... | 0true | community_kernel_src_main_java_org_neo4j_kernel_impl_transaction_XidImpl.java |
173 | .build(new CacheLoader<String,URLProcessor>() {
public URLProcessor load(String key) throws IOException, ServletException {
if (LOG.isDebugEnabled()) {
LOG.debug("Loading URL processor into Cache");
... | 1no label | admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_web_BroadleafProcessURLFilter.java |
5,461 | public class SearchSourceBuilder implements ToXContent {
/**
* A static factory method to construct a new search source.
*/
public static SearchSourceBuilder searchSource() {
return new SearchSourceBuilder();
}
/**
* A static factory method to construct new search highlights.
... | 1no label | src_main_java_org_elasticsearch_search_builder_SearchSourceBuilder.java |
111 | public abstract class OListenerManger<L> {
private final Collection<L> listeners;
private final OLock lock;
public OListenerManger() {
this(new HashSet<L>(8), new ONoLock());
}
public OListenerManger(final OLock iLock) {
listeners = new HashSet<L>(8);
lock = iLock;
}
public OListene... | 0true | commons_src_main_java_com_orientechnologies_common_listener_OListenerManger.java |
95 | public class RagManager implements Visitor<LineLogger, RuntimeException>
{
// if a runtime exception is thrown from any method it means that the
// RWLock class hasn't kept the contract to the RagManager
// The contract is:
// o When a transaction gets a lock on a resource and both the readCount and
... | 0true | community_kernel_src_main_java_org_neo4j_kernel_impl_transaction_RagManager.java |
39 | Runnable r = new Runnable() {
@Override
public void run() {
try {
for (Entry<String, Map<Long, Map<String, String>>> feedData : groupData[dataIndex].entrySet()) {
PartitionTimestamps timeStamp = null;
... | 0true | timeSequenceFeedAggregator_src_main_java_gov_nasa_arc_mct_buffer_disk_internal_PartitionFastDiskBuffer.java |
1,207 | public class OClusterEntryIterator implements Iterator<OPhysicalPosition> {
private final OCluster cluster;
private final OClusterPosition max;
private final OClusterPosition min;
private OPhysicalPosition[] positionsToProcess;
private int positionsIndex;
public OClusterEntr... | 0true | core_src_main_java_com_orientechnologies_orient_core_storage_OClusterEntryIterator.java |
661 | return new Iterator<V>() {
private final OSBTreeMapEntryIterator<Object, V> entryIterator = new OSBTreeMapEntryIterator<Object, V>(sbTree);
@Override
public boolean hasNext() {
return entryIterator.hasNext();
}
@Override
public V next() {
retur... | 0true | core_src_main_java_com_orientechnologies_orient_core_index_engine_OSBTreeIndexEngine.java |
1,357 | final ExecutionCallback callback = new ExecutionCallback() {
public void onResponse(Object response) {
if ((Boolean) response)
count.incrementAndGet();
latch.countDown();
}
public void onFailure(Throwable t) {
}... | 0true | hazelcast_src_test_java_com_hazelcast_executor_ExecutorServiceTest.java |
4,126 | public class ShardSearchService extends AbstractIndexShardComponent {
private final ShardSlowLogSearchService slowLogSearchService;
private final StatsHolder totalStats = new StatsHolder();
private final CounterMetric openContexts = new CounterMetric();
private volatile Map<String, StatsHolder> group... | 1no label | src_main_java_org_elasticsearch_index_search_stats_ShardSearchService.java |
444 | public class KCVSUtil {
private static final Logger log = LoggerFactory.getLogger(KeyColumnValueStore.class);
/**
* Retrieves the value for the specified column and key under the given transaction
* from the store if such exists, otherwise returns NULL
*
* @param store Store
* @para... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_diskstorage_keycolumnvalue_KCVSUtil.java |
869 | threadPool.executor(ThreadPool.Names.SEARCH).execute(new Runnable() {
@Override
public void run() {
executeFetch(entry.index, queryResult.shardTarget(), counter... | 0true | src_main_java_org_elasticsearch_action_search_type_TransportSearchDfsQueryThenFetchAction.java |
2,101 | public class OutputStreamStreamOutput extends StreamOutput {
private final OutputStream out;
public OutputStreamStreamOutput(OutputStream out) {
this.out = out;
}
@Override
public void writeByte(byte b) throws IOException {
out.write(b);
}
@Override
public void writeB... | 0true | src_main_java_org_elasticsearch_common_io_stream_OutputStreamStreamOutput.java |
455 | 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 |
238 | public interface OCache {
/**
* All operations running at cache initialization stage
*/
void startup();
/**
* All operations running at cache destruction stage
*/
void shutdown();
/**
* Tell whether cache is enabled
*
* @return {@code true} if cache enabled at call time, otherwise - {@c... | 0true | core_src_main_java_com_orientechnologies_orient_core_cache_OCache.java |
14 | static final class AsyncRun extends Async {
final Runnable fn;
final CompletableFuture<Void> dst;
AsyncRun(Runnable fn, CompletableFuture<Void> dst) {
this.fn = fn; this.dst = dst;
}
public final boolean exec() {
CompletableFuture<Void> d; Throwable ex... | 0true | src_main_java_jsr166e_CompletableFuture.java |
426 | public class ClusterStateAction extends ClusterAction<ClusterStateRequest, ClusterStateResponse, ClusterStateRequestBuilder> {
public static final ClusterStateAction INSTANCE = new ClusterStateAction();
public static final String NAME = "cluster/state";
private ClusterStateAction() {
super(NAME);
... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_state_ClusterStateAction.java |
723 | createIndexAction.execute(new CreateIndexRequest(request.index()).cause("auto(delete api)").masterNodeTimeout(request.timeout()), new ActionListener<CreateIndexResponse>() {
@Override
public void onResponse(CreateIndexResponse result) {
innerExecute(reques... | 0true | src_main_java_org_elasticsearch_action_delete_TransportDeleteAction.java |
773 | public abstract class OLazyWrapperIterator<T> implements Iterator<T>, Iterable<T>, OResettable, OSizeable {
protected final Iterator<?> iterator;
protected T nextElement;
protected final int size; // -1 = UNKNOWN
public OLazyWrapperIterator(final Iterator<?> iterator) {
this.i... | 0true | core_src_main_java_com_orientechnologies_orient_core_iterator_OLazyWrapperIterator.java |
1,003 | public interface FulfillmentGroupItem extends Serializable {
public Long getId();
public void setId(Long id);
public FulfillmentGroup getFulfillmentGroup();
public void setFulfillmentGroup(FulfillmentGroup fulfillmentGroup);
public OrderItem getOrderItem();
public void setOrderItem(OrderIt... | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_order_domain_FulfillmentGroupItem.java |
5,836 | public class SourceSimpleFragmentsBuilder extends SimpleFragmentsBuilder {
private final SearchContext searchContext;
public SourceSimpleFragmentsBuilder(FieldMapper<?> mapper, SearchContext searchContext,
String[] preTags, String[] postTags, BoundaryScanner boundarySca... | 1no label | src_main_java_org_elasticsearch_search_highlight_vectorhighlight_SourceSimpleFragmentsBuilder.java |
5,966 | public final class SuggestUtils {
public static Comparator<SuggestWord> LUCENE_FREQUENCY = new SuggestWordFrequencyComparator();
public static Comparator<SuggestWord> SCORE_COMPARATOR = SuggestWordQueue.DEFAULT_COMPARATOR;
private SuggestUtils() {
// utils!!
}
public static DirectS... | 1no label | src_main_java_org_elasticsearch_search_suggest_SuggestUtils.java |
853 | public interface OfferServiceExtensionHandler extends ExtensionHandler {
public ExtensionResultStatusType applyAdditionalFilters(List<Offer> offers);
} | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_offer_service_OfferServiceExtensionHandler.java |
290 | filterText.addKeyListener(new KeyListener() {
public void keyPressed(KeyEvent e) {
if (e.keyCode == 0x0D || e.keyCode == SWT.KEYPAD_CR) // Enter key
go();
if (e.keyCode == SWT.ARROW_DOWN)
list.getTable().setFocus();
... | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_editor_RecentFilesPopup.java |
1,612 | public class MetadataVisitorAdapter implements MetadataVisitor, Serializable {
@Override
public void visit(AdornedTargetCollectionMetadata metadata) {
throw new IllegalArgumentException("Not supported in this context");
}
@Override
public void visit(BasicFieldMetadata metadata) {
t... | 0true | admin_broadleaf-open-admin-platform_src_main_java_org_broadleafcommerce_openadmin_dto_visitor_MetadataVisitorAdapter.java |
2,464 | timer.schedule(new Runnable() {
@Override
public void run() {
boolean removed = getQueue().remove(fCommand);
if (removed) {
timeoutCallback.run();
}
}
}, timeout.na... | 0true | src_main_java_org_elasticsearch_common_util_concurrent_PrioritizedEsThreadPoolExecutor.java |
1,461 | public class GroupShardsIterator implements Iterable<ShardIterator> {
private final Collection<ShardIterator> iterators;
public GroupShardsIterator(Collection<ShardIterator> iterators) {
this.iterators = iterators;
}
/**
* Returns the total number of shards within all groups
* @ret... | 0true | src_main_java_org_elasticsearch_cluster_routing_GroupShardsIterator.java |
944 | new Thread(new Runnable() {
@Override
public void run() {
try {
Thread.sleep(1000);
} catch (InterruptedException e) {
e.printStackTrace();
}
lock.destroy();
}
}).s... | 0true | hazelcast_src_test_java_com_hazelcast_concurrent_lock_LockTest.java |
217 | public class ThreadLocalManager {
private static final Log LOG = LogFactory.getLog(ThreadLocalManager.class);
private static final ThreadLocal<ThreadLocalManager> THREAD_LOCAL_MANAGER = new ThreadLocal<ThreadLocalManager>() {
@Override
protected ThreadLocalManager initialValue() {
... | 0true | common_src_main_java_org_broadleafcommerce_common_classloader_release_ThreadLocalManager.java |
2,850 | public class DanishAnalyzerProvider extends AbstractIndexAnalyzerProvider<DanishAnalyzer> {
private final DanishAnalyzer analyzer;
@Inject
public DanishAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, Environment env, @Assisted String name, @Assisted Settings settings) {
super(... | 0true | src_main_java_org_elasticsearch_index_analysis_DanishAnalyzerProvider.java |
353 | private class NodeShutdownRequestHandler extends BaseTransportRequestHandler<NodeShutdownRequest> {
static final String ACTION = "/cluster/nodes/shutdown/node";
@Override
public NodeShutdownRequest newInstance() {
return new NodeShutdownRequest();
}
@Override
... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_node_shutdown_TransportNodesShutdownAction.java |
23 | public class ControlStructureCompletions {
} | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_complete_ControlStructureCompletions.java |
746 | public class TransportExplainAction extends TransportShardSingleOperationAction<ExplainRequest, ExplainResponse> {
private final IndicesService indicesService;
private final ScriptService scriptService;
private final CacheRecycler cacheRecycler;
private final PageCacheRecycler pageCacheRecycler;
... | 1no label | src_main_java_org_elasticsearch_action_explain_TransportExplainAction.java |
1,281 | @Entity
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "BLC_REVIEW_DETAIL")
public class ReviewDetailImpl implements ReviewDetail {
@Id
@GeneratedValue(generator = "ReviewDetailId")
@GenericGenerator(
name="ReviewDetailId",
strategy="org.broadleafcommerce.common.persistence.I... | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_rating_domain_ReviewDetailImpl.java |
122 | public enum ConsistencyModifier {
/**
* Uses the default consistency model guaranteed by the enclosing transaction against the configured
* storage backend.
* </p>
* What this means exactly, depends on the configuration of the storage backend as well as the (optional) configuration
* of th... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_core_schema_ConsistencyModifier.java |
1,886 | class Reflection {
/**
* A placeholder. This enables us to continue processing and gather more
* errors but blows up if you actually try to use it.
*/
static class InvalidConstructor {
InvalidConstructor() {
throw new AssertionError();
}
}
@SuppressWarnings("... | 0true | src_main_java_org_elasticsearch_common_inject_Reflection.java |
3,057 | public class PreBuiltPostingsFormatProvider implements PostingsFormatProvider {
public static final class Factory implements PostingsFormatProvider.Factory {
private final PreBuiltPostingsFormatProvider provider;
public Factory(PostingsFormat postingsFormat) {
this(postingsFormat.getN... | 0true | src_main_java_org_elasticsearch_index_codec_postingsformat_PreBuiltPostingsFormatProvider.java |
544 | flushAction.execute(Requests.flushRequest(request.indices()), new ActionListener<FlushResponse>() {
@Override
public void onResponse(FlushResponse flushResponse) {
// get all types that need to be deleted.
ImmutableOpenMap<String, ImmutableOpenMap<Strin... | 1no label | src_main_java_org_elasticsearch_action_admin_indices_mapping_delete_TransportDeleteMappingAction.java |
591 | public final class HeartbeatOperation extends AbstractClusterOperation
implements JoinOperation, IdentifiedDataSerializable {
@Override
public void run() {
// do nothing ...
}
@Override
public int getFactoryId() {
return ClusterDataSerializerHook.F_ID;
}
@Override
... | 0true | hazelcast_src_main_java_com_hazelcast_cluster_HeartbeatOperation.java |
120 | public class TxManager extends AbstractTransactionManager implements Lifecycle
{
public interface Monitor
{
void txStarted( Xid xid );
void txCommitted( Xid xid );
void txRolledBack( Xid xid );
void txManagerStopped();
public static class Adapter implements Monitor
... | 0true | community_kernel_src_main_java_org_neo4j_kernel_impl_transaction_TxManager.java |
169 | public static interface ForkJoinWorkerThreadFactory {
/**
* Returns a new worker thread operating in the given pool.
*
* @param pool the pool this thread works in
* @throws NullPointerException if the pool is null
*/
public ForkJoinWorkerThread newThread(... | 0true | src_main_java_jsr166y_ForkJoinPool.java |
1,654 | @Documented
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.PARAMETER, ElementType.FIELD, ElementType.METHOD})
public @interface Nullable {
} | 0true | src_main_java_org_elasticsearch_common_Nullable.java |
214 | Collections.sort(indexes, new Comparator<OIndex<?>>() {
public int compare(OIndex<?> o1, OIndex<?> o2) {
return o1.getName().compareToIgnoreCase(o2.getName());
}
}); | 0true | tools_src_main_java_com_orientechnologies_orient_console_OConsoleDatabaseApp.java |
1,365 | private static class ScriptCallable implements Callable, Serializable, HazelcastInstanceAware {
private final String script;
private final Map<String, Object> map;
private transient HazelcastInstance hazelcastInstance;
ScriptCallable(String script, Map<String, Object> map) {
... | 0true | hazelcast_src_test_java_com_hazelcast_executor_ExecutorServiceTest.java |
2,056 | public interface TypeConverter {
/**
* Converts a string value. Throws an exception if a conversion error occurs.
*/
Object convert(String value, TypeLiteral<?> toType);
} | 0true | src_main_java_org_elasticsearch_common_inject_spi_TypeConverter.java |
763 | @Test
public class OSBTreeBonsaiTest {
private static final int KEYS_COUNT = 500000;
private ODatabaseDocumentTx databaseDocumentTx;
protected OSBTreeBonsai<Integer, OIdentifiable> sbTree;
@BeforeClass
public void beforeClass() {
String buildDirectory = System... | 0true | core_src_test_java_com_orientechnologies_orient_core_index_sbtreebonsai_local_OSBTreeBonsaiTest.java |
1,403 | @XmlRootElement(name = "orderItemQualifier")
@XmlAccessorType(value = XmlAccessType.FIELD)
public class OrderItemQualifierWrapper extends BaseWrapper implements APIWrapper<OrderItemQualifier> {
@XmlElement
protected Long offerId;
@XmlElement
protected Long quantity;
@Override
public void wrap... | 0true | core_broadleaf-framework-web_src_main_java_org_broadleafcommerce_core_web_api_wrapper_OrderItemQualifierWrapper.java |
1,530 | public static class Map extends Mapper<NullWritable, FaunusVertex, NullWritable, FaunusVertex> {
private boolean processVertices;
@Override
public void setup(final Mapper.Context context) throws IOException, InterruptedException {
this.processVertices = context.getConfiguration... | 1no label | titan-hadoop-parent_titan-hadoop-core_src_main_java_com_thinkaurelius_titan_hadoop_mapreduce_transform_EdgesMap.java |
145 | private static class CorrectionMarkerResolution
implements IMarkerResolution, IMarkerResolution2 {
private int fOffset;
private int fLength;
private ICompletionProposal fProposal;
private final IDocument fDocument;
public CorrectionMarkerResolution(int offset, ... | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_correct_MarkerResolutionGenerator.java |
1,921 | static final Assisted DEFAULT_ANNOTATION = new Assisted() {
public String value() {
return "";
}
public Class<? extends Annotation> annotationType() {
return Assisted.class;
}
@Override
public boolean equals(Object o) {
return o i... | 0true | src_main_java_org_elasticsearch_common_inject_assistedinject_FactoryProvider2.java |
3,682 | public static class Builder extends NumberFieldMapper.Builder<Builder, IntegerFieldMapper> {
protected EnabledAttributeMapper enabledState = EnabledAttributeMapper.UNSET_DISABLED;
public Builder() {
super(Defaults.NAME, new FieldType(Defaults.SIZE_FIELD_TYPE));
builder = th... | 0true | src_main_java_org_elasticsearch_index_mapper_internal_SizeFieldMapper.java |
2,191 | public class MoreLikeThisQuery extends Query {
public static final float DEFAULT_PERCENT_TERMS_TO_MATCH = 0.3f;
private TFIDFSimilarity similarity;
private String likeText;
private String[] moreLikeFields;
private Analyzer analyzer;
private float percentTermsToMatch = DEFAULT_PERCENT_TERMS_TO... | 0true | src_main_java_org_elasticsearch_common_lucene_search_MoreLikeThisQuery.java |
3,217 | SINGLE_VALUED_SPARSE_RANDOM {
public int numValues(Random r) {
return r.nextFloat() < 0.1f ? 1 : 0;
}
@Override
public long nextValue(Random r) {
return r.nextLong();
}
}, | 0true | src_test_java_org_elasticsearch_index_fielddata_LongFieldDataTests.java |
2,050 | public interface ProviderKeyBinding<T> extends Binding<T> {
/**
* Returns the key used to resolve the provider's binding. That binding can be retrieved from an
* injector using {@link org.elasticsearch.common.inject.Injector#getBinding(Key)
* Injector.getBinding(providerKey)}
*/
Key<? exten... | 0true | src_main_java_org_elasticsearch_common_inject_spi_ProviderKeyBinding.java |
1,820 | @Component("blMediaFieldPersistenceProvider")
@Scope("prototype")
public class MediaFieldPersistenceProvider extends FieldPersistenceProviderAdapter {
@Resource(name="blEntityConfiguration")
protected EntityConfiguration entityConfiguration;
protected boolean canHandlePersistence(PopulateValueRequest ... | 1no label | admin_broadleaf-open-admin-platform_src_main_java_org_broadleafcommerce_openadmin_server_service_persistence_module_provider_MediaFieldPersistenceProvider.java |
463 | public class MvelHelper {
public static Object convertField(String type, String fieldValue) {
if (fieldValue == null) {
return null;
}
try {
if (type.equals(SupportedFieldType.BOOLEAN.toString())) {
return Boolean.parseBoolean(fieldValue);
... | 0true | common_src_main_java_org_broadleafcommerce_common_rule_MvelHelper.java |
1,113 | public class StringMapAdjustOrPutBenchmark {
public static void main(String[] args) {
int NUMBER_OF_KEYS = (int) SizeValue.parseSizeValue("20").singles();
int STRING_SIZE = 5;
long PUT_OPERATIONS = SizeValue.parseSizeValue("5m").singles();
long ITERATIONS = 10;
boolean REUS... | 0true | src_test_java_org_elasticsearch_benchmark_hppc_StringMapAdjustOrPutBenchmark.java |
2,883 | public class LimitTokenCountFilterFactory extends AbstractTokenFilterFactory {
final int maxTokenCount;
final boolean consumeAllTokens;
@Inject
public LimitTokenCountFilterFactory(Index index, @IndexSettings Settings indexSettings, Environment env, @Assisted String name, @Assisted Settings settings) {
... | 0true | src_main_java_org_elasticsearch_index_analysis_LimitTokenCountFilterFactory.java |
347 | @SuppressWarnings("unchecked")
public abstract class ODatabaseRecordWrapperAbstract<DB extends ODatabaseRecord> extends ODatabaseWrapperAbstract<DB> implements
ODatabaseComplex<ORecordInternal<?>> {
public ODatabaseRecordWrapperAbstract(final DB iDatabase) {
super(iDatabase);
iDatabase.setDatabaseOwner(t... | 0true | core_src_main_java_com_orientechnologies_orient_core_db_ODatabaseRecordWrapperAbstract.java |
194 | public class ProxyFactoryConfig {
private String service;
private String className;
public ProxyFactoryConfig() {
}
public ProxyFactoryConfig(String className, String service) {
this.className = className;
this.service = service;
}
public String getClassName() {
... | 1no label | hazelcast-client_src_main_java_com_hazelcast_client_config_ProxyFactoryConfig.java |
3,452 | class Sync implements Runnable {
@Override
public void run() {
// don't re-schedule if its closed..., we are done
if (indexShard.state() == IndexShardState.CLOSED) {
return;
}
if (indexShard.state() == IndexShardState.STARTED && indexS... | 1no label | src_main_java_org_elasticsearch_index_gateway_local_LocalIndexShardGateway.java |
319 | public class NodesHotThreadsRequestBuilder extends NodesOperationRequestBuilder<NodesHotThreadsRequest, NodesHotThreadsResponse, NodesHotThreadsRequestBuilder> {
public NodesHotThreadsRequestBuilder(ClusterAdminClient clusterClient) {
super((InternalClusterAdminClient) clusterClient, new NodesHotThreadsReq... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_node_hotthreads_NodesHotThreadsRequestBuilder.java |
722 | public class OSBTreeMapEntryIterator<K, V> implements Iterator<Map.Entry<K, V>> {
private LinkedList<Map.Entry<K, V>> preFetchedValues;
private final OTreeInternal<K, V> sbTree;
private K firstKey;
private Map.Entry<K, V> currentEntry;
public OSBTreeMapEntryIterator(OT... | 0true | core_src_main_java_com_orientechnologies_orient_core_index_sbtree_OSBTreeMapEntryIterator.java |
141 | public static class Order {
public static final int Description = 1000;
public static final int Internal = 2000;
public static final int Rules = 1000;
} | 0true | admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_structure_domain_StructuredContentImpl.java |
2,693 | public class FsGatewayModule extends BlobStoreGatewayModule {
@Override
protected void configure() {
bind(Gateway.class).to(FsGateway.class).asEagerSingleton();
}
} | 0true | src_main_java_org_elasticsearch_gateway_fs_FsGatewayModule.java |
311 | String.class, null, new OConfigurationChangeCallback() {
public void change(final Object iCurrentValue, final Object iNewValue) {
Orient.instance().getProfiler().configure(iNewValue.toString());
}
}), | 0true | core_src_main_java_com_orientechnologies_orient_core_config_OGlobalConfiguration.java |
1,163 | public class OSQLMethodTrim extends OAbstractSQLMethod {
public static final String NAME = "trim";
public OSQLMethodTrim() {
super(NAME);
}
@Override
public Object execute(OIdentifiable iCurrentRecord, OCommandContext iContext, Object ioResult, Object[] iMethodParams) {
ioResult =... | 1no label | core_src_main_java_com_orientechnologies_orient_core_sql_method_misc_OSQLMethodTrim.java |
702 | public class TransportBulkAction extends TransportAction<BulkRequest, BulkResponse> {
private final AutoCreateIndex autoCreateIndex;
private final boolean allowIdGeneration;
private final ClusterService clusterService;
private final TransportShardBulkAction shardBulkAction;
private final Transp... | 1no label | src_main_java_org_elasticsearch_action_bulk_TransportBulkAction.java |
1,613 | private class LifecycleListenerImpl implements LifecycleListener {
@Override
public void stateChanged(final LifecycleEvent event) {
if (event.getState() == LifecycleState.STARTED) {
try {
start();
} catch (Exception e) {
... | 0true | hazelcast_src_main_java_com_hazelcast_management_ManagementCenterService.java |
93 | public interface NamedOperationComponent {
List<String> setOperationValues(Map<String, String> originalParameters, Map<String, String> derivedParameters);
} | 0true | admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_file_service_operation_NamedOperationComponent.java |
628 | c3.addListenerConfig(new ListenerConfig(new LifecycleListener() {
public void stateChanged(final LifecycleEvent event) {
if (event.getState() == LifecycleState.MERGING) {
h1.shutdown();
} else if (event.getState() == LifecycleState.MERGED) {
... | 0true | hazelcast_src_test_java_com_hazelcast_cluster_SplitBrainHandlerTest.java |
154 | public static final Map<String, ConfigOption> REGISTERED_STORAGE_MANAGERS_SHORTHAND = new HashMap<String, ConfigOption>() {{
put("berkeleyje", STORAGE_DIRECTORY);
put("hazelcast", STORAGE_DIRECTORY);
put("hazelcastcache", STORAGE_DIRECTORY);
put("infinispan", STORAGE_DIRECTORY);
... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_diskstorage_Backend.java |
461 | @Service("blResourceMinificationService")
public class ResourceMinificationServiceImpl implements ResourceMinificationService {
protected static final Log LOG = LogFactory.getLog(ResourceMinificationServiceImpl.class);
@Value("${minify.enabled}")
protected boolean enabled;
@Value("${minify.lin... | 1no label | common_src_main_java_org_broadleafcommerce_common_resource_service_ResourceMinificationServiceImpl.java |
309 | private static class Update implements Iterable<NodePropertyUpdate>
{
private final NodeLabelUpdate labels;
private final List<NodePropertyUpdate> propertyUpdates = new ArrayList<>();
Update( long nodeId, long[] labels )
{
this.labels = labelChanges( nodeId, EMPTY_LO... | 0true | community_kernel_src_main_java_org_neo4j_kernel_impl_nioneo_xa_NeoStoreIndexStoreView.java |
113 | @Entity
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "BLC_PAGE_RULE")
public class PageRuleImpl implements PageRule {
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue(generator= "PageRuleId")
@GenericGenerator(
name="PageRuleId",
strategy="org.broad... | 1no label | admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_page_domain_PageRuleImpl.java |
410 | 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 |
2,122 | public class ConsoleAppender extends WriterAppender {
public static final String SYSTEM_OUT = "System.out";
public static final String SYSTEM_ERR = "System.err";
protected String target = SYSTEM_OUT;
/**
* Determines if the appender honors reassignments of System.out
* or System.err made af... | 0true | src_main_java_org_elasticsearch_common_logging_log4j_ConsoleAppender.java |
352 | public interface BroadleafClassTransformer extends ClassTransformer {
public void compileJPAProperties(Properties props, Object key) throws Exception;
} | 0true | common_src_main_java_org_broadleafcommerce_common_extensibility_jpa_convert_BroadleafClassTransformer.java |
711 | constructors[COLLECTION_ADD_ALL] = new ConstructorFunction<Integer, Portable>() {
public Portable createNew(Integer arg) {
return new CollectionAddAllRequest();
}
}; | 0true | hazelcast_src_main_java_com_hazelcast_collection_CollectionPortableHook.java |
1,083 | @Service("blOrderItemService")
public class OrderItemServiceImpl implements OrderItemService {
@Resource(name="blOrderItemDao")
protected OrderItemDao orderItemDao;
@Resource(name="blDynamicSkuPricingService" )
protected DynamicSkuPricingService dynamicSkuPricingService;
@Override
public ... | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_order_service_OrderItemServiceImpl.java |
1,602 | public interface PersistencePerspectiveItem extends Serializable {
public void accept(PersistencePerspectiveItemVisitor visitor);
public PersistencePerspectiveItem clonePersistencePerspectiveItem();
} | 0true | admin_broadleaf-open-admin-platform_src_main_java_org_broadleafcommerce_openadmin_dto_PersistencePerspectiveItem.java |
3,501 | public interface TypeParser {
public static class ParserContext {
private final PostingsFormatService postingsFormatService;
private final DocValuesFormatService docValuesFormatService;
private final AnalysisService analysisService;
private final Similari... | 0true | src_main_java_org_elasticsearch_index_mapper_Mapper.java |
187 | 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_ClientSetTest.java |
486 | private class InMemoryTransaction extends AbstractStoreTransaction {
public InMemoryTransaction(final BaseTransactionConfig config) {
super(config);
}
} | 0true | titan-core_src_main_java_com_thinkaurelius_titan_diskstorage_keycolumnvalue_inmemory_InMemoryStoreManager.java |
3,260 | public enum SortMode {
/**
* Sum of all the values.
*/
SUM {
/**
* Returns the sum of the two values
*/
@Override
public double apply(double a, double b) {
return a + b;
}
/**
* Returns the sum of the two values
... | 0true | src_main_java_org_elasticsearch_index_fielddata_fieldcomparator_SortMode.java |
1,107 | MULTI_VALUED_ENUM {
public int numValues() {
return RANDOM.nextInt(3);
}
@Override
public long nextValue() {
return 3 + RANDOM.nextInt(8);
}
}, | 0true | src_test_java_org_elasticsearch_benchmark_fielddata_LongFieldDataBenchmark.java |
99 | @SuppressWarnings("serial")
static final class SearchValuesTask<K,V,U>
extends BulkTask<K,V,U> {
final Fun<? super V, ? extends U> searchFunction;
final AtomicReference<U> result;
SearchValuesTask
(BulkTask<K,V,?> p, int b, int i, int f, Node<K,V>[] t,
Fu... | 0true | src_main_java_jsr166e_ConcurrentHashMapV8.java |
1,863 | static enum NullAnnotationStrategy implements AnnotationStrategy {
INSTANCE;
public boolean hasAttributes() {
return false;
}
public AnnotationStrategy withoutAttributes() {
throw new UnsupportedOperationException("Key already has no attributes.");
}... | 0true | src_main_java_org_elasticsearch_common_inject_Key.java |
811 | @Entity
@Table(name = "BLC_OFFER_CODE")
@Inheritance(strategy=InheritanceType.JOINED)
@Cache(usage=CacheConcurrencyStrategy.NONSTRICT_READ_WRITE, region="blOrderElements")
@AdminPresentationClass(populateToOneFields = PopulateToOneFieldsEnum.FALSE, friendlyName = "OfferCodeImpl_baseOfferCode")
public class OfferCodeImp... | 1no label | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_offer_domain_OfferCodeImpl.java |
1,528 | public class ShardsLimitAllocationTests extends ElasticsearchAllocationTestCase {
private final ESLogger logger = Loggers.getLogger(ShardsLimitAllocationTests.class);
@Test
public void indexLevelShardsLimitAllocate() {
AllocationService strategy = createAllocationService(settingsBuilder().put("clu... | 0true | src_test_java_org_elasticsearch_cluster_routing_allocation_ShardsLimitAllocationTests.java |
6,227 | public class ReproduceInfoPrinter extends RunListener {
protected final ESLogger logger = Loggers.getLogger(ElasticsearchTestCase.class);
@Override
public void testStarted(Description description) throws Exception {
logger.info("Test {} started", description.getDisplayName());
}
@Override... | 1no label | src_test_java_org_elasticsearch_test_junit_listeners_ReproduceInfoPrinter.java |
504 | @Service("blSiteService")
public class SiteServiceImpl implements SiteService {
@Resource(name = "blSiteDao")
protected SiteDao siteDao;
@Override
public Site retrieveSiteById(Long id) {
Site response = siteDao.retrieve(id);
if (response != null) {
response = response.clone... | 0true | common_src_main_java_org_broadleafcommerce_common_site_service_SiteServiceImpl.java |
264 | public class ImportsTransfer extends ByteArrayTransfer {
public static final ImportsTransfer INSTANCE = new ImportsTransfer();
private static final String TYPE_NAME = "ceylon-source-with-imports-transfer-format" +
System.currentTimeMillis();
private static final int TYPEID = register... | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_editor_ImportsTransfer.java |
2,519 | public class SmileXContent implements XContent {
public static XContentBuilder contentBuilder() throws IOException {
return XContentBuilder.builder(smileXContent);
}
final static SmileFactory smileFactory;
public final static SmileXContent smileXContent;
static {
smileFactory = ne... | 1no label | src_main_java_org_elasticsearch_common_xcontent_smile_SmileXContent.java |
3,687 | return new Comparator<Map.Entry>() {
public int compare(Map.Entry entry1, Map.Entry entry2) {
return SortingUtil.compare(pagingPredicate.getComparator(),
pagingPredicate.getIterationType(), entry1, entry2);
}
}; | 1no label | hazelcast_src_main_java_com_hazelcast_util_SortingUtil.java |
778 | public class TransportMoreLikeThisAction extends TransportAction<MoreLikeThisRequest, SearchResponse> {
private final TransportSearchAction searchAction;
private final TransportGetAction getAction;
private final IndicesService indicesService;
private final ClusterService clusterService;
private... | 1no label | src_main_java_org_elasticsearch_action_mlt_TransportMoreLikeThisAction.java |
1,618 | private class ReconnectToNodes implements Runnable {
private ConcurrentMap<DiscoveryNode, Integer> failureCount = ConcurrentCollections.newConcurrentMap();
@Override
public void run() {
// master node will check against all nodes if its alive with certain discoveries implementa... | 0true | src_main_java_org_elasticsearch_cluster_service_InternalClusterService.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.