Unnamed: 0 int64 0 6.45k | func stringlengths 37 161k | target class label 2
classes | project stringlengths 33 167 |
|---|---|---|---|
514 | public class SystemTime {
private static final TimeSource defaultTimeSource = new DefaultTimeSource();
private static TimeSource globalTimeSource = null;
private static final InheritableThreadLocal<TimeSource> localTimeSource = new InheritableThreadLocal<TimeSource>();
public static TimeSource getTime... | 0true | common_src_main_java_org_broadleafcommerce_common_time_SystemTime.java |
3,207 | public class ReplicatedMapDataSerializerHook
implements DataSerializerHook {
public static final int F_ID = FactoryIdHelper.getFactoryId(FactoryIdHelper.REPLICATED_MAP_DS_FACTORY, -22);
public static final int VECTOR = 0;
public static final int RECORD = 1;
public static final int REPL_UPDATE_... | 1no label | hazelcast_src_main_java_com_hazelcast_replicatedmap_operation_ReplicatedMapDataSerializerHook.java |
1,234 | public interface AdminClient {
/**
* A client allowing to perform actions/operations against the cluster.
*/
ClusterAdminClient cluster();
/**
* A client allowing to perform actions/operations against the indices.
*/
IndicesAdminClient indices();
} | 0true | src_main_java_org_elasticsearch_client_AdminClient.java |
737 | public class CollectionRemoveRequest extends CollectionRequest {
private Data value;
public CollectionRemoveRequest() {
}
public CollectionRemoveRequest(String name, Data value) {
super(name);
this.value = value;
}
@Override
protected Operation prepareOperation() {
... | 0true | hazelcast_src_main_java_com_hazelcast_collection_client_CollectionRemoveRequest.java |
537 | executorService.execute(new Runnable() {
public void run() {
try {
txn(client);
} catch (Exception e) {
e.printStackTrace();
} finally {
latch.countDown();
... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_txn_ClientXaTest.java |
1,329 | @ClusterScope(scope = Scope.TEST, numNodes = 0)
public class SpecificMasterNodesTests extends ElasticsearchIntegrationTest {
protected final ImmutableSettings.Builder settingsBuilder() {
return ImmutableSettings.builder().put("discovery.type", "zen");
}
@Test
public void simpleOnlyMasterNodeEl... | 0true | src_test_java_org_elasticsearch_cluster_SpecificMasterNodesTests.java |
683 | constructors[COLLECTION_REMOVE_BACKUP] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {
public IdentifiedDataSerializable createNew(Integer arg) {
return new CollectionRemoveBackupOperation();
}
}; | 0true | hazelcast_src_main_java_com_hazelcast_collection_CollectionDataSerializerHook.java |
1,479 | public class OSQLFunctionOut extends OSQLFunctionMove {
public static final String NAME = "out";
public OSQLFunctionOut() {
super(NAME, 0, -1);
}
@Override
protected Object move(final OrientBaseGraph graph, final OIdentifiable iRecord, final String[] iLabels) {
return v2v(graph, iRecord, Direction.O... | 1no label | graphdb_src_main_java_com_orientechnologies_orient_graph_sql_functions_OSQLFunctionOut.java |
1,557 | public static class Map extends Mapper<NullWritable, FaunusVertex, NullWritable, FaunusVertex> {
private Collection<Long> ids;
@Override
public void setup(final Mapper.Context context) throws IOException, InterruptedException {
//todo: make as list and double up repeats
... | 1no label | titan-hadoop-parent_titan-hadoop-core_src_main_java_com_thinkaurelius_titan_hadoop_mapreduce_transform_VertexMap.java |
832 | @Entity
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "BLC_ORDER_ITEM_DTL_ADJ")
@Cache(usage=CacheConcurrencyStrategy.NONSTRICT_READ_WRITE, region="blOrderElements")
@AdminPresentationMergeOverrides(
{
@AdminPresentationMergeOverride(name = "", mergeEntries =
@AdminPresentationMe... | 1no label | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_offer_domain_OrderItemPriceDetailAdjustmentImpl.java |
29 | static final class ThenAcceptBoth<T,U> extends Completion {
final CompletableFuture<? extends T> src;
final CompletableFuture<? extends U> snd;
final BiAction<? super T,? super U> fn;
final CompletableFuture<Void> dst;
final Executor executor;
ThenAcceptBoth(Completab... | 0true | src_main_java_jsr166e_CompletableFuture.java |
515 | public class OConfigurationException extends OException {
private static final long serialVersionUID = -8486291378415776372L;
public OConfigurationException(String message, Throwable cause) {
super(message, cause);
}
public OConfigurationException(String message) {
super(message);
}
} | 0true | core_src_main_java_com_orientechnologies_orient_core_exception_OConfigurationException.java |
131 | assertTrueEventually(new AssertTask() {
@Override
public void run() throws Exception {
assertEquals(1, clientService.getConnectedClients().size());
}
}, 4); | 0true | hazelcast-client_src_test_java_com_hazelcast_client_ClientServiceTest.java |
166 | public interface URLHandler extends Serializable{
public abstract Long getId();
public abstract void setId(Long id);
public abstract String getIncomingURL();
public abstract void setIncomingURL(String incomingURL);
public abstract String getNewURL();
public abstract void setNewURL(String ... | 0true | admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_url_domain_URLHandler.java |
141 | final class GenericClientExceptionConverter implements ClientExceptionConverter {
@Override
public Object convert(Throwable t) {
StringWriter s = new StringWriter();
t.printStackTrace(new PrintWriter(s));
String clazzName = t.getClass().getName();
return new GenericError(clazzNa... | 0true | hazelcast_src_main_java_com_hazelcast_client_GenericClientExceptionConverter.java |
263 | @Service("blEmailService")
public class EmailServiceImpl implements EmailService {
@Resource(name = "blEmailTrackingManager")
protected EmailTrackingManager emailTrackingManager;
@Resource(name = "blServerInfo")
protected ServerInfo serverInfo;
protected EmailServiceProducer emailServiceProducer;... | 0true | common_src_main_java_org_broadleafcommerce_common_email_service_EmailServiceImpl.java |
102 | static class Traverser<K,V> {
Node<K,V>[] tab; // current table; updated if resized
Node<K,V> next; // the next entry to use
TableStack<K,V> stack, spare; // to save/restore on ForwardingNodes
int index; // index of bin to use next
int baseIndex; ... | 0true | src_main_java_jsr166e_ConcurrentHashMapV8.java |
370 | public class GetRepositoriesRequestBuilder extends MasterNodeReadOperationRequestBuilder<GetRepositoriesRequest, GetRepositoriesResponse, GetRepositoriesRequestBuilder> {
/**
* Creates new get repository request builder
*
* @param clusterAdminClient cluster admin client
*/
public GetReposit... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_repositories_get_GetRepositoriesRequestBuilder.java |
643 | public class BroadleafResourceHttpRequestHandler extends ResourceHttpRequestHandler {
private static final Log LOG = LogFactory.getLog(BroadleafResourceHttpRequestHandler.class);
// XML Configured generated resource handlers
protected List<AbstractGeneratedResourceHandler> handlers;
@javax.ann... | 1no label | common_src_main_java_org_broadleafcommerce_common_web_resource_BroadleafResourceHttpRequestHandler.java |
646 | public class CollectionCompareAndRemoveOperation extends CollectionBackupAwareOperation {
private boolean retain;
private Set<Data> valueSet;
private Map<Long, Data> itemIdMap;
public CollectionCompareAndRemoveOperation() {
}
public CollectionCompareAndRemoveOperation(String name, boolean ret... | 0true | hazelcast_src_main_java_com_hazelcast_collection_CollectionCompareAndRemoveOperation.java |
535 | static enum FrameworkType {
PERSISTENCE,
GENERAL,
LOGGING,
UI,
XML,
UTILITY,
SCHEDULER,
CACHE,
RULES,
ECOMMERCE,
OTHER
} | 0true | common_src_main_java_org_broadleafcommerce_common_util_PomEvaluator.java |
171 | public interface BaseTransactionConfigurable extends BaseTransaction {
/**
* Get the configuration for this transaction
*
* @return
*/
public BaseTransactionConfig getConfiguration();
} | 0true | titan-core_src_main_java_com_thinkaurelius_titan_diskstorage_BaseTransactionConfigurable.java |
37 | @Component("blFulfillmentTypeOptionsExtensionListener")
public class FulfillmentTypeEnumOptionsExtensionListener extends AbstractRuleBuilderEnumOptionsExtensionListener {
@Override
protected Map<String, Class<? extends BroadleafEnumerationType>> getValuesToGenerate() {
Map<String, Class<? extends Broad... | 0true | admin_broadleaf-admin-module_src_main_java_org_broadleafcommerce_admin_web_rulebuilder_service_options_FulfillmentTypeEnumOptionsExtensionListener.java |
93 | private static class ResourceElement
{
private Xid xid = null;
private XAResource resource = null;
private int status;
ResourceElement( Xid xid, XAResource resource )
{
this.xid = xid;
this.resource = resource;
status = RS_ENLISTED;
... | 0true | community_kernel_src_main_java_org_neo4j_kernel_impl_transaction_ReadOnlyTransactionImpl.java |
1,240 | public interface InternalClusterAdminClient extends ClusterAdminClient, InternalGenericClient {
} | 0true | src_main_java_org_elasticsearch_client_internal_InternalClusterAdminClient.java |
1,175 | public class OQueryOperatorContainsKey extends OQueryOperatorEqualityNotNulls {
public OQueryOperatorContainsKey() {
super("CONTAINSKEY", 5, false);
}
@Override
@SuppressWarnings("unchecked")
protected boolean evaluateExpression(final OIdentifiable iRecord, final OSQLFilterCondition iCondition, final Ob... | 1no label | core_src_main_java_com_orientechnologies_orient_core_sql_operator_OQueryOperatorContainsKey.java |
1,492 | public class AddIncrementallyTests extends ElasticsearchAllocationTestCase {
private final ESLogger logger = Loggers.getLogger(AddIncrementallyTests.class);
@Test
public void testAddNodesAndIndices() {
ImmutableSettings.Builder settings = settingsBuilder();
settings.put("cluster.routing.all... | 0true | src_test_java_org_elasticsearch_cluster_routing_allocation_AddIncrementallyTests.java |
512 | public class MinuteType implements Serializable, BroadleafEnumerationType {
private static final long serialVersionUID = 1L;
private static final Map<String, MinuteType> TYPES = new LinkedHashMap<String, MinuteType>();
public static final MinuteType ZERO = new MinuteType("0", "00");
public static fi... | 1no label | common_src_main_java_org_broadleafcommerce_common_time_MinuteType.java |
12 | static final class AscendingSubMap<K, V> extends NavigableSubMap<K, V> {
private static final long serialVersionUID = 912986545866124060L;
AscendingSubMap(final OMVRBTree<K, V> m, final boolean fromStart, final K lo, final boolean loInclusive, final boolean toEnd,
K hi, final boolean hiInclusive) {
... | 0true | commons_src_main_java_com_orientechnologies_common_collection_OMVRBTree.java |
277 | @RunWith(HazelcastSerialClassRunner.class)
@Category(SlowTest.class)
public class ClientExecutionPoolSizeLowTest {
static final int COUNT = 1000;
static HazelcastInstance server1;
static HazelcastInstance server2;
static HazelcastInstance client;
static IMap map;
@Before
public void init()... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_io_ClientExecutionPoolSizeLowTest.java |
848 | new Visitor() {
private boolean needsParens = false;
@Override
public void visit(Tree.Variable that) {
if (that.getType() instanceof Tree.SyntheticVariable) {
TypedDeclaration od =
that.getDeclarationModel().get... | 1no label | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_refactor_InlineRefactoring.java |
1,209 | public static enum Type {
SOFT_THREAD_LOCAL {
@Override
<T> Recycler<T> build(Recycler.C<T> c, int limit, int availableProcessors) {
return threadLocal(softFactory(dequeFactory(c, limit)));
}
},
THREAD_LOCAL {
@Override
... | 0true | src_main_java_org_elasticsearch_cache_recycler_CacheRecycler.java |
715 | constructors[COLLECTION_ADD_LISTENER] = new ConstructorFunction<Integer, Portable>() {
public Portable createNew(Integer arg) {
return new CollectionAddListenerRequest();
}
}; | 0true | hazelcast_src_main_java_com_hazelcast_collection_CollectionPortableHook.java |
332 | public class TransportNodesInfoAction extends TransportNodesOperationAction<NodesInfoRequest, NodesInfoResponse, TransportNodesInfoAction.NodeInfoRequest, NodeInfo> {
private final NodeService nodeService;
@Inject
public TransportNodesInfoAction(Settings settings, ClusterName clusterName, ThreadPool threa... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_node_info_TransportNodesInfoAction.java |
469 | @Entity
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name="BLC_SANDBOX")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE, region="blSandBoxElements")
public class SandBoxImpl implements SandBox {
private static final Log LOG = LogFactory.getLog(SandBoxImpl.class);
private static final long serialV... | 1no label | common_src_main_java_org_broadleafcommerce_common_sandbox_domain_SandBoxImpl.java |
1,137 | public class TermsAggregationSearchBenchmark {
static long COUNT = SizeValue.parseSizeValue("2m").singles();
static int BATCH = 1000;
static int QUERY_WARMUP = 10;
static int QUERY_COUNT = 100;
static int NUMBER_OF_TERMS = 200;
static int NUMBER_OF_MULTI_VALUE_TERMS = 10;
static int STRING_... | 0true | src_test_java_org_elasticsearch_benchmark_search_aggregations_TermsAggregationSearchBenchmark.java |
716 | class ShardCountResponse extends BroadcastShardOperationResponse {
private long count;
ShardCountResponse() {
}
public ShardCountResponse(String index, int shardId, long count) {
super(index, shardId);
this.count = count;
}
public long getCount() {
return this.count;... | 0true | src_main_java_org_elasticsearch_action_count_ShardCountResponse.java |
747 | public abstract class TxnCollectionRequest extends BaseTransactionRequest implements Portable, SecureRequest {
String name;
Data value;
public TxnCollectionRequest() {
}
public TxnCollectionRequest(String name) {
this.name = name;
}
public TxnCollectionRequest(String name, Data v... | 0true | hazelcast_src_main_java_com_hazelcast_collection_client_TxnCollectionRequest.java |
175 | static final class AdaptedCallable<T> extends ForkJoinTask<T>
implements RunnableFuture<T> {
final Callable<? extends T> callable;
T result;
AdaptedCallable(Callable<? extends T> callable) {
if (callable == null) throw new NullPointerException();
this.callable... | 0true | src_main_java_jsr166y_ForkJoinTask.java |
108 | private class Worker extends OtherThreadExecutor<State>
{
public Worker()
{
super( "other thread", new State( getGraphDb() ) );
}
void beginTx() throws Exception
{
execute( new WorkerCommand<State, Void>()
{
@Ov... | 0true | community_kernel_src_test_java_org_neo4j_kernel_impl_transaction_TestManualAcquireLock.java |
2,665 | final class DataSerializer implements StreamSerializer<DataSerializable> {
private static final String FACTORY_ID = "com.hazelcast.DataSerializerHook";
private final Map<Integer, DataSerializableFactory> factories = new HashMap<Integer, DataSerializableFactory>();
DataSerializer(Map<Integer, ? extends Da... | 1no label | hazelcast_src_main_java_com_hazelcast_nio_serialization_DataSerializer.java |
305 | public enum OGlobalConfiguration {
// ENVIRONMENT
ENVIRONMENT_DUMP_CFG_AT_STARTUP("environment.dumpCfgAtStartup", "Dumps the configuration at application startup", Boolean.class,
Boolean.FALSE),
ENVIRONMENT_CONCURRENT("environment.concurrent",
"Specifies if running in multi-thread environment. Settin... | 0true | core_src_main_java_com_orientechnologies_orient_core_config_OGlobalConfiguration.java |
1,145 | public class ChildSearchBenchmark {
public static void main(String[] args) throws Exception {
Settings settings = settingsBuilder()
.put("index.refresh_interval", "-1")
.put("gateway.type", "local")
.put(SETTING_NUMBER_OF_SHARDS, 1)
.put(SETTI... | 0true | src_test_java_org_elasticsearch_benchmark_search_child_ChildSearchBenchmark.java |
5,808 | public class FastVectorHighlighter implements Highlighter {
private static final SimpleBoundaryScanner DEFAULT_BOUNDARY_SCANNER = new SimpleBoundaryScanner();
private static final String CACHE_KEY = "highlight-fsv";
private final Boolean termVectorMultiValue;
@Inject
public FastVectorHighlighter(... | 1no label | src_main_java_org_elasticsearch_search_highlight_FastVectorHighlighter.java |
1,374 | doWithBindings(new ActionOnMethodBinding() {
@Override
public void doWithBinding(IType declaringClassModel,
ReferenceBinding declaringClass,
MethodBinding method) {
if (CharOperation.equals(declaringClass.re... | 1no label | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_core_model_mirror_JDTMethod.java |
327 | public class MergeException extends Exception {
private static final long serialVersionUID = 1L;
public MergeException() {
super();
}
public MergeException(String arg0, Throwable arg1) {
super(arg0, arg1);
}
public MergeException(String arg0) {
super(arg0);
}
... | 0true | common_src_main_java_org_broadleafcommerce_common_extensibility_context_merge_exceptions_MergeException.java |
522 | public class ORecordNotFoundException extends OException {
private static final long serialVersionUID = -265573123216968L;
public ORecordNotFoundException(final String string) {
super(string);
}
public ORecordNotFoundException(final String message, final Throwable cause) {
super(message, cause);
}
} | 0true | core_src_main_java_com_orientechnologies_orient_core_exception_ORecordNotFoundException.java |
325 | public class NodesInfoRequest extends NodesOperationRequest<NodesInfoRequest> {
private boolean settings = true;
private boolean os = true;
private boolean process = true;
private boolean jvm = true;
private boolean threadPool = true;
private boolean network = true;
private boolean transpor... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_node_info_NodesInfoRequest.java |
5,406 | public static class SortedAndUnique extends Bytes implements ReaderContextAware {
private final FieldDataSource delegate;
private final MetaData metaData;
private BytesValues bytesValues;
public SortedAndUnique(FieldDataSource delegate) {
this.de... | 1no label | src_main_java_org_elasticsearch_search_aggregations_support_FieldDataSource.java |
4,964 | public static PathTrie.Decoder REST_DECODER = new PathTrie.Decoder() {
@Override
public String decode(String value) {
return RestUtils.decodeComponent(value);
}
}; | 1no label | src_main_java_org_elasticsearch_rest_support_RestUtils.java |
2,079 | public class EmailOpenTrackingServlet extends HttpServlet {
private static final long serialVersionUID = 1L;
private static final Log LOG = LogFactory.getLog(EmailOpenTrackingServlet.class);
/*
* (non-Javadoc)
* @see javax.servlet.http.HttpServlet#doGet(javax.servlet.http.HttpServletRequest , j... | 1no label | core_broadleaf-profile-web_src_main_java_org_broadleafcommerce_profile_web_email_EmailOpenTrackingServlet.java |
1,527 | public class ShardVersioningTests extends ElasticsearchAllocationTestCase {
private final ESLogger logger = Loggers.getLogger(ShardVersioningTests.class);
@Test
public void simple() {
AllocationService strategy = createAllocationService(settingsBuilder().put("cluster.routing.allocation.allow_rebal... | 0true | src_test_java_org_elasticsearch_cluster_routing_allocation_ShardVersioningTests.java |
1,229 | @Entity
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "BLC_SHIPPING_RATE")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE, region="blStandardElements")
@Deprecated
public class ShippingRateImpl implements ShippingRate {
private static final long serialVersionUID = 1L;
@Id
@GeneratedVal... | 1no label | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_pricing_domain_ShippingRateImpl.java |
6 | static final class AndCompletion extends Completion {
final CompletableFuture<?> src;
final CompletableFuture<?> snd;
final CompletableFuture<Void> dst;
AndCompletion(CompletableFuture<?> src,
CompletableFuture<?> snd,
CompletableFuture<Voi... | 0true | src_main_java_jsr166e_CompletableFuture.java |
1,471 | public class PlainShardIterator extends PlainShardsIterator implements ShardIterator {
private final ShardId shardId;
/**
* Creates a {@link PlainShardIterator} instance that iterates over a subset of the given shards
* this the a given <code>shardId</code>.
*
* @param shardId shard id of ... | 1no label | src_main_java_org_elasticsearch_cluster_routing_PlainShardIterator.java |
4,193 | private class RestoreContext extends Context {
private final Store store;
private final RecoveryStatus recoveryStatus;
/**
* Constructs new restore context
*
* @param snapshotId snapshot id
* @param shardId shard to be restored
* @... | 1no label | src_main_java_org_elasticsearch_index_snapshots_blobstore_BlobStoreIndexShardRepository.java |
778 | private final SchemaCache.StoreRetrieval typeCacheRetrieval = new SchemaCache.StoreRetrieval() {
@Override
public Long retrieveSchemaByName(String typeName, StandardTitanTx tx) {
tx.getTxHandle().disableCache(); //Disable cache to make sure that schema is only cached once and cache evic... | 1no label | titan-core_src_main_java_com_thinkaurelius_titan_graphdb_database_StandardTitanGraph.java |
204 | public class ClientConnection implements Connection, Closeable {
private static final int SLEEP_TIME = 10;
private volatile boolean live = true;
private final ILogger logger = Logger.getLogger(ClientConnection.class);
private final ClientWriteHandler writeHandler;
private final ClientReadHandle... | 1no label | hazelcast-client_src_main_java_com_hazelcast_client_connection_nio_ClientConnection.java |
591 | public interface OIndexCallback {
Object getDocumentValueToIndex(ODocument iDocument);
} | 0true | core_src_main_java_com_orientechnologies_orient_core_index_OIndexCallback.java |
3,135 | public class QueueProxyImpl<E> extends QueueProxySupport implements IQueue<E>, InitializingObject {
public QueueProxyImpl(String name, QueueService queueService, NodeEngine nodeEngine) {
super(name, queueService, nodeEngine);
}
@Override
public LocalQueueStats getLocalQueueStats() {
re... | 1no label | hazelcast_src_main_java_com_hazelcast_queue_proxy_QueueProxyImpl.java |
94 | class ConvertToConcatenationProposal extends CorrectionProposal {
private ConvertToConcatenationProposal(String name, Change change) {
super(name, change, null);
}
static void addConvertToConcatenationProposal(Collection<ICompletionProposal> proposals,
IFile file, Tree.CompilationUnit ... | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_correct_ConvertToConcatenationProposal.java |
774 | mappingUpdatedAction.execute(mappingRequest, new ActionListener<MappingUpdatedAction.MappingUpdatedResponse>() {
@Override
public void onResponse(MappingUpdatedAction.MappingUpdatedResponse mappingUpdatedResponse) {
// all is well
latch... | 0true | src_main_java_org_elasticsearch_action_index_TransportIndexAction.java |
1,223 | public abstract class OStorageEmbedded extends OStorageAbstract {
protected final ORecordLockManager lockManager;
protected final String PROFILER_CREATE_RECORD;
protected final String PROFILER_READ_RECORD;
protected final String PROFILER_UPDATE_RECORD;
protected final Strin... | 1no label | core_src_main_java_com_orientechnologies_orient_core_storage_OStorageEmbedded.java |
458 | public interface ResourceBundlingService {
/**
* For the given versioned bundle name, returns a Resource that holds the contents of the combined, and
* possibly minified (if enabled) bundle.
*
* @param versionedBundleName
* @return the Resource
*/
public Resource getBundle(String... | 0true | common_src_main_java_org_broadleafcommerce_common_resource_service_ResourceBundlingService.java |
422 | public class ClientMapReduceProxy
extends ClientProxy
implements JobTracker {
private final ConcurrentMap<String, ClientTrackableJob> trackableJobs = new ConcurrentHashMap<String, ClientTrackableJob>();
public ClientMapReduceProxy(String instanceName, String serviceName, String objectName) {
... | 1no label | hazelcast-client_src_main_java_com_hazelcast_client_proxy_ClientMapReduceProxy.java |
894 | 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_TransportSearchScrollScanAction.java |
1,066 | class TransportHandler extends BaseTransportRequestHandler<MultiTermVectorsRequest> {
@Override
public MultiTermVectorsRequest newInstance() {
return new MultiTermVectorsRequest();
}
@Override
public void messageReceived(final MultiTermVectorsRequest request, fi... | 0true | src_main_java_org_elasticsearch_action_termvector_TransportMultiTermVectorsAction.java |
764 | public class ListSetOperation extends CollectionBackupAwareOperation {
private int index;
private Data value;
private long itemId = -1;
private long oldItemId = -1;
public ListSetOperation() {
}
public ListSetOperation(String name, int index, Data value) {
super(name);
thi... | 0true | hazelcast_src_main_java_com_hazelcast_collection_list_ListSetOperation.java |
567 | trackedSet.addChangeListener(new OMultiValueChangeListener<String, String>() {
public void onAfterRecordChanged(final OMultiValueChangeEvent<String, String> event) {
firedEvents.add(event);
}
}); | 0true | core_src_test_java_com_orientechnologies_orient_core_index_OCompositeIndexDefinitionTest.java |
2,496 | EntryListener listener = new EntryAdapter() {
@Override
public void onEntryEvent(EntryEvent event) {
send(event);
}
private void send(EntryEvent event) {
if (endpoint.live()) {
Data key = clientEngine.toData(eve... | 1no label | hazelcast_src_main_java_com_hazelcast_multimap_operations_client_AddEntryListenerRequest.java |
1,376 | public static class Builder {
private String alias;
private CompressedString filter;
private String indexRouting;
private String searchRouting;
public Builder(String alias) {
this.alias = alias;
}
public Builder(AliasMetaData aliasMetaData) ... | 0true | src_main_java_org_elasticsearch_cluster_metadata_AliasMetaData.java |
9 | public class OLazyIteratorListWrapper<T> implements OLazyIterator<T> {
private ListIterator<T> underlying;
public OLazyIteratorListWrapper(ListIterator<T> iUnderlying) {
underlying = iUnderlying;
}
public boolean hasNext() {
return underlying.hasNext();
}
public T next() {
return underlying.next();
}
... | 0true | commons_src_main_java_com_orientechnologies_common_collection_OLazyIteratorListWrapper.java |
68 | public interface TitanProperty extends TitanRelation {
/**
* Returns the property key of this property
*
* @return property key of this property
* @see PropertyKey
*/
public PropertyKey getPropertyKey();
/**
* Returns the vertex on which this property is incident.
*
... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_core_TitanProperty.java |
154 | public class TransactionMonitorTest
{
@Test
public void shouldCountCommittedTransactions() throws Exception
{
GraphDatabaseService db = new TestGraphDatabaseFactory().newImpermanentDatabase();
Monitors monitors = ((GraphDatabaseAPI) db).getDependencyResolver().resolveDependency( Monitors.cl... | 0true | community_kernel_src_test_java_org_neo4j_kernel_impl_transaction_xaframework_TransactionMonitorTest.java |
993 | @SuppressWarnings("serial")
public abstract class ORecordSerializerStringAbstract implements ORecordSerializer, Serializable {
protected static final OProfilerMBean PROFILER = Orient.instance().getProfiler();
private static final char DECIMAL_SEPARATOR = '.';
private static final Stri... | 1no label | core_src_main_java_com_orientechnologies_orient_core_serialization_serializer_record_string_ORecordSerializerStringAbstract.java |
231 | @Documented
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface OId {
} | 0true | core_src_main_java_com_orientechnologies_orient_core_annotation_OId.java |
1,148 | class ParentDocument {
final String parentId;
final String[] queryValues;
int indexCounter;
ParentDocument(String parentId, String[] queryValues) {
this.parentId = parentId;
this.queryValues = queryValues;
this.indexCounter = -1;
}
} | 0true | src_test_java_org_elasticsearch_benchmark_search_child_ParentChildIndexGenerator.java |
25 | private class HAMClusterListener extends ClusterListener.Adapter
{
@Override
public void enteredCluster( ClusterConfiguration configuration )
{
Map<InstanceId, ClusterMember> newMembers = new HashMap<InstanceId, ClusterMember>();
for ( InstanceId memberClusterUri ... | 1no label | enterprise_ha_src_main_java_org_neo4j_kernel_ha_cluster_member_ClusterMembers.java |
1,171 | BaseTransportResponseHandler<BenchmarkMessageResponse> handler = new BaseTransportResponseHandler<BenchmarkMessageResponse>() {
@Override
public BenchmarkMessageResponse newInstance() {
return new BenchmarkMe... | 0true | src_test_java_org_elasticsearch_benchmark_transport_TransportBenchmark.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 |
483 | public interface ResponseStream {
Object read() throws Exception;
void end() throws IOException;
} | 0true | hazelcast-client_src_main_java_com_hazelcast_client_spi_ResponseStream.java |
879 | public class TransportSearchScanAction extends TransportSearchTypeAction {
@Inject
public TransportSearchScanAction(Settings settings, ThreadPool threadPool, ClusterService clusterService,
SearchServiceTransportAction searchService, SearchPhaseController searchPhaseControll... | 0true | src_main_java_org_elasticsearch_action_search_type_TransportSearchScanAction.java |
794 | public class PercolateRequestBuilder extends BroadcastOperationRequestBuilder<PercolateRequest, PercolateResponse, PercolateRequestBuilder> {
private PercolateSourceBuilder sourceBuilder;
public PercolateRequestBuilder(Client client) {
super((InternalClient) client, new PercolateRequest());
}
... | 0true | src_main_java_org_elasticsearch_action_percolate_PercolateRequestBuilder.java |
47 | public static class Builder
{
private final File root;
private final Provider provider = clusterOfSize( 3 );
private final Map<String, String> commonConfig = emptyMap();
private final Map<Integer, Map<String,String>> instanceConfig = new HashMap<>();
private HighlyAvailab... | 1no label | enterprise_ha_src_test_java_org_neo4j_test_ha_ClusterManager.java |
1,474 | public class CyclicPathFilterMap {
public static final String CLASS = Tokens.makeNamespace(CyclicPathFilterMap.class) + ".class";
public enum Counters {
PATHS_FILTERED
}
public static Configuration createConfiguration(final Class<? extends Element> klass) {
final Configuration configu... | 1no label | titan-hadoop-parent_titan-hadoop-core_src_main_java_com_thinkaurelius_titan_hadoop_mapreduce_filter_CyclicPathFilterMap.java |
1,555 | public class VertexMap {
public static final String IDS = Tokens.makeNamespace(VertexMap.class) + ".ids";
public enum Counters {
VERTICES_PROCESSED
}
public static Configuration createConfiguration(final long... ids) {
final String[] idStrings = new String[ids.length];
for (in... | 1no label | titan-hadoop-parent_titan-hadoop-core_src_main_java_com_thinkaurelius_titan_hadoop_mapreduce_transform_VertexMap.java |
32 | public class Values extends AbstractCollection<V> {
@Override
public Iterator<V> iterator() {
return new ValueIterator(getFirstEntry());
}
public Iterator<V> inverseIterator() {
return new ValueInverseIterator(getLastEntry());
}
@Override
public int size() {
return OMVR... | 0true | commons_src_main_java_com_orientechnologies_common_collection_OMVRBTree.java |
452 | @ClusterScope(scope = ElasticsearchIntegrationTest.Scope.TEST, numNodes = 0)
public class ClusterStatsTests extends ElasticsearchIntegrationTest {
private void assertCounts(ClusterStatsNodes.Counts counts, int total, int masterOnly, int dataOnly, int masterData, int client) {
assertThat(counts.getTotal(), ... | 0true | src_test_java_org_elasticsearch_action_admin_cluster_stats_ClusterStatsTests.java |
292 | public class PrimaryMissingActionException extends ElasticsearchException {
public PrimaryMissingActionException(String message) {
super(message);
}
} | 0true | src_main_java_org_elasticsearch_action_PrimaryMissingActionException.java |
245 | private static class AnalyzingComparator implements Comparator<BytesRef> {
private final boolean hasPayloads;
public AnalyzingComparator(boolean hasPayloads) {
this.hasPayloads = hasPayloads;
}
private final ByteArrayDataInput readerA = new ByteArrayDataInput();
private final ByteArrayDat... | 0true | src_main_java_org_apache_lucene_search_suggest_analyzing_XAnalyzingSuggester.java |
1,452 | public class DiscoveryNode implements Streamable, Serializable {
public static boolean localNode(Settings settings) {
if (settings.get("node.local") != null) {
return settings.getAsBoolean("node.local", false);
}
if (settings.get("node.mode") != null) {
String nodeMo... | 0true | src_main_java_org_elasticsearch_cluster_node_DiscoveryNode.java |
130 | static final class CreateAdder
implements ConcurrentHashMapV8.Fun<Object, LongAdder> {
public LongAdder apply(Object unused) { return new LongAdder(); }
} | 0true | src_main_java_jsr166e_LongAdderTable.java |
751 | public class TxnSetAddRequest extends TxnCollectionRequest {
public TxnSetAddRequest() {
}
public TxnSetAddRequest(String name, Data value) {
super(name, value);
}
@Override
public Object innerCall() throws Exception {
return getEndpoint().getTransactionContext(txnId).getSet(n... | 0true | hazelcast_src_main_java_com_hazelcast_collection_client_TxnSetAddRequest.java |
525 | client.executeTransaction(new TransactionalTask<Boolean>() {
public Boolean execute(TransactionalTaskContext context) throws TransactionException {
try {
final TransactionalMap<String, Integer> txMap = context.getMap(mapName);
txMap.getForUpdat... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_txn_ClientTxnMapTest.java |
753 | public class CopyFileRefactoringParticipant extends CopyParticipant {
private IFile file;
@Override
protected boolean initialize(Object element) {
file = (IFile) element;
return getProcessor() instanceof CopyProcessor &&
getProjectTypeChecker(file.getProject())!=null &&
... | 1no label | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_refactor_CopyFileRefactoringParticipant.java |
231 | PostingsHighlighter highlighter = new PostingsHighlighter() {
@Override
protected char getMultiValuedSeparator(String field) {
assert field.equals("body");
return '\u2029';
}
}; | 0true | src_test_java_org_apache_lucene_search_postingshighlight_XPostingsHighlighterTests.java |
6,023 | public static class CandidateSet {
public Candidate[] candidates;
public final Candidate originalTerm;
public CandidateSet(Candidate[] candidates, Candidate originalTerm) {
this.candidates = candidates;
this.originalTerm = originalTerm;
}
pub... | 1no label | src_main_java_org_elasticsearch_search_suggest_phrase_DirectCandidateGenerator.java |
443 | class NotSerializableDocument extends ODocument {
private static final long serialVersionUID = 1L;
private void writeObject(ObjectOutputStream oos) throws IOException {
throw new NotSerializableException();
}
} | 0true | core_src_test_java_com_orientechnologies_orient_core_db_record_TrackedSetTest.java |
3,855 | public static class Parser implements FilterParser {
@Inject
public Parser() {
}
@Override
public String[] names() {
return new String[]{NAME, Strings.toCamelCase(NAME)};
}
@Override
public Filter parse(QueryParseContext parseContext) th... | 1no label | src_main_java_org_elasticsearch_index_query_GeohashCellFilter.java |
225 | public class RuntimeEnvironmentPropertiesManagerTest extends BaseTest {
@Resource(name = "blConfigurationManager")
RuntimeEnvironmentPropertiesManager configurationManager;
@Test
public void testPropertyOnly() throws Exception {
String s = configurationManager.getProperty("detect.sequence.gene... | 0true | integration_src_test_java_org_broadleafcommerce_common_config_RuntimeEnvironmentPropertiesManagerTest.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.