Unnamed: 0 int64 0 6.45k | func stringlengths 37 161k | target class label 2
classes | project stringlengths 33 167 |
|---|---|---|---|
228 | @Repository("blModuleConfigurationDao")
public class ModuleConfigurationDaoImpl implements ModuleConfigurationDao {
@PersistenceContext(unitName = "blPU")
protected EntityManager em;
@Resource(name = "blEntityConfiguration")
protected EntityConfiguration entityConfiguration;
protected Long curren... | 0true | common_src_main_java_org_broadleafcommerce_common_config_dao_ModuleConfigurationDaoImpl.java |
51 | public class QueryException extends TitanException {
private static final long serialVersionUID = 1L;
/**
* @param msg Exception message
*/
public QueryException(String msg) {
super(msg);
}
/**
* @param msg Exception message
* @param cause Cause of the exception
... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_core_QueryException.java |
780 | public class OMemoryWatchDog extends Thread {
private final Map<ListenerWrapper, Object> listeners = new WeakHashMap<ListenerWrapper, Object>(128);
private static long lastGC = 0;
private int alertTimes = 0;
protected final ReferenceQueue<Object> ... | 1no label | core_src_main_java_com_orientechnologies_orient_core_memory_OMemoryWatchDog.java |
367 | public static class TestReducerFactory
implements ReducerFactory<String, Integer, Integer> {
public TestReducerFactory() {
}
@Override
public Reducer<String, Integer, Integer> newReducer(String key) {
return new TestReducer();
}
} | 0true | hazelcast-client_src_test_java_com_hazelcast_client_mapreduce_ClientMapReduceTest.java |
267 | public class OCommandGenericIterator implements Iterator<Object>, Iterable<Object> {
protected OCommandExecutor command;
protected Iterator<Object> resultSet;
protected Object resultOne;
protected boolean executed = false;
public OCommandGenericIterator(OCommandExecutor command) {
this.command = comma... | 0true | core_src_main_java_com_orientechnologies_orient_core_command_OCommandGenericIterator.java |
362 | public class PropertyFilter extends Filter {
protected boolean isJoinTableFilter = false;
protected String propertyName;
public Boolean getJoinTableFilter() {
return isJoinTableFilter;
}
public void setJoinTableFilter(Boolean joinTableFilter) {
isJoinTableFilter = joinTableFilter;... | 0true | common_src_main_java_org_broadleafcommerce_common_filter_PropertyFilter.java |
85 | @Entity
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "BLC_STATIC_ASSET_STRG")
public class StaticAssetStorageImpl implements StaticAssetStorage {
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue(generator = "StaticAssetStorageId")
@GenericGenerator(
name="S... | 0true | admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_file_domain_StaticAssetStorageImpl.java |
537 | public class ORemoteFetchContext implements OFetchContext {
public void onBeforeStandardField(Object iFieldValue, String iFieldName, Object iUserObject) {
}
public void onAfterStandardField(Object iFieldValue, String iFieldName, Object iUserObject) {
}
public void onBeforeMap(ORecordSchemaAware<?> iRootRecord, S... | 0true | core_src_main_java_com_orientechnologies_orient_core_fetch_remote_ORemoteFetchContext.java |
119 | static final class WorkQueue {
/**
* Capacity of work-stealing queue array upon initialization.
* Must be a power of two; at least 4, but should be larger to
* reduce or eliminate cacheline sharing among queues.
* Currently, it is much larger, as a partial workaround for
... | 0true | src_main_java_jsr166e_ForkJoinPool.java |
94 | @SuppressWarnings("serial")
static final class ReduceValuesTask<K,V>
extends BulkTask<K,V,V> {
final BiFun<? super V, ? super V, ? extends V> reducer;
V result;
ReduceValuesTask<K,V> rights, nextRight;
ReduceValuesTask
(BulkTask<K,V,?> p, int b, int i, int f, ... | 0true | src_main_java_jsr166e_ConcurrentHashMapV8.java |
28 | static final class ThenAccept<T> extends Completion {
final CompletableFuture<? extends T> src;
final Action<? super T> fn;
final CompletableFuture<Void> dst;
final Executor executor;
ThenAccept(CompletableFuture<? extends T> src,
Action<? super T> fn,
... | 0true | src_main_java_jsr166e_CompletableFuture.java |
1,391 | Collection<IndexWarmersMetaData.Entry> filteredWarmers = Collections2.filter(indexWarmersMetaData.entries(), new Predicate<IndexWarmersMetaData.Entry>() {
@Override
public boolean apply(IndexWarmersMetaData.Entry warmer) {
if (warmers.length != 0 && types... | 0true | src_main_java_org_elasticsearch_cluster_metadata_MetaData.java |
3,122 | public class InternalEngine extends AbstractIndexShardComponent implements Engine {
private volatile ByteSizeValue indexingBufferSize;
private volatile int indexConcurrency;
private volatile boolean compoundOnFlush = true;
private long gcDeletesInMillis;
private volatile boolean enableGcDeletes = ... | 1no label | src_main_java_org_elasticsearch_index_engine_internal_InternalEngine.java |
302 | static class DumEntryListener implements EntryListener {
public void entryAdded(EntryEvent event) {
}
public void entryRemoved(EntryEvent event) {
}
public void entryUpdated(EntryEvent event) {
}
public void entryEvicted(EntryEvent event) {
}
} | 0true | hazelcast-client_src_test_java_com_hazelcast_client_map_ClientMapBasicTest.java |
704 | shardBulkAction.execute(bulkShardRequest, new ActionListener<BulkShardResponse>() {
@Override
public void onResponse(BulkShardResponse bulkShardResponse) {
for (BulkItemResponse bulkItemResponse : bulkShardResponse.getResponses()) {
... | 0true | src_main_java_org_elasticsearch_action_bulk_TransportBulkAction.java |
1,149 | public class GeoDistanceSearchBenchmark {
public static void main(String[] args) throws Exception {
Node node = NodeBuilder.nodeBuilder().clusterName(GeoDistanceSearchBenchmark.class.getSimpleName()).node();
Client client = node.client();
ClusterHealthResponse clusterHealthResponse = clie... | 0true | src_test_java_org_elasticsearch_benchmark_search_geo_GeoDistanceSearchBenchmark.java |
397 | public class TransportClusterSearchShardsAction extends TransportMasterNodeReadOperationAction<ClusterSearchShardsRequest, ClusterSearchShardsResponse> {
@Inject
public TransportClusterSearchShardsAction(Settings settings, TransportService transportService, ClusterService clusterService, ThreadPool threadPool)... | 1no label | src_main_java_org_elasticsearch_action_admin_cluster_shards_TransportClusterSearchShardsAction.java |
10 | private class MessageReceiver
extends SimpleChannelHandler
{
@Override
public void channelOpen( ChannelHandlerContext ctx, ChannelStateEvent e ) throws Exception
{
Channel ctxChannel = ctx.getChannel();
openedChannel( getURI( (InetSocketAddress) ctxCha... | 1no label | enterprise_cluster_src_main_java_org_neo4j_cluster_com_NetworkReceiver.java |
32 | static final class ThenCompose<T,U> extends Completion {
final CompletableFuture<? extends T> src;
final Fun<? super T, CompletableFuture<U>> fn;
final CompletableFuture<U> dst;
final Executor executor;
ThenCompose(CompletableFuture<? extends T> src,
Fun<?... | 0true | src_main_java_jsr166e_CompletableFuture.java |
25 | return Iterables.transform(Iterables.filter(outEdges, new Predicate<Edge>() {
@Override
public boolean apply(@Nullable Edge edge) {
return !CHECK_VALUE || ((Integer) edge.getProperty("number")).intValue() == value;
}
}), new Fun... | 0true | titan-test_src_main_java_com_thinkaurelius_titan_TestByteBuffer.java |
654 | public class PutIndexTemplateAction extends IndicesAction<PutIndexTemplateRequest, PutIndexTemplateResponse, PutIndexTemplateRequestBuilder> {
public static final PutIndexTemplateAction INSTANCE = new PutIndexTemplateAction();
public static final String NAME = "indices/template/put";
private PutIndexTempl... | 0true | src_main_java_org_elasticsearch_action_admin_indices_template_put_PutIndexTemplateAction.java |
1,869 | @Component("blAdminRequestProcessor")
public class BroadleafAdminRequestProcessor extends AbstractBroadleafWebRequestProcessor {
protected final Log LOG = LogFactory.getLog(getClass());
@Resource(name = "blSiteResolver")
protected BroadleafSiteResolver siteResolver;
@Resource(name = "messageSource")
... | 1no label | admin_broadleaf-open-admin-platform_src_main_java_org_broadleafcommerce_openadmin_web_filter_BroadleafAdminRequestProcessor.java |
31 | public class HBaseBlueprintsTest extends TitanBlueprintsTest {
@Override
public void beforeSuite() {
try {
HBaseStorageSetup.startHBase();
} catch (IOException e) {
throw new AssertionError(e);
}
}
@AfterClass
public static void stopHBase() {
... | 0true | titan-hbase-parent_titan-hbase-core_src_test_java_com_thinkaurelius_titan_blueprints_HBaseBlueprintsTest.java |
365 | public class OGraphDatabasePool extends ODatabasePoolBase<OGraphDatabase> {
private static OGraphDatabasePool globalInstance = new OGraphDatabasePool();
public OGraphDatabasePool() {
super();
}
public OGraphDatabasePool(final String iURL, final String iUserName, final String iUserPassword) {
super(iU... | 0true | core_src_main_java_com_orientechnologies_orient_core_db_graph_OGraphDatabasePool.java |
883 | threadPool.executor(ThreadPool.Names.SEARCH).execute(new Runnable() {
@Override
public void run() {
Tuple<String, Long>[] context1 = scrollId.getContext();
for (int i = 0; i < context1.length; i++... | 0true | src_main_java_org_elasticsearch_action_search_type_TransportSearchScrollQueryAndFetchAction.java |
3,225 | final class RemoteProvisionTask<K, V>
implements Runnable {
private final AbstractBaseReplicatedRecordStore<K, V> replicatedRecordStore;
private final OperationService operationService;
private final Address callerAddress;
private final int chunkSize;
private ReplicatedRecord[] recordCache... | 1no label | hazelcast_src_main_java_com_hazelcast_replicatedmap_record_RemoteProvisionTask.java |
5,326 | public static AggregationStreams.Stream STREAM = new AggregationStreams.Stream() {
@Override
public UnmappedTerms readResult(StreamInput in) throws IOException {
UnmappedTerms buckets = new UnmappedTerms();
buckets.readFrom(in);
return buckets;
}
}; | 1no label | src_main_java_org_elasticsearch_search_aggregations_bucket_terms_UnmappedTerms.java |
145 | @Test
public class LongSerializerTest {
private static final int FIELD_SIZE = 8;
private static final Long OBJECT = 999999999999999999L;
private OLongSerializer longSerializer;
byte[] stream = new byte[FIELD_SIZE];
@BeforeClass
public void beforeClass() {
longSerializer = ... | 0true | commons_src_test_java_com_orientechnologies_common_serialization_types_LongSerializerTest.java |
449 | public class ClusterStatsRequestBuilder extends NodesOperationRequestBuilder<ClusterStatsRequest, ClusterStatsResponse, ClusterStatsRequestBuilder> {
public ClusterStatsRequestBuilder(ClusterAdminClient clusterClient) {
super((InternalClusterAdminClient) clusterClient, new ClusterStatsRequest());
}
... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_stats_ClusterStatsRequestBuilder.java |
5,865 | public class SourceLookup implements Map {
private AtomicReader reader;
private int docId = -1;
private BytesReference sourceAsBytes;
private Map<String, Object> source;
private XContentType sourceContentType;
public Map<String, Object> source() {
return source;
}
public XCo... | 1no label | src_main_java_org_elasticsearch_search_lookup_SourceLookup.java |
299 | new Thread() {
public void run() {
assertTrue(l.isLocked());
assertFalse(l.isLockedByCurrentThread());
assertEquals(1, l.getLockCount());
assertTrue(l.getRemainingLeaseTime() > 1000 * 30);
latch.countDown();
... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_lock_ClientLockTest.java |
5,368 | public class InternalStats extends MetricsAggregation.MultiValue implements Stats {
public final static Type TYPE = new Type("stats");
public final static AggregationStreams.Stream STREAM = new AggregationStreams.Stream() {
@Override
public InternalStats readResult(StreamInput in) throws IOExc... | 1no label | src_main_java_org_elasticsearch_search_aggregations_metrics_stats_InternalStats.java |
774 | public class CollectionReserveRemoveOperation extends CollectionOperation {
String transactionId;
private Data value;
private long reservedItemId = -1;
public CollectionReserveRemoveOperation() {
}
public CollectionReserveRemoveOperation(String name, long reservedItemId, Data value, String tr... | 0true | hazelcast_src_main_java_com_hazelcast_collection_txn_CollectionReserveRemoveOperation.java |
1,093 | public class RecyclerBenchmark {
private static final long NUM_RECYCLES = 5000000L;
private static final Random RANDOM = new Random(0);
private static long bench(final Recycler<?> recycler, long numRecycles, int numThreads) throws InterruptedException {
final AtomicLong recycles = new AtomicLong(n... | 0true | src_test_java_org_elasticsearch_benchmark_common_recycler_RecyclerBenchmark.java |
131 | class InitializerProposal extends CorrectionProposal {
private final class InitializerValueProposal
implements ICompletionProposal, ICompletionProposalExtension2 {
private final String text;
private final Image image;
private final int offset;
private Initiali... | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_correct_InitializerProposal.java |
763 | shardAction.execute(shardRequest, new ActionListener<MultiGetShardResponse>() {
@Override
public void onResponse(MultiGetShardResponse response) {
for (int i = 0; i < response.locations.size(); i++) {
responses.set(response.location... | 0true | src_main_java_org_elasticsearch_action_get_TransportMultiGetAction.java |
1,132 | public class OSQLMethodAsBoolean extends OAbstractSQLMethod {
public static final String NAME = "asboolean";
public OSQLMethodAsBoolean() {
super(NAME);
}
@Override
public Object execute(OIdentifiable iCurrentRecord, OCommandContext iContext, Object ioResult, Object[] iMethodParams) {
... | 1no label | core_src_main_java_com_orientechnologies_orient_core_sql_method_misc_OSQLMethodAsBoolean.java |
603 | public class GetSettingsResponse extends ActionResponse {
private ImmutableOpenMap<String, Settings> indexToSettings = ImmutableOpenMap.of();
public GetSettingsResponse(ImmutableOpenMap<String, Settings> indexToSettings) {
this.indexToSettings = indexToSettings;
}
GetSettingsResponse() {
... | 0true | src_main_java_org_elasticsearch_action_admin_indices_settings_get_GetSettingsResponse.java |
1,619 | class UpdateTask extends PrioritizedRunnable {
public final String source;
public final ClusterStateUpdateTask updateTask;
public final long addedAt = System.currentTimeMillis();
UpdateTask(String source, Priority priority, ClusterStateUpdateTask updateTask) {
super(pri... | 1no label | src_main_java_org_elasticsearch_cluster_service_InternalClusterService.java |
25 | public class DataDTOToMVELTranslatorTest extends TestCase {
private OrderItemFieldServiceImpl orderItemFieldService;
private CustomerFieldServiceImpl customerFieldService;
private OrderFieldServiceImpl orderFieldService;
private FulfillmentGroupFieldServiceImpl fulfillmentGroupFieldService;
@Overr... | 0true | admin_broadleaf-admin-module_src_test_java_org_broadleafcommerce_admin_web_rulebuilder_DataDTOToMVELTranslatorTest.java |
497 | public interface Catalog extends Serializable {
Long getId();
void setId(Long id);
String getName();
void setName(String name);
List<Site> getSites();
void setSites(List<Site> sites);
} | 0true | common_src_main_java_org_broadleafcommerce_common_site_domain_Catalog.java |
74 | public abstract class CallableClientRequest extends ClientRequest implements Callable {
@Override
final void process() throws Exception {
ClientEndpoint endpoint = getEndpoint();
try {
Object result = call();
endpoint.sendResponse(result, getCallId());
} catch (E... | 0true | hazelcast_src_main_java_com_hazelcast_client_CallableClientRequest.java |
387 | new Thread() {
public void run() {
if (mm.tryLock(key) == false) {
tryLockFailed.countDown();
}
}
}.start(); | 0true | hazelcast-client_src_test_java_com_hazelcast_client_multimap_ClientMultiMapLockTest.java |
125 | public class TestDirectMappedLogBuffer
{
class FileChannelWithChoppyDisk extends StoreFileChannel
{
ByteBuffer buff = ByteBuffer.allocate(1024);
private int chunkSize;
public FileChannelWithChoppyDisk(int writeThisMuchAtATime)
{
super( (FileChannel) null );
... | 0true | community_kernel_src_test_java_org_neo4j_kernel_impl_transaction_xaframework_TestDirectMappedLogBuffer.java |
684 | constructors[COLLECTION_SIZE] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {
public IdentifiedDataSerializable createNew(Integer arg) {
return new CollectionSizeOperation();
}
}; | 0true | hazelcast_src_main_java_com_hazelcast_collection_CollectionDataSerializerHook.java |
201 | public final class ExtendedMemoryIndex extends MemoryIndex {
public ExtendedMemoryIndex(boolean storeOffsets, long maxReusedBytes) {
super(storeOffsets, maxReusedBytes);
}
} | 0true | src_main_java_org_apache_lucene_index_memory_ExtendedMemoryIndex.java |
81 | class ChangeReferenceProposal extends CorrectionProposal
implements ICompletionProposalExtension {
private ChangeReferenceProposal(ProblemLocation problem,
String name, String pkg, TextFileChange change) {
super("Change reference to '" + name + "'" + pkg, change,
... | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_correct_ChangeReferenceProposal.java |
4,034 | public class MultiMatchQuery extends MatchQuery {
private boolean useDisMax = true;
private float tieBreaker;
public void setUseDisMax(boolean useDisMax) {
this.useDisMax = useDisMax;
}
public void setTieBreaker(float tieBreaker) {
this.tieBreaker = tieBreaker;
}
public M... | 1no label | src_main_java_org_elasticsearch_index_search_MultiMatchQuery.java |
575 | private static class InitialMembershipListenerImpl implements InitialMembershipListener {
private List<EventObject> events = Collections.synchronizedList(new LinkedList<EventObject>());
public void init(InitialMembershipEvent e) {
events.add(e);
}
public void memberAdd... | 0true | hazelcast_src_test_java_com_hazelcast_cluster_ClusterMembershipTest.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 |
651 | public class CategoryDaoDataProvider {
@DataProvider(name = "basicCategory")
public static Object[][] provideBasicCategory() {
Category category = new CategoryImpl();
category.setName("Yuban");
category.setDescription("Yuban");
category.setId(1001L);
return new Object[][... | 0true | integration_src_test_java_org_broadleafcommerce_core_catalog_CategoryDaoDataProvider.java |
543 | public enum HOOK_POSITION {
FIRST, EARLY, REGULAR, LATE, LAST
} | 0true | core_src_main_java_com_orientechnologies_orient_core_hook_ORecordHook.java |
1,190 | @edu.umd.cs.findbugs.annotations.SuppressWarnings("SE_BAD_FIELD")
public class MemberLeftException extends ExecutionException implements DataSerializable, RetryableException {
private Member member;
public MemberLeftException() {
}
public MemberLeftException(Member member) {
this.member = mem... | 1no label | hazelcast_src_main_java_com_hazelcast_core_MemberLeftException.java |
643 | public abstract class CollectionBackupAwareOperation extends CollectionOperation implements BackupAwareOperation {
protected CollectionBackupAwareOperation() {
}
protected CollectionBackupAwareOperation(String name) {
super(name);
}
@Override
public int getSyncBackupCount() {
... | 0true | hazelcast_src_main_java_com_hazelcast_collection_CollectionBackupAwareOperation.java |
1,522 | public class ValueGroupCountMapReduce {
public static final String PROPERTY = Tokens.makeNamespace(ValueGroupCountMapReduce.class) + ".property";
public static final String CLASS = Tokens.makeNamespace(ValueGroupCountMapReduce.class) + ".class";
public static final String TYPE = Tokens.makeNamespace(ValueG... | 1no label | titan-hadoop-parent_titan-hadoop-core_src_main_java_com_thinkaurelius_titan_hadoop_mapreduce_sideeffect_ValueGroupCountMapReduce.java |
114 | public class OLogManager {
private boolean debug = true;
private boolean info = true;
private boolean warn = true;
private boolean error = true;
private Level minimumLevel = Level.SEVERE;
pri... | 0true | commons_src_main_java_com_orientechnologies_common_log_OLogManager.java |
503 | public interface SiteService {
/**
* Find a site by its id.
* @param id
* @return
*/
public Site retrieveSiteById(Long id);
/**
* Find a site by its domain
* @param id
* @return
*/
public Site retrieveSiteByDomainName(String domain);
/**
* Save updates... | 0true | common_src_main_java_org_broadleafcommerce_common_site_service_SiteService.java |
268 | public class GetMemberUuidTask implements Callable<String>, DataSerializable, HazelcastInstanceAware{
private HazelcastInstance node;
public String call() throws Exception {
return node.getCluster().getLocalMember().getUuid();
}
public void writeData(ObjectDataOutput out) throws IOException {... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_executor_tasks_GetMemberUuidTask.java |
3,903 | public class NestedFilterParser implements FilterParser {
public static final String NAME = "nested";
@Inject
public NestedFilterParser() {
}
@Override
public String[] names() {
return new String[]{NAME, Strings.toCamelCase(NAME)};
}
@Override
public Filter parse(QueryPar... | 1no label | src_main_java_org_elasticsearch_index_query_NestedFilterParser.java |
2,839 | public final class PartitionStateGeneratorImpl implements PartitionStateGenerator {
private static final ILogger logger = Logger.getLogger(PartitionStateGenerator.class);
private static final float RANGE_CHECK_RATIO = 1.1f;
private static final int MAX_RETRY_COUNT = 3;
private static final int AGGRESSI... | 1no label | hazelcast_src_main_java_com_hazelcast_partition_impl_PartitionStateGeneratorImpl.java |
1,475 | public class RoutingNode implements Iterable<MutableShardRouting> {
private final String nodeId;
private final DiscoveryNode node;
private final List<MutableShardRouting> shards;
public RoutingNode(String nodeId, DiscoveryNode node) {
this(nodeId, node, new ArrayList<MutableShardRouting>());... | 0true | src_main_java_org_elasticsearch_cluster_routing_RoutingNode.java |
734 | public class DeleteByQueryResponse extends ActionResponse implements Iterable<IndexDeleteByQueryResponse> {
private Map<String, IndexDeleteByQueryResponse> indices = newHashMap();
DeleteByQueryResponse() {
}
@Override
public Iterator<IndexDeleteByQueryResponse> iterator() {
return indice... | 0true | src_main_java_org_elasticsearch_action_deletebyquery_DeleteByQueryResponse.java |
476 | public interface EventHandler<E> {
void handle(E event);
/**
* This method is called when registration request response is successfully returned from node.
*
* Note that this method will also be called while first registered node is dead
* and re-registering to a second node.
*/
... | 0true | hazelcast-client_src_main_java_com_hazelcast_client_spi_EventHandler.java |
538 | public static class MyXid implements Xid {
public int getFormatId() {
return 42;
}
@Override
public byte[] getGlobalTransactionId() {
return "GlobalTransactionId".getBytes();
}
@Override
public byte[] getBranchQualifier() {
... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_txn_ClientXaTest.java |
1,205 | intIntMap = build(type, limit, smartSize, availableProcessors, new Recycler.C<IntIntOpenHashMap>() {
@Override
public IntIntOpenHashMap newInstance(int sizing) {
return new IntIntOpenHashMap(size(sizing));
}
@Override
public void clear... | 0true | src_main_java_org_elasticsearch_cache_recycler_CacheRecycler.java |
1,301 | public class ClusterState implements ToXContent {
public interface Custom {
interface Factory<T extends Custom> {
String type();
T readFrom(StreamInput in) throws IOException;
void writeTo(T customState, StreamOutput out) throws IOException;
void toXCont... | 1no label | src_main_java_org_elasticsearch_cluster_ClusterState.java |
200 | public class Router {
private final LoadBalancer loadBalancer;
public Router(LoadBalancer loadBalancer) {
this.loadBalancer = loadBalancer;
}
public Address next() {
final MemberImpl member = (MemberImpl) loadBalancer.next();
if (member == null) {
return null;
... | 0true | hazelcast-client_src_main_java_com_hazelcast_client_connection_Router.java |
373 | public class AspectUtil {
public static Object exposeRootBean(Object managedBean) {
try {
if (AopUtils.isAopProxy(managedBean) && managedBean instanceof Advised) {
Advised advised = (Advised) managedBean;
managedBean = advised.getTargetSource().getTarget();
... | 0true | common_src_main_java_org_broadleafcommerce_common_jmx_AspectUtil.java |
5,124 | public abstract class Aggregator implements Releasable, ReaderContextAware {
/**
* Defines the nature of the aggregator's aggregation execution when nested in other aggregators and the buckets they create.
*/
public static enum BucketAggregationMode {
/**
* In this mode, a new aggre... | 1no label | src_main_java_org_elasticsearch_search_aggregations_Aggregator.java |
136 | class FindIf extends Visitor {
Tree.IfStatement result;
@Override
public void visit(Tree.IfStatement that) {
super.visit(that);
if (that.getIfClause()!=null &&
that... | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_correct_InvertIfElseProposal.java |
158 | public abstract class MultiPartitionClientRequest extends ClientRequest {
@Override
final void process() throws Exception {
ClientEndpoint endpoint = getEndpoint();
OperationFactory operationFactory = new OperationFactoryWrapper(createOperationFactory(), endpoint.getUuid());
Map<Integer... | 0true | hazelcast_src_main_java_com_hazelcast_client_MultiPartitionClientRequest.java |
574 | public abstract class AbstractVendorService {
private static final Log LOG = LogFactory.getLog(AbstractVendorService.class);
private static final String POST_METHOD = "POST";
protected InputStream postMessage(Map<String, String>content, URL destination, String encodeCharset) throws IOException {
H... | 0true | common_src_main_java_org_broadleafcommerce_common_vendor_service_AbstractVendorService.java |
529 | public class EnvironmentFactoryBean implements FactoryBean {
private String className;
public EnvironmentFactoryBean(String className) {
this.className = className;
}
public Object getObject() throws Exception {
return Class.forName(className).newInstance();
}
@SuppressWarnin... | 0true | common_src_main_java_org_broadleafcommerce_common_util_EnvironmentFactoryBean.java |
86 | public interface OConsoleReader {
public String readLine();
public void setConsole(OConsoleApplication console);
public OConsoleApplication getConsole();
} | 0true | commons_src_main_java_com_orientechnologies_common_console_OConsoleReader.java |
331 | new Thread() {
public void run() {
boolean result = map.tryPut("key1", "value3", 1, TimeUnit.SECONDS);
if (!result) {
latch.countDown();
}
}
}.start(); | 0true | hazelcast-client_src_test_java_com_hazelcast_client_map_ClientMapTest.java |
1,030 | public class Config {
private URL configurationUrl;
private File configurationFile;
private ClassLoader classLoader;
private Properties properties = new Properties();
private String instanceName = null;
private GroupConfig groupConfig = new GroupConfig();
private NetworkConfig network... | 1no label | hazelcast_src_main_java_com_hazelcast_config_Config.java |
1,396 | threadPool.executor(ThreadPool.Names.MANAGEMENT).execute(new Runnable() {
@Override
public void run() {
try {
if (!mdLock.tryAcquire(request.masterNodeTimeout().nanos(), TimeUnit.NANOSECONDS)) {
listener.onFailure(new ProcessClu... | 0true | src_main_java_org_elasticsearch_cluster_metadata_MetaDataCreateIndexService.java |
19 | static class ByteVertex extends Vertex {
private final LongObjectMap<ConcurrentSkipListSet<ByteEntry>> tx;
private final SortedSet<ByteEntry> set;
ByteVertex(long id, LongObjectMap<ConcurrentSkipListSet<ByteEntry>> tx) {
super(id);
this.tx = tx;
this.set... | 0true | titan-test_src_main_java_com_thinkaurelius_titan_TestByteBuffer.java |
641 | public class TransportIndicesStatusAction extends TransportBroadcastOperationAction<IndicesStatusRequest, IndicesStatusResponse, TransportIndicesStatusAction.IndexShardStatusRequest, ShardStatus> {
private final IndicesService indicesService;
private final RecoveryTarget peerRecoveryTarget;
@Inject
p... | 0true | src_main_java_org_elasticsearch_action_admin_indices_status_TransportIndicesStatusAction.java |
1,458 | public class DiscoveryNodes implements Iterable<DiscoveryNode> {
public static final DiscoveryNodes EMPTY_NODES = builder().build();
private final ImmutableOpenMap<String, DiscoveryNode> nodes;
private final ImmutableOpenMap<String, DiscoveryNode> dataNodes;
private final ImmutableOpenMap<String, Disc... | 1no label | src_main_java_org_elasticsearch_cluster_node_DiscoveryNodes.java |
274 | public final class ExceptionsHelper {
private static final ESLogger logger = Loggers.getLogger(ExceptionsHelper.class);
public static RuntimeException convertToRuntime(Throwable t) {
if (t instanceof RuntimeException) {
return (RuntimeException) t;
}
return new Elasticsearc... | 1no label | src_main_java_org_elasticsearch_ExceptionsHelper.java |
374 | public class PutRepositoryRequest extends AcknowledgedRequest<PutRepositoryRequest> {
private String name;
private String type;
private Settings settings = EMPTY_SETTINGS;
PutRepositoryRequest() {
}
/**
* Constructs a new put repository request with the provided name.
*/
publi... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_repositories_put_PutRepositoryRequest.java |
180 | public interface IDAuthority {
/**
* Returns a block of new ids in the form of {@link IDBlock}. It is guaranteed that
* the block of ids for the particular partition id is uniquely assigned,
* that is, the block of ids has not been previously and will not
* subsequently be assigned again when i... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_diskstorage_IDAuthority.java |
10 | private static class StreamLogger extends Thread {
private final BufferedReader reader;
private static final Logger log =
LoggerFactory.getLogger(StreamLogger.class);
private StreamLogger(InputStream is) {
this.reader = new BufferedReader(new InputStreamReader(i... | 0true | titan-hbase-parent_titan-hbase-core_src_test_java_com_thinkaurelius_titan_HBaseStorageSetup.java |
1,080 | public static enum Operation {
UPSERT,
INDEX,
DELETE,
NONE
} | 0true | src_main_java_org_elasticsearch_action_update_UpdateHelper.java |
4,943 | public class RestSearchAction extends BaseRestHandler {
@Inject
public RestSearchAction(Settings settings, Client client, RestController controller) {
super(settings, client);
controller.registerHandler(GET, "/_search", this);
controller.registerHandler(POST, "/_search", this);
... | 1no label | src_main_java_org_elasticsearch_rest_action_search_RestSearchAction.java |
415 | private static final class MultiExecutionCallbackWrapper implements MultiExecutionCallback {
private final AtomicInteger members;
private final MultiExecutionCallback multiExecutionCallback;
private final Map<Member, Object> values;
private MultiExecutionCallbackWrapper(int memberS... | 0true | hazelcast-client_src_main_java_com_hazelcast_client_proxy_ClientExecutorServiceProxy.java |
517 | MessageListener listener = new MessageListener() {
public void onMessage(Message message) {
latch.countDown();
}
}; | 0true | hazelcast-client_src_test_java_com_hazelcast_client_topic_ClientTopicTest.java |
693 | constructors[COLLECTION_SIZE] = new ConstructorFunction<Integer, Portable>() {
public Portable createNew(Integer arg) {
return new CollectionSizeRequest();
}
}; | 0true | hazelcast_src_main_java_com_hazelcast_collection_CollectionPortableHook.java |
572 | @RunWith(HazelcastParallelClassRunner.class)
@Category(QuickTest.class)
public class ClusterMembershipTest extends HazelcastTestSupport {
@Test
public void testMembershipListener() {
TestHazelcastInstanceFactory factory = createHazelcastInstanceFactory(2);
HazelcastInstance hz1 = factory.newHaz... | 0true | hazelcast_src_test_java_com_hazelcast_cluster_ClusterMembershipTest.java |
2,571 | clusterService.submitStateUpdateTask("zen-disco-join (elected_as_master)", Priority.URGENT, new ProcessedClusterStateUpdateTask() {
@Override
public ClusterState execute(ClusterState currentState) {
DiscoveryNodes.Builder builder = new Disc... | 1no label | src_main_java_org_elasticsearch_discovery_zen_ZenDiscovery.java |
2,894 | public static class GreaterLessPredicate extends EqualPredicate {
boolean equal;
boolean less;
public GreaterLessPredicate() {
}
public GreaterLessPredicate(String attribute, Comparable value, boolean equal, boolean less) {
super(attribute, value);
t... | 1no label | hazelcast_src_main_java_com_hazelcast_query_Predicates.java |
360 | public static class ExceptionThrowingMapper
implements Mapper<Integer, Integer, String, Integer> {
@Override
public void map(Integer key, Integer value, Context<String, Integer> context) {
throw new NullPointerException("BUMM!");
}
} | 0true | hazelcast-client_src_test_java_com_hazelcast_client_mapreduce_ClientMapReduceTest.java |
798 | public class PercolateShardRequest extends BroadcastShardOperationRequest {
private String documentType;
private BytesReference source;
private BytesReference docSource;
private boolean onlyCount;
public PercolateShardRequest() {
}
public PercolateShardRequest(String index, int shardId) {... | 1no label | src_main_java_org_elasticsearch_action_percolate_PercolateShardRequest.java |
1,943 | public class MapGetRequest extends KeyBasedClientRequest implements Portable, RetryableRequest, SecureRequest {
private String name;
private Data key;
private transient long startTime;
public MapGetRequest() {
}
public MapGetRequest(String name, Data key) {
this.name = name;
t... | 1no label | hazelcast_src_main_java_com_hazelcast_map_client_MapGetRequest.java |
1,130 | public class FulfillmentType implements Serializable, BroadleafEnumerationType {
private static final long serialVersionUID = 1L;
private static final Map<String, FulfillmentType> TYPES = new LinkedHashMap<String, FulfillmentType>();
public static final FulfillmentType DIGITAL = new FulfillmentType("DIGI... | 1no label | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_order_service_type_FulfillmentType.java |
82 | public class OConsoleApplication {
protected enum RESULT {
OK, ERROR, EXIT
};
protected InputStream in = System.in; // System.in;
protected PrintStream out = System.out;
protected PrintStream err = System.err;
pro... | 0true | commons_src_main_java_com_orientechnologies_common_console_OConsoleApplication.java |
137 | public final class ClientTypes {
public static final String JAVA = "JVM";
public static final String CSHARP = "CSP";
public static final String CPP = "CPP";
public static final String PYTHON = "PHY";
public static final String RUBY = "RBY";
private ClientTypes() {
}
} | 0true | hazelcast_src_main_java_com_hazelcast_client_ClientTypes.java |
400 | public class CreateSnapshotRequestBuilder extends MasterNodeOperationRequestBuilder<CreateSnapshotRequest, CreateSnapshotResponse, CreateSnapshotRequestBuilder> {
/**
* Constructs a new create snapshot request builder
*
* @param clusterAdminClient cluster admin client
*/
public CreateSnapsh... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_snapshots_create_CreateSnapshotRequestBuilder.java |
109 | public class OIOUtilsTest {
@Test
public void shouldGetTimeAsMilis() {
assertGetTimeAsMilis("2h", 2 * 3600 * 1000);
assertGetTimeAsMilis("500ms", 500);
assertGetTimeAsMilis("4d", 4 * 24 * 3600 * 1000);
assertGetTimeAsMilis("6w", 6l * 7 * 24 * 3600 * 1000);
}
private void assertGetTimeAsMilis(... | 0true | commons_src_test_java_com_orientechnologies_common_io_OIOUtilsTest.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.