Unnamed: 0 int64 0 6.45k | func stringlengths 29 253k | target class label 2
classes | project stringlengths 36 167 |
|---|---|---|---|
287 | public class CTConnectionPool extends GenericKeyedObjectPool<String, CTConnection> {
private static final Logger log =
LoggerFactory.getLogger(CTConnectionPool.class);
public CTConnectionPool(KeyedPoolableObjectFactory<String, CTConnection> factory) {
super(factory);
}
/**... | 0true | titan-cassandra_src_main_java_com_thinkaurelius_titan_diskstorage_cassandra_thrift_thriftpool_CTConnectionPool.java |
1,099 | public class OSQLFunctionDocument extends OSQLFunctionMultiValueAbstract<ODocument> {
public static final String NAME = "document";
public OSQLFunctionDocument() {
super(NAME, 1, -1);
}
@SuppressWarnings("unchecked")
public Object execute(final OIdentifiable iCurrentRecord, Object iCurrentResult, final ... | 1no label | core_src_main_java_com_orientechnologies_orient_core_sql_functions_coll_OSQLFunctionDocument.java |
271 | public class InMemoryLogBuffer implements LogBuffer, ReadableByteChannel
{
private byte[] bytes = new byte[1000];
private int writeIndex;
private int readIndex;
private ByteBuffer bufferForConversions = ByteBuffer.wrap( new byte[100] );
public InMemoryLogBuffer()
... | 0true | community_kernel_src_test_java_org_neo4j_kernel_impl_nioneo_xa_LogTruncationTest.java |
3,594 | public static class TypeParser implements Mapper.TypeParser {
@Override
public Mapper.Builder parse(String name, Map<String, Object> node, ParserContext parserContext) throws MapperParsingException {
LongFieldMapper.Builder builder = longField(name);
parseNumberField(builder,... | 0true | src_main_java_org_elasticsearch_index_mapper_core_LongFieldMapper.java |
2,141 | public class MultiCollector extends XCollector {
private final Collector collector;
private final Collector[] collectors;
public MultiCollector(Collector collector, Collector[] collectors) {
this.collector = collector;
this.collectors = collectors;
}
@Override
public void set... | 0true | src_main_java_org_elasticsearch_common_lucene_MultiCollector.java |
277 | @Category(SerialTests.class)
public class ThriftLogTest extends KCVSLogTest {
@BeforeClass
public static void startCassandra() {
CassandraStorageSetup.startCleanEmbedded();
}
@Override
public KeyColumnValueStoreManager openStorageManager() throws BackendException {
return new Cassa... | 0true | titan-cassandra_src_test_java_com_thinkaurelius_titan_diskstorage_cassandra_thrift_ThriftLogTest.java |
2,664 | public static interface NewClusterStateListener {
static interface NewStateProcessed {
void onNewClusterStateProcessed();
void onNewClusterStateFailed(Throwable t);
}
void onNewClusterState(ClusterState clusterState, NewStateProcessed newStateProcessed);
} | 0true | src_main_java_org_elasticsearch_discovery_zen_publish_PublishClusterStateAction.java |
2,700 | cluster().fullRestart(new RestartCallback() {
@Override
public Settings onNodeStopped(String nodeName) throws Exception {
if (node_1.equals(nodeName)) {
logger.info("--> deleting the data for the first node");
gateway1.reset();
... | 0true | src_test_java_org_elasticsearch_gateway_local_LocalGatewayIndexStateTests.java |
691 | private static final class NodeSplitResult {
private final long[] newNode;
private final boolean allLeftHashMapsEqual;
private final boolean allRightHashMapsEqual;
private NodeSplitResult(long[] newNode, boolean allLeftHashMapsEqual, boolean allRightHashMapsEqual) {
this.newNode = newNode;
... | 0true | core_src_main_java_com_orientechnologies_orient_core_index_hashindex_local_OLocalHashTable.java |
2,289 | public interface Recycler<T> {
public static interface Factory<T> {
Recycler<T> build();
}
public static interface C<T> {
/** Create a new empty instance of the given size. */
T newInstance(int sizing);
/** Clear the data. This operation is called when the data-structure ... | 0true | src_main_java_org_elasticsearch_common_recycler_Recycler.java |
375 | public class MetadataMBeanInfoAssembler extends org.springframework.jmx.export.assembler.MetadataMBeanInfoAssembler {
protected void checkManagedBean(Object managedBean) throws IllegalArgumentException {
//do nothing
}
protected ModelMBeanNotificationInfo[] getNotificationInfo(Object managedBean, ... | 0true | common_src_main_java_org_broadleafcommerce_common_jmx_MetadataMBeanInfoAssembler.java |
4,267 | public class FsChannelSnapshot implements Translog.Snapshot {
private final long id;
private final int totalOperations;
private final RafReference raf;
private final FileChannel channel;
private final long length;
private Translog.Operation lastOperationRead = null;
private int positi... | 1no label | src_main_java_org_elasticsearch_index_translog_fs_FsChannelSnapshot.java |
1,257 | abstract class NodeSampler {
public void sample() {
synchronized (mutex) {
if (closed) {
return;
}
doSample();
}
}
protected abstract void doSample();
/**
* validates a set of poten... | 1no label | src_main_java_org_elasticsearch_client_transport_TransportClientNodesService.java |
3,463 | public class ShardGetService extends AbstractIndexShardComponent {
private final ScriptService scriptService;
private final MapperService mapperService;
private final IndexFieldDataService fieldDataService;
private IndexShard indexShard;
private final MeanMetric existsMetric = new MeanMetric();... | 1no label | src_main_java_org_elasticsearch_index_get_ShardGetService.java |
331 | public class UserModifiableConfiguration implements TitanConfiguration {
private final ModifiableConfiguration config;
private final ConfigVerifier verifier;
public UserModifiableConfiguration(ModifiableConfiguration config) {
this(config,ALLOW_ALL);
}
public UserModifiableConfiguration(M... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_diskstorage_configuration_UserModifiableConfiguration.java |
365 | private static class HBaseGetter implements StaticArrayEntry.GetColVal<Map.Entry<byte[], NavigableMap<Long, byte[]>>, byte[]> {
private final EntryMetaData[] schema;
private HBaseGetter(EntryMetaData[] schema) {
this.schema = schema;
}
@Override
public byte[] g... | 0true | titan-hbase-parent_titan-hbase-core_src_main_java_com_thinkaurelius_titan_diskstorage_hbase_HBaseKeyColumnValueStore.java |
850 | return new IAnswer<OrderItem>() {
@Override
public OrderItem answer() throws Throwable {
OrderItem orderItem = (OrderItem) EasyMock.getCurrentArguments()[0];
if (orderItem.getId() == null) {
orderItem.setId(getOrderItemId());
... | 0true | core_broadleaf-framework_src_test_java_org_broadleafcommerce_core_offer_service_OfferDataItemProvider.java |
1,392 | OGlobalConfiguration.MVRBTREE_OPTIMIZE_THRESHOLD.getValueAsInteger()) {
/**
* Set the optimization rather than remove eldest element.
*/
@Override
protected boolean removeEldestEntry(final Map.Entry<ORID, OMVRBTreeEntryPersistent<K, V>> eldest) {
if (super.removeEldestEnt... | 0true | core_src_main_java_com_orientechnologies_orient_core_type_tree_OMVRBTreePersistent.java |
188 | public interface OService {
public String getName();
public void startup();
public void shutdown();
} | 0true | commons_src_main_java_com_orientechnologies_common_util_OService.java |
166 | public interface RetryableRequest {
} | 0true | hazelcast_src_main_java_com_hazelcast_client_RetryableRequest.java |
850 | private class TransportHandler extends BaseTransportRequestHandler<SearchRequest> {
@Override
public SearchRequest newInstance() {
return new SearchRequest();
}
@Override
public void messageReceived(SearchRequest request, final TransportChannel channel) throws E... | 0true | src_main_java_org_elasticsearch_action_search_TransportSearchAction.java |
849 | public class TransportSearchAction extends TransportAction<SearchRequest, SearchResponse> {
private final ClusterService clusterService;
private final TransportSearchDfsQueryThenFetchAction dfsQueryThenFetchAction;
private final TransportSearchQueryThenFetchAction queryThenFetchAction;
private final... | 1no label | src_main_java_org_elasticsearch_action_search_TransportSearchAction.java |
91 | public class OScannerCommandStream implements OCommandStream {
private Scanner scanner;
public OScannerCommandStream(String commands) {
scanner = new Scanner(commands);
init();
}
public OScannerCommandStream(File file) throws FileNotFoundException {
scanner = new Scanner(file);
init();
}
... | 0true | commons_src_main_java_com_orientechnologies_common_console_OScannerCommandStream.java |
291 | new Thread(new Runnable() {
public void run() {
lock.lock();
try {
if (lock.isLockedByCurrentThread()) {
count.incrementAndGet();
}
awaitLatch.countDown... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_lock_ClientConditionTest.java |
187 | public class DisplayContentTag extends BodyTagSupport {
private static final long serialVersionUID = 1L;
public static final String BLC_RULE_MAP_PARAM = "blRuleMap";
// The following attribute is set in BroadleafProcessURLFilter
public static final String REQUEST_DTO = "blRequestDTO";
private Str... | 0true | admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_web_structure_DisplayContentTag.java |
234 | assertTrueEventually(new AssertTask() {
public void run() throws Exception {
assertEquals(CLUSTER_SIZE, map.size());
}
}); | 0true | hazelcast-client_src_test_java_com_hazelcast_client_executor_ClientExecutorServiceExecuteTest.java |
1,411 | clusterService.submitStateUpdateTask("close-indices " + indicesAsString, Priority.URGENT, new AckedClusterStateUpdateTask() {
@Override
public boolean mustAck(DiscoveryNode discoveryNode) {
return true;
}
@Override
public void onAllNo... | 0true | src_main_java_org_elasticsearch_cluster_metadata_MetaDataIndexStateService.java |
455 | public class OSBTreeCollectionManager {
private final Map<OBonsaiBucketPointer, OSBTreeBonsai<OIdentifiable, Boolean>> treeCache = new HashMap<OBonsaiBucketPointer, OSBTreeBonsai<OIdentifiable, Boolean>>();
public static final String FILE_ID = "ridset";
pub... | 0true | core_src_main_java_com_orientechnologies_orient_core_db_record_ridset_sbtree_OSBTreeCollectionManager.java |
930 | public interface OrderOfferProcessor extends BaseProcessor {
public void filterOrderLevelOffer(PromotableOrder promotableOrder, List<PromotableCandidateOrderOffer> qualifiedOrderOffers, Offer offer);
public Boolean executeExpression(String expression, Map<String, Object> vars);
/**
* Execute... | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_offer_service_processor_OrderOfferProcessor.java |
882 | public final class AwaitRequest extends KeyBasedClientRequest implements Portable, SecureRequest {
private String name;
private long timeout;
public AwaitRequest() {
}
public AwaitRequest(String name, long timeout) {
this.name = name;
this.timeout = timeout;
}
@Override
... | 0true | hazelcast_src_main_java_com_hazelcast_concurrent_countdownlatch_client_AwaitRequest.java |
7 | private static class HBasePidfileParseException extends Exception {
private static final long serialVersionUID = 1L;
public HBasePidfileParseException(String message) {
super(message);
}
} | 0true | titan-hbase-parent_titan-hbase-core_src_test_java_com_thinkaurelius_titan_HBaseStatus.java |
1,144 | static class SearchThread implements Runnable {
private final Client client;
private final int numValues;
private volatile boolean run = true;
SearchThread(Client client) {
this.client = client;
this.numValues = NUM_CHILDREN_PER_PARENT / NUM_CHILDREN_PER_PAR... | 0true | src_test_java_org_elasticsearch_benchmark_search_child_ChildSearchAndIndexingBenchmark.java |
1,395 | @RunWith(HazelcastSerialClassRunner.class)
@Category(SlowTest.class)
public class RegionFactoryDefaultTest extends HibernateStatisticsTestSupport {
protected Properties getCacheProperties() {
Properties props = new Properties();
props.setProperty(Environment.CACHE_REGION_FACTORY, HazelcastCacheRegi... | 0true | hazelcast-hibernate_hazelcast-hibernate3_src_test_java_com_hazelcast_hibernate_RegionFactoryDefaultTest.java |
723 | sbTree.loadEntriesMajor(firstKey, firstTime, new OTreeInternal.RangeResultListener<K, V>() {
@Override
public boolean addResult(final Map.Entry<K, V> entry) {
final V value = entry.getValue();
final V resultValue;
if (value instanceof OIndexRIDContainer)
resultValue = (... | 0true | core_src_main_java_com_orientechnologies_orient_core_index_sbtree_OSBTreeMapEntryIterator.java |
1,433 | private static class CleanupThread extends Thread {
private CleanupThread(final Runnable target, final String name) {
super(target, name);
}
public void run() {
try {
super.run();
} catch (OutOfMemoryError e) {
OutOfMemory... | 0true | hazelcast-hibernate_hazelcast-hibernate3_src_main_java_com_hazelcast_hibernate_local_CleanupService.java |
328 | public class MergeManagerSetupException extends Exception {
private static final long serialVersionUID = 1L;
public MergeManagerSetupException() {
super();
}
public MergeManagerSetupException(String arg0, Throwable arg1) {
super(arg0, arg1);
}
public MergeManagerSetupExce... | 0true | common_src_main_java_org_broadleafcommerce_common_extensibility_context_merge_exceptions_MergeManagerSetupException.java |
1,691 | runnable = new Runnable() { public void run() { map.putIfAbsent(null, "value", 1, TimeUnit.SECONDS); } }; | 0true | hazelcast_src_test_java_com_hazelcast_map_BasicMapTest.java |
1,501 | @Component("blCartState")
public class CartState {
/**
* Gets the current cart based on the current request
*
* @return the current customer's cart
*/
public static Order getCart() {
WebRequest request = BroadleafRequestContext.getBroadleafRequestContext().getWebRequest();
... | 0true | core_broadleaf-framework-web_src_main_java_org_broadleafcommerce_core_web_order_CartState.java |
197 | public static class OnePhaseCommit extends Commit
{
OnePhaseCommit( int identifier, long txId, long timeWritten )
{
super( identifier, txId, timeWritten, "1PC" );
}
} | 0true | community_kernel_src_main_java_org_neo4j_kernel_impl_transaction_xaframework_LogEntry.java |
1,363 | @ClusterScope(scope = Scope.TEST, numNodes = 0)
public class ClusterRerouteTests extends ElasticsearchIntegrationTest {
private final ESLogger logger = Loggers.getLogger(ClusterRerouteTests.class);
@Test
public void rerouteWithCommands_disableAllocationSettings() throws Exception {
Settings common... | 0true | src_test_java_org_elasticsearch_cluster_allocation_ClusterRerouteTests.java |
2,468 | public class PrioritizedExecutorsTests extends ElasticsearchTestCase {
@Test
public void testPriorityQueue() throws Exception {
PriorityBlockingQueue<Priority> queue = new PriorityBlockingQueue<Priority>();
queue.add(Priority.LANGUID);
queue.add(Priority.NORMAL);
queue.add(Prior... | 0true | src_test_java_org_elasticsearch_common_util_concurrent_PrioritizedExecutorsTests.java |
51 | public abstract class ONeedRetryException extends OException {
private static final long serialVersionUID = 1L;
public ONeedRetryException() {
super();
}
public ONeedRetryException(String message, Throwable cause) {
super(message, cause);
}
public ONeedRetryException(String message) {
super(message);
}
... | 0true | commons_src_main_java_com_orientechnologies_common_concur_ONeedRetryException.java |
3,551 | public static class Defaults extends AbstractFieldMapper.Defaults {
public static final long COMPRESS_THRESHOLD = -1;
public static final FieldType FIELD_TYPE = new FieldType(AbstractFieldMapper.Defaults.FIELD_TYPE);
static {
FIELD_TYPE.setIndexed(false);
FIELD_TYPE.... | 0true | src_main_java_org_elasticsearch_index_mapper_core_BinaryFieldMapper.java |
331 | static class DummyCommandFactory extends XaCommandFactory
{
@Override
public XaCommand readCommand( ReadableByteChannel byteChannel,
ByteBuffer buffer ) throws IOException
{
buffer.clear();
buffer.limit( 4 );
if ( ... | 0true | community_kernel_src_test_java_org_neo4j_kernel_impl_transaction_DummyXaDataSource.java |
308 | public class MergeClassPathXMLApplicationContext extends AbstractMergeXMLApplicationContext {
public MergeClassPathXMLApplicationContext(ApplicationContext parent) {
super(parent);
}
/**
* Create a new MergeClassPathXMLApplicationContext, loading the definitions from the given definitions... | 0true | common_src_main_java_org_broadleafcommerce_common_extensibility_context_MergeClassPathXMLApplicationContext.java |
1,075 | threadPool.executor(executor()).execute(new Runnable() {
@Override
public void run() {
shardOperation(request, listener, retryCount + 1);
}
... | 1no label | src_main_java_org_elasticsearch_action_update_TransportUpdateAction.java |
150 | @Entity
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "BLC_SC_TYPE")
@Cache(usage= CacheConcurrencyStrategy.NONSTRICT_READ_WRITE, region="blCMSElements")
@AdminPresentationClass(populateToOneFields = PopulateToOneFieldsEnum.TRUE, friendlyName = "StructuredContentTypeImpl_baseStructuredContentType")
publ... | 0true | admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_structure_domain_StructuredContentTypeImpl.java |
1,396 | @XmlRootElement(name = "fulfillmentOption")
@XmlAccessorType(value = XmlAccessType.FIELD)
public class FulfillmentOptionWrapper extends BaseWrapper implements APIWrapper<FulfillmentOption> {
@XmlElement
protected Long id;
@XmlElement
protected String name;
@XmlElement
protected String descrip... | 0true | core_broadleaf-framework-web_src_main_java_org_broadleafcommerce_core_web_api_wrapper_FulfillmentOptionWrapper.java |
488 | @Component("blCookieUtils")
public class GenericCookieUtilsImpl implements CookieUtils {
/* (non-Javadoc)
* @see org.broadleafcommerce.profile.web.CookieUtils#getCookieValue(javax.servlet.http.HttpServletRequest, java.lang.String)
*/
public String getCookieValue(HttpServletRequest request, String coo... | 0true | common_src_main_java_org_broadleafcommerce_common_security_util_GenericCookieUtilsImpl.java |
305 | public class ClusterHealthAction extends ClusterAction<ClusterHealthRequest, ClusterHealthResponse, ClusterHealthRequestBuilder> {
public static final ClusterHealthAction INSTANCE = new ClusterHealthAction();
public static final String NAME = "cluster/health";
private ClusterHealthAction() {
super... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_health_ClusterHealthAction.java |
842 | public abstract class AbstractAlterRequest extends PartitionClientRequest implements Portable, SecureRequest {
protected String name;
protected Data function;
public AbstractAlterRequest() {
}
public AbstractAlterRequest(String name, Data function) {
this.name = name;
this.functio... | 0true | hazelcast_src_main_java_com_hazelcast_concurrent_atomicreference_client_AbstractAlterRequest.java |
809 | public class PlotViewFactory {
private final static Logger logger = LoggerFactory.getLogger(PlotViewFactory.class);
/**
* Create the plot from persisted settings if available. Otherwise, create a default plot.
*/
static PlotView createPlot(PlotSettings settings, long currentTime, PlotViewManifestation parent... | 1no label | fastPlotViews_src_main_java_gov_nasa_arc_mct_fastplot_view_PlotViewFactory.java |
468 | while (makeDbCall(databaseDocumentTxOne, new ODbRelatedCall<Boolean>() {
public Boolean call() {
return indexIteratorOne.hasNext();
}
})) { | 1no label | core_src_main_java_com_orientechnologies_orient_core_db_tool_ODatabaseCompare.java |
1,937 | public final class ConstantBindingBuilderImpl<T>
extends AbstractBindingBuilder<T>
implements AnnotatedConstantBindingBuilder, ConstantBindingBuilder {
@SuppressWarnings("unchecked") // constant bindings start out with T unknown
public ConstantBindingBuilderImpl(Binder binder, List<Element> ele... | 0true | src_main_java_org_elasticsearch_common_inject_internal_ConstantBindingBuilderImpl.java |
3,381 | public class PackedArrayEstimator implements PerValueEstimator {
private final MemoryCircuitBreaker breaker;
private final NumericType type;
public PackedArrayEstimator(MemoryCircuitBreaker breaker, NumericType type) {
this.breaker = breaker;
this.type = type;
... | 0true | src_main_java_org_elasticsearch_index_fielddata_plain_PackedArrayIndexFieldData.java |
5,920 | public class GeoDistanceSortParser implements SortParser {
@Override
public String[] names() {
return new String[]{"_geo_distance", "_geoDistance"};
}
@Override
public SortField parse(XContentParser parser, SearchContext context) throws Exception {
String fieldName = null;
... | 1no label | src_main_java_org_elasticsearch_search_sort_GeoDistanceSortParser.java |
3,277 | public interface Ordinals {
static final long MISSING_ORDINAL = 0;
static final long MIN_ORDINAL = 1;
/**
* The memory size this ordinals take.
*/
long getMemorySizeInBytes();
/**
* Is one of the docs maps to more than one ordinal?
*/
boolean isMultiValued();
/**
... | 0true | src_main_java_org_elasticsearch_index_fielddata_ordinals_Ordinals.java |
1,219 | public enum CLUSTER_TYPE {
PHYSICAL, MEMORY
} | 0true | core_src_main_java_com_orientechnologies_orient_core_storage_OStorage.java |
246 | public class FocusEditingSupport implements IEditingSupport {
private final CeylonEditor editor;
public FocusEditingSupport(CeylonEditor editor) {
this.editor = editor;
}
public boolean ownsFocusShell() {
Shell editorShell = editor.getSite().getShell();
Shell activeShell = edit... | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_editor_FocusEditingSupport.java |
1,562 | public class AllocationDeciders extends AllocationDecider {
private final AllocationDecider[] allocations;
public AllocationDeciders(Settings settings, AllocationDecider[] allocations) {
super(settings);
this.allocations = allocations;
}
@Inject
public AllocationDeciders(Settings ... | 0true | src_main_java_org_elasticsearch_cluster_routing_allocation_decider_AllocationDeciders.java |
1,931 | public class MapContainsKeyRequest extends KeyBasedClientRequest implements Portable, RetryableRequest, SecureRequest {
private String name;
private Data key;
public MapContainsKeyRequest() {
}
public MapContainsKeyRequest(String name, Data key) {
this.name = name;
this.key = key;... | 0true | hazelcast_src_main_java_com_hazelcast_map_client_MapContainsKeyRequest.java |
1,550 | public class ShardsAllocatorModule extends AbstractModule {
public static final String EVEN_SHARD_COUNT_ALLOCATOR_KEY = "even_shard";
public static final String BALANCED_ALLOCATOR_KEY = "balanced"; // default
public static final String TYPE_KEY = "cluster.routing.allocation.type";
private Settings ... | 0true | src_main_java_org_elasticsearch_cluster_routing_allocation_allocator_ShardsAllocatorModule.java |
1,364 | @ClusterScope(scope=Scope.TEST, numNodes=0)
public class FilteringAllocationTests extends ElasticsearchIntegrationTest {
private final ESLogger logger = Loggers.getLogger(FilteringAllocationTests.class);
@Test
public void testDecommissionNodeNoReplicas() throws Exception {
logger.info("--> startin... | 0true | src_test_java_org_elasticsearch_cluster_allocation_FilteringAllocationTests.java |
607 | public class BroadleafRequestInterceptor implements WebRequestInterceptor {
@Resource(name = "blRequestProcessor")
protected BroadleafRequestProcessor requestProcessor;
@Override
public void preHandle(WebRequest request) throws Exception {
requestProcessor.process(request);
}
@Overrid... | 0true | common_src_main_java_org_broadleafcommerce_common_web_BroadleafRequestInterceptor.java |
731 | public interface RelatedProductsService {
/**
* Uses the data in the passed in DTO to return a list of relatedProducts.
*
* For example, upSale, crossSale, or featured products.
*
* @param relatedProductDTO
* @return
*/
public List<? extends PromotableProduct> findRe... | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_catalog_service_RelatedProductsService.java |
635 | public class IndicesStatusRequestBuilder extends BroadcastOperationRequestBuilder<IndicesStatusRequest, IndicesStatusResponse, IndicesStatusRequestBuilder> {
public IndicesStatusRequestBuilder(IndicesAdminClient indicesClient) {
super((InternalIndicesAdminClient) indicesClient, new IndicesStatusRequest());... | 0true | src_main_java_org_elasticsearch_action_admin_indices_status_IndicesStatusRequestBuilder.java |
1,572 | public class AdminAuditableListener {
@PrePersist
public void setAuditCreatedBy(Object entity) throws Exception {
if (entity.getClass().isAnnotationPresent(Entity.class)) {
Field field = getSingleField(entity.getClass(), "auditable");
field.setAccessible(true);
if (f... | 0true | admin_broadleaf-open-admin-platform_src_main_java_org_broadleafcommerce_openadmin_audit_AdminAuditableListener.java |
1,507 | @Component("blAuthenticationSuccessHandler")
public class BroadleafAuthenticationSuccessHandler extends SavedRequestAwareAuthenticationSuccessHandler {
@Override
public void onAuthenticationSuccess(HttpServletRequest request, HttpServletResponse response,
Authentication authentication) throws Servl... | 1no label | core_broadleaf-framework-web_src_main_java_org_broadleafcommerce_core_web_order_security_BroadleafAuthenticationSuccessHandler.java |
2,794 | public class ASCIIFoldingTokenFilterFactory extends AbstractTokenFilterFactory {
@Inject
public ASCIIFoldingTokenFilterFactory(Index index, @IndexSettings Settings indexSettings, @Assisted String name, @Assisted Settings settings) {
super(index, indexSettings, name, settings);
}
@Override
... | 1no label | src_main_java_org_elasticsearch_index_analysis_ASCIIFoldingTokenFilterFactory.java |
1,387 | 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-hibernate3_src_test_java_com_hazelcast_hibernate_HibernateStatisticsTestSupport.java |
220 | public interface RuntimeEnvironmentKeyResolver {
/**
* Determine and return the runtime environment; if an implementation is
* unable to determine the runtime environment, null can be returned to
* indicate this.
*/
String resolveRuntimeEnvironmentKey();
} | 0true | common_src_main_java_org_broadleafcommerce_common_config_RuntimeEnvironmentKeyResolver.java |
480 | final EventHandler<PortableDistributedObjectEvent> eventHandler = new EventHandler<PortableDistributedObjectEvent>() {
public void handle(PortableDistributedObjectEvent e) {
final ObjectNamespace ns = new DefaultObjectNamespace(e.getServiceName(), e.getName());
Client... | 1no label | hazelcast-client_src_main_java_com_hazelcast_client_spi_ProxyManager.java |
2,085 | public class PostJoinMapOperation extends AbstractOperation {
private List<MapIndexInfo> indexInfoList = new LinkedList<MapIndexInfo>();
private List<InterceptorInfo> interceptorInfoList = new LinkedList<InterceptorInfo>();
@Override
public String getServiceName() {
return MapService.SERVICE_N... | 0true | hazelcast_src_main_java_com_hazelcast_map_operation_PostJoinMapOperation.java |
385 | public class ClusterUpdateSettingsAction extends ClusterAction<ClusterUpdateSettingsRequest, ClusterUpdateSettingsResponse, ClusterUpdateSettingsRequestBuilder> {
public static final ClusterUpdateSettingsAction INSTANCE = new ClusterUpdateSettingsAction();
public static final String NAME = "cluster/settings/up... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_settings_ClusterUpdateSettingsAction.java |
1,390 | public class OMVRBTreeEntryPersistent<K, V> extends OMVRBTreeEntry<K, V> implements OIdentityChangedListener {
protected OMVRBTreeEntryDataProvider<K, V> dataProvider;
protected OMVRBTreePersistent<K, V> pTree;
protected OMVRBTreeEntryPersistent<K, V> parent;
protected OMVRBTreeEntryPersistent<K, V> ... | 0true | core_src_main_java_com_orientechnologies_orient_core_type_tree_OMVRBTreeEntryPersistent.java |
307 | public class MergeApplicationContextXmlConfigResource extends MergeXmlConfigResource {
private static final Log LOG = LogFactory.getLog(MergeApplicationContextXmlConfigResource.class);
/**
* Generate a merged configuration resource, loading the definitions from the given streams. Note,
* all sourceL... | 0true | common_src_main_java_org_broadleafcommerce_common_extensibility_context_MergeApplicationContextXmlConfigResource.java |
1,686 | runnable = new Runnable() { public void run() { map.tryPut("key", null, 1, TimeUnit.SECONDS); } }; | 0true | hazelcast_src_test_java_com_hazelcast_map_BasicMapTest.java |
1,787 | @RunWith(HazelcastParallelClassRunner.class)
@Category(QuickTest.class)
public class IssuesTest extends HazelcastTestSupport {
@Test
public void testIssue321_1() throws Exception {
int n = 1;
TestHazelcastInstanceFactory factory = createHazelcastInstanceFactory(n);
final IMap<Integer, ... | 0true | hazelcast_src_test_java_com_hazelcast_map_IssuesTest.java |
843 | TRANSIENT("Transient", 18, new Class<?>[] {}, new Class<?>[] {}) {
}, | 0true | core_src_main_java_com_orientechnologies_orient_core_metadata_schema_OType.java |
1,253 | @Deprecated
public interface ShippingModule {
public String getName();
public void setName(String name);
public FulfillmentGroup calculateShippingForFulfillmentGroup(FulfillmentGroup fulfillmentGroup) throws FulfillmentPriceException;
public String getServiceName();
public Boolean isVal... | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_pricing_service_module_ShippingModule.java |
2,837 | final class PartitionReplicaVersions {
final int partitionId;
// read and updated only by operation/partition threads
final long[] versions = new long[InternalPartition.MAX_BACKUP_COUNT];
PartitionReplicaVersions(int partitionId) {
this.partitionId = partitionId;
}
long[] incrementAndG... | 1no label | hazelcast_src_main_java_com_hazelcast_partition_impl_PartitionReplicaVersions.java |
687 | @Entity
@Polymorphism(type = PolymorphismType.EXPLICIT)
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "BLC_CATEGORY_XREF")
@AdminPresentationClass(excludeFromPolymorphism = false)
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE, region="blStandardElements")
public class CategoryXrefImpl implements Ca... | 1no label | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_catalog_domain_CategoryXrefImpl.java |
1,534 | public class OMetadataObject implements OMetadata {
protected OMetadata underlying;
protected OSchemaProxyObject schema;
public OMetadataObject(OMetadata iUnderlying) {
underlying = iUnderlying;
}
public OMetadataObject(OMetadata iUnderlying, OSchemaProxyObject iSchema) {
underlying = iUnd... | 0true | object_src_main_java_com_orientechnologies_orient_object_metadata_OMetadataObject.java |
1 | public class CassandraStorageSetup {
public static final String CONFDIR_SYSPROP = "test.cassandra.confdir";
public static final String DATADIR_SYSPROP = "test.cassandra.datadir";
private static volatile Paths paths;
private static final Logger log = LoggerFactory.getLogger(CassandraStorageSetup.class... | 0true | titan-cassandra_src_test_java_com_thinkaurelius_titan_CassandraStorageSetup.java |
3,225 | return new IndexFieldData<AtomicFieldData<ScriptDocValues>>() {
@Override
public Index index() {
return in.index();
}
@Override
public Names getFieldNames() {
return in.getFieldNames();
}
@Over... | 0true | src_test_java_org_elasticsearch_index_fielddata_NoOrdinalsStringFieldDataTests.java |
161 | private class Itr extends AbstractItr {
Node<E> startNode() { return first(); }
Node<E> nextNode(Node<E> p) { return succ(p); }
} | 0true | src_main_java_jsr166y_ConcurrentLinkedDeque.java |
682 | public static class Order {
public static final int Marketing = 2000;
public static final int Media = 3000;
public static final int Advanced = 4000;
public static final int Products = 5000;
public static final int SearchFacets ... | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_catalog_domain_CategoryImpl.java |
3,734 | public static class TypeParser implements Mapper.TypeParser {
@Override
public Mapper.Builder parse(String name, Map<String, Object> node, ParserContext parserContext) throws MapperParsingException {
Map<String, Object> objectNode = node;
ObjectMapper.Builder builder = create... | 1no label | src_main_java_org_elasticsearch_index_mapper_object_ObjectMapper.java |
1,427 | clusterService.submitStateUpdateTask("put-mapping [" + request.type() + "]", Priority.HIGH, new AckedClusterStateUpdateTask() {
@Override
public boolean mustAck(DiscoveryNode discoveryNode) {
return true;
}
@Override
public void onAll... | 0true | src_main_java_org_elasticsearch_cluster_metadata_MetaDataMappingService.java |
962 | @Test
public class NothingCompressionTest extends AbstractCompressionTest {
public void testNothingCompression() {
testCompression(ONothingCompression.NAME);
}
} | 0true | core_src_test_java_com_orientechnologies_orient_core_serialization_compression_impl_NothingCompressionTest.java |
113 | HazelcastTestSupport.assertTrueEventually(new AssertTask() {
@Override
public void run() throws Exception {
final NearCacheStats stats = map.getLocalMapStats().getNearCacheStats();
assertEquals(remainingSize, stats.getOwnedEntryCount());
}
... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_ClientNearCacheTest.java |
1,801 | class BindingProcessor extends AbstractProcessor {
private final List<CreationListener> creationListeners = Lists.newArrayList();
private final Initializer initializer;
private final List<Runnable> uninitializedBindings = Lists.newArrayList();
BindingProcessor(Errors errors, Initializer initializer) {... | 0true | src_main_java_org_elasticsearch_common_inject_BindingProcessor.java |
843 | public class AlterAndGetRequest extends AbstractAlterRequest {
public AlterAndGetRequest() {
}
public AlterAndGetRequest(String name, Data function) {
super(name, function);
}
@Override
protected Operation prepareOperation() {
return new AlterAndGetOperation(name, function);
... | 0true | hazelcast_src_main_java_com_hazelcast_concurrent_atomicreference_client_AlterAndGetRequest.java |
960 | @Repository("blOrderItemDao")
public class OrderItemDaoImpl implements OrderItemDao {
@PersistenceContext(unitName="blPU")
protected EntityManager em;
@Resource(name="blEntityConfiguration")
protected EntityConfiguration entityConfiguration;
public OrderItem save(final OrderItem orderItem) {
... | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_order_dao_OrderItemDaoImpl.java |
1,689 | public class URLBlobStore extends AbstractComponent implements BlobStore {
private final Executor executor;
private final URL path;
private final int bufferSizeInBytes;
/**
* Constructs new read-only URL-based blob store
* <p/>
* The following settings are supported
* <dl>
*... | 1no label | src_main_java_org_elasticsearch_common_blobstore_url_URLBlobStore.java |
634 | public class OIndexTxAwareOneValue extends OIndexTxAware<OIdentifiable> {
public OIndexTxAwareOneValue(final ODatabaseRecord iDatabase, final OIndex<OIdentifiable> iDelegate) {
super(iDatabase, iDelegate);
}
@Override
public void checkEntry(final OIdentifiable iRecord, final Object iKey) {
// CHECK IF ... | 0true | core_src_main_java_com_orientechnologies_orient_core_index_OIndexTxAwareOneValue.java |
2,149 | protected class AllTermWeight extends SpanWeight {
public AllTermWeight(AllTermQuery query, IndexSearcher searcher) throws IOException {
super(query, searcher);
}
@Override
public AllTermSpanScorer scorer(AtomicReaderContext context, boolean scoreDocsInOrder,
... | 0true | src_main_java_org_elasticsearch_common_lucene_all_AllTermQuery.java |
573 | public class TransportOpenIndexAction extends TransportMasterNodeOperationAction<OpenIndexRequest, OpenIndexResponse> {
private final MetaDataIndexStateService indexStateService;
private final DestructiveOperations destructiveOperations;
@Inject
public TransportOpenIndexAction(Settings settings, Trans... | 1no label | src_main_java_org_elasticsearch_action_admin_indices_open_TransportOpenIndexAction.java |
857 | public class OfferServiceTest extends TestCase {
protected OfferServiceImpl offerService;
protected CustomerOfferDao customerOfferDaoMock;
protected OfferCodeDao offerCodeDaoMock;
protected OfferDao offerDaoMock;
protected OrderItemDao orderItemDaoMock;
protected OrderService orderServiceM... | 0true | core_broadleaf-framework_src_test_java_org_broadleafcommerce_core_offer_service_OfferServiceTest.java |
262 | public interface EmailService {
public boolean sendTemplateEmail(String emailAddress, EmailInfo emailInfo, HashMap<String,Object> props);
public boolean sendTemplateEmail(EmailTarget emailTarget, EmailInfo emailInfo, HashMap<String,Object> props);
public boolean sendBasicEmail(EmailInfo emailInfo, Email... | 0true | common_src_main_java_org_broadleafcommerce_common_email_service_EmailService.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.