Unnamed: 0 int64 0 6.45k | func stringlengths 29 253k | target class label 2
classes | project stringlengths 36 167 |
|---|---|---|---|
440 | public interface CustomizeStoreKCVSManager extends KeyColumnValueStoreManager {
/**
* Opens a database against this {@link KeyColumnValueStoreManager} with the given
* TTL in seconds.
*
* @param name Name of database
* @param ttlInSeconds TTL for the entries in this {@link KeyColumnValueSt... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_diskstorage_keycolumnvalue_CustomizeStoreKCVSManager.java |
75 | public class OSharedResourceAdaptiveExternal extends OSharedResourceAdaptive implements OSharedResource {
public OSharedResourceAdaptiveExternal(final boolean iConcurrent, final int iTimeout, final boolean ignoreThreadInterruption) {
super(iConcurrent, iTimeout, ignoreThreadInterruption);
}
@Override
public void... | 0true | commons_src_main_java_com_orientechnologies_common_concur_resource_OSharedResourceAdaptiveExternal.java |
1,011 | public interface OStringSerializer {
public StringBuilder toStream(StringBuilder iOutput, Object iSource);
public Object fromStream(String iSource);
public String getName();
} | 0true | core_src_main_java_com_orientechnologies_orient_core_serialization_serializer_string_OStringSerializer.java |
1,015 | @Service("blNullOrderFactory")
public class NullOrderFactoryImpl implements NullOrderFactory {
protected static final Order NULL_ORDER = new NullOrderImpl();
@Override
public Order getNullOrder() {
return NULL_ORDER;
}
} | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_order_domain_NullOrderFactoryImpl.java |
1,496 | public class OrderLookupTag extends BodyTagSupport {
private static final long serialVersionUID = 1L;
private Long orderId;
private String orderName;
private String orderVar;
private String totalQuantityVar;
@Override
public int doStartTag() throws JspException {
WebApplicationCont... | 0true | core_broadleaf-framework-web_src_main_java_org_broadleafcommerce_core_web_layout_tags_OrderLookupTag.java |
85 | public enum Contain implements TitanPredicate {
/**
* Whether an element is in a collection
*/
IN {
@Override
public boolean evaluate(Object value, Object condition) {
Preconditions.checkArgument(isValidCondition(condition), "Invalid condition provided: %s", condition);
... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_core_attribute_Contain.java |
388 | public class ClusterUpdateSettingsResponse extends AcknowledgedResponse {
Settings transientSettings;
Settings persistentSettings;
ClusterUpdateSettingsResponse() {
this.persistentSettings = ImmutableSettings.EMPTY;
this.transientSettings = ImmutableSettings.EMPTY;
}
ClusterUpdate... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_settings_ClusterUpdateSettingsResponse.java |
245 | assertTrueEventually(new AssertTask() {
public void run() throws Exception {
assertTrue(map.containsKey(member.getUuid()));
}
}); | 0true | hazelcast-client_src_test_java_com_hazelcast_client_executor_ClientExecutorServiceSubmitTest.java |
76 | @SuppressWarnings("serial")
static final class MapReduceKeysToLongTask<K,V>
extends BulkTask<K,V,Long> {
final ObjectToLong<? super K> transformer;
final LongByLongToLong reducer;
final long basis;
long result;
MapReduceKeysToLongTask<K,V> rights, nextRight;
... | 0true | src_main_java_jsr166e_ConcurrentHashMapV8.java |
3,550 | public static class Builder extends AbstractFieldMapper.Builder<Builder, BinaryFieldMapper> {
private Boolean compress = null;
private long compressThreshold = Defaults.COMPRESS_THRESHOLD;
public Builder(String name) {
super(name, new FieldType(Defaults.FIELD_TYPE));
... | 0true | src_main_java_org_elasticsearch_index_mapper_core_BinaryFieldMapper.java |
3,229 | public static class Doubles extends ScriptDocValues {
private final DoubleValues values;
private final SlicedDoubleList list;
public Doubles(DoubleValues values) {
this.values = values;
this.list = new SlicedDoubleList(values.isMultiValued() ? 10 : 1);
}
... | 0true | src_main_java_org_elasticsearch_index_fielddata_ScriptDocValues.java |
270 | public interface OCommandPredicate {
/**
* Evaluates the predicate.
*
* @param iRecord
* Target record
* @param iCurrentResult TODO
* @param iContext
* Context of execution
* @return The result of predicate
*/
public Object evaluate(final ORecord<?> iRecord, ODocument i... | 0true | core_src_main_java_com_orientechnologies_orient_core_command_OCommandPredicate.java |
79 | @SuppressWarnings("serial")
static final class MapReduceMappingsToIntTask<K,V>
extends BulkTask<K,V,Integer> {
final ObjectByObjectToInt<? super K, ? super V> transformer;
final IntByIntToInt reducer;
final int basis;
int result;
MapReduceMappingsToIntTask<K,V> ri... | 0true | src_main_java_jsr166e_ConcurrentHashMapV8.java |
2,082 | public class PartitionWideEntryWithPredicateBackupOperation extends PartitionWideEntryBackupOperation {
Predicate predicate;
public PartitionWideEntryWithPredicateBackupOperation() {
}
public PartitionWideEntryWithPredicateBackupOperation(String name, EntryBackupProcessor entryProcessor, Predicate pre... | 1no label | hazelcast_src_main_java_com_hazelcast_map_operation_PartitionWideEntryWithPredicateBackupOperation.java |
559 | public final class ListenerUtil {
private ListenerUtil() {
}
public static String listen(ClientContext context, ClientRequest request, Object key, EventHandler handler) {
//TODO callback
final Future future;
try {
final ClientInvocationServiceImpl invocationService = ge... | 0true | hazelcast-client_src_main_java_com_hazelcast_client_util_ListenerUtil.java |
661 | public class ProductDaoTest extends BaseTest {
@Resource
private ProductDao productDao;
@Resource
private CatalogService catalogService;
private List<Product> savedProducts = new ArrayList<Product>();
private static RelatedProduct getRelatedUpSaleProduct(Product prod, Product prodToRelat... | 0true | integration_src_test_java_org_broadleafcommerce_core_catalog_dao_ProductDaoTest.java |
3,755 | public abstract class AbstractMergePolicyProvider<MP extends MergePolicy> extends AbstractIndexShardComponent implements MergePolicyProvider<MP> {
public static final String INDEX_COMPOUND_FORMAT = "index.compound_format";
protected volatile double noCFSRatio;
protected AbstractMergePolicyProvider(St... | 0true | src_main_java_org_elasticsearch_index_merge_policy_AbstractMergePolicyProvider.java |
2,796 | public abstract class AbstractIndexAnalyzerProvider<T extends Analyzer> extends AbstractIndexComponent implements AnalyzerProvider<T> {
private final String name;
protected final Version version;
/**
* Constructs a new analyzer component, with the index name and its settings and the analyzer name.
... | 0true | src_main_java_org_elasticsearch_index_analysis_AbstractIndexAnalyzerProvider.java |
1,790 | imap.addEntryListener(new EntryAdapter<Integer, Integer>() {
@Override
public void entryAdded(EntryEvent<Integer, Integer> event) {
events1.add(event);
}
}, true); | 0true | hazelcast_src_test_java_com_hazelcast_map_IssuesTest.java |
2,733 | public static class NodesLocalGatewayMetaState extends NodesOperationResponse<NodeLocalGatewayMetaState> {
private FailedNodeException[] failures;
NodesLocalGatewayMetaState() {
}
public NodesLocalGatewayMetaState(ClusterName clusterName, NodeLocalGatewayMetaState[] nodes, FailedN... | 0true | src_main_java_org_elasticsearch_gateway_local_state_meta_TransportNodesListGatewayMetaState.java |
754 | public class ListAddAllOperation extends CollectionAddAllOperation {
private int index = -1;
public ListAddAllOperation() {
}
public ListAddAllOperation(String name, int index, List<Data> valueList) {
super(name, valueList);
this.index = index;
}
@Override
public int getI... | 0true | hazelcast_src_main_java_com_hazelcast_collection_list_ListAddAllOperation.java |
8 | private class OutgoingMessageHolder implements MessageHolder
{
private Deque<Message<? extends MessageType>> outgoingMessages = new ArrayDeque<Message<? extends MessageType>>();
@Override
public synchronized void offer( Message<? extends MessageType> message )
{
outg... | 1no label | enterprise_cluster_src_main_java_org_neo4j_cluster_StateMachines.java |
274 | public interface OCommandRequestAsynch {
public OCommandResultListener getResultListener();
public void setResultListener(OCommandResultListener iListener);
public boolean isAsynchronous();
} | 0true | core_src_main_java_com_orientechnologies_orient_core_command_OCommandRequestAsynch.java |
388 | public class SupportLevelFilter extends Filter {
@Override
public int decide(LoggingEvent event) {
if(SupportLevel.SUPPORT.equals(event.getLevel())) {
return Filter.DENY;
}
return Filter.ACCEPT;
}
} | 0true | common_src_main_java_org_broadleafcommerce_common_logging_SupportLevelFilter.java |
1,819 | class DeferredLookups implements Lookups {
private final InjectorImpl injector;
private final List<Element> lookups = Lists.newArrayList();
public DeferredLookups(InjectorImpl injector) {
this.injector = injector;
}
/**
* Initialize the specified lookups, either immediately or when th... | 0true | src_main_java_org_elasticsearch_common_inject_DeferredLookups.java |
2,947 | public class StemmerTokenFilterFactory extends AbstractTokenFilterFactory {
private String language;
@Inject
public StemmerTokenFilterFactory(Index index, @IndexSettings Settings indexSettings, @Assisted String name, @Assisted Settings settings) {
super(index, indexSettings, name, settings);
... | 1no label | src_main_java_org_elasticsearch_index_analysis_StemmerTokenFilterFactory.java |
1,048 | @SuppressWarnings("unchecked")
public abstract class OCommandExecutorSQLResultsetAbstract extends OCommandExecutorSQLAbstract implements Iterator<OIdentifiable>,
Iterable<OIdentifiable> {
protected static final String KEYWORD_FROM_2FIND = " " + KEYWORD_FROM + " ";
protected static final Strin... | 1no label | core_src_main_java_com_orientechnologies_orient_core_sql_OCommandExecutorSQLResultsetAbstract.java |
108 | static class StaticMemberListener implements MembershipListener, InitialMembershipListener {
final CountDownLatch latch;
StaticMemberListener(CountDownLatch latch) {
this.latch = latch;
}
public void init(InitialMembershipEvent event) {
latch.countDown();
... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_ClientIssueTest.java |
9 | {
private Long highest;
@Override
public boolean reached( File file, long version, LogLoader source )
{
// Here we know that the log version exists (checked in AbstractPruneStrategy#prune)
... | 1no label | community_kernel_src_main_java_org_neo4j_kernel_impl_transaction_xaframework_LogPruneStrategies.java |
3,417 | public static final SnapshotLock NO_SNAPSHOT_LOCK = new SnapshotLock() {
@Override
public void release() {
}
}; | 0true | src_main_java_org_elasticsearch_index_gateway_IndexShardGateway.java |
770 | @Deprecated
public interface SkuAvailability extends Serializable {
/**
* Returns the id of this SkuAvailability
*/
public Long getId();
/**
* Sets the id of this SkuAvailability record
*/
public void setId(Long id);
/**
* Returns the id of this SKU associated with SkuAva... | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_inventory_domain_SkuAvailability.java |
714 | constructors[COLLECTION_GET_ALL] = new ConstructorFunction<Integer, Portable>() {
public Portable createNew(Integer arg) {
return new CollectionGetAllRequest();
}
}; | 0true | hazelcast_src_main_java_com_hazelcast_collection_CollectionPortableHook.java |
339 | public class NodeReplace extends NodeReplaceInsert {
@Override
protected boolean checkNode(List<Node> usedNodes, Node[] primaryNodes, Node node) {
if (replaceNode(primaryNodes, node, usedNodes)) {
return true;
}
//check if this same node already exists
if (exactNodeE... | 0true | common_src_main_java_org_broadleafcommerce_common_extensibility_context_merge_handlers_NodeReplace.java |
104 | public class OMurmurHash3 {
static class State {
long h1;
long h2;
long k1;
long k2;
long c1;
long c2;
}
static long getblock(byte[] key, int i) {
return (((long) key[i + 0] & 0x00000000000000FFL)) | (((long) key[i + 1] & 0x00000000000000FFL) << 8)
| (((long) key[i + 2] & 0x... | 0true | commons_src_main_java_com_orientechnologies_common_hash_OMurmurHash3.java |
2,621 | public static interface MembershipListener {
ClusterState onJoin(DiscoveryNode node);
void onLeave(DiscoveryNode node);
} | 0true | src_main_java_org_elasticsearch_discovery_zen_membership_MembershipAction.java |
342 | public class NodesShutdownAction extends ClusterAction<NodesShutdownRequest, NodesShutdownResponse, NodesShutdownRequestBuilder> {
public static final NodesShutdownAction INSTANCE = new NodesShutdownAction();
public static final String NAME = "cluster/nodes/shutdown";
private NodesShutdownAction() {
... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_node_shutdown_NodesShutdownAction.java |
112 | public class ForkJoinPool extends AbstractExecutorService {
/*
* Implementation Overview
*
* This class and its nested classes provide the main
* functionality and control for a set of worker threads:
* Submissions from non-FJ threads enter into submission queues.
* Workers take these... | 0true | src_main_java_jsr166e_ForkJoinPool.java |
5,469 | public class SearchPhaseController extends AbstractComponent {
public static Comparator<AtomicArray.Entry<? extends QuerySearchResultProvider>> QUERY_RESULT_ORDERING = new Comparator<AtomicArray.Entry<? extends QuerySearchResultProvider>>() {
@Override
public int compare(AtomicArray.Entry<? extends... | 1no label | src_main_java_org_elasticsearch_search_controller_SearchPhaseController.java |
2,165 | class FixedBitSetIterator extends FilteredDocIdSetIterator {
FixedBitSetIterator(DocIdSetIterator innerIter) {
super(innerIter);
}
@Override
protected boolean match(int doc) {
return matchDoc(doc);
}
} | 1no label | src_main_java_org_elasticsearch_common_lucene_docset_MatchDocIdSet.java |
1,446 | public static class VertexMap extends Mapper<NullWritable, FaunusVertex, LongWritable, Holder<FaunusVertex>> {
private TitanGraph graph;
private boolean trackState;
private ModifiableHadoopConfiguration faunusConf;
private LoaderScriptWrapper loaderScript;
private final Hol... | 1no label | titan-hadoop-parent_titan-hadoop-core_src_main_java_com_thinkaurelius_titan_hadoop_formats_util_TitanGraphOutputMapReduce.java |
2,268 | public class OsUtils {
/**
* The value of <tt>System.getProperty("os.name")<tt>.
*/
public static final String OS_NAME = System.getProperty("os.name");
/**
* True iff running on Linux.
*/
public static final boolean LINUX = OS_NAME.trim().toLowerCase(Locale.ROOT).startsWith("linux")... | 0true | src_main_java_org_elasticsearch_common_os_OsUtils.java |
2,050 | @Component("blCustomerStateRefresher")
public class CustomerStateRefresher implements ApplicationListener<CustomerPersistedEvent> {
/**
* Removes the complete {@link Customer} stored in session and adds a new session variable for just the customer ID. This
* should occur once the session-based {@link Cus... | 1no label | core_broadleaf-profile-web_src_main_java_org_broadleafcommerce_profile_web_core_CustomerStateRefresher.java |
1,095 | public abstract class AbstractOrderItemRequest {
protected Sku sku;
protected Category category;
protected Product product;
protected Order order;
protected int quantity;
protected Money salePriceOverride;
protected Money retailPriceOverride;
protected PersonalMessage personalMessage;
... | 1no label | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_order_service_call_AbstractOrderItemRequest.java |
127 | public class ClientResponse implements IdentifiedDataSerializable {
private Data response;
private int callId;
private boolean isEvent;
private boolean isError;
public ClientResponse() {
}
public ClientResponse(Data response, boolean isError, int callId) {
this.response = response... | 1no label | hazelcast_src_main_java_com_hazelcast_client_ClientResponse.java |
729 | @Service("blCatalogService")
public class CatalogServiceImpl implements CatalogService {
@Resource(name="blCategoryDao")
protected CategoryDao categoryDao;
@Resource(name="blProductDao")
protected ProductDao productDao;
@Resource(name="blSkuDao")
protected SkuDao skuDao;
@Resource(na... | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_catalog_service_CatalogServiceImpl.java |
2,808 | public class AnalysisModuleTests extends ElasticsearchTestCase {
private Injector injector;
public AnalysisService getAnalysisService(Settings settings) {
Index index = new Index("test");
Injector parentInjector = new ModulesBuilder().add(new SettingsModule(settings), new EnvironmentModule(new... | 0true | src_test_java_org_elasticsearch_index_analysis_AnalysisModuleTests.java |
1,089 | public class OSQLPredicate extends OBaseParser implements OCommandPredicate {
protected Set<OProperty> properties = new HashSet<OProperty>();
protected OSQLFilterCondition rootCondition;
protected List<String> recordTransformed;
protected List<OSQLFilterItemParameter> p... | 1no label | core_src_main_java_com_orientechnologies_orient_core_sql_filter_OSQLPredicate.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 |
878 | private class OIterateBlockIterator implements Iterator<Object> {
private int p = 0;
public boolean hasNext() {
return p < objects.length;
}
public Object next() {
if (p < objects.length) {
final Object value = objects[p++];
context.setVariable(variable... | 0true | core_src_main_java_com_orientechnologies_orient_core_processor_block_OIterateBlock.java |
1,186 | public class OQueryOperatorMajor extends OQueryOperatorEqualityNotNulls {
public OQueryOperatorMajor() {
super(">", 5, false);
}
@Override
@SuppressWarnings("unchecked")
protected boolean evaluateExpression(final OIdentifiable iRecord, final OSQLFilterCondition iCondition, final Object iLeft,
fina... | 1no label | core_src_main_java_com_orientechnologies_orient_core_sql_operator_OQueryOperatorMajor.java |
192 | protected static abstract class Run {
/** The length of this run. */
protected int length;
public Run() {
init();
}
/**
* Returns <code>true</code> if this run consumes <code>ch</code>,
* <code>false</code> otherwise. If <code>true</code> is re... | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_editor_CeylonBreakIterator.java |
395 | public class ClusterSearchShardsRequestBuilder extends MasterNodeReadOperationRequestBuilder<ClusterSearchShardsRequest, ClusterSearchShardsResponse, ClusterSearchShardsRequestBuilder> {
public ClusterSearchShardsRequestBuilder(ClusterAdminClient clusterClient) {
super((InternalClusterAdminClient) clusterC... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_shards_ClusterSearchShardsRequestBuilder.java |
654 | watchDog = new OMemoryWatchDog.Listener() {
public void memoryUsageLow(final long iFreeMemory, final long iFreeMemoryPercentage) {
map.setOptimization(iFreeMemoryPercentage < 10 ? 2 : 1);
}
}; | 0true | core_src_main_java_com_orientechnologies_orient_core_index_engine_OMVRBTreeIndexEngine.java |
1,362 | @ClusterScope(scope=Scope.TEST, numNodes=0)
public class AwarenessAllocationTests extends ElasticsearchIntegrationTest {
private final ESLogger logger = Loggers.getLogger(AwarenessAllocationTests.class);
@Test
public void testSimpleAwareness() throws Exception {
Settings commonSettings = Immutable... | 0true | src_test_java_org_elasticsearch_cluster_allocation_AwarenessAllocationTests.java |
3,622 | public class TokenCountFieldMapperIntegrationTests extends ElasticsearchIntegrationTest {
@ParametersFactory
public static Iterable<Object[]> buildParameters() {
List<Object[]> parameters = new ArrayList<Object[]>();
for (boolean storeCountedFields : new boolean[] { true, false }) {
... | 0true | src_test_java_org_elasticsearch_index_mapper_core_TokenCountFieldMapperIntegrationTests.java |
223 | private static class OffsetsEnum implements Comparable<OffsetsEnum> {
DocsAndPositionsEnum dp;
int pos;
int id;
OffsetsEnum(DocsAndPositionsEnum dp, int id) throws IOException {
this.dp = dp;
this.id = id;
this.pos = 1;
}
@Overrid... | 0true | src_main_java_org_apache_lucene_search_postingshighlight_XPostingsHighlighter.java |
2,084 | public class FileSystemUtils {
private static ESLogger logger = ESLoggerFactory.getLogger(FileSystemUtils.class.getName());
private static final long mkdirsStallTimeout = TimeValue.timeValueMinutes(5).millis();
private static final Object mkdirsMutex = new Object();
private static volatile Thread mkdi... | 1no label | src_main_java_org_elasticsearch_common_io_FileSystemUtils.java |
1,301 | public class ClusterState implements ToXContent {
public interface Custom {
interface Factory<T extends Custom> {
String type();
T readFrom(StreamInput in) throws IOException;
void writeTo(T customState, StreamOutput out) throws IOException;
void toXCont... | 1no label | src_main_java_org_elasticsearch_cluster_ClusterState.java |
82 | public static class Name {
public static final String File_Details = "StaticAssetImpl_FileDetails_Tab";
public static final String Advanced = "StaticAssetImpl_Advanced_Tab";
} | 0true | admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_file_domain_StaticAssetImpl.java |
167 | return executeRead(new Callable<Iterable<RawQuery.Result<String>>>() {
@Override
public Iterable<RawQuery.Result<String>> call() throws Exception {
return indexTx.query(query);
}
@Override
public String toString() {
ret... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_diskstorage_BackendTransaction.java |
503 | public class OpenDeclarationAction extends Action {
private static final ImageDescriptor ICON = CeylonPlugin.getInstance().getImageRegistry()
.getDescriptor(CeylonResources.CEYLON_OPEN_DECLARATION);
private final IEditorPart editor;
public OpenDeclarationAction(IEditorPart editor)... | 1no label | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_open_OpenDeclarationAction.java |
41 | @Component("blDynamicFieldPersistenceHandlerHelper")
public class DynamicFieldPersistenceHandlerHelper {
/**
* Builds all of the metadata for all of the dynamic properties within a {@link StructuredContentType}, gleaned from
* the {@link FieldGroup}s and {@link FieldDefinition}s.
*
* @param fi... | 0true | admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_admin_server_handler_DynamicFieldPersistenceHandlerHelper.java |
2,010 | binder.bind(providerMapKey).toProvider(new ProviderWithDependencies<Map<K, Provider<V>>>() {
private Map<K, Provider<V>> providerMap;
@SuppressWarnings("unused")
@Inject
void initialize() {
RealMapBinder.this.binder = null;... | 0true | src_main_java_org_elasticsearch_common_inject_multibindings_MapBinder.java |
5,262 | public class RangeParser implements Aggregator.Parser {
@Override
public String type() {
return InternalRange.TYPE.name();
}
@Override
public AggregatorFactory parse(String aggregationName, XContentParser parser, SearchContext context) throws IOException {
ValuesSourceConfig<Numer... | 1no label | src_main_java_org_elasticsearch_search_aggregations_bucket_range_RangeParser.java |
59 | public class TitanFactory {
private static final Logger log =
LoggerFactory.getLogger(TitanFactory.class);
/**
* Opens a {@link TitanGraph} database.
* <p/>
* If the argument points to a configuration file, the configuration file is loaded to configure the Titan graph
* If the ... | 1no label | titan-core_src_main_java_com_thinkaurelius_titan_core_TitanFactory.java |
874 | public class TransportSearchQueryThenFetchAction extends TransportSearchTypeAction {
@Inject
public TransportSearchQueryThenFetchAction(Settings settings, ThreadPool threadPool, ClusterService clusterService,
SearchServiceTransportAction searchService, SearchPhase... | 1no label | src_main_java_org_elasticsearch_action_search_type_TransportSearchQueryThenFetchAction.java |
2,784 | public class LocalNodeIdModule extends AbstractModule {
private final String localNodeId;
public LocalNodeIdModule(String localNodeId) {
this.localNodeId = localNodeId;
}
@Override
protected void configure() {
bind(String.class).annotatedWith(LocalNodeId.class).toInstance(localNod... | 0true | src_main_java_org_elasticsearch_index_LocalNodeIdModule.java |
3,320 | final class EmptyByteValuesWithOrdinals extends BytesValues.WithOrdinals {
EmptyByteValuesWithOrdinals(Ordinals.Docs ordinals) {
super(ordinals);
}
@Override
public BytesRef getValueByOrd(long ord) {
scratch.length = 0;
return scratch;
}
@Override
public int setDoc... | 0true | src_main_java_org_elasticsearch_index_fielddata_plain_EmptyByteValuesWithOrdinals.java |
1,305 | public static class Echo extends HazelcastInstanceAwareObject implements Callable<String>, DataSerializable {
String input;
public Echo() {
}
public Echo(String input) {
this.input = input;
}
@Override
public String call() {
getHaze... | 0true | hazelcast_src_main_java_com_hazelcast_examples_TestApp.java |
3,659 | public static class TypeParser implements Mapper.TypeParser {
@Override
public Mapper.Builder parse(String name, Map<String, Object> node, ParserContext parserContext) throws MapperParsingException {
AnalyzerMapper.Builder builder = analyzer();
for (Map.Entry<String, Object> ... | 0true | src_main_java_org_elasticsearch_index_mapper_internal_AnalyzerMapper.java |
513 | public abstract class StressTestSupport extends HazelcastTestSupport {
//todo: should be system property
public static final int RUNNING_TIME_SECONDS = 180;
//todo: should be system property
public static final int CLUSTER_SIZE = 6;
//todo: should be system property
public static final int KILL_... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_stress_StressTestSupport.java |
1,713 | public static class Builder<VType> implements IntObjectMap<VType> {
private IntObjectOpenHashMap<VType> map;
public Builder() {
//noinspection unchecked
this(EMPTY);
}
public Builder(int size) {
this.map = new IntObjectOpenHashMap<VType>(size);
... | 0true | src_main_java_org_elasticsearch_common_collect_ImmutableOpenIntMap.java |
1,255 | addOperation(operations, new Runnable() {
public void run() {
IMap map = hazelcast.getMap("myMap");
map.size();
}
}, 4); | 0true | hazelcast_src_main_java_com_hazelcast_examples_AllTest.java |
734 | public class DeleteByQueryResponse extends ActionResponse implements Iterable<IndexDeleteByQueryResponse> {
private Map<String, IndexDeleteByQueryResponse> indices = newHashMap();
DeleteByQueryResponse() {
}
@Override
public Iterator<IndexDeleteByQueryResponse> iterator() {
return indice... | 0true | src_main_java_org_elasticsearch_action_deletebyquery_DeleteByQueryResponse.java |
2,408 | public static class Entry {
public final int expectedInsertions;
public final double fpp;
Entry(int expectedInsertions, double fpp) {
this.expectedInsertions = expectedInsertions;
this.fpp = fpp;
}
} | 0true | src_main_java_org_elasticsearch_common_util_BloomFilter.java |
945 | public class AbstractOrderDaoExtensionHandler extends AbstractExtensionHandler implements OrderDaoExtensionHandler {
public ExtensionResultStatusType attachAdditionalDataToNewCart(Customer customer, Order cart) {
return ExtensionResultStatusType.NOT_HANDLED;
}
public ExtensionResultStatusT... | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_order_dao_AbstractOrderDaoExtensionHandler.java |
2,724 | static enum AutoImportDangledState {
NO() {
@Override
public boolean shouldImport() {
return false;
}
},
YES() {
@Override
public boolean shouldImport() {
return true;
}
},
... | 0true | src_main_java_org_elasticsearch_gateway_local_state_meta_LocalGatewayMetaState.java |
1,504 | public class OrderStateAOP implements ApplicationContextAware {
private ApplicationContext applicationContext;
public Object processOrderRetrieval(ProceedingJoinPoint call) throws Throwable {
Object returnValue;
/*
* we retrieve the OrderState instance directly from the application
... | 0true | core_broadleaf-framework-web_src_main_java_org_broadleafcommerce_core_web_order_OrderStateAOP.java |
251 | public class BufferedChecksumIndexOutput extends BufferedIndexOutput {
private final IndexOutput delegate;
private final BufferedIndexOutput bufferedDelegate;
private final Checksum digest;
public BufferedChecksumIndexOutput(IndexOutput delegate, Checksum digest) {
super(delegate instanceof Bu... | 0true | src_main_java_org_apache_lucene_store_BufferedChecksumIndexOutput.java |
1,988 | return new Internal() {
public int value() {
return value;
}
public Class<? extends Annotation> annotationType() {
return Internal.class;
}
@Override
public String toString() {
return "@" + ... | 0true | src_main_java_org_elasticsearch_common_inject_internal_UniqueAnnotations.java |
211 | public class CustomPassageFormatterTests {
@Test
public void testSimpleFormat() {
String content = "This is a really cool highlighter. Postings highlighter gives nice snippets back. No matches here.";
CustomPassageFormatter passageFormatter = new CustomPassageFormatter("<em>", "</em>", new Def... | 0true | src_test_java_org_apache_lucene_search_postingshighlight_CustomPassageFormatterTests.java |
846 | return new IAnswer<OrderItemPriceDetail>() {
@Override
public OrderItemPriceDetail answer() throws Throwable {
return new OrderItemPriceDetailImpl();
}
}; | 0true | core_broadleaf-framework_src_test_java_org_broadleafcommerce_core_offer_service_OfferDataItemProvider.java |
55 | public class PaxosClusterMemberEvents implements ClusterMemberEvents, Lifecycle
{
private Cluster cluster;
private AtomicBroadcast atomicBroadcast;
private StringLogger logger;
protected AtomicBroadcastSerializer serializer;
protected Iterable<ClusterMemberListener> listeners = Listeners.newListener... | 1no label | enterprise_cluster_src_main_java_org_neo4j_cluster_member_paxos_PaxosClusterMemberEvents.java |
324 | public class MergeXmlConfigResource {
private static final Log LOG = LogFactory.getLog(MergeXmlConfigResource.class);
public Resource getMergedConfigResource(ResourceInputStream[] sources) throws BeansException {
Resource configResource = null;
ResourceInputStream merged = null;
try {
... | 0true | common_src_main_java_org_broadleafcommerce_common_extensibility_context_merge_MergeXmlConfigResource.java |
193 | static final class Whitespace extends Run {
@Override
protected boolean isValid(char ch) {
return Character.isWhitespace(ch) && ch != '\n' && ch != '\r';
}
} | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_editor_CeylonBreakIterator.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 |
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 |
62 | public class OModificationOperationProhibitedException extends OException {
private static final long serialVersionUID = 1L;
public OModificationOperationProhibitedException() {
}
public OModificationOperationProhibitedException(String message) {
super(message);
}
public OModificationOperationProhibi... | 0true | commons_src_main_java_com_orientechnologies_common_concur_lock_OModificationOperationProhibitedException.java |
1,535 | public class BalancedShardsAllocator extends AbstractComponent implements ShardsAllocator {
public static final String SETTING_THRESHOLD = "cluster.routing.allocation.balance.threshold";
public static final String SETTING_INDEX_BALANCE_FACTOR = "cluster.routing.allocation.balance.index";
public static fina... | 0true | src_main_java_org_elasticsearch_cluster_routing_allocation_allocator_BalancedShardsAllocator.java |
1,491 | public interface AddressPicker {
void pickAddress() throws Exception;
Address getBindAddress();
Address getPublicAddress();
ServerSocketChannel getServerSocketChannel();
} | 0true | hazelcast_src_main_java_com_hazelcast_instance_AddressPicker.java |
1,976 | MapLoader mapLoader = new MapLoader() {
@Override
public Object load(Object key) {
return null;
}
@Override
public Map loadAll(Collection keys) {
loadAllCalled.set(true);
return new HashMap();
... | 0true | hazelcast_src_test_java_com_hazelcast_map_mapstore_MapLoaderTest.java |
663 | constructors[COLLECTION_EVENT_FILTER] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {
public IdentifiedDataSerializable createNew(Integer arg) {
return new CollectionEventFilter();
}
}; | 0true | hazelcast_src_main_java_com_hazelcast_collection_CollectionDataSerializerHook.java |
319 | public interface MergeBeanStatusProvider {
/**
* Typically used by the {@link AbstractMergeBeanPostProcessor} class to determine whether or not certain
* lists should be processed or if they can be safely ignored.
*
* @param bean
* @param beanName
* @param appCtx
* @return w... | 0true | common_src_main_java_org_broadleafcommerce_common_extensibility_context_merge_MergeBeanStatusProvider.java |
1,412 | clusterService.submitStateUpdateTask("open-indices " + indicesAsString, Priority.URGENT, new AckedClusterStateUpdateTask() {
@Override
public boolean mustAck(DiscoveryNode discoveryNode) {
return true;
}
@Override
public void onAllNod... | 0true | src_main_java_org_elasticsearch_cluster_metadata_MetaDataIndexStateService.java |
273 | @SuppressWarnings("serial")
public abstract class OCommandRequestAbstract implements OCommandRequestInternal {
protected OCommandResultListener resultListener;
protected OProgressListener progressListener;
protected int limit = -1;
protected long timeoutMs ... | 0true | core_src_main_java_com_orientechnologies_orient_core_command_OCommandRequestAbstract.java |
80 | NOT_EQUAL {
@Override
public boolean isValidValueType(Class<?> clazz) {
return true;
}
@Override
public boolean isValidCondition(Object condition) {
return true;
}
@Override
public boolean evaluate(Object value, Object condit... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_core_attribute_Cmp.java |
967 | @Entity
@DiscriminatorColumn(name = "TYPE")
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "BLC_BUND_ITEM_FEE_PRICE")
@Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE, region = "blOrderElements")
@AdminPresentationMergeOverrides(
{
@AdminPresentationMergeOverride(name = "", mergeE... | 1no label | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_order_domain_BundleOrderItemFeePriceImpl.java |
2,131 | public class LoggerMessageFormat {
static final char DELIM_START = '{';
static final char DELIM_STOP = '}';
static final String DELIM_STR = "{}";
private static final char ESCAPE_CHAR = '\\';
public static String format(final String messagePattern, final Object... argArray) {
return format... | 0true | src_main_java_org_elasticsearch_common_logging_support_LoggerMessageFormat.java |
1,066 | public class MapIndexConfig {
private String attribute;
private boolean ordered = false;
private MapIndexConfigReadOnly readOnly;
/**
* Creates a MapIndexConfig without an attribute and with ordered is false.
*/
public MapIndexConfig() {
}
/**
* Creates a MapIndexConfig wit... | 0true | hazelcast_src_main_java_com_hazelcast_config_MapIndexConfig.java |
1,047 | public class MultiTermVectorsShardRequest extends SingleShardOperationRequest<MultiTermVectorsShardRequest> {
private int shardId;
private String preference;
IntArrayList locations;
List<TermVectorRequest> requests;
MultiTermVectorsShardRequest() {
}
MultiTermVectorsShardRequest(String ... | 0true | src_main_java_org_elasticsearch_action_termvector_MultiTermVectorsShardRequest.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.