Unnamed: 0 int64 0 6.45k | func stringlengths 37 143k | target class label 2
classes | project stringlengths 33 157 |
|---|---|---|---|
6,269 | public class GreaterThanAssertion extends Assertion {
private static final ESLogger logger = Loggers.getLogger(GreaterThanAssertion.class);
public GreaterThanAssertion(String field, Object expectedValue) {
super(field, expectedValue);
}
@Override
@SuppressWarnings("unchecked")
protect... | 1no label | src_test_java_org_elasticsearch_test_rest_section_GreaterThanAssertion.java |
4,518 | public class IndicesTTLService extends AbstractLifecycleComponent<IndicesTTLService> {
public static final String INDICES_TTL_INTERVAL = "indices.ttl.interval";
public static final String INDEX_TTL_DISABLE_PURGE = "index.ttl.disable_purge";
private final ClusterService clusterService;
private final In... | 1no label | src_main_java_org_elasticsearch_indices_ttl_IndicesTTLService.java |
31 | static final class ThenCombine<T,U,V> extends Completion {
final CompletableFuture<? extends T> src;
final CompletableFuture<? extends U> snd;
final BiFun<? super T,? super U,? extends V> fn;
final CompletableFuture<V> dst;
final Executor executor;
ThenCombine(Complet... | 0true | src_main_java_jsr166e_CompletableFuture.java |
499 | public final class ClientPartitionServiceImpl implements ClientPartitionService {
private static final ILogger LOGGER = Logger.getLogger(ClientPartitionService.class);
private static final long PERIOD = 10;
private static final long INITIAL_DELAY = 10;
private final HazelcastClient client;
privat... | 1no label | hazelcast-client_src_main_java_com_hazelcast_client_spi_impl_ClientPartitionServiceImpl.java |
67 | public class FieldType implements Serializable {
private static final long serialVersionUID = 1L;
private static final Map<String, FieldType> TYPES = new HashMap<String, FieldType>();
public static final FieldType BOOLEAN = new FieldType("BOOLEAN", "Boolean");
public static final FieldType DATE = new... | 1no label | admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_field_type_FieldType.java |
1,267 | public class InternalTransportClient extends AbstractClient implements InternalClient {
private final Settings settings;
private final ThreadPool threadPool;
private final TransportClientNodesService nodesService;
private final InternalTransportAdminClient adminClient;
private final ImmutableMap... | 1no label | src_main_java_org_elasticsearch_client_transport_support_InternalTransportClient.java |
0 | {
@Override
public void enteredCluster( ClusterConfiguration clusterConfiguration )
{
System.out.println( "Entered cluster:" + clusterConfiguration );
}
@Override
public void joinedCluster( I... | 1no label | enterprise_cluster_src_test_java_org_neo4j_cluster_protocol_atomicbroadcast_multipaxos_MultiPaxosServer.java |
36 | private static final class NullProposal
implements ICompletionProposal, ICompletionProposalExtension2 {
private List<ICompletionProposal> proposals;
private NullProposal(List<ICompletionProposal> proposals) {
this.proposals = proposals;
}
@Overr... | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_complete_LinkedModeCompletionProposal.java |
65 | {
@Override
@SuppressWarnings("deprecation")
public TxIdGenerator getTxIdGenerator()
{
return TxIdGenerator.DEFAULT;
}
}; | 0true | community_kernel_src_test_java_org_neo4j_kernel_impl_transaction_TestXaFramework.java |
615 | new OIndexEngine.EntriesResultListener() {
@Override
public boolean addResult(ODocument entry) {
return entriesResultListener.addResult(entry);
}
}); | 1no label | core_src_main_java_com_orientechnologies_orient_core_index_OIndexMultiValues.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 |
23 | static class EdgeVertex extends Vertex {
private SortedSet<Edge> outEdges = new ConcurrentSkipListSet<Edge>(new Comparator<Edge>() {
@Override
public int compare(Edge e1, Edge e2) {
return e1.getEnd().compareTo(e2.getEnd());
}
});
EdgeVer... | 0true | titan-test_src_main_java_com_thinkaurelius_titan_TestByteBuffer.java |
1,442 | public class GoogleAnalyticsTag extends SimpleTagSupport {
private static final Log LOG = LogFactory.getLog(GoogleAnalyticsTag.class);
@Value("${googleAnalytics.webPropertyId}")
private String webPropertyId;
private Order order;
public void setOrder(Order order) {
this.order ... | 1no label | core_broadleaf-framework-web_src_main_java_org_broadleafcommerce_core_web_catalog_taglib_GoogleAnalyticsTag.java |
33 | {
@Override
public void run()
{
Channel channel = getChannel( to );
try
{
if ( channel == null )
{
channel = openChannel( to );
openedChann... | 1no label | enterprise_cluster_src_main_java_org_neo4j_cluster_com_NetworkSender.java |
36 | public class SetCommandParser extends TypeAwareCommandParser {
public SetCommandParser(TextCommandConstants.TextCommandType type) {
super(type);
}
public TextCommand parser(SocketTextReader socketTextReader, String cmd, int space) {
StringTokenizer st = new StringTokenizer(cmd);
st.... | 0true | hazelcast_src_main_java_com_hazelcast_ascii_memcache_SetCommandParser.java |
283 | public abstract class ActionRequest<T extends ActionRequest> extends TransportRequest {
private boolean listenerThreaded = false;
protected ActionRequest() {
super();
}
protected ActionRequest(ActionRequest request) {
super(request);
// this does not set the listenerThreaded A... | 0true | src_main_java_org_elasticsearch_action_ActionRequest.java |
1,262 | public class FulfillmentItemPricingActivity extends BaseActivity<PricingContext> {
private static final Log LOG = LogFactory.getLog(FulfillmentItemPricingActivity.class);
protected BroadleafCurrency getCurrency(FulfillmentGroup fg) {
return fg.getOrder().getCurrency();
}
/**
* Re... | 1no label | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_pricing_service_workflow_FulfillmentItemPricingActivity.java |
2,698 | final class PortableSerializer implements StreamSerializer<Portable> {
private final SerializationContext context;
private final Map<Integer, PortableFactory> factories = new HashMap<Integer, PortableFactory>();
PortableSerializer(SerializationContext context, Map<Integer, ? extends PortableFactory> porta... | 1no label | hazelcast_src_main_java_com_hazelcast_nio_serialization_PortableSerializer.java |
228 | XPostingsHighlighter highlighter = new XPostingsHighlighter() {
@Override
public Passage[] getEmptyHighlight(String fieldName, BreakIterator bi, int maxPassages) {
return new Passage[0];
}
}; | 0true | src_test_java_org_apache_lucene_search_postingshighlight_XPostingsHighlighterTests.java |
54 | @RequestMapping("/" + AdminStructuredContentController.SECTION_KEY)
public class AdminStructuredContentController extends AdminBasicEntityController {
protected static final String SECTION_KEY = "structured-content";
@Override
protected String getSectionKey(Map<String, String> pathVars) {
... | 1no label | admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_admin_web_controller_AdminStructuredContentController.java |
335 | new Thread() {
public void run() {
if (!map.tryLock("key1")) {
latch.countDown();
}
try {
if (map.tryLock("key1", 5, TimeUnit.SECONDS)) {
latch.countDown();
}
... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_map_ClientMapTest.java |
343 | public class NodesShutdownRequest extends MasterNodeOperationRequest<NodesShutdownRequest> {
String[] nodesIds = Strings.EMPTY_ARRAY;
TimeValue delay = TimeValue.timeValueSeconds(1);
boolean exit = true;
NodesShutdownRequest() {
}
public NodesShutdownRequest(String... nodesIds) {
th... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_node_shutdown_NodesShutdownRequest.java |
184 | public class OMultiKey {
private final Collection<?> keys;
private final int hash;
public OMultiKey(final Collection<?> keys) {
this.keys = new ArrayList<Object>(keys);
hash = generateHashCode(keys);
}
private int generateHashCode(final Collection<?> objects) {
int total = ... | 0true | commons_src_main_java_com_orientechnologies_common_util_OMultiKey.java |
1,052 | Collections.sort(indexSearchResults, new Comparator<OIndexSearchResult>() {
public int compare(final OIndexSearchResult searchResultOne, final OIndexSearchResult searchResultTwo) {
return searchResultTwo.getFieldCount() - searchResultOne.getFieldCount();
}
}); | 1no label | core_src_main_java_com_orientechnologies_orient_core_sql_OCommandExecutorSQLSelect.java |
231 | @Entity
@Table(name = "BLC_MODULE_CONFIGURATION")
@EntityListeners(value = { AuditableListener.class })
@Inheritance(strategy = InheritanceType.JOINED)
@Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE, region = "blStandardElements")
@AdminPresentationClass(excludeFromPolymorphism = true, friendlyName = "Abs... | 0true | common_src_main_java_org_broadleafcommerce_common_config_domain_AbstractModuleConfiguration.java |
706 | execute(request, new ActionListener<BulkResponse>() {
@Override
public void onResponse(BulkResponse result) {
try {
channel.sendResponse(result);
} catch (Throwable e) {
onFailure(e);
... | 0true | src_main_java_org_elasticsearch_action_bulk_TransportBulkAction.java |
2,604 | public class NodesFaultDetection extends AbstractComponent {
public static interface Listener {
void onNodeFailure(DiscoveryNode node, String reason);
}
private final ThreadPool threadPool;
private final TransportService transportService;
private final boolean connectOnNetworkDisconnec... | 1no label | src_main_java_org_elasticsearch_discovery_zen_fd_NodesFaultDetection.java |
231 | PostingsHighlighter highlighter = new PostingsHighlighter() {
@Override
protected char getMultiValuedSeparator(String field) {
assert field.equals("body");
return '\u2029';
}
}; | 0true | src_test_java_org_apache_lucene_search_postingshighlight_XPostingsHighlighterTests.java |
58 | @SuppressWarnings("serial")
static final class ForEachTransformedMappingTask<K,V,U>
extends BulkTask<K,V,Void> {
final BiFun<? super K, ? super V, ? extends U> transformer;
final Action<? super U> action;
ForEachTransformedMappingTask
(BulkTask<K,V,?> p, int b, int i,... | 0true | src_main_java_jsr166e_ConcurrentHashMapV8.java |
900 | threadPool.executor(ThreadPool.Names.SEARCH).execute(new Runnable() {
@Override
public void run() {
performFirstPhase(fShardIndex, shardIt);
... | 1no label | src_main_java_org_elasticsearch_action_search_type_TransportSearchTypeAction.java |
3,841 | public class GeoDistanceFilterParser implements FilterParser {
public static final String NAME = "geo_distance";
@Inject
public GeoDistanceFilterParser() {
}
@Override
public String[] names() {
return new String[]{NAME, "geoDistance"};
}
@Override
public Filter parse(Quer... | 1no label | src_main_java_org_elasticsearch_index_query_GeoDistanceFilterParser.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 |
83 | final Map<Method, Object> consoleMethods = new TreeMap<Method, Object>(new Comparator<Method>() {
public int compare(Method o1, Method o2) {
int res = o1.getName().compareTo(o2.getName());
if (res == 0)
res = o1.toString().compareTo(o2.toString());
return res;
}
}); | 0true | commons_src_main_java_com_orientechnologies_common_console_OConsoleApplication.java |
6,228 | protected static class MavenMessageBuilder extends ReproduceErrorMessageBuilder {
public MavenMessageBuilder(StringBuilder b) {
super(b);
}
@Override
public ReproduceErrorMessageBuilder appendAllOpts(Description description) {
super.appendAllOpts(description... | 1no label | src_test_java_org_elasticsearch_test_junit_listeners_ReproduceInfoPrinter.java |
299 | public class ServiceException extends Exception {
private static final long serialVersionUID = -7084792578727995587L;
// for serialization purposes
protected ServiceException() {
super();
}
public ServiceException(String message, Throwable cause) {
super(message, cause... | 1no label | common_src_main_java_org_broadleafcommerce_common_exception_ServiceException.java |
1,473 | public class OSQLFunctionInV extends OSQLFunctionMove {
public static final String NAME = "inV";
public OSQLFunctionInV() {
super(NAME, 0, 1);
}
@Override
protected Object move(final OrientBaseGraph graph, final OIdentifiable iRecord, final String[] iLabels) {
return e2v(graph, iRecord, Direction.IN... | 1no label | graphdb_src_main_java_com_orientechnologies_orient_graph_sql_functions_OSQLFunctionInV.java |
106 | static final class ValueSpliterator<K,V> extends Traverser<K,V>
implements ConcurrentHashMapSpliterator<V> {
long est; // size estimate
ValueSpliterator(Node<K,V>[] tab, int size, int index, int limit,
long est) {
super(tab, size, index, lim... | 0true | src_main_java_jsr166e_ConcurrentHashMapV8.java |
1,763 | public class GeoHashUtils {
private static final char[] BASE_32 = {'0', '1', '2', '3', '4', '5', '6',
'7', '8', '9', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'j', 'k', 'm', 'n',
'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'};
public static final int PRECISION = 12;
private static... | 1no label | src_main_java_org_elasticsearch_common_geo_GeoHashUtils.java |
165 | public class RemoveDistributedObjectListenerRequest extends BaseClientRemoveListenerRequest {
public static final String CLEAR_LISTENERS_COMMAND = "clear-all-listeners";
public RemoveDistributedObjectListenerRequest() {
}
public RemoveDistributedObjectListenerRequest(String registrationId) {
... | 0true | hazelcast_src_main_java_com_hazelcast_client_RemoveDistributedObjectListenerRequest.java |
564 | public abstract class AbstractJoiner implements Joiner {
private final AtomicLong joinStartTime = new AtomicLong(Clock.currentTimeMillis());
private final AtomicInteger tryCount = new AtomicInteger(0);
protected final Config config;
protected final Node node;
protected final ILogger logger;
prot... | 1no label | hazelcast_src_main_java_com_hazelcast_cluster_AbstractJoiner.java |
1,399 | public class RDFInputFormat extends FileInputFormat<NullWritable, FaunusElement> implements MapReduceFormat {
@Override
public RecordReader<NullWritable, FaunusElement> createRecordReader(final InputSplit split, final TaskAttemptContext context) throws IOException {
return new RDFRecordReader(Modifiabl... | 1no label | titan-hadoop-parent_titan-hadoop-core_src_main_java_com_thinkaurelius_titan_hadoop_formats_edgelist_rdf_RDFInputFormat.java |
980 | @Entity
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "BLC_DISCRETE_ORDER_ITEM")
@Cache(usage=CacheConcurrencyStrategy.NONSTRICT_READ_WRITE, region="blOrderElements")
@AdminPresentationClass(friendlyName = "DiscreteOrderItemImpl_discreteOrderItem")
public class DiscreteOrderItemImpl extends OrderItemImp... | 1no label | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_order_domain_DiscreteOrderItemImpl.java |
693 | public static class Builder {
private final Client client;
private final Listener listener;
private String name;
private int concurrentRequests = 1;
private int bulkActions = 1000;
private ByteSizeValue bulkSize = new ByteSizeValue(5, ByteSizeUnit.MB);
priva... | 0true | src_main_java_org_elasticsearch_action_bulk_BulkProcessor.java |
217 | public class XPostingsHighlighter {
//BEGIN EDIT added method to override offset for current value (default 0)
//we need this to perform discrete highlighting per field
protected int getOffsetForCurrentValue(String field, int docId) {
return 0;
}
//END EDIT
//BEGIN EDIT
//we need t... | 0true | src_main_java_org_apache_lucene_search_postingshighlight_XPostingsHighlighter.java |
1,379 | public abstract class OTransactionRealAbstract extends OTransactionAbstract {
protected Map<ORID, ORecord<?>> temp2persistent = new HashMap<ORID, ORecord<?>>();
protected Map<ORID, ORecordOperation> allEntries = new HashMap<ORID, ORecordOperation>()... | 1no label | core_src_main_java_com_orientechnologies_orient_core_tx_OTransactionRealAbstract.java |
64 | public class OSharedLock extends OAbstractLock {
private final ReadWriteLock lock;
public OSharedLock(final ReadWriteLock iLock) {
lock = iLock;
}
public void lock() {
lock.readLock().lock();
}
public void unlock() {
lock.readLock().unlock();
}
} | 0true | commons_src_main_java_com_orientechnologies_common_concur_lock_OSharedLock.java |
57 | class GetInitializedVisitor extends Visitor {
Value dec;
@Override
public void visit(Tree.AttributeDeclaration that) {
super.visit(that);
if (that.getSpecifierOrInitializerExpression()==sie) {
dec = that.getDeclarationModel(... | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_correct_AddAnnotionProposal.java |
346 | static abstract class TestHelper extends Thread {
protected static final int ITERATIONS = 1000*10;
protected final Random random = new Random();
protected final IMap<String, Integer> map;
protected final String upKey;
protected final String downKey;
public TestHelper... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_map_ClientMapTryLockConcurrentTests.java |
631 | public class IndexShardStatus implements Iterable<ShardStatus> {
private final ShardId shardId;
private final ShardStatus[] shards;
IndexShardStatus(ShardId shardId, ShardStatus[] shards) {
this.shardId = shardId;
this.shards = shards;
}
public ShardId getShardId() {
retu... | 0true | src_main_java_org_elasticsearch_action_admin_indices_status_IndexShardStatus.java |
1,377 | public class IndexMetaData {
public interface Custom {
String type();
interface Factory<T extends Custom> {
String type();
T readFrom(StreamInput in) throws IOException;
void writeTo(T customIndexMetaData, StreamOutput out) throws IOException;
... | 1no label | src_main_java_org_elasticsearch_cluster_metadata_IndexMetaData.java |
1,100 | public class OSQLFunctionFirst extends OSQLFunctionConfigurableAbstract {
public static final String NAME = "first";
private Object first = this;
public OSQLFunctionFirst() {
super(NAME, 1, 1);
}
public Object execute(final OIdentifiable iCurrentRecord, Object iCurrentResult, final Object[... | 1no label | core_src_main_java_com_orientechnologies_orient_core_sql_functions_coll_OSQLFunctionFirst.java |
754 | phasedUnit.getCompilationUnit().visit(new Visitor() {
@Override
public void visit(ImportMemberOrType that) {
super.visit(that);
visitIt(that.getIdentifier(), that.getDeclarationModel());
}
@Override
... | 1no label | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_refactor_CopyFileRefactoringParticipant.java |
1,323 | public class ExecutorServiceProxy extends AbstractDistributedObject<DistributedExecutorService>
implements IExecutorService {
public static final int SYNC_FREQUENCY = 100;
private final String name;
private final Random random = new Random(-System.currentTimeMillis());
private final int partiti... | 1no label | hazelcast_src_main_java_com_hazelcast_executor_ExecutorServiceProxy.java |
1,218 | public class PaymentActionType implements Serializable, BroadleafEnumerationType {
private static final long serialVersionUID = 1L;
private static final Map<String, PaymentActionType> TYPES = new LinkedHashMap<String, PaymentActionType>();
public static final PaymentActionType AUTHORIZE = new PaymentActi... | 1no label | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_payment_service_workflow_PaymentActionType.java |
188 | public interface OService {
public String getName();
public void startup();
public void shutdown();
} | 0true | commons_src_main_java_com_orientechnologies_common_util_OService.java |
424 | private class ClientJob<KeyIn, ValueIn> extends AbstractJob<KeyIn, ValueIn> {
public ClientJob(String name, KeyValueSource<KeyIn, ValueIn> keyValueSource) {
super(name, ClientMapReduceProxy.this, keyValueSource);
}
@Override
protected <T> JobCompletableFuture<T> invoke(... | 0true | hazelcast-client_src_main_java_com_hazelcast_client_proxy_ClientMapReduceProxy.java |
1,936 | @Service("blFormBuilderService")
public class FormBuilderServiceImpl implements FormBuilderService {
private static final Log LOG = LogFactory.getLog(FormBuilderServiceImpl.class);
@Resource(name = "blAdminEntityService")
protected AdminEntityService adminEntityService;
@Resource (name = "blAdmin... | 1no label | admin_broadleaf-open-admin-platform_src_main_java_org_broadleafcommerce_openadmin_web_service_FormBuilderServiceImpl.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 |
188 | new Thread(){
public void run() {
for (int i=0; i<5; i++){
tempSet.add("item" + i);
}
tempSet.add("done");
}
}.start(); | 0true | hazelcast-client_src_test_java_com_hazelcast_client_collections_ClientSetTest.java |
63 | public interface FieldEnumerationItem extends Serializable {
FieldEnumeration getFieldEnumeration();
void setFieldEnumeration(FieldEnumeration fieldEnumeration);
int getFieldOrder();
void setFieldOrder(int fieldOrder);
String getFriendlyName();
void setFriendlyName(String friendlyName)... | 0true | admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_field_domain_FieldEnumerationItem.java |
35 | @SuppressWarnings("unchecked")
public class OMVRBTreeEntryMemory<K, V> extends OMVRBTreeEntry<K, V> {
protected int size = 1;
protected int pageSize;
protected K[] keys;
protected V[] values;
protected OMVRBTreeEntryMemory<K, V> left = null;
protected OMVRBTreeEnt... | 0true | commons_src_main_java_com_orientechnologies_common_collection_OMVRBTreeEntryMemory.java |
83 | GREATER_THAN {
@Override
public boolean isValidValueType(Class<?> clazz) {
Preconditions.checkNotNull(clazz);
return Comparable.class.isAssignableFrom(clazz);
}
@Override
public boolean isValidCondition(Object condition) {
return conditio... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_core_attribute_Cmp.java |
447 | static final class Fields {
static final XContentBuilderString CPU = new XContentBuilderString("cpu");
static final XContentBuilderString PERCENT = new XContentBuilderString("percent");
static final XContentBuilderString OPEN_FILE_DESCRIPTORS = new XContentBuilderString("open... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_stats_ClusterStatsNodes.java |
201 | public final class ExtendedMemoryIndex extends MemoryIndex {
public ExtendedMemoryIndex(boolean storeOffsets, long maxReusedBytes) {
super(storeOffsets, maxReusedBytes);
}
} | 0true | src_main_java_org_apache_lucene_index_memory_ExtendedMemoryIndex.java |
538 | public class ORemoteFetchListener implements OFetchListener {
final Set<ODocument> recordsToSend;
public ORemoteFetchListener(final Set<ODocument> iRecordsToSend) {
recordsToSend = iRecordsToSend;
}
public void processStandardField(ORecordSchemaAware<?> iRecord, Object iFieldValue, String iFieldName, OFe... | 1no label | core_src_main_java_com_orientechnologies_orient_core_fetch_remote_ORemoteFetchListener.java |
75 | @SuppressWarnings("serial")
static final class MapReduceKeysToIntTask<K,V>
extends BulkTask<K,V,Integer> {
final ObjectToInt<? super K> transformer;
final IntByIntToInt reducer;
final int basis;
int result;
MapReduceKeysToIntTask<K,V> rights, nextRight;
Ma... | 0true | src_main_java_jsr166e_ConcurrentHashMapV8.java |
1,410 | Job registerCeylonModules = new Job("Load the Ceylon Metamodel for plugin dependencies") {
protected IStatus run(IProgressMonitor monitor) {
Activator.loadBundleAsModule(bundleContext.getBundle());
return Status.OK_STATUS;
};
}; | 1no label | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_ui_CeylonPlugin.java |
433 | public class ClientSemaphoreProxy extends ClientProxy implements ISemaphore {
private final String name;
private volatile Data key;
public ClientSemaphoreProxy(String instanceName, String serviceName, String objectId) {
super(instanceName, serviceName, objectId);
this.name = objectId;
... | 1no label | hazelcast-client_src_main_java_com_hazelcast_client_proxy_ClientSemaphoreProxy.java |
970 | public abstract class OStringSerializerHelper {
public static final char RECORD_SEPARATOR = ',';
public static final String CLASS_SEPARATOR = "@";
public static final char LINK = ORID.PREFIX;
public static final char EMBEDDED_BEGIN = '(';
public static final c... | 1no label | core_src_main_java_com_orientechnologies_orient_core_serialization_serializer_OStringSerializerHelper.java |
1,471 | public class PlainShardIterator extends PlainShardsIterator implements ShardIterator {
private final ShardId shardId;
/**
* Creates a {@link PlainShardIterator} instance that iterates over a subset of the given shards
* this the a given <code>shardId</code>.
*
* @param shardId shard id of ... | 1no label | src_main_java_org_elasticsearch_cluster_routing_PlainShardIterator.java |
3,521 | public class ParseContext {
/** Fork of {@link org.apache.lucene.document.Document} with additional functionality. */
public static class Document implements Iterable<IndexableField> {
private final List<IndexableField> fields;
private ObjectObjectMap<Object, IndexableField> keyedFields;
... | 1no label | src_main_java_org_elasticsearch_index_mapper_ParseContext.java |
1,298 | public class HadoopPipeline {
private static final Logger log =
LoggerFactory.getLogger(HadoopPipeline.class);
// used to validate closure parse tree
protected static final ScriptEngine engine = new GroovyScriptEngineImpl();
public static final String PIPELINE_IS_LOCKED = "No more steps ar... | 1no label | titan-hadoop-parent_titan-hadoop-core_src_main_java_com_thinkaurelius_titan_hadoop_HadoopPipeline.java |
393 | @RunWith(HazelcastParallelClassRunner.class)
@Category(QuickTest.class)
public class ClientMultiMapTest {
static HazelcastInstance server;
static HazelcastInstance client;
@BeforeClass
public static void init() {
server = Hazelcast.newHazelcastInstance();
client = HazelcastClient.newHa... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_multimap_ClientMultiMapTest.java |
1,696 | public class BytesArray implements BytesReference {
public static final BytesArray EMPTY = new BytesArray(BytesRef.EMPTY_BYTES, 0, 0);
private byte[] bytes;
private int offset;
private int length;
public BytesArray(String bytes) {
BytesRef bytesRef = new BytesRef();
UnicodeUtil.UT... | 1no label | src_main_java_org_elasticsearch_common_bytes_BytesArray.java |
1,139 | public class OSQLMethodAsLong extends OAbstractSQLMethod {
public static final String NAME = "aslong";
public OSQLMethodAsLong() {
super(NAME);
}
@Override
public Object execute(OIdentifiable iCurrentRecord, OCommandContext iContext, Object ioResult, Object[] iMethodParams) {
if (... | 1no label | core_src_main_java_com_orientechnologies_orient_core_sql_method_misc_OSQLMethodAsLong.java |
1,482 | public class FilterMap {
public static final String CLASS = Tokens.makeNamespace(FilterMap.class) + ".class";
public static final String CLOSURE = Tokens.makeNamespace(FilterMap.class) + ".closure";
private static final ScriptEngine engine = new GremlinGroovyScriptEngine();
public enum Counters {
... | 1no label | titan-hadoop-parent_titan-hadoop-core_src_main_java_com_thinkaurelius_titan_hadoop_mapreduce_filter_FilterMap.java |
3,880 | public class IndicesQueryParser implements QueryParser {
public static final String NAME = "indices";
@Nullable
private final ClusterService clusterService;
@Inject
public IndicesQueryParser(@Nullable ClusterService clusterService) {
this.clusterService = clusterService;
}
@Overr... | 1no label | src_main_java_org_elasticsearch_index_query_IndicesQueryParser.java |
2,157 | static class IteratorBasedIterator extends DocIdSetIterator {
int lastReturn = -1;
private DocIdSetIterator[] iterators = null;
private final long cost;
IteratorBasedIterator(DocIdSet[] sets) throws IOException {
iterators = new DocIdSetIterator[sets.length];
... | 1no label | src_main_java_org_elasticsearch_common_lucene_docset_AndDocIdSet.java |
148 | public class Backend implements LockerProvider {
private static final Logger log = LoggerFactory.getLogger(Backend.class);
/**
* These are the names for the edge store and property index databases, respectively.
* The edge store contains all edges and properties. The property index contains an
... | 1no label | titan-core_src_main_java_com_thinkaurelius_titan_diskstorage_Backend.java |
5,766 | public static class HitContext {
private InternalSearchHit hit;
private IndexReader topLevelReader;
private int topLevelDocId;
private AtomicReaderContext readerContext;
private int docId;
private FieldsVisitor fieldVisitor;
private Map<String, Object> cache;
... | 1no label | src_main_java_org_elasticsearch_search_fetch_FetchSubPhase.java |
16 | class CommandExecutor implements Runnable {
final TextCommand command;
CommandExecutor(TextCommand command) {
this.command = command;
}
@Override
public void run() {
try {
TextCommandType type = command.getType();
Text... | 0true | hazelcast_src_main_java_com_hazelcast_ascii_TextCommandServiceImpl.java |
2,574 | clusterService.submitStateUpdateTask("zen-disco-minimum_master_nodes_changed", Priority.URGENT, new ProcessedClusterStateUpdateTask() {
@Override
public ClusterState execute(ClusterState currentState) {
final int prevMinimumMasterNode = ZenDiscovery.this.electMaster.minim... | 1no label | src_main_java_org_elasticsearch_discovery_zen_ZenDiscovery.java |
1,500 | public class OObjectEntitySerializer {
private static final Set<Class<?>> classes = new HashSet<Class<?>>();
private static final HashMap<Class<?>, List<String>> allFields = new HashMap<Class<?>, List<String>>();
private static final HashMap<Class<?>, List<... | 1no label | object_src_main_java_com_orientechnologies_orient_object_enhancement_OObjectEntitySerializer.java |
241 | public class BroadleafCurrencyProvider {
@DataProvider(name = "USCurrency")
public static Object[][] provideUSCurrency() {
BroadleafCurrency currency=new BroadleafCurrencyImpl();
currency.setCurrencyCode("USD");
currency.setDefaultFlag(true);
currency.setFriendlyName("US Dolla... | 0true | integration_src_test_java_org_broadleafcommerce_common_currency_BroadleafCurrencyProvider.java |
10 | private class MessageReceiver
extends SimpleChannelHandler
{
@Override
public void channelOpen( ChannelHandlerContext ctx, ChannelStateEvent e ) throws Exception
{
Channel ctxChannel = ctx.getChannel();
openedChannel( getURI( (InetSocketAddress) ctxCha... | 1no label | enterprise_cluster_src_main_java_org_neo4j_cluster_com_NetworkReceiver.java |
302 | @Deprecated
public class InstrumentationRuntimeFactory {
private static final Log LOG = LogFactory.getLog(InstrumentationRuntimeFactory.class);
private static final String IBM_VM_CLASS = "com.ibm.tools.attach.VirtualMachine";
private static final String SUN_VM_CLASS = "com.sun.tools.attach.VirtualMachine";
... | 0true | common_src_main_java_org_broadleafcommerce_common_extensibility_InstrumentationRuntimeFactory.java |
503 | public class OpenDeclarationAction extends Action {
private static final ImageDescriptor ICON = CeylonPlugin.getInstance().getImageRegistry()
.getDescriptor(CeylonResources.CEYLON_OPEN_DECLARATION);
private final IEditorPart editor;
public OpenDeclarationAction(IEditorPart editor)... | 1no label | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_open_OpenDeclarationAction.java |
94 | final class ClientExceptionConverters {
private static final JavaClientExceptionConverter JAVA = new JavaClientExceptionConverter();
private static final GenericClientExceptionConverter GENERIC = new GenericClientExceptionConverter();
private ClientExceptionConverters() {
}
static ClientExcepti... | 0true | hazelcast_src_main_java_com_hazelcast_client_ClientExceptionConverters.java |
569 | public class OpenIndexClusterStateUpdateRequest extends IndicesClusterStateUpdateRequest<OpenIndexClusterStateUpdateRequest> {
OpenIndexClusterStateUpdateRequest() {
}
} | 0true | src_main_java_org_elasticsearch_action_admin_indices_open_OpenIndexClusterStateUpdateRequest.java |
542 | public class DeleteMappingResponse extends AcknowledgedResponse {
DeleteMappingResponse() {
}
DeleteMappingResponse(boolean acknowledged) {
super(acknowledged);
}
@Override
public void readFrom(StreamInput in) throws IOException {
super.readFrom(in);
readAcknowledged(... | 0true | src_main_java_org_elasticsearch_action_admin_indices_mapping_delete_DeleteMappingResponse.java |
524 | public class FlushAction extends IndicesAction<FlushRequest, FlushResponse, FlushRequestBuilder> {
public static final FlushAction INSTANCE = new FlushAction();
public static final String NAME = "indices/flush";
private FlushAction() {
super(NAME);
}
@Override
public FlushResponse new... | 0true | src_main_java_org_elasticsearch_action_admin_indices_flush_FlushAction.java |
3,717 | public final class EntryTaskSchedulerFactory {
private EntryTaskSchedulerFactory() {
}
/**
* Creates a new EntryTaskScheduler that will run all second operations in bulk.
* Imagine a write-behind map where dirty entries will be stored in bulk.
* Note that each key can be only once; meaning ... | 1no label | hazelcast_src_main_java_com_hazelcast_util_scheduler_EntryTaskSchedulerFactory.java |
1,522 | public class RoutingAllocation {
/**
* this class is used to describe results of a {@link RoutingAllocation}
*/
public static class Result {
private final boolean changed;
private final RoutingTable routingTable;
private final AllocationExplanation explanation;
/... | 1no label | src_main_java_org_elasticsearch_cluster_routing_allocation_RoutingAllocation.java |
46 | public static interface ConcurrentHashMapSpliterator<T> {
/**
* If possible, returns a new spliterator covering
* approximately one half of the elements, which will not be
* covered by this spliterator. Returns null if cannot be
* split.
*/
ConcurrentHash... | 0true | src_main_java_jsr166e_ConcurrentHashMapV8.java |
508 | public class DeleteIndexAction extends IndicesAction<DeleteIndexRequest, DeleteIndexResponse, DeleteIndexRequestBuilder> {
public static final DeleteIndexAction INSTANCE = new DeleteIndexAction();
public static final String NAME = "indices/delete";
private DeleteIndexAction() {
super(NAME);
}
... | 0true | src_main_java_org_elasticsearch_action_admin_indices_delete_DeleteIndexAction.java |
126 | static final class RunnableExecuteAction extends ForkJoinTask<Void> {
final Runnable runnable;
RunnableExecuteAction(Runnable runnable) {
if (runnable == null) throw new NullPointerException();
this.runnable = runnable;
}
public final Void getRawResult() { ret... | 0true | src_main_java_jsr166e_ForkJoinTask.java |
163 | public interface URLHandlerDao {
public URLHandler findURLHandlerByURI(String uri);
/**
* Gets all the URL handlers configured in the system
* @return
*/
public List<URLHandler> findAllURLHandlers();
public URLHandler saveURLHandler(URLHandler handler);
} | 0true | admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_url_dao_URLHandlerDao.java |
1,524 | private class ProductOptionDTO {
private Long id;
private String type;
private Map<Long, String> values;
private String selectedValue;
@SuppressWarnings("unused")
public Long getId() {
return id;
}
public void setId(Long id) {
t... | 1no label | core_broadleaf-framework-web_src_main_java_org_broadleafcommerce_core_web_processor_ProductOptionsProcessor.java |
440 | static final class Fields {
static final XContentBuilderString COUNT = new XContentBuilderString("count");
static final XContentBuilderString VERSIONS = new XContentBuilderString("versions");
static final XContentBuilderString OS = new XContentBuilderString("os");
static final XConte... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_stats_ClusterStatsNodes.java |
51 | static final class EntrySetView<K,V> extends CollectionView<K,V,Map.Entry<K,V>>
implements Set<Map.Entry<K,V>>, java.io.Serializable {
private static final long serialVersionUID = 2249069246763182397L;
EntrySetView(ConcurrentHashMapV8<K,V> map) { super(map); }
public boolean contain... | 0true | src_main_java_jsr166e_ConcurrentHashMapV8.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.