Unnamed: 0 int64 0 6.45k | func stringlengths 29 253k | target class label 2
classes | project stringlengths 36 167 |
|---|---|---|---|
1,556 | assertTrueEventually(new AssertTask() {
@Override
public void run() throws Exception {
Hashtable table = new Hashtable();
table.put("type", type);
table.put("name", name);
table.put("instance", hz.getName());
... | 0true | hazelcast_src_test_java_com_hazelcast_jmx_MBeanTest.java |
1,249 | public class DefaultSchemaProvider implements SchemaProvider {
public static final DefaultSchemaProvider INSTANCE = new DefaultSchemaProvider();
private DefaultSchemaProvider() {}
@Override
public EdgeLabelDefinition getEdgeLabel(String name) {
return new EdgeLabelDefinition(name, FaunusEleme... | 1no label | titan-hadoop-parent_titan-hadoop-core_src_main_java_com_thinkaurelius_titan_hadoop_DefaultSchemaProvider.java |
586 | nodeEngine.getExecutionService().execute(ExecutionService.SYSTEM_EXECUTOR, new Runnable() {
public void run() {
if (added) {
service.memberAdded(event);
} else {
service.memberRemo... | 0true | hazelcast_src_main_java_com_hazelcast_cluster_ClusterServiceImpl.java |
925 | final Object myNextVal = makeDbCall(iMyDb, new ODbRelatedCall<Object>() {
public Object call() {
return myIterator.next();
}
}); | 0true | core_src_main_java_com_orientechnologies_orient_core_record_impl_ODocumentHelper.java |
2,136 | public class LoggerInfoStream extends PrintStream {
public static final String SUFFIX = ".lucene";
/**
* Creates a new {@link LoggerInfoStream} based on the provided logger
* by appending to its <tt>NAME</tt> the {@link #SUFFIX}.
*/
public static LoggerInfoStream getInfoStream(ESLogger logg... | 0true | src_main_java_org_elasticsearch_common_lucene_LoggerInfoStream.java |
379 | public class ClusterRerouteAction extends ClusterAction<ClusterRerouteRequest, ClusterRerouteResponse, ClusterRerouteRequestBuilder> {
public static final ClusterRerouteAction INSTANCE = new ClusterRerouteAction();
public static final String NAME = "cluster/reroute";
private ClusterRerouteAction() {
... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_reroute_ClusterRerouteAction.java |
298 | new Thread() {
public void run() {
l.forceUnlock();
latch.countDown();
}
}.start(); | 0true | hazelcast-client_src_test_java_com_hazelcast_client_lock_ClientLockTest.java |
214 | interface SocketChannelWrapperFactory {
SocketChannelWrapper wrapSocketChannel(SocketChannel socketChannel, boolean client) throws Exception;
} | 0true | hazelcast-client_src_main_java_com_hazelcast_client_connection_nio_ClientConnectionManagerImpl.java |
997 | public static class Group {
public static class Name {
public static final String Pricing = "FulfillmentGroupImpl_Pricing";
}
public static class Order {
public static final int General = 1000;
public static final int Pricing =... | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_order_domain_FulfillmentGroupImpl.java |
31 | static final class ThenCombine<T,U,V> extends Completion {
final CompletableFuture<? extends T> src;
final CompletableFuture<? extends U> snd;
final BiFun<? super T,? super U,? extends V> fn;
final CompletableFuture<V> dst;
final Executor executor;
ThenCombine(Complet... | 0true | src_main_java_jsr166e_CompletableFuture.java |
2,891 | public class NGramTokenizerFactoryTests extends ElasticsearchTokenStreamTestCase {
@Test
public void testParseTokenChars() {
final Index index = new Index("test");
final String name = "ngr";
final Settings indexSettings = ImmutableSettings.EMPTY;
for (String tokenChars : Arrays.... | 0true | src_test_java_org_elasticsearch_index_analysis_NGramTokenizerFactoryTests.java |
295 | public abstract class DistributedStoreManager extends AbstractStoreManager {
public enum Deployment {
/**
* Connects to storage backend over the network or some other connection with significant latency
*/
REMOTE,
/**
* Connects to storage backend over localhost... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_diskstorage_common_DistributedStoreManager.java |
2,632 | ping(new PingListener() {
@Override
public void onPing(PingResponse[] pings) {
response.set(pings);
latch.countDown();
}
}, timeout); | 0true | src_main_java_org_elasticsearch_discovery_zen_ping_multicast_MulticastZenPing.java |
1,190 | .moduleManagerFactory(new ModuleManagerFactory(){
@Override
public ModuleManager createModuleManager(Context context) {
return new JDTModuleManager(context, javaProject);
}
}); | 1no label | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_core_builder_CeylonBuilder.java |
1,034 | public class OCommandExecutorSQLDelegate extends OCommandExecutorSQLAbstract {
protected OCommandExecutorSQLAbstract delegate;
@SuppressWarnings("unchecked")
public OCommandExecutorSQLDelegate parse(final OCommandRequest iCommand) {
if (iCommand instanceof OCommandRequestText) {
final OCommandRequestTe... | 0true | core_src_main_java_com_orientechnologies_orient_core_sql_OCommandExecutorSQLDelegate.java |
2,717 | static class AllocateDangledRequest extends TransportRequest {
DiscoveryNode fromNode;
IndexMetaData[] indices;
AllocateDangledRequest() {
}
AllocateDangledRequest(DiscoveryNode fromNode, IndexMetaData[] indices) {
this.fromNode = fromNode;
this.ind... | 0true | src_main_java_org_elasticsearch_gateway_local_state_meta_LocalAllocateDangledIndices.java |
923 | return new Comparator<PromotableOrderItemPriceDetail>() {
@Override
public int compare(PromotableOrderItemPriceDetail o1, PromotableOrderItemPriceDetail o2) {
Money price = o1.getPromotableOrderItem().getPriceBeforeAdjustments(applyToSalePrice);
Money pric... | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_offer_service_processor_ItemOfferProcessorImpl.java |
1,151 | public class OSQLMethodPrefix extends OAbstractSQLMethod {
public static final String NAME = "prefix";
public OSQLMethodPrefix() {
super(NAME, 1);
}
@Override
public Object execute(OIdentifiable iRecord, OCommandContext iContext, Object ioResult, Object[] iMethodParams) {
final Ob... | 1no label | core_src_main_java_com_orientechnologies_orient_core_sql_method_misc_OSQLMethodPrefix.java |
174 | @SuppressWarnings("serial")
public class OModifiableInteger extends Number implements Comparable<OModifiableInteger> {
public int value;
public OModifiableInteger() {
value = 0;
}
public OModifiableInteger(final int iValue) {
value = iValue;
}
public void setValue(final int iValue) {
value = iValue;
}
... | 0true | commons_src_main_java_com_orientechnologies_common_types_OModifiableInteger.java |
70 | public abstract class AllPartitionsClientRequest 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_AllPartitionsClientRequest.java |
1,168 | @Entity
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "BLC_ORDER_PAYMENT_DETAILS")
@AdminPresentationMergeOverrides(
{
@AdminPresentationMergeOverride(name = "", mergeEntries =
@AdminPresentationMergeEntry(propertyType = PropertyType.AdminPresentation.READONLY,
... | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_payment_domain_PaymentInfoDetailImpl.java |
811 | public interface OSchema {
public int countClasses();
public OClass createClass(final Class<?> iClass);
public OClass createClass(final Class<?> iClass, final int iDefaultClusterId);
public OClass createClass(final String iClassName);
public OClass createClass(final String iClassName, final OClass iSuper... | 0true | core_src_main_java_com_orientechnologies_orient_core_metadata_schema_OSchema.java |
1,720 | EntryListener<Object, Object> listener = new EntryListener<Object, Object>() {
public void entryAdded(EntryEvent<Object, Object> event) {
addedKey[0] = event.getKey();
addedValue[0] = event.getValue();
}
public void entryRemoved(EntryEvent<Obj... | 0true | hazelcast_src_test_java_com_hazelcast_map_BasicMapTest.java |
4,666 | private final PercolatorType scoringPercolator = new PercolatorType() {
@Override
public byte id() {
return 0x05;
}
@Override
public ReduceResult reduce(List<PercolateShardResponse> shardResults) {
return matchPercolator.reduce(shardResults);
... | 1no label | src_main_java_org_elasticsearch_percolator_PercolatorService.java |
330 | public interface ODataSegmentStrategy {
/**
* Tells to the database in what data segment put the new record. Default strategy always use data segment 0 (default).
*
* @param iDatabase
* Database instance
* @param iRecord
* Record istance
* @return The data segment id
*/
public int ... | 0true | core_src_main_java_com_orientechnologies_orient_core_db_ODataSegmentStrategy.java |
3,510 | final class SmartIndexNameSearchAnalyzer extends AnalyzerWrapper {
private final Analyzer defaultAnalyzer;
SmartIndexNameSearchAnalyzer(Analyzer defaultAnalyzer) {
this.defaultAnalyzer = defaultAnalyzer;
}
@Override
protected Analyzer getWrappedAnalyzer(String ... | 0true | src_main_java_org_elasticsearch_index_mapper_MapperService.java |
2,605 | threadPool.generic().execute(new Runnable() {
@Override
public void run() {
for (Listener listener : listeners) {
listener.onNodeFailure(node, reason);
}
}
}); | 0true | src_main_java_org_elasticsearch_discovery_zen_fd_NodesFaultDetection.java |
148 | public class TestXaLogicalLogFiles {
@Test
public void shouldDetectLegacyLogs() throws Exception
{
FileSystemAbstraction fs = mock(FileSystemAbstraction.class);
when( fs.fileExists( new File( "logical_log.active" ) )).thenReturn( false );
when(fs.fileExists(new File("logical_log"))... | 0true | community_kernel_src_test_java_org_neo4j_kernel_impl_transaction_xaframework_TestXaLogicalLogFiles.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 |
644 | @Test
public class OPropertyMapIndexDefinitionTest {
private OPropertyMapIndexDefinition propertyIndexByKey;
private OPropertyMapIndexDefinition propertyIndexByValue;
private OPropertyMapIndexDefinition propertyIndexByIntegerKey;
private final Map<String, Integer> mapToTest = new HashMap<String, Integer>();
... | 0true | core_src_test_java_com_orientechnologies_orient_core_index_OPropertyMapIndexDefinitionTest.java |
234 | public interface CLevelInterface {
public org.apache.cassandra.db.ConsistencyLevel getDB();
public org.apache.cassandra.thrift.ConsistencyLevel getThrift();
public com.netflix.astyanax.model.ConsistencyLevel getAstyanax();
} | 0true | titan-cassandra_src_main_java_com_thinkaurelius_titan_diskstorage_cassandra_CLevelInterface.java |
1,430 | public final class CleanupService {
private final String name;
private final ScheduledExecutorService executor;
public CleanupService(final String name) {
this.name = name;
executor = Executors.newSingleThreadScheduledExecutor(new CleanupThreadFactory());
}
public void registerCac... | 0true | hazelcast-hibernate_hazelcast-hibernate4_src_main_java_com_hazelcast_hibernate_local_CleanupService.java |
1,115 | public class UpdateCartException extends Exception {
private static final long serialVersionUID = 1L;
public UpdateCartException() {
super();
}
public UpdateCartException(String message, Throwable cause) {
super(message, cause);
}
public UpdateCartException(String message) {
... | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_order_service_exception_UpdateCartException.java |
1,664 | EntryListener<Object, Object> listener = new EntryListener<Object, Object>() {
public void entryAdded(EntryEvent<Object, Object> event) {
addedKey[0] = event.getKey();
addedValue[0] = event.getValue();
}
public void entryRemoved(EntryEvent<Obj... | 0true | hazelcast_src_test_java_com_hazelcast_map_BasicMapTest.java |
12 | static final class AsyncCombine<T,U,V> extends Async {
final T arg1;
final U arg2;
final BiFun<? super T,? super U,? extends V> fn;
final CompletableFuture<V> dst;
AsyncCombine(T arg1, U arg2,
BiFun<? super T,? super U,? extends V> fn,
... | 0true | src_main_java_jsr166e_CompletableFuture.java |
553 | abstract class ClientTxnProxy implements TransactionalObject {
final String objectName;
final TransactionContextProxy proxy;
ClientTxnProxy(String objectName, TransactionContextProxy proxy) {
this.objectName = objectName;
this.proxy = proxy;
}
final <T> T invoke(ClientRequest requ... | 0true | hazelcast-client_src_main_java_com_hazelcast_client_txn_proxy_ClientTxnProxy.java |
1,936 | @Service("blFormBuilderService")
public class FormBuilderServiceImpl implements FormBuilderService {
private static final Log LOG = LogFactory.getLog(FormBuilderServiceImpl.class);
@Resource(name = "blAdminEntityService")
protected AdminEntityService adminEntityService;
@Resource (name = "blAdmin... | 1no label | admin_broadleaf-open-admin-platform_src_main_java_org_broadleafcommerce_openadmin_web_service_FormBuilderServiceImpl.java |
1,085 | public class IndexAliasesTests extends ElasticsearchIntegrationTest {
@Test
public void testAliases() throws Exception {
logger.info("--> creating index [test]");
createIndex("test");
ensureGreen();
logger.info("--> aliasing index [test] with [alias1]");
assertAcked(ad... | 0true | src_test_java_org_elasticsearch_aliases_IndexAliasesTests.java |
196 | InjectedTransactionValidator ALLOW_ALL = new InjectedTransactionValidator(){
@Override
public void assertInjectionAllowed( long lastCommittedTxWhenTransactionStarted ) throws XAException
{
// Always ok.
}
}; | 0true | community_kernel_src_main_java_org_neo4j_kernel_impl_transaction_xaframework_InjectedTransactionValidator.java |
884 | public class PromotableCandidateItemOfferImpl extends AbstractPromotionRounding implements PromotableCandidateItemOffer, OfferHolder {
private static final long serialVersionUID = 1L;
protected Offer offer;
protected PromotableOrder promotableOrder;
protected Money potentialSavings;
protected i... | 1no label | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_offer_service_discount_domain_PromotableCandidateItemOfferImpl.java |
5,788 | public class VersionFetchSubPhase implements FetchSubPhase {
@Override
public Map<String, ? extends SearchParseElement> parseElements() {
return ImmutableMap.of("version", new VersionParseElement());
}
@Override
public boolean hitsExecutionNeeded(SearchContext context) {
return fal... | 1no label | src_main_java_org_elasticsearch_search_fetch_version_VersionFetchSubPhase.java |
139 | public class DistributedObjectListenerRequest extends CallableClientRequest implements RetryableRequest {
public DistributedObjectListenerRequest() {
}
@Override
public Object call() throws Exception {
ProxyService proxyService = clientEngine.getProxyService();
String registrationId = ... | 1no label | hazelcast_src_main_java_com_hazelcast_client_DistributedObjectListenerRequest.java |
1,571 | public static class Multi extends Decision {
private final List<Decision> decisions = Lists.newArrayList();
/**
* Add a decission to this {@link Multi}decision instance
* @param decision {@link Decision} to add
* @return {@link Multi}decision instance with the given deci... | 0true | src_main_java_org_elasticsearch_cluster_routing_allocation_decider_Decision.java |
1,724 | public class Iterators2Tests extends ElasticsearchTestCase {
public void testDeduplicateSorted() {
final List<String> list = Lists.newArrayList();
for (int i = randomInt(100); i >= 0; --i) {
final int frequency = randomIntBetween(1, 10);
final String s = randomAsciiOfLength(... | 0true | src_test_java_org_elasticsearch_common_collect_Iterators2Tests.java |
1,775 | public class EnvelopeBuilder extends ShapeBuilder {
public static final GeoShapeType TYPE = GeoShapeType.ENVELOPE;
protected Coordinate topLeft;
protected Coordinate bottomRight;
public EnvelopeBuilder topLeft(Coordinate topLeft) {
this.topLeft = topLeft;
return this;
}
publ... | 0true | src_main_java_org_elasticsearch_common_geo_builders_EnvelopeBuilder.java |
983 | public static class Group {
public static class Name {
}
public static class Order {
}
} | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_order_domain_DiscreteOrderItemImpl.java |
68 | static class NodeHolder {
Node node;
public NodeHolder(Node node) {
this.node = node;
}
public NodeHolder getSub(String name) {
if (node != null) {
for (org.w3c.dom.Node node : new AbstractXmlConfigHelper.IterableNodeList(this.node.getChildNo... | 1no label | hazelcast-cloud_src_main_java_com_hazelcast_aws_utility_CloudyUtility.java |
3,715 | public static class TypeParser implements Mapper.TypeParser {
@Override
public Mapper.Builder parse(String name, Map<String, Object> node, ParserContext parserContext) throws MapperParsingException {
IpFieldMapper.Builder builder = ipField(name);
parseNumberField(builder, nam... | 0true | src_main_java_org_elasticsearch_index_mapper_ip_IpFieldMapper.java |
1,704 | public abstract class OServerCommandAbstract implements OServerCommand {
protected OServer server;
/**
* Default constructor. Disable cache of content at HTTP level
*/
public OServerCommandAbstract() {
}
@Override
public boolean beforeExecute(final OHttpRequest iRequest, OHttpResponse iResponse) th... | 1no label | server_src_main_java_com_orientechnologies_orient_server_network_protocol_http_command_OServerCommandAbstract.java |
1,509 | public class OObjectEntityClassHandler extends OEntityManagerClassHandler {
private static final OObjectEntityClassHandler instance = new OObjectEntityClassHandler();
@Override
public void registerEntityClass(Class<?> iClass) {
if (!OObjectEntitySerializer.isToSerialize(iClass) && !iClass.isEnum())
re... | 0true | object_src_main_java_com_orientechnologies_orient_object_entity_OObjectEntityClassHandler.java |
524 | public class FlushAction extends IndicesAction<FlushRequest, FlushResponse, FlushRequestBuilder> {
public static final FlushAction INSTANCE = new FlushAction();
public static final String NAME = "indices/flush";
private FlushAction() {
super(NAME);
}
@Override
public FlushResponse new... | 0true | src_main_java_org_elasticsearch_action_admin_indices_flush_FlushAction.java |
1,388 | public abstract class HibernateStatisticsTestSupport extends HibernateTestSupport {
protected SessionFactory sf;
protected SessionFactory sf2;
@Before
public void postConstruct() {
sf = createSessionFactory(getCacheProperties());
sf2 = createSessionFactory(getCacheProperties());
}
... | 0true | hazelcast-hibernate_hazelcast-hibernate4_src_test_java_com_hazelcast_hibernate_HibernateStatisticsTestSupport.java |
2,887 | @AnalysisSettingsRequired
public class MappingCharFilterFactory extends AbstractCharFilterFactory {
private final NormalizeCharMap normMap;
@Inject
public MappingCharFilterFactory(Index index, @IndexSettings Settings indexSettings, Environment env, @Assisted String name, @Assisted Settings settings) {
... | 0true | src_main_java_org_elasticsearch_index_analysis_MappingCharFilterFactory.java |
295 | .addSelectionChangedListener(new ISelectionChangedListener() {
@Override
public void selectionChanged(SelectionChangedEvent event) {
if (!restoring) {
IRegion r = RestorePreviousSelectionAction.this.editor.getSelection();
... | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_editor_RestorePreviousSelectionAction.java |
242 | private static class KeyIterationPredicate implements Predicate<Row<ByteBuffer, ByteBuffer>> {
@Override
public boolean apply(@Nullable Row<ByteBuffer, ByteBuffer> row) {
return (row != null) && row.getColumns().size() > 0;
}
} | 0true | titan-cassandra_src_main_java_com_thinkaurelius_titan_diskstorage_cassandra_astyanax_AstyanaxKeyColumnValueStore.java |
1,414 | clusterService.submitStateUpdateTask("remove-index-template [" + request.name + "]", Priority.URGENT, new TimeoutClusterStateUpdateTask() {
@Override
public TimeValue timeout() {
return request.masterTimeout;
}
@Override
public void o... | 0true | src_main_java_org_elasticsearch_cluster_metadata_MetaDataIndexTemplateService.java |
1,019 | applyTailIndexes(lastIndexValuesMajor, new IndexValuesResultListener() {
@Override
public boolean addResult(OIdentifiable value) {
result.add(value);
return true;
}
}); | 0true | core_src_main_java_com_orientechnologies_orient_core_sql_OChainedIndexProxy.java |
1,536 | public class ManagedConnectionFactoryImpl extends JcaBase implements ManagedConnectionFactory, ResourceAdapterAssociation {
private static final long serialVersionUID = -4889598421534961926L;
/**
* Identity generator
*/
private static final AtomicInteger ID_GEN = new AtomicInteger();
/**
... | 0true | hazelcast-ra_hazelcast-jca_src_main_java_com_hazelcast_jca_ManagedConnectionFactoryImpl.java |
2,619 | return AccessController.doPrivileged(new PrivilegedAction<Unsafe>() {
@Override
public Unsafe run() {
try {
Class<Unsafe> type = Unsafe.class;
try {
Field field = type.getDeclaredF... | 1no label | hazelcast_src_main_java_com_hazelcast_nio_UnsafeHelper.java |
1,249 | Collections.sort(bufferPoolLRU, new Comparator<OMMapBufferEntry>() {
public int compare(final OMMapBufferEntry o1, final OMMapBufferEntry o2) {
return (int) (o1.getLastUsed() - o2.getLastUsed());
}
}); | 0true | core_src_main_java_com_orientechnologies_orient_core_storage_fs_OMMapManagerOld.java |
2,009 | protected enum STORE_EVENTS {
STORE, STORE_ALL, DELETE, DELETE_ALL, LOAD, LOAD_ALL, LOAD_ALL_KEYS
} | 0true | hazelcast_src_test_java_com_hazelcast_map_mapstore_MapStoreTest.java |
2,389 | interface BigArray extends Releasable {
/** Return the length of this array. */
public long size();
} | 0true | src_main_java_org_elasticsearch_common_util_BigArray.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 |
4,077 | public class TopChildrenQuery extends Query {
private static final ParentDocComparator PARENT_DOC_COMP = new ParentDocComparator();
private final CacheRecycler cacheRecycler;
private final String parentType;
private final String childType;
private final ScoreType scoreType;
private final int f... | 1no label | src_main_java_org_elasticsearch_index_search_child_TopChildrenQuery.java |
182 | {
@Override
public void notify( DataSourceRegistrationListener listener )
{
listener.unregisteredDataSource( dataSource );
}
} ); | 0true | community_kernel_src_main_java_org_neo4j_kernel_impl_transaction_XaDataSourceManager.java |
1,468 | static class AttributesRoutings {
public final ImmutableList<ShardRouting> withSameAttribute;
public final ImmutableList<ShardRouting> withoutSameAttribute;
public final int totalSize;
AttributesRoutings(ImmutableList<ShardRouting> withSameAttribute, ImmutableList<ShardRouting> wit... | 0true | src_main_java_org_elasticsearch_cluster_routing_IndexShardRoutingTable.java |
1,509 | public class CartStateInterceptor implements WebRequestInterceptor {
@Resource(name = "blCartStateRequestProcessor")
protected CartStateRequestProcessor cartStateProcessor;
@Override
public void preHandle(WebRequest request) throws Exception {
cartStateProcessor.process(request);
}
@O... | 0true | core_broadleaf-framework-web_src_main_java_org_broadleafcommerce_core_web_order_security_CartStateInterceptor.java |
1,146 | @edu.umd.cs.findbugs.annotations.SuppressWarnings("SE_BAD_FIELD")
public class EntryEvent<K, V> extends EventObject {
private static final long serialVersionUID = -2296203982913729851L;
protected final EntryEventType entryEventType;
protected K key;
protected V oldValue;
protected V value;
... | 1no label | hazelcast_src_main_java_com_hazelcast_core_EntryEvent.java |
3,161 | public interface AtomicNumericFieldData extends AtomicFieldData<ScriptDocValues> {
LongValues getLongValues();
DoubleValues getDoubleValues();
} | 0true | src_main_java_org_elasticsearch_index_fielddata_AtomicNumericFieldData.java |
1,458 | public class OCommandExecutorSQLDeleteEdge extends OCommandExecutorSQLSetAware implements OCommandResultListener {
public static final String NAME = "DELETE EDGE";
private ORecordId rid;
private String fromExpr;
private String toExpr;
private int removed = 0;... | 1no label | graphdb_src_main_java_com_orientechnologies_orient_graph_sql_OCommandExecutorSQLDeleteEdge.java |
1,265 | @ClusterScope(scope = ElasticsearchIntegrationTest.Scope.TEST, numNodes = 0, transportClientRatio = 1.0)
public class TransportClientTests extends ElasticsearchIntegrationTest {
@Test
public void testPickingUpChangesInDiscoveryNode() {
String nodeName = cluster().startNode(ImmutableSettings.builder().p... | 0true | src_test_java_org_elasticsearch_client_transport_TransportClientTests.java |
971 | abstract class BaseLockOperation extends AbstractOperation
implements PartitionAwareOperation, IdentifiedDataSerializable {
public static final long DEFAULT_LOCK_TTL = Long.MAX_VALUE;
public static final int ANY_THREAD = 0;
protected ObjectNamespace namespace;
protected Data key;
protected... | 0true | hazelcast_src_main_java_com_hazelcast_concurrent_lock_operations_BaseLockOperation.java |
2,055 | public final class StaticInjectionRequest implements Element {
private final Object source;
private final Class<?> type;
StaticInjectionRequest(Object source, Class<?> type) {
this.source = checkNotNull(source, "source");
this.type = checkNotNull(type, "type");
}
public Object getS... | 0true | src_main_java_org_elasticsearch_common_inject_spi_StaticInjectionRequest.java |
168 | private static class TestXaCommand extends XaCommand
{
private final int totalSize;
public TestXaCommand( int totalSize )
{
this.totalSize = totalSize;
}
@Override
public void execute()
{ // Do nothing
}
@Override
... | 0true | community_kernel_src_test_java_org_neo4j_kernel_impl_transaction_xaframework_TestLogPruneStrategy.java |
2,023 | public class DefaultBindingScopingVisitor<V> implements BindingScopingVisitor<V> {
/**
* Default visit implementation. Returns {@code null}.
*/
protected V visitOther() {
return null;
}
public V visitEagerSingleton() {
return visitOther();
}
public V visitScope(Scope... | 0true | src_main_java_org_elasticsearch_common_inject_spi_DefaultBindingScopingVisitor.java |
882 | public class PromotableCandidateFulfillmentGroupOfferImpl implements PromotableCandidateFulfillmentGroupOffer {
private static final long serialVersionUID = 1L;
protected HashMap<OfferItemCriteria, List<PromotableOrderItem>> candidateQualifiersMap = new HashMap<OfferItemCriteria, List<PromotableOrderItem>... | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_offer_service_discount_domain_PromotableCandidateFulfillmentGroupOfferImpl.java |
2,368 | public class TrackableJobFuture<V>
extends AbstractCompletableFuture<V>
implements TrackableJob<V>, JobCompletableFuture<V> {
private final String name;
private final String jobId;
private final JobTracker jobTracker;
private final Collator collator;
private final CountDownLatch lat... | 1no label | hazelcast_src_main_java_com_hazelcast_mapreduce_impl_task_TrackableJobFuture.java |
1,830 | public interface MapInterceptor extends Serializable {
/**
* Intercept get operation before returning value.
* Return another object to change the return value of get(..)
* Returning null will cause the get(..) operation return original value, namely return null if you do not want to change anything... | 0true | hazelcast_src_main_java_com_hazelcast_map_MapInterceptor.java |
1,517 | public static class Map extends Mapper<NullWritable, FaunusVertex, NullWritable, FaunusVertex> {
private final ScriptEngine engine = new FaunusGremlinScriptEngine();
private SafeMapperOutputs outputs;
private Text textWritable = new Text();
@Override
public void setup(final... | 1no label | titan-hadoop-parent_titan-hadoop-core_src_main_java_com_thinkaurelius_titan_hadoop_mapreduce_sideeffect_ScriptMap.java |
4,158 | public class InternalIndexShard extends AbstractIndexShardComponent implements IndexShard {
private final ThreadPool threadPool;
private final IndexSettingsService indexSettingsService;
private final MapperService mapperService;
private final IndexQueryParserService queryParserService;
private fina... | 1no label | src_main_java_org_elasticsearch_index_shard_service_InternalIndexShard.java |
377 | public interface LocaleDao {
/**
* @return The locale for the passed in code
*/
public Locale findLocaleByCode(String localeCode);
/**
* Returns the page template with the passed in id.
*
* @return The default locale
*/
public Locale findDefaultLocale();
/**
* R... | 0true | common_src_main_java_org_broadleafcommerce_common_locale_dao_LocaleDao.java |
5,930 | public class SortParseElement implements SearchParseElement {
public static final SortField SORT_SCORE = new SortField(null, SortField.Type.SCORE);
private static final SortField SORT_SCORE_REVERSE = new SortField(null, SortField.Type.SCORE, true);
private static final SortField SORT_DOC = new SortField(nu... | 1no label | src_main_java_org_elasticsearch_search_sort_SortParseElement.java |
2,925 | public class PreBuiltTokenFilterFactoryFactory implements TokenFilterFactoryFactory {
private final TokenFilterFactory tokenFilterFactory;
public PreBuiltTokenFilterFactoryFactory(TokenFilterFactory tokenFilterFactory) {
this.tokenFilterFactory = tokenFilterFactory;
}
@Override
public Tok... | 1no label | src_main_java_org_elasticsearch_index_analysis_PreBuiltTokenFilterFactoryFactory.java |
1,856 | private static class RootModule implements Module {
final Stage stage;
private RootModule(Stage stage) {
this.stage = checkNotNull(stage, "stage");
}
public void configure(Binder binder) {
binder = binder.withSource(SourceProvider.UNKNOWN_SOURCE);
... | 0true | src_main_java_org_elasticsearch_common_inject_InjectorShell.java |
39 | public class ModuleCompletions {
static final class ModuleDescriptorProposal extends CompletionProposal {
ModuleDescriptorProposal(int offset, String prefix, String moduleName) {
super(offset, prefix, MODULE,
"module " + moduleName,
"module ... | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_complete_ModuleCompletions.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 |
5,352 | public class InternalAvg extends MetricsAggregation.SingleValue implements Avg {
public final static Type TYPE = new Type("avg");
public final static AggregationStreams.Stream STREAM = new AggregationStreams.Stream() {
@Override
public InternalAvg readResult(StreamInput in) throws IOException ... | 1no label | src_main_java_org_elasticsearch_search_aggregations_metrics_avg_InternalAvg.java |
1,315 | public final class ExecutionCallbackAdapter implements Callback<Object> {
private final ExecutionCallback executionCallback;
public ExecutionCallbackAdapter(ExecutionCallback executionCallback) {
this.executionCallback = executionCallback;
}
@Override
public void notify(Object response) {... | 0true | hazelcast_src_main_java_com_hazelcast_executor_ExecutionCallbackAdapter.java |
1,530 | public interface HazelcastConnectionFactory extends ConnectionFactory {
/** @return access to the real bridging object to access Hazelcast's infrastructure
* @see HazelcastConnection
*/
HazelcastConnection getConnection() throws ResourceException;
/** @return access to the real bridging object to access Hazelc... | 0true | hazelcast-ra_hazelcast-jca_src_main_java_com_hazelcast_jca_HazelcastConnectionFactory.java |
1,036 | protected static class TestDoc {
final public String id;
final public TestFieldSetting[] fieldSettings;
final public String[] fieldContent;
public String index = "test";
public String type = "type1";
public TestDoc(String id, TestFieldSetting[] fieldSettings, String[... | 0true | src_test_java_org_elasticsearch_action_termvector_AbstractTermVectorTests.java |
733 | public class DeleteByQueryRequestBuilder extends IndicesReplicationOperationRequestBuilder<DeleteByQueryRequest, DeleteByQueryResponse, DeleteByQueryRequestBuilder> {
private QuerySourceBuilder sourceBuilder;
public DeleteByQueryRequestBuilder(Client client) {
super((InternalClient) client, new Delete... | 0true | src_main_java_org_elasticsearch_action_deletebyquery_DeleteByQueryRequestBuilder.java |
1,517 | final class NodeShutdownLatch {
private final Map<String, HazelcastInstanceImpl> registrations;
private final Semaphore latch;
private final MemberImpl localMember;
NodeShutdownLatch(final Node node) {
localMember = node.localMember;
Collection<MemberImpl> memberList = node.clusterSe... | 0true | hazelcast_src_main_java_com_hazelcast_instance_NodeShutdownLatch.java |
1,342 | completableFuture.andThen(new ExecutionCallback() {
@Override
public void onResponse(Object response) {
reference2.set(response);
latch2.countDown();
}
@Override
public void onFailure(Thr... | 0true | hazelcast_src_test_java_com_hazelcast_executor_ExecutorServiceTest.java |
137 | public class NoOpLogicalLog extends XaLogicalLog
{
public NoOpLogicalLog( Logging logging )
{
super( null, null, null, null, null, new Monitors(), logging, null, null, null, 10000l, null );
}
@Override
synchronized void open() throws IOException
{
super.open(); //To change bo... | 0true | community_kernel_src_main_java_org_neo4j_kernel_impl_transaction_xaframework_NoOpLogicalLog.java |
1,908 | public class DataDTOToMVELTranslator {
public String createMVEL(String entityKey, DataDTO dataDTO, RuleBuilderFieldService fieldService)
throws MVELTranslationException {
StringBuffer sb = new StringBuffer();
buildMVEL(dataDTO, sb, entityKey, null, fieldService);
String response... | 1no label | admin_broadleaf-open-admin-platform_src_main_java_org_broadleafcommerce_openadmin_web_rulebuilder_DataDTOToMVELTranslator.java |
1,605 | public class ClusterSerializationTests extends ElasticsearchAllocationTestCase {
@Test
public void testClusterStateSerialization() throws Exception {
MetaData metaData = MetaData.builder()
.put(IndexMetaData.builder("test").numberOfShards(10).numberOfReplicas(1))
.build(... | 0true | src_test_java_org_elasticsearch_cluster_serialization_ClusterSerializationTests.java |
1,808 | interface ConstructionProxy<T> {
/**
* Constructs an instance of {@code T} for the given arguments.
*/
T newInstance(Object... arguments) throws InvocationTargetException;
/**
* Returns the injection point for this constructor.
*/
InjectionPoint getInjectionPoint();
/**
*... | 0true | src_main_java_org_elasticsearch_common_inject_ConstructionProxy.java |
954 | public interface OrderDao {
Order readOrderById(Long orderId);
List<Order> readOrdersForCustomer(Customer customer, OrderStatus orderStatus);
List<Order> readOrdersForCustomer(Long id);
Order readNamedOrderForCustomer(Customer customer, String name);
Order readCartForCustomer(Customer customer)... | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_order_dao_OrderDao.java |
302 | @Deprecated
public class InstrumentationRuntimeFactory {
private static final Log LOG = LogFactory.getLog(InstrumentationRuntimeFactory.class);
private static final String IBM_VM_CLASS = "com.ibm.tools.attach.VirtualMachine";
private static final String SUN_VM_CLASS = "com.sun.tools.attach.VirtualMachine";
... | 0true | common_src_main_java_org_broadleafcommerce_common_extensibility_InstrumentationRuntimeFactory.java |
1,004 | public class SemaphorePortableHook implements PortableHook {
static final int F_ID = FactoryIdHelper.getFactoryId(FactoryIdHelper.SEMAPHORE_PORTABLE_FACTORY, -16);
static final int ACQUIRE = 1;
static final int AVAILABLE = 2;
static final int DRAIN = 3;
static final int INIT = 4;
static final i... | 0true | hazelcast_src_main_java_com_hazelcast_concurrent_semaphore_client_SemaphorePortableHook.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.