Unnamed: 0 int64 0 6.45k | func stringlengths 37 143k | target class label 2
classes | project stringlengths 33 157 |
|---|---|---|---|
1,510 | @Component("blCartStateRequestProcessor")
public class CartStateRequestProcessor extends AbstractBroadleafWebRequestProcessor {
/** Logger for this class and subclasses */
protected final Log LOG = LogFactory.getLog(getClass());
public static final String BLC_RULE_MAP_PARAM = "blRuleMap";
private Str... | 1no label | core_broadleaf-framework-web_src_main_java_org_broadleafcommerce_core_web_order_security_CartStateRequestProcessor.java |
246 | 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 |
5,426 | static class BytesValues extends org.elasticsearch.index.fielddata.BytesValues {
private final FieldDataSource source;
private final SearchScript script;
private final BytesRef scratch;
public BytesValues(FieldDataSource source, SearchScript script) {
... | 1no label | src_main_java_org_elasticsearch_search_aggregations_support_FieldDataSource.java |
92 | public class ReadOnlyTxManager extends AbstractTransactionManager
implements Lifecycle
{
private ThreadLocalWithSize<ReadOnlyTransactionImpl> txThreadMap;
private int eventIdentifierCounter = 0;
private XaDataSourceManager xaDsManager = null;
private final StringLogger logger;
private fin... | 0true | community_kernel_src_main_java_org_neo4j_kernel_impl_transaction_ReadOnlyTxManager.java |
166 | public class SpeedTestData {
protected static final int TIME_WAIT = 200;
protected long cycles = 1;
protected long cyclesDone = 0;
protected final static int DUMP_PERCENT = 10;
protected String currentTestName;
protected long ... | 0true | commons_src_test_java_com_orientechnologies_common_test_SpeedTestData.java |
334 | new Thread() {
public void run() {
map.tryPut("key1", "value2", 5, TimeUnit.SECONDS);
latch.countDown();
}
}.start(); | 0true | hazelcast-client_src_test_java_com_hazelcast_client_map_ClientMapTest.java |
74 | public class OSharedResourceAdaptive {
private final ReentrantReadWriteLock lock = new ReentrantReadWriteLock();
private final AtomicInteger users = new AtomicInteger(0);
private final boolean concurrent;
private final int timeout;
private final boolean ... | 1no label | commons_src_main_java_com_orientechnologies_common_concur_resource_OSharedResourceAdaptive.java |
520 | public class TypesExistsAction extends IndicesAction<TypesExistsRequest, TypesExistsResponse, TypesExistsRequestBuilder> {
public static final TypesExistsAction INSTANCE = new TypesExistsAction();
public static final String NAME = "indices/types/exists";
private TypesExistsAction() {
super(NAME);
... | 0true | src_main_java_org_elasticsearch_action_admin_indices_exists_types_TypesExistsAction.java |
22 | static class Edge {
private final Vertex start;
private final Vertex end;
private final String label;
private final Map<String, Object> properties = new HashMap<String, Object>();
Edge(Vertex start, String label, Vertex end) {
this.label = label;
thi... | 0true | titan-test_src_main_java_com_thinkaurelius_titan_TestByteBuffer.java |
1,273 | @SuppressWarnings("unchecked")
public class InternalTransportIndicesAdminClient extends AbstractIndicesAdminClient implements IndicesAdminClient {
private final TransportClientNodesService nodesService;
private final ThreadPool threadPool;
private final ImmutableMap<IndicesAction, TransportActionNodeProx... | 1no label | src_main_java_org_elasticsearch_client_transport_support_InternalTransportIndicesAdminClient.java |
415 | private static final class MultiExecutionCallbackWrapper implements MultiExecutionCallback {
private final AtomicInteger members;
private final MultiExecutionCallback multiExecutionCallback;
private final Map<Member, Object> values;
private MultiExecutionCallbackWrapper(int memberS... | 0true | hazelcast-client_src_main_java_com_hazelcast_client_proxy_ClientExecutorServiceProxy.java |
170 | public abstract class SpeedTestThread extends Thread implements SpeedTest {
protected SpeedTestData data;
protected SpeedTestMultiThreads owner;
protected SpeedTestThread() {
data = new SpeedTestData();
}
protected SpeedTestThread(long iCycles) {
data = new SpeedTestData(iCycles);
}
pub... | 0true | commons_src_test_java_com_orientechnologies_common_test_SpeedTestThread.java |
325 | @Component("blMultiTenantMergeBeanStatusProvider")
public class MultiTenantMergeBeanStatusProvider implements MergeBeanStatusProvider {
@Override
public boolean isProcessingEnabled(Object bean, String beanName, ApplicationContext appCtx) {
return appCtx.containsBean("blMultiTenantClassTransformer");
... | 0true | common_src_main_java_org_broadleafcommerce_common_extensibility_context_merge_MultiTenantMergeBeanStatusProvider.java |
1,992 | @Entity
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "BLC_ID_GENERATION")
public class IdGenerationImpl implements IdGeneration {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "ID_TYPE", nullable=false)
protected String type;
@Column(name = "ID_MIN", nullabl... | 1no label | core_broadleaf-profile_src_main_java_org_broadleafcommerce_profile_core_domain_IdGenerationImpl.java |
495 | public class CloseIndexClusterStateUpdateRequest extends IndicesClusterStateUpdateRequest<CloseIndexClusterStateUpdateRequest> {
CloseIndexClusterStateUpdateRequest() {
}
} | 0true | src_main_java_org_elasticsearch_action_admin_indices_close_CloseIndexClusterStateUpdateRequest.java |
2,092 | public class PutIfAbsentOperation extends BasePutOperation {
private boolean successful;
public PutIfAbsentOperation(String name, Data dataKey, Data value, long ttl) {
super(name, dataKey, value, ttl);
}
public PutIfAbsentOperation() {
}
public void run() {
dataOldValue = map... | 1no label | hazelcast_src_main_java_com_hazelcast_map_operation_PutIfAbsentOperation.java |
360 | public class TransportNodesStatsAction extends TransportNodesOperationAction<NodesStatsRequest, NodesStatsResponse, TransportNodesStatsAction.NodeStatsRequest, NodeStats> {
private final NodeService nodeService;
@Inject
public TransportNodesStatsAction(Settings settings, ClusterName clusterName, ThreadPoo... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_node_stats_TransportNodesStatsAction.java |
260 | .around(new NoInstanceHooksOverridesRule() {
@Override
protected boolean verify(Method key) {
String name = key.getName();
return !(name.equals("setUp") || name.equals("tearDown"));
}
}) | 0true | src_test_java_org_apache_lucene_util_AbstractRandomizedTest.java |
5,959 | public class SuggestBuilder implements ToXContent {
private final String name;
private String globalText;
private final List<SuggestionBuilder<?>> suggestions = new ArrayList<SuggestionBuilder<?>>();
public SuggestBuilder() {
this.name = null;
}
public SuggestBuilder(String name)... | 1no label | src_main_java_org_elasticsearch_search_suggest_SuggestBuilder.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 |
779 | getAction.execute(getRequest, new ActionListener<GetResponse>() {
@Override
public void onResponse(GetResponse getResponse) {
if (!getResponse.isExists()) {
listener.onFailure(new DocumentMissingException(null, request.type(), request.id()));
... | 1no label | src_main_java_org_elasticsearch_action_mlt_TransportMoreLikeThisAction.java |
412 | public class ClientCountDownLatchProxy extends ClientProxy implements ICountDownLatch {
private volatile Data key;
public ClientCountDownLatchProxy(String instanceName, String serviceName, String objectId) {
super(instanceName, serviceName, objectId);
}
public boolean await(long timeout, Time... | 1no label | hazelcast-client_src_main_java_com_hazelcast_client_proxy_ClientCountDownLatchProxy.java |
917 | public class IndicesOptions {
private static final IndicesOptions[] VALUES;
static {
byte max = 1 << 4;
VALUES = new IndicesOptions[max];
for (byte id = 0; id < max; id++) {
VALUES[id] = new IndicesOptions(id);
}
}
private final byte id;
private Indice... | 1no label | src_main_java_org_elasticsearch_action_support_IndicesOptions.java |
404 | snapshotsService.createSnapshot(snapshotRequest, new SnapshotsService.CreateSnapshotListener() {
@Override
public void onResponse() {
if (request.waitForCompletion()) {
snapshotsService.addListener(new SnapshotsService.SnapshotCompletionListener() {
... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_snapshots_create_TransportCreateSnapshotAction.java |
3,221 | public abstract class AbstractReplicatedRecordStore<K, V>
extends AbstractBaseReplicatedRecordStore<K, V> {
static final String CLEAR_REPLICATION_MAGIC_KEY = ReplicatedMapService.SERVICE_NAME + "$CLEAR$MESSAGE$";
public AbstractReplicatedRecordStore(String name, NodeEngine nodeEngine, CleanerRegistrat... | 1no label | hazelcast_src_main_java_com_hazelcast_replicatedmap_record_AbstractReplicatedRecordStore.java |
801 | public static class CriteriaOfferXrefPK implements Serializable {
/** The Constant serialVersionUID. */
private static final long serialVersionUID = 1L;
@ManyToOne(targetEntity = OfferImpl.class, optional=false)
@JoinColumn(name = "OFFER_ID")
protected Offer offer =... | 1no label | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_offer_domain_CriteriaOfferXref.java |
351 | transportService.sendRequest(node, NodeShutdownRequestHandler.ACTION, new NodeShutdownRequest(request), new EmptyTransportResponseHandler(ThreadPool.Names.SAME) {
@Override
public void handleResponse(TransportResponse.Empty response) {
... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_node_shutdown_TransportNodesShutdownAction.java |
169 | public static interface ForkJoinWorkerThreadFactory {
/**
* Returns a new worker thread operating in the given pool.
*
* @param pool the pool this thread works in
* @throws NullPointerException if the pool is null
*/
public ForkJoinWorkerThread newThread(... | 0true | src_main_java_jsr166y_ForkJoinPool.java |
156 | public class MockSimpleClient implements SimpleClient {
private static final AtomicInteger port = new AtomicInteger(9000);
private final ClientEngineImpl clientEngine;
private final MockConnection connection;
public MockSimpleClient(ClientEngineImpl clientEngine) throws UnknownHostException {
... | 1no label | hazelcast_src_test_java_com_hazelcast_client_MockSimpleClient.java |
2,030 | public class LocaleType implements Serializable, BroadleafEnumerationType {
public static void main(String[] items) {
System.out.println(Locale.TAIWAN.toString());
}
private static final long serialVersionUID = 1L;
private static final Map<String, LocaleType> TYPES = new LinkedHashMap<Str... | 1no label | core_broadleaf-profile_src_main_java_org_broadleafcommerce_profile_core_service_type_LocaleType.java |
1,709 | public class PermissionType implements Serializable, BroadleafEnumerationType {
private static final long serialVersionUID = 1L;
private static final Map<String, PermissionType> TYPES = new LinkedHashMap<String, PermissionType>();
public static final PermissionType READ = new PermissionType("READ", "Rea... | 1no label | admin_broadleaf-open-admin-platform_src_main_java_org_broadleafcommerce_openadmin_server_security_service_type_PermissionType.java |
151 | public class ODateSerializer implements OBinarySerializer<Date> {
public static ODateSerializer INSTANCE = new ODateSerializer();
public static final byte ID = 4;
public int getObjectSize(Date object, Object... hints) {
return OLongSerializer.LONG_SIZE;
}
public void serialize(Date object, byte[] strea... | 0true | commons_src_main_java_com_orientechnologies_common_serialization_types_ODateSerializer.java |
1,195 | public class Message<E> extends EventObject {
private final E messageObject;
private final long publishTime;
private final Member publishingMember;
public Message(String topicName, E messageObject, long publishTime, Member publishingMember) {
super(topicName);
this.messageObject = mess... | 1no label | hazelcast_src_main_java_com_hazelcast_core_Message.java |
252 | public final class RateLimitedFSDirectory extends FilterDirectory{
private final StoreRateLimiting.Provider rateLimitingProvider;
private final StoreRateLimiting.Listener rateListener;
public RateLimitedFSDirectory(FSDirectory wrapped, StoreRateLimiting.Provider rateLimitingProvider,
... | 1no label | src_main_java_org_apache_lucene_store_RateLimitedFSDirectory.java |
26 | final class ImportVisitor extends Visitor {
private final String prefix;
private final CommonToken token;
private final int offset;
private final Node node;
private final CeylonParseController cpc;
private final List<ICompletionProposal> result;
ImportVisitor(String prefix, CommonToken... | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_complete_ImportVisitor.java |
34 | @SuppressWarnings("unchecked")
public abstract class OMVRBTreeEntry<K, V> implements Map.Entry<K, V>, Comparable<OMVRBTreeEntry<K, V>> {
protected OMVRBTree<K, V> tree;
private int pageSplitItems;
public static final int BINARY_SEARCH_THRESHOLD = 10;
/**
* Constructor called on unmarshallin... | 0true | commons_src_main_java_com_orientechnologies_common_collection_OMVRBTreeEntry.java |
1,441 | public class TitanGraphOutputMapReduce {
public enum Counters {
VERTICES_ADDED,
VERTICES_REMOVED,
VERTEX_PROPERTIES_ADDED,
VERTEX_PROPERTIES_REMOVED,
EDGES_ADDED,
EDGES_REMOVED,
EDGE_PROPERTIES_ADDED,
EDGE_PROPERTIES_REMOVED,
NULL_VERTEX_EDGES... | 1no label | titan-hadoop-parent_titan-hadoop-core_src_main_java_com_thinkaurelius_titan_hadoop_formats_util_TitanGraphOutputMapReduce.java |
247 | public static class XBuilder {
private Builder<Pair<Long, BytesRef>> builder;
private int maxSurfaceFormsPerAnalyzedForm;
private IntsRef scratchInts = new IntsRef();
private final PairOutputs<Long, BytesRef> outputs;
private boolean hasPayloads;
private BytesRef anal... | 0true | src_main_java_org_apache_lucene_search_suggest_analyzing_XAnalyzingSuggester.java |
359 | public class NodesStatsResponse extends NodesOperationResponse<NodeStats> implements ToXContent {
NodesStatsResponse() {
}
public NodesStatsResponse(ClusterName clusterName, NodeStats[] nodes) {
super(clusterName, nodes);
}
@Override
public void readFrom(StreamInput in) throws IOExcep... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_node_stats_NodesStatsResponse.java |
5,290 | public class IpRangeParser implements Aggregator.Parser {
@Override
public String type() {
return InternalIPv4Range.TYPE.name();
}
@Override
public AggregatorFactory parse(String aggregationName, XContentParser parser, SearchContext context) throws IOException {
ValuesSourceConfig... | 1no label | src_main_java_org_elasticsearch_search_aggregations_bucket_range_ipv4_IpRangeParser.java |
99 | LifecycleListener listener = new LifecycleListener() {
public void stateChanged(LifecycleEvent event) {
final LifecycleState state = list.poll();
if (state != null && state.equals(event.getState())) {
latch.countDown();
}
... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_ClientIssueTest.java |
1,218 | public class TitanSchemaVertex extends CacheVertex implements SchemaSource {
public TitanSchemaVertex(StandardTitanTx tx, long id, byte lifecycle) {
super(tx, id, lifecycle);
}
private String name = null;
@Override
public String getName() {
if (name == null) {
TitanPro... | 1no label | titan-core_src_main_java_com_thinkaurelius_titan_graphdb_types_vertices_TitanSchemaVertex.java |
226 | @Documented
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
/**
* Tells to OrientDB to call the method AFTER the record is read and unmarshalled from database.
* Applies only to the entity Objects reachable by the OrientDB engine after have registered them.
*/
public @interface OAfterDeserialization ... | 0true | core_src_main_java_com_orientechnologies_orient_core_annotation_OAfterDeserialization.java |
608 | @Component("blRequestProcessor")
public class BroadleafRequestProcessor extends AbstractBroadleafWebRequestProcessor {
protected final Log LOG = LogFactory.getLog(getClass());
private static String REQUEST_DTO_PARAM_NAME = BroadleafRequestFilter.REQUEST_DTO_PARAM_NAME;
@Resource(name = "blSiteResolver")
... | 1no label | common_src_main_java_org_broadleafcommerce_common_web_BroadleafRequestProcessor.java |
990 | @SuppressWarnings("serial")
public class ORecordSerializerJSON extends ORecordSerializerStringAbstract {
public static final String NAME = "json";
public static final ORecordSerializerJSON INSTANCE = new ORecordSerializerJSON();
public static final String ... | 1no label | core_src_main_java_com_orientechnologies_orient_core_serialization_serializer_record_string_ORecordSerializerJSON.java |
177 | public class MersenneTwisterFast implements Serializable, Cloneable
{
// Serialization
private static final long serialVersionUID = -8219700664442619525L; // locked as of Version 15
// Period parameters
private static final int N = 624;
private static final int M = 397;
private static final int MATRIX_A = 0x990... | 0true | commons_src_main_java_com_orientechnologies_common_util_MersenneTwisterFast.java |
699 | @Entity
@Inheritance(strategy = InheritanceType.JOINED)
@javax.persistence.Table(name="BLC_PRODUCT")
//multi-column indexes don't appear to get exported correctly when declared at the field level, so declaring here as a workaround
@org.hibernate.annotations.Table(appliesTo = "BLC_PRODUCT", indexes = {
@Index(name =... | 1no label | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_catalog_domain_ProductImpl.java |
984 | public class UnlockOperation extends BaseLockOperation implements Notifier, BackupAwareOperation {
private boolean force;
private boolean shouldNotify;
public UnlockOperation() {
}
public UnlockOperation(ObjectNamespace namespace, Data key, long threadId) {
super(namespace, key, threadId)... | 1no label | hazelcast_src_main_java_com_hazelcast_concurrent_lock_operations_UnlockOperation.java |
4,679 | final static class MatchAndScore extends QueryCollector {
final PercolateContext context;
final HighlightPhase highlightPhase;
final List<BytesRef> matches = new ArrayList<BytesRef>();
final List<Map<String, HighlightField>> hls = new ArrayList<Map<String, HighlightField>>();
... | 1no label | src_main_java_org_elasticsearch_percolator_QueryCollector.java |
254 | public class OCaseInsensitiveCollate extends ODefaultComparator implements OCollate {
public String getName() {
return "ci";
}
public Object transform(final Object obj) {
if (obj instanceof String)
return ((String) obj).toLowerCase();
return obj;
}
} | 1no label | core_src_main_java_com_orientechnologies_orient_core_collate_OCaseInsensitiveCollate.java |
621 | static final class Fields {
static final XContentBuilderString INDICES = new XContentBuilderString("indices");
static final XContentBuilderString SHARDS = new XContentBuilderString("shards");
} | 0true | src_main_java_org_elasticsearch_action_admin_indices_stats_IndicesStatsResponse.java |
3,660 | public class BoostFieldMapper extends NumberFieldMapper<Float> implements InternalMapper, RootMapper {
public static final String CONTENT_TYPE = "_boost";
public static final String NAME = "_boost";
public static class Defaults extends NumberFieldMapper.Defaults {
public static final String NAME =... | 1no label | src_main_java_org_elasticsearch_index_mapper_internal_BoostFieldMapper.java |
788 | public class StandardSchemaCache implements SchemaCache {
public static final int MAX_CACHED_TYPES_DEFAULT = 10000;
private static final int INITIAL_CAPACITY = 128;
private static final int INITIAL_CACHE_SIZE = 16;
private static final int CACHE_RELATION_MULTIPLIER = 3; // 1) type-name, 2) type-defini... | 1no label | titan-core_src_main_java_com_thinkaurelius_titan_graphdb_database_cache_StandardSchemaCache.java |
3,234 | public final static class Strings extends ScriptDocValues {
private final BytesValues values;
private final CharsRef spare = new CharsRef();
private SlicedObjectList<String> list;
public Strings(BytesValues values) {
this.values = values;
list = new SlicedOb... | 1no label | src_main_java_org_elasticsearch_index_fielddata_ScriptDocValues.java |
3,145 | public class TxnPollBackupOperation extends QueueOperation {
long itemId;
public TxnPollBackupOperation() {
}
public TxnPollBackupOperation(String name, long itemId) {
super(name);
this.itemId = itemId;
}
@Override
public void run() throws Exception {
response = g... | 1no label | hazelcast_src_main_java_com_hazelcast_queue_tx_TxnPollBackupOperation.java |
2,580 | class ApplySettings implements NodeSettingsService.Listener {
@Override
public void onRefreshSettings(Settings settings) {
int minimumMasterNodes = settings.getAsInt("discovery.zen.minimum_master_nodes", ZenDiscovery.this.electMaster.minimumMasterNodes());
if (minimumMasterNo... | 1no label | src_main_java_org_elasticsearch_discovery_zen_ZenDiscovery.java |
22 | class ControlStructureCompletionProposal extends CompletionProposal {
static void addForProposal(int offset, String prefix,
CeylonParseController cpc, List<ICompletionProposal> result,
DeclarationWithProximity dwp, Declaration d) {
if (d instanceof Value) {
TypedDe... | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_complete_ControlStructureCompletionProposal.java |
610 | Runnable recreateIndexesTask = new Runnable() {
@Override
public void run() {
try {
// START IT IN BACKGROUND
newDb.setProperty(ODatabase.OPTIONS.SECURITY.toString(), Boolean.FALSE);
newDb.open("admin", "nopass");
ODatabaseRecordThreadLoca... | 1no label | core_src_main_java_com_orientechnologies_orient_core_index_OIndexManagerShared.java |
1,019 | @Entity
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name="BLC_ORDER_ATTRIBUTE")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE, region="blOrderElements")
@AdminPresentationMergeOverrides(
{
@AdminPresentationMergeOverride(name = "", mergeEntries =
@AdminPresentationMergeEntry(prop... | 1no label | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_order_domain_OrderAttributeImpl.java |
69 | {
@Override
public int compare( Record r1, Record r2 )
{
return r1.getSequenceNumber() - r2.getSequenceNumber();
}
} ); | 0true | community_kernel_src_main_java_org_neo4j_kernel_impl_transaction_TxLog.java |
470 | public class SandBoxType implements Serializable, BroadleafEnumerationType {
private static final long serialVersionUID = 1L;
private static final Map<String, SandBoxType> TYPES = new LinkedHashMap<String, SandBoxType>();
public static final SandBoxType USER = new SandBoxType("USER", "User");
public ... | 1no label | common_src_main_java_org_broadleafcommerce_common_sandbox_domain_SandBoxType.java |
740 | public class TransportIndexDeleteByQueryAction extends TransportIndexReplicationOperationAction<IndexDeleteByQueryRequest, IndexDeleteByQueryResponse, ShardDeleteByQueryRequest, ShardDeleteByQueryRequest, ShardDeleteByQueryResponse> {
@Inject
public TransportIndexDeleteByQueryAction(Settings settings, ClusterS... | 0true | src_main_java_org_elasticsearch_action_deletebyquery_TransportIndexDeleteByQueryAction.java |
131 | public class LongMaxUpdater extends Striped64 implements Serializable {
private static final long serialVersionUID = 7249069246863182397L;
/**
* Version of max for use in retryUpdate
*/
final long fn(long v, long x) { return v > x ? v : x; }
/**
* Creates a new instance with initial max... | 0true | src_main_java_jsr166e_LongMaxUpdater.java |
710 | static class WriteResult {
final Object response;
final long preVersion;
final Tuple<String, String> mappingToUpdate;
final Engine.IndexingOperation op;
WriteResult(Object response, long preVersion, Tuple<String, String> mappingToUpdate, Engine.IndexingOperation op) {
... | 0true | src_main_java_org_elasticsearch_action_bulk_TransportShardBulkAction.java |
279 | public interface ActionFuture<T> extends Future<T> {
/**
* Similar to {@link #get()}, just catching the {@link InterruptedException} with
* restoring the interrupted state on the thread and throwing an {@link org.elasticsearch.ElasticsearchIllegalStateException},
* and throwing the actual cause of t... | 0true | src_main_java_org_elasticsearch_action_ActionFuture.java |
12 | enum TextCommandType {
GET((byte) 0),
PARTIAL_GET((byte) 1),
GETS((byte) 2),
SET((byte) 3),
APPEND((byte) 4),
PREPEND((byte) 5),
ADD((byte) 6),
REPLACE((byte) 7),
DELETE((byte) 8),
QUIT((byte) 9),
STATS((byte) 10),
GET_E... | 0true | hazelcast_src_main_java_com_hazelcast_ascii_TextCommandConstants.java |
5,400 | @SuppressWarnings({"unchecked", "ForLoopReplaceableByForEach"})
public class AggregationContext implements ReaderContextAware, ScorerAware {
private final SearchContext searchContext;
private ObjectObjectOpenHashMap<String, FieldDataSource>[] perDepthFieldDataSources = new ObjectObjectOpenHashMap[4];
priv... | 1no label | src_main_java_org_elasticsearch_search_aggregations_support_AggregationContext.java |
198 | public static class Tab {
public static class Name {
public static final String Audit = "Auditable_Tab";
}
public static class Order {
public static final int Audit = 99000;
}
} | 0true | common_src_main_java_org_broadleafcommerce_common_audit_Auditable.java |
2,064 | @Component("blSessionFixationProtectionFilter")
public class SessionFixationProtectionFilter extends GenericFilterBean {
private static final Log LOG = LogFactory.getLog(SessionFixationProtectionFilter.class);
protected static final String SESSION_ATTR = "SFP-ActiveID";
@Resource(name = "blSessionFix... | 1no label | core_broadleaf-profile-web_src_main_java_org_broadleafcommerce_profile_web_core_security_SessionFixationProtectionFilter.java |
236 | @Service("blModuleConfigurationService")
public class ModuleConfigurationServiceImpl implements ModuleConfigurationService {
@Resource(name = "blModuleConfigurationDao")
protected ModuleConfigurationDao moduleConfigDao;
@Override
public ModuleConfiguration findById(Long id) {
return moduleConf... | 0true | common_src_main_java_org_broadleafcommerce_common_config_service_ModuleConfigurationServiceImpl.java |
101 | public class TestManualAcquireLock extends AbstractNeo4jTestCase
{
private Worker worker;
@Before
public void doBefore() throws Exception
{
worker = new Worker();
}
@After
public void doAfter() throws Exception
{
worker.close();
}
@Test
public void ... | 0true | community_kernel_src_test_java_org_neo4j_kernel_impl_transaction_TestManualAcquireLock.java |
122 | static final class AdaptedCallable<T> extends ForkJoinTask<T>
implements RunnableFuture<T> {
final Callable<? extends T> callable;
T result;
AdaptedCallable(Callable<? extends T> callable) {
if (callable == null) throw new NullPointerException();
this.callable... | 0true | src_main_java_jsr166e_ForkJoinTask.java |
1,852 | nodeEngine.getExecutionService().submit("hz:map-merge", new Runnable() {
public void run() {
final SimpleEntryView entryView = createSimpleEntryView(record.getKey(), toData(record.getValue()), record);
MergeOperation ope... | 1no label | hazelcast_src_main_java_com_hazelcast_map_MapService.java |
498 | public class CloseIndexResponse extends AcknowledgedResponse {
CloseIndexResponse() {
}
CloseIndexResponse(boolean acknowledged) {
super(acknowledged);
}
@Override
public void readFrom(StreamInput in) throws IOException {
super.readFrom(in);
readAcknowledged(in);
}... | 0true | src_main_java_org_elasticsearch_action_admin_indices_close_CloseIndexResponse.java |
534 | @Deprecated
public class GatewaySnapshotResponse extends BroadcastOperationResponse {
GatewaySnapshotResponse() {
}
GatewaySnapshotResponse(int totalShards, int successfulShards, int failedShards, List<ShardOperationFailedException> shardFailures) {
super(totalShards, successfulShards, failedShar... | 0true | src_main_java_org_elasticsearch_action_admin_indices_gateway_snapshot_GatewaySnapshotResponse.java |
278 | public class EmailPropertyType implements Serializable, BroadleafEnumerationType {
private static final long serialVersionUID = 1L;
private static final Map<String, EmailPropertyType> TYPES = new LinkedHashMap<String, EmailPropertyType>();
public static final EmailPropertyType USER = new EmailPropertyTyp... | 1no label | common_src_main_java_org_broadleafcommerce_common_email_service_message_EmailPropertyType.java |
877 | kryos = new ThreadLocal<Kryo>() {
public Kryo initialValue() {
Kryo k = new Kryo();
k.setRegistrationRequired(registerRequired);
k.register(Class.class,new DefaultSerializers.ClassSerializer());
for (int i=0;i<defaultRegistrations.size(... | 1no label | titan-core_src_main_java_com_thinkaurelius_titan_graphdb_database_serialize_kryo_KryoSerializer.java |
1,172 | public class OQueryOperatorBetween extends OQueryOperatorEqualityNotNulls {
public OQueryOperatorBetween() {
super("BETWEEN", 5, false, 3);
}
@Override
@SuppressWarnings("unchecked")
protected boolean evaluateExpression(final OIdentifiable iRecord, final OSQLFilterCondition iCondition, final Object iLef... | 1no label | core_src_main_java_com_orientechnologies_orient_core_sql_operator_OQueryOperatorBetween.java |
828 | getDatabase().getStorage().callInLock(new Callable<Object>() {
@Override
public Object call() throws Exception {
final OClass cls = classes.get(key);
if (cls == null)
throw new OSchemaException("Class " + iClassName + " was not found in current database");
if (cls.get... | 1no label | core_src_main_java_com_orientechnologies_orient_core_metadata_schema_OSchemaShared.java |
204 | static class State {
final char[] data; // the characters in the query string
final char[] buffer; // a temporary buffer used to reduce necessary allocations
int index;
int length;
BooleanClause.Occur currentOperation;
BooleanClause.Occur previousOperation;
... | 0true | src_main_java_org_apache_lucene_queryparser_XSimpleQueryParser.java |
63 | public interface TitanGraphQuery<Q extends TitanGraphQuery<Q>> extends GraphQuery {
/* ---------------------------------------------------------------
* Query Specification
* ---------------------------------------------------------------
*/
/**
* The returned element must have a property for ... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_core_TitanGraphQuery.java |
1,598 | public class ServerRun {
protected String rootPath;
protected final String serverId;
protected OServer server;
public ServerRun(final String iRootPath, final String serverId) {
this.rootPath = iRootPath;
this.serverId = serverId;
}
protected ODatabaseDocumentTx createDatabase(final Stri... | 1no label | distributed_src_test_java_com_orientechnologies_orient_server_distributed_ServerRun.java |
370 | future.andThen(new ExecutionCallback<Map<String, Integer>>() {
@Override
public void onResponse(Map<String, Integer> response) {
try {
listenerResults.putAll(response);
} finally {
semaphore.release();
... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_mapreduce_DistributedMapperClientMapReduceTest.java |
238 | XPostingsHighlighter highlighter = new XPostingsHighlighter() {
Iterator<String> valuesIterator = Arrays.asList(firstValue, secondValue, thirdValue).iterator();
Iterator<Integer> offsetsIterator = Arrays.asList(0, firstValue.length() + 1, secondValue.length() + 1).iterator();
... | 0true | src_test_java_org_apache_lucene_search_postingshighlight_XPostingsHighlighterTests.java |
0 | public interface AbbreviationService {
/**
* Gets the available abbreviations for a string. If no abbreviations
* are found, the returned available abbreviations consist of each
* word in the original string, in turn, with one abbreviation, the
* word unchanged.
*
* @param s the string to abbreviate
* ... | 0true | tableViews_src_main_java_gov_nasa_arc_mct_abbreviation_AbbreviationService.java |
3,710 | public class IpFieldMapper extends NumberFieldMapper<Long> {
public static final String CONTENT_TYPE = "ip";
public static String longToIp(long longIp) {
int octet3 = (int) ((longIp >> 24) % 256);
int octet2 = (int) ((longIp >> 16) % 256);
int octet1 = (int) ((longIp >> 8) % 256);
... | 1no label | src_main_java_org_elasticsearch_index_mapper_ip_IpFieldMapper.java |
45 | public enum Multiplicity {
/**
* The given edge label specifies a multi-graph, meaning that the multiplicity is not constrained and that
* there may be multiple edges of this label between any given pair of vertices.
*
* @link http://en.wikipedia.org/wiki/Multigraph
*/
MULTI,
/**
... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_core_Multiplicity.java |
52 | final class NestedCompletionProposal implements ICompletionProposal,
ICompletionProposalExtension2 {
private final Declaration dec;
private final int offset;
public NestedCompletionProposal(Declaration dec, int offset) {
super();
this.de... | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_complete_RefinementCompletionProposal.java |
13 | final ScheduledExecutorService exe = new ScheduledThreadPoolExecutor(1,new RejectedExecutionHandler() {
@Override
public void rejectedExecution(Runnable r, ThreadPoolExecutor executor) {
r.run();
}
}); | 0true | titan-test_src_main_java_com_thinkaurelius_titan_TestBed.java |
552 | public static class FieldMappingMetaData implements ToXContent {
public static final FieldMappingMetaData NULL = new FieldMappingMetaData("", BytesArray.EMPTY);
private String fullName;
private BytesReference source;
public FieldMappingMetaData(String fullName, BytesReference sourc... | 1no label | src_main_java_org_elasticsearch_action_admin_indices_mapping_get_GetFieldMappingsResponse.java |
186 | static final class QNode implements ForkJoinPool.ManagedBlocker {
final Phaser phaser;
final int phase;
final boolean interruptible;
final boolean timed;
boolean wasInterrupted;
long nanos;
long lastTime;
volatile Thread thread; // nulled to cancel wai... | 0true | src_main_java_jsr166y_Phaser.java |
1,337 | public class Hadoop2Compiler extends HybridConfigured implements HadoopCompiler {
private static final String MAPRED_COMPRESS_MAP_OUTPUT = "mapred.compress.map.output";
private static final String MAPRED_MAP_OUTPUT_COMPRESSION_CODEC = "mapred.map.output.compression.codec";
enum State {MAPPER, REDUCER, NON... | 1no label | titan-hadoop-parent_titan-hadoop-2_src_main_java_com_thinkaurelius_titan_hadoop_compat_h2_Hadoop2Compiler.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 |
129 | @Repository("blStructuredContentDao")
public class StructuredContentDaoImpl implements StructuredContentDao {
private static SandBox DUMMY_SANDBOX = new SandBoxImpl();
{
DUMMY_SANDBOX.setId(-1l);
}
@PersistenceContext(unitName = "blPU")
protected EntityManager em;
@Resource(name="blEn... | 0true | admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_structure_dao_StructuredContentDaoImpl.java |
48 | public class VersionCommandProcessor extends MemcacheCommandProcessor<VersionCommand> {
public VersionCommandProcessor(TextCommandServiceImpl textCommandService) {
super(textCommandService);
}
public void handle(VersionCommand request) {
textCommandService.sendResponse(request);
}
... | 0true | hazelcast_src_main_java_com_hazelcast_ascii_memcache_VersionCommandProcessor.java |
153 | public class ODecimalSerializer implements OBinarySerializer<BigDecimal> {
public static final ODecimalSerializer INSTANCE = new ODecimalSerializer();
public static final byte ID = 18;
public int getObjectSize(BigDecimal object, Object... hints) {
return OIntegerSerializer.INT_SIZE + OBinaryTypeSerializer.IN... | 0true | commons_src_main_java_com_orientechnologies_common_serialization_types_ODecimalSerializer.java |
1,884 | public class DynamicEntityFormInfo {
public static final String FIELD_SEPARATOR = "|";
protected String criteriaName;
protected String propertyName;
protected String propertyValue;
protected String ceilingClassName;
public DynamicEntityFormInfo withCriteriaName(String criteriaName) {
... | 1no label | admin_broadleaf-open-admin-platform_src_main_java_org_broadleafcommerce_openadmin_web_form_entity_DynamicEntityFormInfo.java |
71 | public interface TitanVertex extends TitanElement, Vertex {
/* ---------------------------------------------------------------
* Creation and modification methods
* ---------------------------------------------------------------
*/
/**
* Creates a new edge incident on this vertex.
... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_core_TitanVertex.java |
616 | public class IndexStats implements Iterable<IndexShardStats> {
private final String index;
private final ShardStats shards[];
public IndexStats(String index, ShardStats[] shards) {
this.index = index;
this.shards = shards;
}
public String getIndex() {
return this.index;
... | 0true | src_main_java_org_elasticsearch_action_admin_indices_stats_IndexStats.java |
832 | public class SearchResponse extends ActionResponse implements ToXContent {
private InternalSearchResponse internalResponse;
private String scrollId;
private int totalShards;
private int successfulShards;
private ShardSearchFailure[] shardFailures;
private long tookInMillis;
public Sea... | 1no label | src_main_java_org_elasticsearch_action_search_SearchResponse.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.