Unnamed: 0 int64 0 6.45k | func stringlengths 37 161k | target class label 2
classes | project stringlengths 33 167 |
|---|---|---|---|
4,664 | private final PercolatorType matchPercolator = new PercolatorType() {
@Override
public byte id() {
return 0x03;
}
@Override
public ReduceResult reduce(List<PercolateShardResponse> shardResults) {
long foundMatches = 0;
int numMatches = 0;... | 1no label | src_main_java_org_elasticsearch_percolator_PercolatorService.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 |
600 | ex.execute(new Runnable() {
public void run() {
if (sleep) {
try {
Thread.sleep((int) (1000 * Math.random()));
} catch (InterruptedException ignored) {
}
... | 0true | hazelcast_src_test_java_com_hazelcast_cluster_JoinStressTest.java |
1,184 | Runtime.getRuntime().addShutdownHook(new Thread() {
@Override
public void run() {
node.close();
}
}); | 0true | src_main_java_org_elasticsearch_bootstrap_Bootstrap.java |
1,220 | public class PageCacheRecycler extends AbstractComponent {
public static final String TYPE = "page.type";
public static final String LIMIT_HEAP = "page.limit.heap";
public static final String LIMIT_PER_THREAD = "page.limit.per_thread";
public static final String WEIGHT = "page.weight";
private fin... | 0true | src_main_java_org_elasticsearch_cache_recycler_PageCacheRecycler.java |
689 | public class BulkItemResponse implements Streamable {
/**
* Represents a failure.
*/
public static class Failure {
private final String index;
private final String type;
private final String id;
private final String message;
private final RestStatus status;
... | 0true | src_main_java_org_elasticsearch_action_bulk_BulkItemResponse.java |
63 | public interface IntByIntToInt { int apply(int a, int b); } | 0true | src_main_java_jsr166e_ConcurrentHashMapV8.java |
124 | class FindInvocationVisitor extends Visitor {
Node node;
Tree.InvocationExpression result;
Tree.InvocationExpression current;
TypedDeclaration parameter;
FindInvocationVisitor(Node node) {
this.node=node;
}
@Override
public void visit(Tree.ListedArgument that) {
Expressio... | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_correct_FindInvocationVisitor.java |
178 | static final class ExceptionNode extends WeakReference<ForkJoinTask<?>> {
final Throwable ex;
ExceptionNode next;
final long thrower; // use id not ref to avoid weak cycles
final int hashCode; // store task hashCode before weak ref disappears
ExceptionNode(ForkJoinTask<?> t... | 0true | src_main_java_jsr166y_ForkJoinTask.java |
550 | public static final class OClusterPositionFactoryLong extends OClusterPositionFactory {
@Override
public OClusterPosition generateUniqueClusterPosition() {
throw new UnsupportedOperationException();
}
@Override
public OClusterPosition valueOf(long value) {
return new OClusterPositionL... | 0true | core_src_main_java_com_orientechnologies_orient_core_id_OClusterPositionFactory.java |
777 | public class CollectionTransactionLog implements KeyAwareTransactionLog {
String transactionId;
private long itemId;
private String name;
private Operation op;
private int partitionId;
private String serviceName;
public CollectionTransactionLog() {
}
public CollectionTransactionLo... | 0true | hazelcast_src_main_java_com_hazelcast_collection_txn_CollectionTransactionLog.java |
396 | public class ClusterSearchShardsResponse extends ActionResponse implements ToXContent {
private ClusterSearchShardsGroup[] groups;
private DiscoveryNode[] nodes;
ClusterSearchShardsResponse() {
}
public ClusterSearchShardsGroup[] getGroups() {
return groups;
}
public DiscoveryNo... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_shards_ClusterSearchShardsResponse.java |
651 | constructors[LIST_SET] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {
public IdentifiedDataSerializable createNew(Integer arg) {
return new ListSetOperation();
}
}; | 0true | hazelcast_src_main_java_com_hazelcast_collection_CollectionDataSerializerHook.java |
3,193 | static abstract class FieldBased implements IndexFieldDataCache, SegmentReader.CoreClosedListener, RemovalListener<FieldBased.Key, AtomicFieldData> {
@Nullable
private final IndexService indexService;
private final FieldMapper.Names fieldNames;
private final FieldDataType fieldDataTy... | 1no label | src_main_java_org_elasticsearch_index_fielddata_IndexFieldDataCache.java |
434 | map.addChangeListener(new OMultiValueChangeListener<Object, String>() {
public void onAfterRecordChanged(final OMultiValueChangeEvent<Object, String> event) {
changed.value = true;
}
}); | 0true | core_src_test_java_com_orientechnologies_orient_core_db_record_TrackedMapTest.java |
743 | public class ListIndexOfRequest extends CollectionRequest {
Data value;
boolean last;
public ListIndexOfRequest() {
}
public ListIndexOfRequest(String name, Data value, boolean last) {
super(name);
this.value = value;
this.last = last;
}
@Override
protected O... | 0true | hazelcast_src_main_java_com_hazelcast_collection_client_ListIndexOfRequest.java |
1,305 | public interface ClusterStateListener {
/**
* Called when cluster state changes.
*/
void clusterChanged(ClusterChangedEvent event);
} | 0true | src_main_java_org_elasticsearch_cluster_ClusterStateListener.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 |
585 | getEntriesBetween(iRangeFrom, iRangeTo, iInclusive, new IndexEntriesResultListener() {
@Override
public boolean addResult(ODocument entry) {
result.add(entry);
return true;
}
}); | 0true | core_src_main_java_com_orientechnologies_orient_core_index_OIndexAbstract.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 |
474 | public abstract class BaseAliasesRequestBuilder<Response extends ActionResponse, Builder extends BaseAliasesRequestBuilder<Response, Builder>> extends MasterNodeReadOperationRequestBuilder<GetAliasesRequest, Response, Builder> {
public BaseAliasesRequestBuilder(IndicesAdminClient client, String... aliases) {
... | 0true | src_main_java_org_elasticsearch_action_admin_indices_alias_get_BaseAliasesRequestBuilder.java |
1,510 | public class LinkMapReduce {
// public static final String DIRECTION = Tokens.makeNamespace(LinkMapReduce.class) + ".direction";
// public static final String LABEL = Tokens.makeNamespace(LinkMapReduce.class) + ".label";
// public static final String STEP = Tokens.makeNamespace(LinkMapReduce.class) + ".step";... | 1no label | titan-hadoop-parent_titan-hadoop-core_src_main_java_com_thinkaurelius_titan_hadoop_mapreduce_sideeffect_LinkMapReduce.java |
1,494 | public class CommitEdgesMap {
public static final String ACTION = Tokens.makeNamespace(CommitEdgesMap.class) + ".action";
public enum Counters {
OUT_EDGES_DROPPED,
OUT_EDGES_KEPT,
IN_EDGES_DROPPED,
IN_EDGES_KEPT
}
public static Configuration createConfiguration(final T... | 1no label | titan-hadoop-parent_titan-hadoop-core_src_main_java_com_thinkaurelius_titan_hadoop_mapreduce_sideeffect_CommitEdgesMap.java |
1,539 | public class ResourceAdapterImpl implements ResourceAdapter, Serializable {
/**
* Identity generator
*/
private static final AtomicInteger ID_GEN = new AtomicInteger();
private static final long serialVersionUID = -1727994229521767306L;
/**
* The hazelcast instance itself
*/
pr... | 1no label | hazelcast-ra_hazelcast-jca_src_main_java_com_hazelcast_jca_ResourceAdapterImpl.java |
5,852 | public abstract class SearchContext implements Releasable {
private static ThreadLocal<SearchContext> current = new ThreadLocal<SearchContext>();
public static void setCurrent(SearchContext value) {
current.set(value);
QueryParseContext.setTypes(value.types());
}
public static void re... | 1no label | src_main_java_org_elasticsearch_search_internal_SearchContext.java |
110 | public class OUtils {
public static boolean equals(final Object a, final Object b) {
if (a == b)
return true;
if (a != null)
return a.equals(b);
return b.equals(a);
}
public static String camelCase(final String iText) {
return Character.toUpperCase(iText.charAt(0)) + iText.substring(... | 0true | commons_src_main_java_com_orientechnologies_common_io_OUtils.java |
658 | constructors[LIST_ADD_ALL] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {
public IdentifiedDataSerializable createNew(Integer arg) {
return new ListAddAllOperation();
}
}; | 0true | hazelcast_src_main_java_com_hazelcast_collection_CollectionDataSerializerHook.java |
299 | public class OTraverseMultiValueDepthFirstProcess extends OTraverseAbstractProcess<Iterator<Object>> {
protected Object value;
protected int index = -1;
public OTraverseMultiValueDepthFirstProcess(final OTraverse iCommand, final Iterator<Object> iTarget) {
super(iCommand, iTarget);
}
public OIdentifi... | 0true | core_src_main_java_com_orientechnologies_orient_core_command_traverse_OTraverseMultiValueDepthFirstProcess.java |
526 | public static class CBAuthorisation implements Serializable {
private int amount;
public void setAmount(int amount) {
this.amount = amount;
}
public int getAmount() {
return amount;
}
} | 0true | hazelcast-client_src_test_java_com_hazelcast_client_txn_ClientTxnMapTest.java |
1,624 | public class TimedMemberStateFactory {
private final HazelcastInstanceImpl instance;
private final int maxVisibleInstanceCount;
public TimedMemberStateFactory(HazelcastInstanceImpl instance) {
this.instance = instance;
maxVisibleInstanceCount = instance.node.groupProperties.MC_MAX_INSTANCE... | 1no label | hazelcast_src_main_java_com_hazelcast_management_TimedMemberStateFactory.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 |
574 | private static final class ODocumentWrapper {
private final ODocument document;
private ODocumentWrapper(ODocument document) {
this.document = document;
}
@Override
public int hashCode() {
int hashCode = document.getIdentity().hashCode();
for (Object field : document.fieldValu... | 0true | core_src_main_java_com_orientechnologies_orient_core_index_ODocumentFieldsHashSet.java |
451 | static final class Fields {
static final XContentBuilderString NODES = new XContentBuilderString("nodes");
static final XContentBuilderString INDICES = new XContentBuilderString("indices");
static final XContentBuilderString UUID = new XContentBuilderString("uuid");
static final XCon... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_stats_ClusterStatsResponse.java |
1,350 | private final class FlushTask implements Runnable {
private FlushTask() {
}
@Override
public void run() {
try {
commit();
} catch (Throwable e) {
OLogManager.instance().error(this, "Error during WAL background flush", e);
}
}
private ... | 1no label | core_src_main_java_com_orientechnologies_orient_core_storage_impl_local_paginated_wal_OWriteAheadLog.java |
1,041 | public class MultiTermVectorsItemResponse implements Streamable {
private TermVectorResponse response;
private MultiTermVectorsResponse.Failure failure;
MultiTermVectorsItemResponse() {
}
public MultiTermVectorsItemResponse(TermVectorResponse response, MultiTermVectorsResponse.Failure failure) {... | 0true | src_main_java_org_elasticsearch_action_termvector_MultiTermVectorsItemResponse.java |
568 | public class DemoOracleSingleLineSqlCommandExtractor extends SingleLineSqlCommandExtractor {
private static final SupportLogger LOGGER = SupportLogManager.getLogger("UserOverride", DemoOracleSingleLineSqlCommandExtractor.class);
private static final String BOOLEANTRUEMATCH = "(?i)(true)";
private static f... | 0true | common_src_main_java_org_broadleafcommerce_common_util_sql_importsql_DemoOracleSingleLineSqlCommandExtractor.java |
380 | public interface ODetachable {
/**
* Detaches the object.
*
* @return true if the object has been fully detached, otherwise false
*/
public boolean detach();
} | 0true | core_src_main_java_com_orientechnologies_orient_core_db_record_ODetachable.java |
1,309 | public class EmptyClusterInfoService extends AbstractComponent implements ClusterInfoService {
private final static class Holder {
private final static EmptyClusterInfoService instance = new EmptyClusterInfoService();
}
private final ClusterInfo emptyClusterInfo;
private EmptyClusterInfoServic... | 0true | src_main_java_org_elasticsearch_cluster_EmptyClusterInfoService.java |
70 | @Repository("blStaticAssetDao")
public class StaticAssetDaoImpl implements StaticAssetDao {
private static SandBox DUMMY_SANDBOX = new SandBoxImpl();
{
DUMMY_SANDBOX.setId(-1l);
}
@PersistenceContext(unitName = "blPU")
protected EntityManager em;
@Resource(name="blEntityConfiguration"... | 0true | admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_file_dao_StaticAssetDaoImpl.java |
1,421 | public class OChannelBinaryAsynchClient extends OChannelBinary {
private final Condition readCondition = lockRead.getUnderlying().newCondition();
private volatile boolean channelRead = false;
private byte currentStatus;
private int current... | 1no label | enterprise_src_main_java_com_orientechnologies_orient_enterprise_channel_binary_OChannelBinaryAsynchClient.java |
168 | public interface URLHandlerService {
/**
* Checks the passed in URL to determine if there is a matching URLHandler.
* Returns null if no handler was found.
*
* @param uri
* @return
*/
public URLHandler findURLHandlerByURI(String uri);
public List<URLHandler> findAllURLHa... | 0true | admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_url_service_URLHandlerService.java |
306 | public class ClusterHealthRequest extends MasterNodeReadOperationRequest<ClusterHealthRequest> {
private String[] indices;
private TimeValue timeout = new TimeValue(30, TimeUnit.SECONDS);
private ClusterHealthStatus waitForStatus;
private int waitForRelocatingShards = -1;
private int waitForActiveS... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_health_ClusterHealthRequest.java |
119 | public static class StressThread extends Thread
{
private static final Object READ = new Object();
private static final Object WRITE = new Object();
private static ResourceObject resources[] = new ResourceObject[10];
private final Random rand = new Random( currentTimeMillis() );
... | 0true | community_kernel_src_test_java_org_neo4j_kernel_impl_transaction_TestDeadlockDetection.java |
3,612 | public class TransactionManagerServiceImpl implements TransactionManagerService, ManagedService,
MembershipAwareService, ClientAwareService {
public static final String SERVICE_NAME = "hz:core:txManagerService";
public static final int RECOVER_TIMEOUT = 5000;
private final NodeEngineImpl nodeEngi... | 1no label | hazelcast_src_main_java_com_hazelcast_transaction_impl_TransactionManagerServiceImpl.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 |
888 | threadPool.executor(ThreadPool.Names.SEARCH).execute(new Runnable() {
@Override
public void run() {
Tuple<String, Long>[] context1 = scrollId.getContext();
for (int i = 0; i < context1.length; i++... | 1no label | src_main_java_org_elasticsearch_action_search_type_TransportSearchScrollQueryThenFetchAction.java |
108 | public static class Name {
public static final String Rules = "PageImpl_Rules_Tab";
} | 0true | admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_page_domain_PageImpl.java |
491 | client.getClientExecutionService().executeInternal(new Runnable() {
@Override
public void run() {
for (MembershipListener listener : listeners.values()) {
listener.memberAttributeChanged(event);
}
... | 1no label | hazelcast-client_src_main_java_com_hazelcast_client_spi_impl_ClientClusterServiceImpl.java |
3,259 | public class MapPermission extends InstancePermission {
private static final int PUT = 0x4;
private static final int REMOVE = 0x8;
private static final int READ = 0x16;
private static final int LISTEN = 0x32;
private static final int LOCK = 0x64;
private static final int INDEX = 0x128;
priv... | 1no label | hazelcast_src_main_java_com_hazelcast_security_permission_MapPermission.java |
145 | public interface StructuredContentItemCriteria extends QuantityBasedRule {
/**
* Returns the parent <code>StructuredContent</code> item to which this
* field belongs.
*
* @return
*/
@Nonnull
public StructuredContent getStructuredContent();
/**
* Sets the parent <code>Stru... | 0true | admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_structure_domain_StructuredContentItemCriteria.java |
113 | (new java.security.PrivilegedExceptionAction<sun.misc.Unsafe>() {
public sun.misc.Unsafe run() throws Exception {
Class<sun.misc.Unsafe> k = sun.misc.Unsafe.class;
for (java.lang.reflect.Field f : k.getDeclaredFields()) {
f.setA... | 0true | src_main_java_jsr166e_ForkJoinPool.java |
93 | class ConvertToClassProposal extends AbstractLinkedMode implements ICompletionProposal {
private final Tree.ObjectDefinition node;
public ConvertToClassProposal(Tree.ObjectDefinition node,
CeylonEditor editor) {
super(editor);
this.node = node;
}
@Override
pub... | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_correct_ConvertToClassProposal.java |
2,953 | public final class ReflectionHelper {
private static final ClassLoader THIS_CL = ReflectionHelper.class.getClassLoader();
private static final ConcurrentMap<String, Getter> GETTER_CACHE = new ConcurrentHashMap<String, Getter>(1000);
private static final int INITIAL_CAPACITY = 3;
private ReflectionHe... | 1no label | hazelcast_src_main_java_com_hazelcast_query_impl_ReflectionHelper.java |
38 | public class TransactionalTitanGraphTestSuite extends TransactionalGraphTestSuite {
public TransactionalTitanGraphTestSuite(final GraphTest graphTest) {
super(graphTest);
}
@Override
public void testCompetingThreads() {
TitanBlueprintsGraph graph = (TitanBlueprintsGraph) graphTest.gen... | 0true | titan-test_src_main_java_com_thinkaurelius_titan_blueprints_TransactionalTitanGraphTestSuite.java |
14 | final class DescendingKeyIterator extends AbstractEntryIterator<K, V, K> {
DescendingKeyIterator(final OMVRBTreeEntry<K, V> first) {
super(first);
}
public K next() {
return prevEntry().getKey();
}
} | 0true | commons_src_main_java_com_orientechnologies_common_collection_OMVRBTree.java |
275 | public class JMSEmailServiceProducerImpl implements JMSEmailServiceProducer {
private JmsTemplate emailServiceTemplate;
private Destination emailServiceDestination;
public void send(@SuppressWarnings("rawtypes") final HashMap props) {
emailServiceTemplate.send(emailServiceDestination, new Message... | 1no label | common_src_main_java_org_broadleafcommerce_common_email_service_jms_JMSEmailServiceProducerImpl.java |
522 | public class BLCMapUtils {
/**
* Given a collection of values and a TypedClosure that maps an appropriate key for a given value,
* returns a HashMap of the key to the value.
*
* <b>Note: If two values share the same key, the later one will override the previous one in the returned map</b>
... | 0true | common_src_main_java_org_broadleafcommerce_common_util_BLCMapUtils.java |
216 | public class OConsoleDatabaseListener implements ODatabaseListener {
OConsoleDatabaseApp console;
public OConsoleDatabaseListener(OConsoleDatabaseApp console) {
this.console = console;
}
public void onCreate(ODatabase iDatabase) {
}
public void onDelete(ODatabase iDatabase) {
}
public void onOpen(ODatabas... | 0true | tools_src_main_java_com_orientechnologies_orient_console_OConsoleDatabaseListener.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 |
564 | public class Hbm2DDLExporterTask extends ExporterTask {
boolean exportToDatabase = true;
boolean scriptToConsole = true;
boolean schemaUpdate = false;
String delimiter = ";";
boolean drop = false;
boolean create = true;
boolean format = false;
private boolean haltOnError = false;... | 0true | common_src_main_java_org_broadleafcommerce_common_util_sql_Hbm2DDLExporterTask.java |
116 | public class NullPageDTO extends PageDTO {
} | 0true | admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_page_dto_NullPageDTO.java |
1,511 | public class FilterRoutingTests extends ElasticsearchAllocationTestCase {
private final ESLogger logger = Loggers.getLogger(FilterRoutingTests.class);
@Test
public void testClusterFilters() {
AllocationService strategy = createAllocationService(settingsBuilder()
.put("cluster.routi... | 0true | src_test_java_org_elasticsearch_cluster_routing_allocation_FilterRoutingTests.java |
1,270 | public class OStorageLocal extends OStorageLocalAbstract {
private final int DELETE_MAX_RETRIES;
private final int DELETE_WAIT_TIME;
private final Map<String, OCluster> clusterMap = new LinkedHashMap<String, OCluster>();
private OCluster[] ... | 1no label | core_src_main_java_com_orientechnologies_orient_core_storage_impl_local_OStorageLocal.java |
180 | public class OByteBufferUtilsTest {
private ByteBuffer buffer1;
private ByteBuffer buffer2;
@BeforeMethod
public void setUp() throws Exception {
buffer1 = ByteBuffer.allocate(10);
buffer2 = ByteBuffer.allocate(10);
}
@Test
public void testSplitShort() throws Exception {
short var = 42;
... | 0true | core_src_test_java_com_orientechnologies_common_util_OByteBufferUtilsTest.java |
387 | public class OMultiValueChangeTimeLine<K, V> {
private final List<OMultiValueChangeEvent<K, V>> multiValueChangeEvents = new ArrayList<OMultiValueChangeEvent<K, V>>();
/**
* @return <code>List</code> of all operations that were performed on collection starting from
* the time when it was loaded from DB.
*/
pu... | 0true | core_src_main_java_com_orientechnologies_orient_core_db_record_OMultiValueChangeTimeLine.java |
237 | @RunWith(HazelcastParallelClassRunner.class)
@Category(QuickTest.class)
public class ClientExecutorServiceSubmitTest {
static final int CLUSTER_SIZE = 3;
static HazelcastInstance instance1;
static HazelcastInstance instance2;
static HazelcastInstance instance3;
static HazelcastInstance client;
... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_executor_ClientExecutorServiceSubmitTest.java |
121 | (new java.security.PrivilegedExceptionAction<sun.misc.Unsafe>() {
public sun.misc.Unsafe run() throws Exception {
Class<sun.misc.Unsafe> k = sun.misc.Unsafe.class;
for (java.lang.reflect.Field f : k.getDeclaredFields()) {
f.setA... | 0true | src_main_java_jsr166e_ForkJoinTask.java |
5,210 | public class DateHistogramParser implements Aggregator.Parser {
private final ImmutableMap<String, DateTimeUnit> dateFieldUnits;
public DateHistogramParser() {
dateFieldUnits = MapBuilder.<String, DateTimeUnit>newMapBuilder()
.put("year", DateTimeUnit.YEAR_OF_CENTURY)
.... | 1no label | src_main_java_org_elasticsearch_search_aggregations_bucket_histogram_DateHistogramParser.java |
1,540 | public class PathMap {
public static final String CLASS = Tokens.makeNamespace(PathMap.class) + ".class";
public enum Counters {
VERTICES_PROCESSED,
OUT_EDGES_PROCESSED
}
public static Configuration createConfiguration(final Class<? extends Element> klass) {
final Configuratio... | 1no label | titan-hadoop-parent_titan-hadoop-core_src_main_java_com_thinkaurelius_titan_hadoop_mapreduce_transform_PathMap.java |
142 | public final class GenericError implements Portable {
private String name;
private String message;
private String details;
private int type;
public GenericError() {
}
public GenericError(String name, String message, int type) {
this(name, message, null, type);
}
public Ge... | 0true | hazelcast_src_main_java_com_hazelcast_client_GenericError.java |
2,609 | static class PingRequest extends TransportRequest {
// the (assumed) node id we are pinging
private String nodeId;
PingRequest() {
}
PingRequest(String nodeId) {
this.nodeId = nodeId;
}
@Override
public void readFrom(StreamInput in) thr... | 1no label | src_main_java_org_elasticsearch_discovery_zen_fd_NodesFaultDetection.java |
1,124 | public class NativeConstantForLoopScoreScript extends AbstractSearchScript {
public static final String NATIVE_CONSTANT_FOR_LOOP_SCRIPT_SCORE = "native_constant_for_loop_script_score";
public static class Factory implements NativeScriptFactory {
@Override
public ExecutableScript newScript... | 0true | src_test_java_org_elasticsearch_benchmark_scripts_score_script_NativeConstantForLoopScoreScript.java |
1,174 | NETTY {
@Override
public Transport newTransport(Settings settings, ThreadPool threadPool) {
return new NettyTransport(settings, threadPool, new NetworkService(ImmutableSettings.EMPTY), Version.CURRENT);
}
}; | 0true | src_test_java_org_elasticsearch_benchmark_transport_TransportBenchmark.java |
540 | public class DeleteMappingRequest extends AcknowledgedRequest<DeleteMappingRequest> {
private String[] indices;
private IndicesOptions indicesOptions = IndicesOptions.fromOptions(false, false, true, false);
private String[] types;
DeleteMappingRequest() {
}
/**
* Constructs a new delete ... | 0true | src_main_java_org_elasticsearch_action_admin_indices_mapping_delete_DeleteMappingRequest.java |
212 | public final class CustomPostingsHighlighter extends XPostingsHighlighter {
private static final Snippet[] EMPTY_SNIPPET = new Snippet[0];
private static final Passage[] EMPTY_PASSAGE = new Passage[0];
private final CustomPassageFormatter passageFormatter;
private final int noMatchSize;
private fi... | 0true | src_main_java_org_apache_lucene_search_postingshighlight_CustomPostingsHighlighter.java |
481 | private static class ClientProxyFuture {
volatile Object proxy;
ClientProxy get() {
if (proxy == null) {
boolean interrupted = false;
synchronized (this) {
while (proxy == null) {
try {
... | 0true | hazelcast-client_src_main_java_com_hazelcast_client_spi_ProxyManager.java |
532 | new Thread() {
public void run() {
try {
justBeforeBlocked.await();
sleepSeconds(1);
queue1.offer(item);
} catch (InterruptedException e) {
fail("failed"+e);
}
... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_txn_ClientTxnQueueTest.java |
1 | @Service("blAdminCatalogService")
public class AdminCatalogServiceImpl implements AdminCatalogService {
private static final Log LOG = LogFactory.getLog(AdminCatalogServiceImpl.class);
@Resource(name = "blCatalogService")
protected CatalogService catalogService;
@Resource(name = "blSkuDao")
... | 0true | admin_broadleaf-admin-module_src_main_java_org_broadleafcommerce_admin_server_service_AdminCatalogServiceImpl.java |
690 | public class CollectionItem implements Comparable<CollectionItem>, IdentifiedDataSerializable {
protected long itemId;
protected Data value;
protected final long creationTime;
public CollectionItem() {
creationTime = Clock.currentTimeMillis();
}
public CollectionItem(long itemId, Da... | 0true | hazelcast_src_main_java_com_hazelcast_collection_CollectionItem.java |
1,183 | public class Bootstrap {
private Node node;
private static volatile Thread keepAliveThread;
private static volatile CountDownLatch keepAliveLatch;
private static Bootstrap bootstrap;
private void setup(boolean addShutdownHook, Tuple<Settings, Environment> tuple) throws Exception {
// Logg... | 0true | src_main_java_org_elasticsearch_bootstrap_Bootstrap.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 |
94 | public interface NamedOperationManager {
Map<String, String> manageNamedParameters(Map<String, String> parameterMap);
} | 0true | admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_file_service_operation_NamedOperationManager.java |
263 | assertTrueEventually(new AssertTask() {
@Override
public void run() {
assertEquals(executions, counter.get());
}
}); | 0true | hazelcast-client_src_test_java_com_hazelcast_client_executor_ExecutionDelayTest.java |
702 | constructors[TXN_LIST_REMOVE] = new ConstructorFunction<Integer, Portable>() {
public Portable createNew(Integer arg) {
return new TxnListRemoveRequest();
}
}; | 0true | hazelcast_src_main_java_com_hazelcast_collection_CollectionPortableHook.java |
356 | public interface ODatabaseDocument extends ODatabaseRecord, ODatabaseSchemaAware<ORecordInternal<?>> {
final static String TYPE = "document";
/**
* Browses all the records of the specified class and also all the subclasses. If you've a class Vehicle and Car that extends
* Vehicle then a db.browseClass("Vehi... | 0true | core_src_main_java_com_orientechnologies_orient_core_db_document_ODatabaseDocument.java |
555 | public class GetMappingsRequestBuilder extends ClusterInfoRequestBuilder<GetMappingsRequest, GetMappingsResponse, GetMappingsRequestBuilder> {
public GetMappingsRequestBuilder(InternalGenericClient client, String... indices) {
super(client, new GetMappingsRequest().indices(indices));
}
@Override
... | 0true | src_main_java_org_elasticsearch_action_admin_indices_mapping_get_GetMappingsRequestBuilder.java |
1,447 | public static class Entry {
private final State state;
private final SnapshotId snapshotId;
private final boolean includeGlobalState;
private final ImmutableMap<ShardId, ShardSnapshotStatus> shards;
private final ImmutableList<String> indices;
public Entry(SnapshotId... | 1no label | src_main_java_org_elasticsearch_cluster_metadata_SnapshotMetaData.java |
804 | private class ASyncAction {
final ActionListener<MultiPercolateResponse> finalListener;
final Map<ShardId, TransportShardMultiPercolateAction.Request> requestsByShard;
final List<Object> percolateRequests;
final Map<ShardId, IntArrayList> shardToSlots;
final AtomicInteger e... | 0true | src_main_java_org_elasticsearch_action_percolate_TransportMultiPercolateAction.java |
4,902 | public class RestThreadPoolAction extends AbstractCatAction {
private final static String[] SUPPORTED_NAMES = new String[] {
ThreadPool.Names.BULK,
ThreadPool.Names.FLUSH,
ThreadPool.Names.GENERIC,
ThreadPool.Names.GET,
ThreadPool.Names.INDEX,
... | 1no label | src_main_java_org_elasticsearch_rest_action_cat_RestThreadPoolAction.java |
265 | public class ElasticsearchException extends RuntimeException {
/**
* Construct a <code>ElasticsearchException</code> with the specified detail message.
*
* @param msg the detail message
*/
public ElasticsearchException(String msg) {
super(msg);
}
/**
* Construct a <cod... | 0true | src_main_java_org_elasticsearch_ElasticsearchException.java |
2,368 | public class TrackableJobFuture<V>
extends AbstractCompletableFuture<V>
implements TrackableJob<V>, JobCompletableFuture<V> {
private final String name;
private final String jobId;
private final JobTracker jobTracker;
private final Collator collator;
private final CountDownLatch lat... | 1no label | hazelcast_src_main_java_com_hazelcast_mapreduce_impl_task_TrackableJobFuture.java |
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 |
1,813 | @Component("blBasicFieldPersistenceProvider")
@Scope("prototype")
public class BasicFieldPersistenceProvider extends FieldPersistenceProviderAdapter {
protected static final Log LOG = LogFactory.getLog(BasicFieldPersistenceProvider.class);
protected boolean canHandlePersistence(PopulateValueRequest popula... | 1no label | admin_broadleaf-open-admin-platform_src_main_java_org_broadleafcommerce_openadmin_server_service_persistence_module_provider_BasicFieldPersistenceProvider.java |
1,487 | @SuppressWarnings("unchecked")
public class OObjectDatabaseTx extends ODatabasePojoAbstract<Object> implements ODatabaseObject, OUserObject2RecordHandler {
public static final String TYPE = "object";
protected ODictionary<Object> dictionary;
protected OEntityManager entityManager;
protected boolean ... | 1no label | object_src_main_java_com_orientechnologies_orient_object_db_OObjectDatabaseTx.java |
689 | public class CollectionGetAllOperation extends CollectionOperation {
public CollectionGetAllOperation() {
}
public CollectionGetAllOperation(String name) {
super(name);
}
@Override
public int getId() {
return CollectionDataSerializerHook.COLLECTION_GET_ALL;
}
@Overrid... | 0true | hazelcast_src_main_java_com_hazelcast_collection_CollectionGetAllOperation.java |
1,294 | clusterService.submitStateUpdateTask("test", new AckedClusterStateUpdateTask() {
@Override
public boolean mustAck(DiscoveryNode discoveryNode) {
return false;
}
@Override
public void onAllNodesAcked(@Nullable Throwable t) {
... | 0true | src_test_java_org_elasticsearch_cluster_ClusterServiceTests.java |
1,564 | public class VerticesMap {
public static final String PROCESS_EDGES = Tokens.makeNamespace(VerticesMap.class) + ".processEdges";
public enum Counters {
VERTICES_PROCESSED,
EDGES_PROCESSED
}
public static Configuration createConfiguration(final boolean processEdges) {
final Con... | 1no label | titan-hadoop-parent_titan-hadoop-core_src_main_java_com_thinkaurelius_titan_hadoop_mapreduce_transform_VerticesMap.java |
1,311 | public final class InternalClusterInfoService extends AbstractComponent implements ClusterInfoService, LocalNodeMasterListener, ClusterStateListener {
public static final String INTERNAL_CLUSTER_INFO_UPDATE_INTERVAL = "cluster.info.update.interval";
private volatile TimeValue updateFrequency;
private vol... | 0true | src_main_java_org_elasticsearch_cluster_InternalClusterInfoService.java |
1,203 | longObjectMap = build(type, limit, smartSize, availableProcessors, new Recycler.C<LongObjectOpenHashMap>() {
@Override
public LongObjectOpenHashMap newInstance(int sizing) {
return new LongObjectOpenHashMap(size(sizing));
}
@Override
p... | 0true | src_main_java_org_elasticsearch_cache_recycler_CacheRecycler.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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.