Unnamed: 0 int64 0 6.45k | func stringlengths 37 143k | target class label 2
classes | project stringlengths 33 157 |
|---|---|---|---|
4 | killerHook = new Thread() {
public void run() {
killAndUnregisterHook(stat);
}
}; | 0true | titan-test_src_main_java_com_thinkaurelius_titan_DaemonRunner.java |
808 | public class TransportPercolateAction extends TransportBroadcastOperationAction<PercolateRequest, PercolateResponse, PercolateShardRequest, PercolateShardResponse> {
private final PercolatorService percolatorService;
private final TransportGetAction getAction;
@Inject
public TransportPercolateAction(S... | 1no label | src_main_java_org_elasticsearch_action_percolate_TransportPercolateAction.java |
295 | new Thread() {
public void run() {
if (!l.tryLock()) {
latch.countDown();
}
try {
if (l.tryLock(5, TimeUnit.SECONDS)) {
latch.countDown();
}
} catch (In... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_lock_ClientLockTest.java |
2,820 | nodeEngine.getExecutionService().schedule(new Runnable() {
@Override
public void run() {
resumeMigration();
}
}, migrationActivationDelay, TimeUnit.MILLISECONDS); | 1no label | hazelcast_src_main_java_com_hazelcast_partition_impl_InternalPartitionServiceImpl.java |
478 | public class GetAliasesResponse extends ActionResponse {
private ImmutableOpenMap<String, List<AliasMetaData>> aliases = ImmutableOpenMap.of();
public GetAliasesResponse(ImmutableOpenMap<String, List<AliasMetaData>> aliases) {
this.aliases = aliases;
}
GetAliasesResponse() {
}
publi... | 0true | src_main_java_org_elasticsearch_action_admin_indices_alias_get_GetAliasesResponse.java |
3,857 | public class HasChildFilterParser implements FilterParser {
public static final String NAME = "has_child";
@Inject
public HasChildFilterParser() {
}
@Override
public String[] names() {
return new String[]{NAME, Strings.toCamelCase(NAME)};
}
@Override
public Filter parse(Q... | 1no label | src_main_java_org_elasticsearch_index_query_HasChildFilterParser.java |
5,301 | return new Comparator<Terms.Bucket>() {
@Override
public int compare(Terms.Bucket o1, Terms.Bucket o2) {
double v1 = ((MetricsAggregator.MultiValue) aggregator).metric(valueName, ((InternalTerms.Bucket) o1).bucketOrd);
... | 1no label | src_main_java_org_elasticsearch_search_aggregations_bucket_terms_InternalOrder.java |
432 | return new EventHandler<ReplicatedMapPortableEntryEvent>() {
public void handle(ReplicatedMapPortableEntryEvent event) {
V value = (V) event.getValue();
V oldValue = (V) event.getOldValue();
K key = (K) event.getKey();
Member member = g... | 0true | hazelcast-client_src_main_java_com_hazelcast_client_proxy_ClientReplicatedMapProxy.java |
92 | private static class GenericEvent implements Serializable {
private static final long serialVersionUID = -933111044641052844L;
private int userId;
public GenericEvent(int userId) {
this.setUserId(userId);
}
public int getUserId() {
return userId;
... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_ClientEntryListenerDisconnectTest.java |
603 | public class GetSettingsResponse extends ActionResponse {
private ImmutableOpenMap<String, Settings> indexToSettings = ImmutableOpenMap.of();
public GetSettingsResponse(ImmutableOpenMap<String, Settings> indexToSettings) {
this.indexToSettings = indexToSettings;
}
GetSettingsResponse() {
... | 0true | src_main_java_org_elasticsearch_action_admin_indices_settings_get_GetSettingsResponse.java |
287 | static class TryLockThread extends LockTestThread {
public TryLockThread(ILock lock, AtomicInteger upTotal, AtomicInteger downTotal){
super(lock, upTotal, downTotal);
}
public void doRun() throws Exception{
if ( lock.tryLock() ) {
work();
... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_lock_ClientConcurrentLockTest.java |
6 | public class HBaseStatus {
private static final Logger log =
LoggerFactory.getLogger(HBaseStatus.class);
private final File file;
private final String version;
private HBaseStatus(File file, String version) {
Preconditions.checkNotNull(file);
Preconditions.checkNotNull(ver... | 0true | titan-hbase-parent_titan-hbase-core_src_test_java_com_thinkaurelius_titan_HBaseStatus.java |
528 | public class DimensionUnitOfMeasureType implements Serializable, BroadleafEnumerationType {
private static final long serialVersionUID = 1L;
private static final Map<String, DimensionUnitOfMeasureType> TYPES = new LinkedHashMap<String, DimensionUnitOfMeasureType>();
public static final DimensionUnitOfMea... | 1no label | common_src_main_java_org_broadleafcommerce_common_util_DimensionUnitOfMeasureType.java |
5,085 | transportService.sendRequest(node, SearchScanTransportHandler.ACTION, request, new BaseTransportResponseHandler<QuerySearchResult>() {
@Override
public QuerySearchResult newInstance() {
return new QuerySearchResult();
}
@O... | 1no label | src_main_java_org_elasticsearch_search_action_SearchServiceTransportAction.java |
732 | private static class BucketSearchResult {
private final int itemIndex;
private final ArrayList<Long> path;
private BucketSearchResult(int itemIndex, ArrayList<Long> path) {
this.itemIndex = itemIndex;
this.path = path;
}
public long getLastPathItem() {
return path.g... | 1no label | core_src_main_java_com_orientechnologies_orient_core_index_sbtree_local_OSBTree.java |
1,352 | PhasedUnit lastPhasedUnit = new CeylonSourceParser<PhasedUnit>() {
@Override
protected String getCharset() {
try {
return modelPhaseUnit.getProjectResource().getDefaultCharset();
... | 1no label | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_core_model_ProjectSourceFile.java |
171 | public abstract class OPollerThread extends OSoftThread {
protected final long delay;
public OPollerThread(final long iDelay) {
delay = iDelay;
}
public OPollerThread(long iDelay, final ThreadGroup iThreadGroup) {
super(iThreadGroup, OPollerThread.class.getSimpleName());
delay = iDelay;
}
public OPollerT... | 0true | commons_src_main_java_com_orientechnologies_common_thread_OPollerThread.java |
2,828 | private static class ReplicaSyncEntryProcessor implements ScheduledEntryProcessor<Integer, ReplicaSyncInfo> {
private InternalPartitionServiceImpl partitionService;
public ReplicaSyncEntryProcessor(InternalPartitionServiceImpl partitionService) {
this.partitionService = partitionServic... | 1no label | hazelcast_src_main_java_com_hazelcast_partition_impl_InternalPartitionServiceImpl.java |
1,271 | public class FaunusSchemaManager implements SchemaInspector {
private static final FaunusSchemaManager DEFAULT_MANAGER = new FaunusSchemaManager();
private final ConcurrentMap<String,FaunusVertexLabel> vertexLabels;
private final ConcurrentMap<String,FaunusRelationType> relationTypes;
private SchemaPr... | 1no label | titan-hadoop-parent_titan-hadoop-core_src_main_java_com_thinkaurelius_titan_hadoop_FaunusSchemaManager.java |
1,586 | public class Entity implements Serializable {
protected static final long serialVersionUID = 1L;
protected String[] type;
protected Property[] properties;
protected boolean isDirty = false;
protected Boolean isDeleted = false;
protected Boolean isInactive = false;
protected Boolean isActiv... | 1no label | admin_broadleaf-open-admin-platform_src_main_java_org_broadleafcommerce_openadmin_dto_Entity.java |
708 | mappingUpdatedAction.execute(request, new ActionListener<MappingUpdatedAction.MappingUpdatedResponse>() {
@Override
public void onResponse(MappingUpdatedAction.MappingUpdatedResponse mappingUpdatedResponse) {
// all is well
}
... | 0true | src_main_java_org_elasticsearch_action_bulk_TransportShardBulkAction.java |
186 | @Component("blContentProcessor")
public class ContentProcessor extends AbstractModelVariableModifierProcessor {
protected final Log LOG = LogFactory.getLog(getClass());
public static final String REQUEST_DTO = "blRequestDTO";
public static final String BLC_RULE_MAP_PARAM = "blRuleMap";
@Resource(n... | 0true | admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_web_processor_ContentProcessor.java |
32 | public class Values extends AbstractCollection<V> {
@Override
public Iterator<V> iterator() {
return new ValueIterator(getFirstEntry());
}
public Iterator<V> inverseIterator() {
return new ValueInverseIterator(getLastEntry());
}
@Override
public int size() {
return OMVR... | 0true | commons_src_main_java_com_orientechnologies_common_collection_OMVRBTree.java |
469 | indexAliasesService.indicesAliases(updateRequest, new ClusterStateUpdateListener() {
@Override
public void onResponse(ClusterStateUpdateResponse response) {
listener.onResponse(new IndicesAliasesResponse(response.isAcknowledged()));
}
@Override
... | 0true | src_main_java_org_elasticsearch_action_admin_indices_alias_TransportIndicesAliasesAction.java |
602 | public class GetSettingsRequestBuilder extends MasterNodeReadOperationRequestBuilder<GetSettingsRequest, GetSettingsResponse, GetSettingsRequestBuilder> {
public GetSettingsRequestBuilder(InternalGenericClient client, String... indices) {
super(client, new GetSettingsRequest().indices(indices));
}
... | 0true | src_main_java_org_elasticsearch_action_admin_indices_settings_get_GetSettingsRequestBuilder.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 |
4,212 | public class StoreModule extends AbstractModule {
private final Settings settings;
private final IndexStore indexStore;
private Class<? extends Distributor> distributor;
public StoreModule(Settings settings, IndexStore indexStore) {
this.indexStore = indexStore;
this.settings = setti... | 1no label | src_main_java_org_elasticsearch_index_store_StoreModule.java |
3,686 | return new Comparator<Map.Entry>() {
public int compare(Map.Entry entry1, Map.Entry entry2) {
return SortingUtil.compare(comparator, iterationType, entry1, entry2);
}
}; | 1no label | hazelcast_src_main_java_com_hazelcast_util_SortingUtil.java |
98 | @SuppressWarnings("serial")
static final class SearchMappingsTask<K,V,U>
extends BulkTask<K,V,U> {
final BiFun<? super K, ? super V, ? extends U> searchFunction;
final AtomicReference<U> result;
SearchMappingsTask
(BulkTask<K,V,?> p, int b, int i, int f, Node<K,V>[] t... | 0true | src_main_java_jsr166e_ConcurrentHashMapV8.java |
959 | public abstract class TransportClusterInfoAction<Request extends ClusterInfoRequest, Response extends ActionResponse> extends TransportMasterNodeReadOperationAction<Request, Response> {
public TransportClusterInfoAction(Settings settings, TransportService transportService, ClusterService clusterService, ThreadPool... | 1no label | src_main_java_org_elasticsearch_action_support_master_info_TransportClusterInfoAction.java |
103 | public static class Presentation {
public static class Tab {
public static class Name {
public static final String Rules = "PageImpl_Rules_Tab";
}
public static class Order {
public static final int Rules = 1000;
}
... | 0true | admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_page_domain_PageImpl.java |
221 | public interface OOrientListener {
public void onStorageRegistered(final OStorage iStorage);
public void onStorageUnregistered(final OStorage iStorage);
public void onShutdown();
} | 0true | core_src_main_java_com_orientechnologies_orient_core_OOrientListener.java |
4,510 | public class TransportNodesListShardStoreMetaData extends TransportNodesOperationAction<TransportNodesListShardStoreMetaData.Request, TransportNodesListShardStoreMetaData.NodesStoreFilesMetaData, TransportNodesListShardStoreMetaData.NodeRequest, TransportNodesListShardStoreMetaData.NodeStoreFilesMetaData> {
privat... | 1no label | src_main_java_org_elasticsearch_indices_store_TransportNodesListShardStoreMetaData.java |
5,960 | public static abstract class SuggestionBuilder<T> implements ToXContent {
private String name;
private String suggester;
private String text;
private String field;
private String analyzer;
private Integer size;
private Integer shardSize;
public Sugge... | 1no label | src_main_java_org_elasticsearch_search_suggest_SuggestBuilder.java |
557 | public class TransportGetFieldMappingsAction extends TransportClusterInfoAction<GetFieldMappingsRequest, GetFieldMappingsResponse> {
private final IndicesService indicesService;
@Inject
public TransportGetFieldMappingsAction(Settings settings, TransportService transportService, ClusterService clusterServi... | 1no label | src_main_java_org_elasticsearch_action_admin_indices_mapping_get_TransportGetFieldMappingsAction.java |
93 | @SuppressWarnings("serial")
static final class ReduceKeysTask<K,V>
extends BulkTask<K,V,K> {
final BiFun<? super K, ? super K, ? extends K> reducer;
K result;
ReduceKeysTask<K,V> rights, nextRight;
ReduceKeysTask
(BulkTask<K,V,?> p, int b, int i, int f, Node<K... | 0true | src_main_java_jsr166e_ConcurrentHashMapV8.java |
79 | EQUAL {
@Override
public boolean isValidValueType(Class<?> clazz) {
return true;
}
@Override
public boolean isValidCondition(Object condition) {
return true;
}
@Override
public boolean evaluate(Object value, Object condition)... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_core_attribute_Cmp.java |
0 | public final class StandaloneRandomizedContext {
private StandaloneRandomizedContext() {
}
/**
* Creates a new {@link RandomizedContext} associated to the current thread
*/
public static void createRandomizedContext(Class<?> testClass, Randomness runnerRandomness) {
//the randomized... | 0true | src_test_java_com_carrotsearch_randomizedtesting_StandaloneRandomizedContext.java |
41 | public class Stats {
public int waiting_requests;
public int threads;
public int uptime; //seconds
public long cmd_get;
public long cmd_set;
public long cmd_touch;
public long get_hits;
public long get_misses;
public long delete_hits;
public long delete_misses;
public long in... | 0true | hazelcast_src_main_java_com_hazelcast_ascii_memcache_Stats.java |
2,453 | public class MultiMapService implements ManagedService, RemoteService,
MigrationAwareService, EventPublishingService<MultiMapEvent, EventListener>, TransactionalService {
public static final String SERVICE_NAME = "hz:impl:multiMapService";
private static final int STATS_MAP_INITIAL_CAPACITY = 1000;
... | 1no label | hazelcast_src_main_java_com_hazelcast_multimap_MultiMapService.java |
210 | @Deprecated
public class HydratedCacheElement extends Hashtable<String, Object> {
private static final long serialVersionUID = 1L;
public Object getCacheElementItem(String elementItemName, Serializable parentKey) {
return get(elementItemName + "_" + parentKey);
}
public Object putCacheEle... | 0true | common_src_main_java_org_broadleafcommerce_common_cache_engine_HydratedCacheElement.java |
147 | public class AtomicDoubleArray implements java.io.Serializable {
private static final long serialVersionUID = -2308431214976778248L;
private final transient long[] array;
private long checkedByteOffset(int i) {
if (i < 0 || i >= array.length)
throw new IndexOutOfBoundsException("index ... | 0true | src_main_java_jsr166e_extra_AtomicDoubleArray.java |
629 | public class GatewaySnapshotStatus {
public static enum Stage {
NONE((byte) 0),
INDEX((byte) 1),
TRANSLOG((byte) 2),
FINALIZE((byte) 3),
DONE((byte) 4),
FAILURE((byte) 5);
private final byte value;
Stage(byte value) {
this.value = value;... | 0true | src_main_java_org_elasticsearch_action_admin_indices_status_GatewaySnapshotStatus.java |
5 | public class NetworkReceiver
implements MessageSource, Lifecycle
{
public interface Configuration
{
HostnamePort clusterServer();
int defaultPort();
String name(); // Name of this cluster instance. Null in most cases, but tools may use e.g. "Backup"
}
public interfac... | 1no label | enterprise_cluster_src_main_java_org_neo4j_cluster_com_NetworkReceiver.java |
304 | public class MergeEhCacheManagerFactoryBean extends EhCacheManagerFactoryBean implements ApplicationContextAware {
private ApplicationContext applicationContext;
@Override
public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
this.applicationContext = app... | 0true | common_src_main_java_org_broadleafcommerce_common_extensibility_cache_ehcache_MergeEhCacheManagerFactoryBean.java |
268 | public class OCommandManager {
private Map<String, Class<? extends OCommandRequest>> commandRequesters = new HashMap<String, Class<? extends OCommandRequest>>();
private Map<Class<? extends OCommandRequest>, Class<? extends OCommandExecutor>> commandReqExecMap = new HashMap<Class<? extend... | 0true | core_src_main_java_com_orientechnologies_orient_core_command_OCommandManager.java |
3,248 | public class AtomicLongPermission extends InstancePermission {
private static final int READ = 0x4;
private static final int MODIFY = 0x8;
private static final int ALL = READ | MODIFY | CREATE | DESTROY;
public AtomicLongPermission(String name, String... actions) {
super(name, actions);
}... | 1no label | hazelcast_src_main_java_com_hazelcast_security_permission_AtomicLongPermission.java |
2,854 | final class PromoteFromBackupOperation extends AbstractOperation
implements PartitionAwareOperation, MigrationCycleOperation {
@Override
public void run() throws Exception {
logPromotingPartition();
PartitionMigrationEvent event = createPartitionMigrationEvent();
sendToAllMigr... | 1no label | hazelcast_src_main_java_com_hazelcast_partition_impl_PromoteFromBackupOperation.java |
87 | public interface ObjectByObjectToInt<A,B> {int apply(A a, B b); } | 0true | src_main_java_jsr166e_ConcurrentHashMapV8.java |
149 | public interface StructuredContentType extends Serializable {
/**
* Gets the primary key.
*
* @return the primary key
*/
@Nullable
public Long getId();
/**
* Sets the primary key.
*
* @param id the new primary key
*/
public void setId(@Nullable Long id);
... | 0true | admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_structure_domain_StructuredContentType.java |
15 | exe.submit(new Runnable() {
private final int number = atomicInt.incrementAndGet();
@Override
public void run() {
try {
Thread.sleep(150);
... | 0true | titan-test_src_main_java_com_thinkaurelius_titan_TestBed.java |
160 | private class DescendingItr extends AbstractItr {
Node<E> startNode() { return last(); }
Node<E> nextNode(Node<E> p) { return pred(p); }
} | 0true | src_main_java_jsr166y_ConcurrentLinkedDeque.java |
51 | @Controller("blAdminAssetController")
@RequestMapping("/" + AdminAssetController.SECTION_KEY)
public class AdminAssetController extends AdminBasicEntityController {
protected static final String SECTION_KEY = "assets";
@Resource(name = "blAssetFormBuilderService")
protected AssetFormBuilderService... | 0true | admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_admin_web_controller_AdminAssetController.java |
442 | static final class Fields {
static final XContentBuilderString VERSIONS = new XContentBuilderString("versions");
static final XContentBuilderString VERSION = new XContentBuilderString("version");
static final XContentBuilderString VM_NAME = new XContentBuilderString("vm_name"... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_stats_ClusterStatsNodes.java |
1,111 | public class OSQLFunctionDistance extends OSQLFunctionAbstract {
public static final String NAME = "distance";
private final static double EARTH_RADIUS = 6371;
public OSQLFunctionDistance() {
super(NAME, 4, 5);
}
public Object execute(final OIdentifiable iCurrentRecord, Object iCurrentResult, final Object... | 1no label | core_src_main_java_com_orientechnologies_orient_core_sql_functions_geo_OSQLFunctionDistance.java |
2,550 | private static final class ConstructorCache {
private final ConcurrentMap<ClassLoader, ConcurrentMap<String, WeakReference<Constructor>>> cache;
private ConstructorCache() {
// Guess 16 classloaders to not waste to much memory (16 is default concurrency level)
cache = new Co... | 1no label | hazelcast_src_main_java_com_hazelcast_nio_ClassLoaderUtil.java |
626 | public class DocsStatus {
long numDocs = 0;
long maxDoc = 0;
long deletedDocs = 0;
/**
* The number of docs.
*/
public long getNumDocs() {
return numDocs;
}
/**
* The max doc.
*/
public long getMaxDoc() {
return maxDoc;
}
/**
* The num... | 0true | src_main_java_org_elasticsearch_action_admin_indices_status_DocsStatus.java |
3,859 | public class HasChildQueryParser implements QueryParser {
public static final String NAME = "has_child";
@Inject
public HasChildQueryParser() {
}
@Override
public String[] names() {
return new String[]{NAME, Strings.toCamelCase(NAME)};
}
@Override
public Query parse(Query... | 1no label | src_main_java_org_elasticsearch_index_query_HasChildQueryParser.java |
32 | static final class ParameterContextInformation
implements IContextInformation {
private final Declaration declaration;
private final ProducedReference producedReference;
private final ParameterList parameterList;
private final int argumentListOffset;
pri... | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_complete_InvocationCompletionProposal.java |
154 | public class JMSArchivedStructuredContentPublisher implements ArchivedStructuredContentPublisher {
private JmsTemplate archiveStructuredContentTemplate;
private Destination archiveStructuredContentDestination;
@Override
public void processStructuredContentArchive(final StructuredContent sc, final Str... | 0true | admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_structure_message_jms_JMSArchivedStructuredContentPublisher.java |
319 | new Thread() {
public void run() {
map.lock(key);
map.lock(key);
lockedLatch.countDown();
}
}.start(); | 0true | hazelcast-client_src_test_java_com_hazelcast_client_map_ClientMapLockTest.java |
93 | private static class ResourceElement
{
private Xid xid = null;
private XAResource resource = null;
private int status;
ResourceElement( Xid xid, XAResource resource )
{
this.xid = xid;
this.resource = resource;
status = RS_ENLISTED;
... | 0true | community_kernel_src_main_java_org_neo4j_kernel_impl_transaction_ReadOnlyTransactionImpl.java |
39 | @SuppressWarnings("unchecked")
public class OMVRBTreeSet<E> extends AbstractSet<E> implements ONavigableSet<E>, Cloneable, java.io.Serializable {
/**
* The backing map.
*/
private transient ONavigableMap<E, Object> m;
// Dummy value to associate with an Object in the backing Map
private static final Object ... | 0true | commons_src_main_java_com_orientechnologies_common_collection_OMVRBTreeSet.java |
256 | public interface OCollateFactory {
/**
* @return Set of supported collate names of this factory
*/
Set<String> getNames();
/**
* Returns the requested collate
*
* @param name
*/
OCollate getCollate(String name);
} | 0true | core_src_main_java_com_orientechnologies_orient_core_collate_OCollateFactory.java |
921 | public final class LockServiceImpl implements LockService, ManagedService, RemoteService, MembershipAwareService,
MigrationAwareService, ClientAwareService {
private final NodeEngine nodeEngine;
private final LockStoreContainer[] containers;
private final ConcurrentMap<ObjectNamespace, EntryTaskSch... | 1no label | hazelcast_src_main_java_com_hazelcast_concurrent_lock_LockServiceImpl.java |
2,362 | private class PartitionProcessor
implements Runnable {
@Override
public void run() {
KeyValueSource<KeyIn, ValueIn> delegate = keyValueSource;
if (supervisor.getConfiguration().isCommunicateStats()) {
delegate = new KeyValueSourceFacade<KeyIn, Val... | 1no label | hazelcast_src_main_java_com_hazelcast_mapreduce_impl_task_MapCombineTask.java |
3,615 | @Beta
public class XAResourceImpl implements XAResource {
private final TransactionManagerServiceImpl transactionManager;
private final TransactionContextImpl transactionContext;
private final ILogger logger;
private int transactionTimeoutSeconds;
public XAResourceImpl(TransactionManagerServiceI... | 1no label | hazelcast_src_main_java_com_hazelcast_transaction_impl_XAResourceImpl.java |
2,773 | public class SSLSocketChannelWrapper extends DefaultSocketChannelWrapper {
private static final boolean DEBUG = false;
private final ByteBuffer in;
private final ByteBuffer emptyBuffer;
private final ByteBuffer netOutBuffer;
// "reliable" write transport
private final ByteBuffer netInBuffer;
... | 1no label | hazelcast_src_main_java_com_hazelcast_nio_ssl_SSLSocketChannelWrapper.java |
215 | Collections.sort(classes, new Comparator<OClass>() {
public int compare(OClass o1, OClass o2) {
return o1.getName().compareToIgnoreCase(o2.getName());
}
}); | 0true | tools_src_main_java_com_orientechnologies_orient_console_OConsoleDatabaseApp.java |
681 | public class OHashIndexFactory implements OIndexFactory {
private static final Set<String> TYPES;
static {
final Set<String> types = new HashSet<String>();
types.add(OClass.INDEX_TYPE.UNIQUE_HASH_INDEX.toString());
types.add(OClass.INDEX_TYPE.NOTUNIQUE_HASH_INDEX.toString());
types.add(OClass.INDEX_... | 1no label | core_src_main_java_com_orientechnologies_orient_core_index_hashindex_local_OHashIndexFactory.java |
750 | public class GetResponse extends ActionResponse implements Iterable<GetField>, ToXContent {
private GetResult getResult;
GetResponse() {
}
GetResponse(GetResult getResult) {
this.getResult = getResult;
}
/**
* Does the document exists.
*/
public boolean isExists() {
... | 0true | src_main_java_org_elasticsearch_action_get_GetResponse.java |
1,573 | public class CountMapReduce {
public static final String CLASS = Tokens.makeNamespace(CountMapReduce.class) + ".class";
public enum Counters {
VERTICES_COUNTED,
EDGES_COUNTED
}
public static Configuration createConfiguration(final Class<? extends Element> klass) {
final Config... | 1no label | titan-hadoop-parent_titan-hadoop-core_src_main_java_com_thinkaurelius_titan_hadoop_mapreduce_util_CountMapReduce.java |
1,643 | public class OHazelcastPlugin extends ODistributedAbstractPlugin implements MembershipListener, EntryListener<String, Object> {
protected static final String CONFIG_NODE_PREFIX = "node.";
protected static final String CONFIG_DATABASE_PREFIX = "database.";
protected String ... | 1no label | distributed_src_main_java_com_orientechnologies_orient_server_hazelcast_OHazelcastPlugin.java |
99 | public interface Page extends Serializable {
public Long getId();
public void setId(Long id);
public String getFullUrl();
public void setFullUrl(String fullUrl);
public String getDescription();
public void setDescription(String description);
public PageTemplate getPageTemplate();
... | 0true | admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_page_domain_Page.java |
137 | @Entity
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "BLC_SC")
@EntityListeners(value = { AdminAuditableListener.class })
@AdminPresentationOverrides(
{
@AdminPresentationOverride(name = "auditable.createdBy.id", value = @AdminPresentation(readOnly = true, visibility = VisibilityEnum.HIDDEN... | 0true | admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_structure_domain_StructuredContentImpl.java |
1,695 | public class OHttpResponse {
public static final String JSON_FORMAT = "type,indent:-1,rid,version,attribSameRow,class,keepTypes,alwaysFetchEmbeddedDocuments";
public static final char[] URL_SEPARATOR = { '/' };
private final OutputStream out;
public final String httpVersion;
public String ... | 1no label | server_src_main_java_com_orientechnologies_orient_server_network_protocol_http_OHttpResponse.java |
15 | {
OutgoingMessageHolder temporaryOutgoing = new OutgoingMessageHolder();
@Override
public void run()
{
lock.writeLock().lock();
try
{
// Lock timeouts while we are processing the message
... | 1no label | enterprise_cluster_src_main_java_org_neo4j_cluster_StateMachines.java |
236 | highlighter = new XPostingsHighlighter() {
Iterator<String> valuesIterator = Arrays.asList(firstValue, secondValue, thirdValue).iterator();
Iterator<Integer> offsetsIterator = Arrays.asList(0, firstValue.length() + 1, firstValue.length() + secondValue.length() + 2).iterator();
... | 0true | src_test_java_org_apache_lucene_search_postingshighlight_XPostingsHighlighterTests.java |
108 | private class Worker extends OtherThreadExecutor<State>
{
public Worker()
{
super( "other thread", new State( getGraphDb() ) );
}
void beginTx() throws Exception
{
execute( new WorkerCommand<State, Void>()
{
@Ov... | 0true | community_kernel_src_test_java_org_neo4j_kernel_impl_transaction_TestManualAcquireLock.java |
272 | public class ElasticsearchTimeoutException extends ElasticsearchException {
public ElasticsearchTimeoutException(String message) {
super(message);
}
public ElasticsearchTimeoutException(String message, Throwable cause) {
super(message, cause);
}
} | 0true | src_main_java_org_elasticsearch_ElasticsearchTimeoutException.java |
107 | public static class Tab {
public static class Name {
public static final String Rules = "PageImpl_Rules_Tab";
}
public static class Order {
public static final int Rules = 1000;
}
} | 0true | admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_page_domain_PageImpl.java |
6,371 | public class ConnectTransportException extends ActionTransportException {
private final DiscoveryNode node;
public ConnectTransportException(DiscoveryNode node, String msg) {
this(node, msg, null, null);
}
public ConnectTransportException(DiscoveryNode node, String msg, String action) {
... | 1no label | src_main_java_org_elasticsearch_transport_ConnectTransportException.java |
1,176 | public class OQueryOperatorContainsText extends OQueryTargetOperator {
private boolean ignoreCase = true;
public OQueryOperatorContainsText(final boolean iIgnoreCase) {
super("CONTAINSTEXT", 5, false);
ignoreCase = iIgnoreCase;
}
public OQueryOperatorContainsText() {
super("CONTAINSTEXT", 5, false... | 1no label | core_src_main_java_com_orientechnologies_orient_core_sql_operator_OQueryOperatorContainsText.java |
35 | public class TitanEdgeTestSuite extends EdgeTestSuite {
public TitanEdgeTestSuite(final GraphTest graphTest) {
super(graphTest);
}
} | 0true | titan-test_src_main_java_com_thinkaurelius_titan_blueprints_TitanEdgeTestSuite.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 |
6,117 | threadPool.executor(ThreadPool.Names.SNAPSHOT).execute(new Runnable() {
@Override
public void run() {
try {
shardSnapshotService.snapshot(entry.getKey(), shardEntry.getValu... | 1no label | src_main_java_org_elasticsearch_snapshots_SnapshotsService.java |
5,386 | public class InternalSum extends MetricsAggregation.SingleValue implements Sum {
public final static Type TYPE = new Type("sum");
public final static AggregationStreams.Stream STREAM = new AggregationStreams.Stream() {
@Override
public InternalSum readResult(StreamInput in) throws IOException ... | 1no label | src_main_java_org_elasticsearch_search_aggregations_metrics_sum_InternalSum.java |
261 | @Entity
@Table(name = "BLC_EMAIL_TRACKING_OPENS")
public class EmailTrackingOpensImpl implements EmailTrackingOpens {
/** The Constant serialVersionUID. */
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue(generator = "OpenId")
@GenericGenerator(
name="OpenId",
s... | 1no label | common_src_main_java_org_broadleafcommerce_common_email_domain_EmailTrackingOpensImpl.java |
1,576 | public abstract class ODistributedAbstractPlugin extends OServerPluginAbstract implements ODistributedServerManager,
ODatabaseLifecycleListener {
public static final String REPLICATOR_USER = "replicator";
protected static final String MASTER_AUT... | 1no label | server_src_main_java_com_orientechnologies_orient_server_distributed_ODistributedAbstractPlugin.java |
1,502 | @SuppressWarnings("SynchronizationOnStaticField")
@PrivateApi
public final class HazelcastInstanceFactory {
private static final ConcurrentMap<String, InstanceFuture> INSTANCE_MAP
= new ConcurrentHashMap<String, InstanceFuture>(5);
private static final AtomicInteger FACTORY_ID_GEN = new AtomicInte... | 1no label | hazelcast_src_main_java_com_hazelcast_instance_HazelcastInstanceFactory.java |
3,362 | final class BasicInvocationFuture<E> implements InternalCompletableFuture<E> {
private BasicInvocation basicInvocation;
private volatile ExecutionCallbackNode<E> callbackHead;
private volatile Object response;
volatile boolean interrupted;
BasicInvocationFuture(BasicInvocation basicInvocation, fin... | 1no label | hazelcast_src_main_java_com_hazelcast_spi_impl_BasicInvocationFuture.java |
64 | static final class KeyIterator<K,V> extends BaseIterator<K,V>
implements Iterator<K>, Enumeration<K> {
KeyIterator(Node<K,V>[] tab, int index, int size, int limit,
ConcurrentHashMapV8<K,V> map) {
super(tab, index, size, limit, map);
}
public final K n... | 0true | src_main_java_jsr166e_ConcurrentHashMapV8.java |
2,560 | public class LocalDiscovery extends AbstractLifecycleComponent<Discovery> implements Discovery {
private static final LocalDiscovery[] NO_MEMBERS = new LocalDiscovery[0];
private final TransportService transportService;
private final ClusterService clusterService;
private final DiscoveryNodeService di... | 1no label | src_main_java_org_elasticsearch_discovery_local_LocalDiscovery.java |
4,522 | private class ExpiredDocsCollector extends Collector {
private final MapperService mapperService;
private AtomicReaderContext context;
private List<DocToPurge> docsToPurge = new ArrayList<DocToPurge>();
public ExpiredDocsCollector(String index) {
mapperService = indicesS... | 1no label | src_main_java_org_elasticsearch_indices_ttl_IndicesTTLService.java |
3,239 | public final class BytesRefOrdValComparator extends NestedWrappableComparator<BytesRef> {
final IndexFieldData.WithOrdinals<?> indexFieldData;
final BytesRef missingValue;
/* Ords for each slot, times 4.
@lucene.internal */
final long[] ords;
final SortMode sortMode;
/* Values for eac... | 1no label | src_main_java_org_elasticsearch_index_fielddata_fieldcomparator_BytesRefOrdValComparator.java |
9 | display.timerExec(100, new Runnable() {
@Override
public void run() {
fCompleted= true;
}
}); | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_browser_BrowserInformationControl.java |
4,234 | public final class RamDirectoryService extends AbstractIndexShardComponent implements DirectoryService {
@Inject
public RamDirectoryService(ShardId shardId, @IndexSettings Settings indexSettings) {
super(shardId, indexSettings);
}
@Override
public long throttleTimeInNanos() {
retur... | 1no label | src_main_java_org_elasticsearch_index_store_ram_RamDirectoryService.java |
255 | service.submitToMembers(callable, selector, new MultiExecutionCallback() {
public void onResponse(Member member, Object value) {
if (value.equals(msg + AppendCallable.APPENDAGE)) {
responseLatch.countDown();
}
}
public void... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_executor_ClientExecutorServiceSubmitTest.java |
1,268 | public class OSingleFileSegment {
protected OStorageLocalAbstract storage;
protected OFile file;
protected OStorageFileConfiguration config;
private boolean wasSoftlyClosedAtPreviousTime = true;
public OSingleFileSegment(final String iPath, final String iType) thro... | 1no label | core_src_main_java_com_orientechnologies_orient_core_storage_impl_local_OSingleFileSegment.java |
1 | public abstract class AbstractTextCommand implements TextCommand {
protected final TextCommandType type;
private SocketTextReader socketTextReader;
private SocketTextWriter socketTextWriter;
private long requestId = -1;
protected AbstractTextCommand(TextCommandType type) {
this.type = type... | 0true | hazelcast_src_main_java_com_hazelcast_ascii_AbstractTextCommand.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.