Unnamed: 0
int64
0
6.45k
func
stringlengths
29
253k
target
class label
2 classes
project
stringlengths
36
167
17
final class EntryIterator extends AbstractEntryIterator<K, V, Map.Entry<K, V>> { EntryIterator(final OMVRBTreeEntry<K, V> first) { super(first); } public Map.Entry<K, V> next() { return nextEntry(); } }
0true
commons_src_main_java_com_orientechnologies_common_collection_OMVRBTree.java
1,252
new OProfilerHookValue() { public Object getValue() { lock.readLock().lock(); try { return bufferPoolLRU.size(); } finally { lock.readLock().unlock(); } } });
0true
core_src_main_java_com_orientechnologies_orient_core_storage_fs_OMMapManagerOld.java
1,513
@SuppressWarnings("unchecked") public class OObjectEnumLazySet<TYPE extends Enum> extends HashSet<TYPE> implements OObjectLazyEnumSerializer<Set<TYPE>>, Serializable { private static final long serialVersionUID = -7698875159671927472L; private final ORecord<?> sourceRecord; private final Set<Object> underly...
0true
object_src_main_java_com_orientechnologies_orient_object_enumerations_OObjectEnumLazySet.java
909
public interface BaseProcessor { public List<Offer> filterOffers(List<Offer> offers, Customer customer); }
0true
core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_offer_service_processor_BaseProcessor.java
2,528
public class XContentMapValues { /** * Extracts raw values (string, int, and so on) based on the path provided returning all of them * as a single list. */ public static List<Object> extractRawValues(String path, Map<String, Object> map) { List<Object> values = Lists.newArrayList(); ...
1no label
src_main_java_org_elasticsearch_common_xcontent_support_XContentMapValues.java
2,757
public class HttpServer extends AbstractLifecycleComponent<HttpServer> { private final Environment environment; private final HttpServerTransport transport; private final RestController restController; private final NodeService nodeService; private final boolean disableSites; private final...
0true
src_main_java_org_elasticsearch_http_HttpServer.java
915
public class DefaultShardOperationFailedException implements ShardOperationFailedException { private String index; private int shardId; private String reason; private RestStatus status; private DefaultShardOperationFailedException() { } public DefaultShardOperationFailedException(Inde...
0true
src_main_java_org_elasticsearch_action_support_DefaultShardOperationFailedException.java
726
@RunWith(HazelcastParallelClassRunner.class) @Category(QuickTest.class) public class SetTransactionTest extends HazelcastTestSupport { static final String ELEMENT = "item"; @Test public void testAdd_withinTxn() throws Exception { final String setName = randomString(); final TestHazelcastIn...
0true
hazelcast_src_test_java_com_hazelcast_collection_SetTransactionTest.java
352
@RunWith(HazelcastSerialClassRunner.class) @Category(QuickTest.class) public class SimpleClientMapInterceptorTest { static HazelcastInstance server1; static HazelcastInstance server2; static HazelcastInstance client; static SimpleClientInterceptor interceptor; @BeforeClass public static void...
0true
hazelcast-client_src_test_java_com_hazelcast_client_map_SimpleClientMapInterceptorTest.java
940
@Component("blRecordOfferUsageRollbackHandler") public class RecordOfferUsageRollbackHandler implements RollbackHandler { @Resource(name = "blOfferAuditService") protected OfferAuditService offerAuditService; @Override public void rollbackState(Activity<? extends ProcessContext> activity, ProcessC...
0true
core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_offer_service_workflow_RecordOfferUsageRollbackHandler.java
1,093
public class RecyclerBenchmark { private static final long NUM_RECYCLES = 5000000L; private static final Random RANDOM = new Random(0); private static long bench(final Recycler<?> recycler, long numRecycles, int numThreads) throws InterruptedException { final AtomicLong recycles = new AtomicLong(n...
0true
src_test_java_org_elasticsearch_benchmark_common_recycler_RecyclerBenchmark.java
4,676
abstract class QueryCollector extends Collector { final IndexFieldData<?> idFieldData; final IndexSearcher searcher; final ConcurrentMap<HashedBytesRef, Query> queries; final ESLogger logger; final Lucene.ExistsCollector collector = new Lucene.ExistsCollector(); final HashedBytesRef spare = ne...
1no label
src_main_java_org_elasticsearch_percolator_QueryCollector.java
670
sbTree.loadEntriesBetween(rangeFrom, inclusive, rangeTo, inclusive, new OTreeInternal.RangeResultListener<Object, V>() { @Override public boolean addResult(Map.Entry<Object, V> entry) { final Object key = entry.getKey(); final V value = entry.getValue(); return addTo...
1no label
core_src_main_java_com_orientechnologies_orient_core_index_engine_OSBTreeIndexEngine.java
831
public interface OrderItemPriceDetailAdjustment extends Adjustment { /** * Stores the offer name at the time the adjustment was made. Primarily to simplify display * within the admin. * * @return */ public String getOfferName(); /** * Returns the name of the offer at the ...
0true
core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_offer_domain_OrderItemPriceDetailAdjustment.java
392
public class ClusterSearchShardsAction extends ClusterAction<ClusterSearchShardsRequest, ClusterSearchShardsResponse, ClusterSearchShardsRequestBuilder> { public static final ClusterSearchShardsAction INSTANCE = new ClusterSearchShardsAction(); public static final String NAME = "cluster/shards/search_shards"; ...
0true
src_main_java_org_elasticsearch_action_admin_cluster_shards_ClusterSearchShardsAction.java
1,387
@SuppressWarnings("serial") public class OMVRBTreeDatabaseLazySave<K, V> extends OMVRBTreeDatabase<K, V> { protected int maxUpdatesBeforeSave; protected int updates = 0; protected boolean transactionRunning = false; public OMVRBTreeDatabaseLazySave(final ODatabaseRecord iDatabase, final ORID...
0true
core_src_main_java_com_orientechnologies_orient_core_type_tree_OMVRBTreeDatabaseLazySave.java
100
public class OUnsafeMemoryJava7 extends OUnsafeMemory { @Override public byte[] get(long pointer, final int length) { final byte[] result = new byte[length]; unsafe.copyMemory(null, pointer, result, unsafe.arrayBaseOffset(byte[].class), length); return result; } @Override public void get(long po...
0true
commons_src_main_java_com_orientechnologies_common_directmemory_OUnsafeMemoryJava7.java
46
public class NetworkedServerFactory { private LifeSupport life; private ProtocolServerFactory protocolServerFactory; private TimeoutStrategy timeoutStrategy; private Logging logging; private ObjectInputStreamFactory objectInputStreamFactory; private ObjectOutputStreamFactory objectOutputStreamFa...
1no label
enterprise_cluster_src_main_java_org_neo4j_cluster_NetworkedServerFactory.java
3,710
public final class SingleExecutorThreadFactory extends AbstractExecutorThreadFactory { private final String threadName; public SingleExecutorThreadFactory(ThreadGroup threadGroup, ClassLoader classLoader, String threadName) { super(threadGroup, classLoader); this.threadName = threadName; }...
1no label
hazelcast_src_main_java_com_hazelcast_util_executor_SingleExecutorThreadFactory.java
1,532
public class EdgesVerticesMap { public static final String DIRECTION = Tokens.makeNamespace(EdgesVerticesMap.class) + ".direction"; public enum Counters { IN_EDGES_PROCESSED, OUT_EDGES_PROCESSED } public static Configuration createConfiguration(final Direction direction) { fin...
1no label
titan-hadoop-parent_titan-hadoop-core_src_main_java_com_thinkaurelius_titan_hadoop_mapreduce_transform_EdgesVerticesMap.java
1,415
public abstract class OChannel extends OListenerManger<OChannelListener> { private static final OProfilerMBean PROFILER = Orient.instance().getProfiler(); public Socket socket; public InputStream inStream; public OutputStream outStream...
1no label
enterprise_src_main_java_com_orientechnologies_orient_enterprise_channel_OChannel.java
488
public class ClearIndicesCacheRequest extends BroadcastOperationRequest<ClearIndicesCacheRequest> { private boolean filterCache = false; private boolean fieldDataCache = false; private boolean idCache = false; private boolean recycler = false; private String[] fields = null; private String[] fi...
0true
src_main_java_org_elasticsearch_action_admin_indices_cache_clear_ClearIndicesCacheRequest.java
1,064
public interface FulfillmentBand extends Serializable { public Long getId(); public void setId(Long id); /** * Gets the amount that should be applied to the fulfillment * cost for the {@link FulfillmentGroup}. This could be applied as * a percentage or as a flat rate, depending on the resu...
0true
core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_order_fulfillment_domain_FulfillmentBand.java
1,896
nodeEngine.getExecutionService().execute("hz:near-cache", new Runnable() { public void run() { try { TreeSet<CacheRecord> records = new TreeSet<CacheRecord>(cache.values()); int evictSize = cache.size() *...
0true
hazelcast_src_main_java_com_hazelcast_map_NearCache.java
936
public static interface RIDMapper { ORID map(ORID rid); }
0true
core_src_main_java_com_orientechnologies_orient_core_record_impl_ODocumentHelper.java
811
public static class Request extends SingleShardOperationRequest { private int shardId; private String preference; private List<Item> items; public Request() { } public Request(String concreteIndex, int shardId, String preference) { this.index = concrete...
0true
src_main_java_org_elasticsearch_action_percolate_TransportShardMultiPercolateAction.java
850
FLOAT("Float", 4, new Class<?>[] { Float.class, Float.TYPE }, new Class<?>[] { Float.class, Number.class }) { },
0true
core_src_main_java_com_orientechnologies_orient_core_metadata_schema_OType.java
454
public static class AdminPresentationDataDrivenEnumeration { public static final String OPTIONLISTENTITY = "optionListEntity"; public static final String OPTIONVALUEFIELDNAME = "optionValueFieldName"; public static final String OPTIONDISPLAYFIELDNAME = "optionDisplayFieldName"; publi...
0true
common_src_main_java_org_broadleafcommerce_common_presentation_override_PropertyType.java
1,922
EntryListener<Object, Object> listener = new EntryListener<Object, Object>() { private void handleEvent(EntryEvent<Object, Object> event) { if (endpoint.live()) { Data key = clientEngine.toData(event.getKey()); Data value = clientEngine.toData...
1no label
hazelcast_src_main_java_com_hazelcast_map_client_AbstractMapAddEntryListenerRequest.java
1,479
public final static class UnassignedShards implements Iterable<MutableShardRouting> { private final List<MutableShardRouting> unassigned; private int primaries = 0; private long transactionId = 0; private final UnassignedShards source; private final long sourceTransactionI...
0true
src_main_java_org_elasticsearch_cluster_routing_RoutingNodes.java
599
ex.execute(new Runnable() { public void run() { try { Thread.sleep(random.nextInt(10) * 1000); final Config config = new Config(); config.setProperty("hazelcast.wait.seconds.before.join", "5"); ...
0true
hazelcast_src_test_java_com_hazelcast_cluster_JoinStressTest.java
452
executor.execute(new Runnable() { @Override public void run() { int half = testValues.length / 2; for (int i = 0; i < testValues.length; i++) { final ReplicatedMap map = i < half ? map1 : map2; final AbstractMap.Simp...
0true
hazelcast-client_src_test_java_com_hazelcast_client_replicatedmap_ClientReplicatedMapTest.java
969
threadPool.executor(executor()).execute(new Runnable() { @Override public void run() { try { onOperation(idx, nodeOperation(newNodeRequest(clusterState.nodes().masterNodeId...
0true
src_main_java_org_elasticsearch_action_support_nodes_TransportNodesOperationAction.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
161
public class TestTxTimestamps { private final EphemeralFileSystemAbstraction fileSystem = new EphemeralFileSystemAbstraction(); private GraphDatabaseAPI db; @Before public void doBefore() throws Exception { db = (GraphDatabaseAPI) new TestGraphDatabaseFactory().setFileSystem( fileSystem...
0true
community_kernel_src_test_java_org_neo4j_kernel_impl_transaction_xaframework_TestTxTimestamps.java
1,543
@ManagedDescription("IAtomicReference") public class AtomicReferenceMBean extends HazelcastMBean<IAtomicReference> { public AtomicReferenceMBean(IAtomicReference managedObject, ManagementService service) { super(managedObject, service); objectName = service.createObjectName("IAtomicReference",manag...
0true
hazelcast_src_main_java_com_hazelcast_jmx_AtomicReferenceMBean.java
1,601
public class SystemLogRecord implements Comparable<SystemLogRecord>, DataSerializable { private long date; private String node; private String message; private String type; public SystemLogRecord() { } public SystemLogRecord(long date, String message, String type) { this.date = da...
0true
hazelcast_src_main_java_com_hazelcast_logging_SystemLogRecord.java
84
public class SpringTransactionManagerTest { @Test(timeout = 5000) public void testDoubleUpdateWithJavaTM() throws Exception { GraphDatabaseAPI db = (GraphDatabaseAPI) new TestGraphDatabaseFactory() .newImpermanentDatabase(); TransactionManager tm = new SpringTransactionManage...
0true
community_kernel_src_test_java_org_neo4j_kernel_impl_transaction_SpringTransactionManagerTest.java
3,653
public static class Defaults extends AbstractFieldMapper.Defaults { public static final String NAME = AllFieldMapper.NAME; public static final String INDEX_NAME = AllFieldMapper.NAME; public static final boolean ENABLED = true; public static final FieldType FIELD_TYPE = new FieldTyp...
0true
src_main_java_org_elasticsearch_index_mapper_internal_AllFieldMapper.java
1,398
@XmlRootElement(name = "media") @XmlAccessorType(value = XmlAccessType.FIELD) public class MediaWrapper extends BaseWrapper implements APIWrapper<Media> { /** * This allows us to control whether the URL should / can be overwritten, for example by the static asset service. */ @XmlTransient protect...
0true
core_broadleaf-framework-web_src_main_java_org_broadleafcommerce_core_web_api_wrapper_MediaWrapper.java
115
@Entity @Inheritance(strategy = InheritanceType.JOINED) @Table(name = "BLC_PAGE_TMPLT") @Cache(usage= CacheConcurrencyStrategy.NONSTRICT_READ_WRITE, region="blCMSElements") @AdminPresentationClass(populateToOneFields = PopulateToOneFieldsEnum.TRUE, friendlyName = "PageTemplateImpl_basePageTemplate") public class PageTe...
0true
admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_page_domain_PageTemplateImpl.java
230
@Documented @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.FIELD) public @interface ODocumentInstance { }
0true
core_src_main_java_com_orientechnologies_orient_core_annotation_ODocumentInstance.java
1,610
public class FieldMetadataOverride { //fields everyone depends on private Boolean excluded; private String friendlyName; private String securityLevel; private Integer order; public Boolean getExcluded() { return excluded; } public void setExcluded(Boolean excluded) { t...
0true
admin_broadleaf-open-admin-platform_src_main_java_org_broadleafcommerce_openadmin_dto_override_FieldMetadataOverride.java
106
REGEX { @Override public boolean evaluate(Object value, Object condition) { this.preevaluate(value,condition); if (value == null) return false; return evaluateRaw(value.toString(),(String)condition); } public boolean evaluateRaw(String value, Stri...
0true
titan-core_src_main_java_com_thinkaurelius_titan_core_attribute_Text.java
267
public class LoggingMailSender extends JavaMailSenderImpl { private static final Log LOG = LogFactory.getLog(LoggingMailSender.class); @Override public void send(MimeMessagePreparator[] mimeMessagePreparators) throws MailException { for (MimeMessagePreparator preparator : mimeMessagePreparators) { ...
0true
common_src_main_java_org_broadleafcommerce_common_email_service_LoggingMailSender.java
2,806
private static class DefaultProcessor extends AnalysisBinderProcessor { @Override public void processCharFilters(CharFiltersBindings charFiltersBindings) { charFiltersBindings.processCharFilter("html_strip", HtmlStripCharFilterFactory.class); charFiltersBindings.processCharF...
0true
src_main_java_org_elasticsearch_index_analysis_AnalysisModule.java
1,087
public class PartitionGroupConfig { private boolean enabled = false; private MemberGroupType groupType = MemberGroupType.PER_MEMBER; private final List<MemberGroupConfig> memberGroupConfigs = new LinkedList<MemberGroupConfig>(); public enum MemberGroupType { HOST_AWARE, CUSTOM, PER_MEMBER ...
0true
hazelcast_src_main_java_com_hazelcast_config_PartitionGroupConfig.java
2,618
class JoinResponse extends TransportResponse { ClusterState clusterState; JoinResponse() { } JoinResponse(ClusterState clusterState) { this.clusterState = clusterState; } @Override public void readFrom(StreamInput in) throws IOException { ...
0true
src_main_java_org_elasticsearch_discovery_zen_membership_MembershipAction.java
1,549
public abstract class HazelcastMBean<T> implements DynamicMBean, MBeanRegistration { protected HashMap<String, BeanInfo> attributeMap = new HashMap<String, BeanInfo>(); protected HashMap<String, BeanInfo> operationMap = new HashMap<String, BeanInfo>(); final T managedObject; final ManagementService se...
0true
hazelcast_src_main_java_com_hazelcast_jmx_HazelcastMBean.java
2,476
static class Wrapped extends PrioritizedRunnable { private final Runnable runnable; private Wrapped(Runnable runnable, Priority priority) { super(priority); this.runnable = runnable; } @Override public void run() { runnable.run(); ...
0true
src_main_java_org_elasticsearch_common_util_concurrent_PrioritizedRunnable.java
2,863
public class GalicianAnalyzerProvider extends AbstractIndexAnalyzerProvider<GalicianAnalyzer> { private final GalicianAnalyzer analyzer; @Inject public GalicianAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, Environment env, @Assisted String name, @Assisted Settings settings) { ...
0true
src_main_java_org_elasticsearch_index_analysis_GalicianAnalyzerProvider.java
2,586
class RejoinClusterRequestHandler extends BaseTransportRequestHandler<RejoinClusterRequest> { static final String ACTION = "discovery/zen/rejoin"; @Override public RejoinClusterRequest newInstance() { return new RejoinClusterRequest(); } @Override publi...
1no label
src_main_java_org_elasticsearch_discovery_zen_ZenDiscovery.java
625
indexEngine.getEntriesMinor(iRangeTo, isInclusive, null, new OIndexEngine.EntriesResultListener() { @Override public boolean addResult(ODocument entry) { return entriesResultListener.addResult(entry); } });
0true
core_src_main_java_com_orientechnologies_orient_core_index_OIndexOneValue.java
284
public abstract class ActionRequestBuilder<Request extends ActionRequest, Response extends ActionResponse, RequestBuilder extends ActionRequestBuilder> { protected final Request request; protected final InternalGenericClient client; protected ActionRequestBuilder(InternalGenericClient client, Request req...
0true
src_main_java_org_elasticsearch_action_ActionRequestBuilder.java
1,301
public interface Field { /** * Gets the id * @return the id */ public Long getId(); /** * Sets the id * @param id */ public void setId(Long id); /** * Gets the entityType of this Field * @return the entityType */ public FieldEntity getEntityTy...
0true
core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_search_domain_Field.java
59
public interface FieldDefinition extends Serializable { public Long getId(); public void setId(Long id); public String getName(); public void setName(String name); public SupportedFieldType getFieldType(); public void setFieldType(SupportedFieldType fieldType); public String getSecuri...
0true
admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_field_domain_FieldDefinition.java
1,749
public static class Issue1764UpdatingEntryProcessor extends AbstractEntryProcessor<String, Issue1764Data> { private static final long serialVersionUID = 1L; private String newValue; public Issue1764UpdatingEntryProcessor(String newValue) { this.newValue = newValue; ...
0true
hazelcast_src_test_java_com_hazelcast_map_EntryProcessorTest.java
2,053
public class GetEntryViewOperation extends KeyBasedMapOperation { private EntryView<Data, Data> result; public GetEntryViewOperation(String name, Data dataKey) { super(name, dataKey); } public GetEntryViewOperation() { } public void run() { MapService mapService = getService(...
1no label
hazelcast_src_main_java_com_hazelcast_map_operation_GetEntryViewOperation.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
1,209
public interface PaymentResponse { public void addPaymentResponseItem(PaymentInfo paymentInfo, PaymentResponseItem paymentResponseItem); public PaymentResponseItem getPaymentResponseItem(PaymentInfo paymentInfo); public Map<PaymentInfo, PaymentResponseItem> getResponseItems(); }
0true
core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_payment_service_module_PaymentResponse.java
1,614
public class PersistencePerspectiveItemVisitorAdapter implements PersistencePerspectiveItemVisitor { @Override public void visit(AdornedTargetList adornedTargetList) { //do nothing } @Override public void visit(MapStructure mapStructure) { //do nothing } @Override publ...
0true
admin_broadleaf-open-admin-platform_src_main_java_org_broadleafcommerce_openadmin_dto_visitor_PersistencePerspectiveItemVisitorAdapter.java
2,598
class SocketPacketWriter implements SocketWriter<Packet> { private static final int CONST_BUFFER_NO = 4; final TcpIpConnection connection; final IOService ioService; final ILogger logger; private final PacketWriter packetWriter; SocketPacketWriter(TcpIpConnection connection) { this.co...
1no label
hazelcast_src_main_java_com_hazelcast_nio_SocketPacketWriter.java
2,697
public class LocalGatewayAllocator extends AbstractComponent implements GatewayAllocator { public static final String INDEX_RECOVERY_INITIAL_SHARDS = "index.recovery.initial_shards"; private final TransportNodesListGatewayStartedShards listGatewayStartedShards; private final TransportNodesListShardStoreM...
0true
src_main_java_org_elasticsearch_gateway_local_LocalGatewayAllocator.java
1,091
public final class ODefaultSQLFunctionFactory implements OSQLFunctionFactory { private static final Map<String, Object> FUNCTIONS = new HashMap<String, Object>(); static { // MISC FUNCTIONS FUNCTIONS.put(OSQLFunctionCoalesce.NAME.toUpperCase(Locale.ENGLISH), new OSQLFunctionCoalesce()); FUNCTIONS.put(O...
1no label
core_src_main_java_com_orientechnologies_orient_core_sql_functions_ODefaultSQLFunctionFactory.java
305
class StreamUtils { private StreamUtils() { } /** * Given an IStreamContentAccessor, determines the appropriate encoding to use * and reads the stream's contents as a String. Specifically, if the IStreamContentAccessor * is also an IEncodedStreamContentAccessor, that encoding is used. Otherwise,...
0true
plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_editor_StreamUtils.java
781
public class TestOfferTimeZoneProcessorImpl implements OfferTimeZoneProcessor { private static final Log LOG = LogFactory.getLog(OfferTimeZoneProcessorImpl.class); public TimeZone getTimeZone(Offer offer) { return TimeZone.getTimeZone("CST"); } }
0true
integration_src_test_java_org_broadleafcommerce_core_offer_TestOfferTimeZoneProcessorImpl.java
5,127
public class AggregatorFactories { public static final AggregatorFactories EMPTY = new Empty(); private final AggregatorFactory[] factories; public static Builder builder() { return new Builder(); } private AggregatorFactories(AggregatorFactory[] factories) { this.factories = fac...
1no label
src_main_java_org_elasticsearch_search_aggregations_AggregatorFactories.java
2,199
public class OrFilter extends Filter { private final List<? extends Filter> filters; public OrFilter(List<? extends Filter> filters) { this.filters = filters; } public List<? extends Filter> filters() { return filters; } @Override public DocIdSet getDocIdSet(AtomicReaderC...
0true
src_main_java_org_elasticsearch_common_lucene_search_OrFilter.java
3,696
public abstract class AbstractExecutorThreadFactory implements ThreadFactory { protected final ClassLoader classLoader; protected final ThreadGroup threadGroup; public AbstractExecutorThreadFactory(ThreadGroup threadGroup, ClassLoader classLoader) { this.threadGroup = threadGroup; this.cla...
1no label
hazelcast_src_main_java_com_hazelcast_util_executor_AbstractExecutorThreadFactory.java
4,943
public class RestSearchAction extends BaseRestHandler { @Inject public RestSearchAction(Settings settings, Client client, RestController controller) { super(settings, client); controller.registerHandler(GET, "/_search", this); controller.registerHandler(POST, "/_search", this); ...
1no label
src_main_java_org_elasticsearch_rest_action_search_RestSearchAction.java
1,400
public abstract class AbstractAccessDelegate<T extends HazelcastRegion> implements AccessDelegate<T> { protected final ILogger LOG; protected final T hazelcastRegion; protected final RegionCache cache; protected final Comparator<Object> versionComparator; protected AbstractAccessDelegate(final T h...
0true
hazelcast-hibernate_hazelcast-hibernate4_src_main_java_com_hazelcast_hibernate_access_AbstractAccessDelegate.java
784
public class MetricInstrumentedSchemaCache implements SchemaCache { public static final String METRICS_NAME = "schemacache"; public static final String METRICS_TYPENAME = "name"; public static final String METRICS_RELATIONS = "relations"; private final SchemaCache cache; public MetricInstrumente...
1no label
titan-core_src_main_java_com_thinkaurelius_titan_graphdb_database_cache_MetricInstrumentedSchemaCache.java
2,061
public interface UntargettedBinding<T> extends Binding<T> { }
0true
src_main_java_org_elasticsearch_common_inject_spi_UntargettedBinding.java
82
public class OConsoleApplication { protected enum RESULT { OK, ERROR, EXIT }; protected InputStream in = System.in; // System.in; protected PrintStream out = System.out; protected PrintStream err = System.err; pro...
0true
commons_src_main_java_com_orientechnologies_common_console_OConsoleApplication.java
389
new Thread(){ public void run() { mm.forceUnlock(key); forceUnlock.countDown(); } }.start();
0true
hazelcast-client_src_test_java_com_hazelcast_client_multimap_ClientMultiMapLockTest.java
3,221
public abstract class AbstractReplicatedRecordStore<K, V> extends AbstractBaseReplicatedRecordStore<K, V> { static final String CLEAR_REPLICATION_MAGIC_KEY = ReplicatedMapService.SERVICE_NAME + "$CLEAR$MESSAGE$"; public AbstractReplicatedRecordStore(String name, NodeEngine nodeEngine, CleanerRegistrat...
1no label
hazelcast_src_main_java_com_hazelcast_replicatedmap_record_AbstractReplicatedRecordStore.java
1,335
public interface ClusterStateUpdateListener { /** * Called when the cluster state update is acknowledged */ void onResponse(ClusterStateUpdateResponse response); /** * Called when any error is thrown during the cluster state update processing */ void onFailure(Throwable t); }
0true
src_main_java_org_elasticsearch_cluster_ack_ClusterStateUpdateListener.java
1,214
CONCURRENT { @Override <T> Recycler<T> build(Recycler.C<T> c, int limit, int availableProcessors) { return concurrent(dequeFactory(c, limit), availableProcessors); } },
0true
src_main_java_org_elasticsearch_cache_recycler_CacheRecycler.java
20
static final class CompletionNode { final Completion completion; volatile CompletionNode next; CompletionNode(Completion completion) { this.completion = completion; } }
0true
src_main_java_jsr166e_CompletableFuture.java
522
public class ORecordNotFoundException extends OException { private static final long serialVersionUID = -265573123216968L; public ORecordNotFoundException(final String string) { super(string); } public ORecordNotFoundException(final String message, final Throwable cause) { super(message, cause); } }
0true
core_src_main_java_com_orientechnologies_orient_core_exception_ORecordNotFoundException.java
1,256
"Number of times a memory mapped page has been reused in short time", METRIC_TYPE.COUNTER, new OProfilerHookValue() { public Object getValue() { return metricReusedPagesBetweenLast; } });
0true
core_src_main_java_com_orientechnologies_orient_core_storage_fs_OMMapManagerOld.java
52
final class NestedCompletionProposal implements ICompletionProposal, ICompletionProposalExtension2 { private final Declaration dec; private final int offset; public NestedCompletionProposal(Declaration dec, int offset) { super(); this.de...
0true
plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_complete_RefinementCompletionProposal.java
3,532
public class BinaryMappingTests extends ElasticsearchTestCase { @Test public void testDefaultMapping() throws Exception { String mapping = XContentFactory.jsonBuilder().startObject().startObject("type") .startObject("properties") .startObject("field") .fi...
0true
src_test_java_org_elasticsearch_index_mapper_binary_BinaryMappingTests.java
254
private class FilterDeletedColumns implements Predicate<Column> { private final long ts; private FilterDeletedColumns(long ts) { this.ts = ts; } @Override public boolean apply(Column input) { return !input.isMarkedForDelete(ts); } }
0true
titan-cassandra_src_main_java_com_thinkaurelius_titan_diskstorage_cassandra_embedded_CassandraEmbeddedKeyColumnValueStore.java
314
public enum Type { /** * Once the database has been opened, these configuration options cannot * be changed for the entire life of the database */ FIXED, /** * These options can only be changed for the entire database cluster at * once when all in...
0true
titan-core_src_main_java_com_thinkaurelius_titan_diskstorage_configuration_ConfigOption.java
153
return Maps.transformValues(indexes,new Function<IndexProvider, IndexFeatures>() { @Nullable @Override public IndexFeatures apply(@Nullable IndexProvider indexProvider) { return indexProvider.getFeatures(); } });
0true
titan-core_src_main_java_com_thinkaurelius_titan_diskstorage_Backend.java
1,134
public enum ClientType { JAVA, CSHARP, CPP, PYTHON, RUBY, OTHER }
0true
hazelcast_src_main_java_com_hazelcast_core_ClientType.java
1,263
addOperation(operations, new Runnable() { public void run() { IMap map = hazelcast.getMap("myMap"); map.addIndex("year", true); } }, 1);
0true
hazelcast_src_main_java_com_hazelcast_examples_AllTest.java
420
runConflictingTx(new TxJob() { @Override public void run(IndexTransaction tx) { tx.delete(defStore, defDoc, TEXT, ImmutableMap.of(), false); } }, new TxJob() {
0true
titan-test_src_main_java_com_thinkaurelius_titan_diskstorage_indexing_IndexProviderTest.java
838
public class OfferContext { private static final ThreadLocal<OfferContext> OFFERCONTEXT = ThreadLocalManager.createThreadLocal(OfferContext.class); public static OfferContext getOfferContext() { return OFFERCONTEXT.get(); } public static void setOfferContext(OfferContext offerCont...
0true
core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_offer_service_OfferContext.java
215
public class HydrationItemDescriptor { private String factoryMethod; private Method[] mutators; public String getFactoryMethod() { return factoryMethod; } public void setFactoryMethod(String factoryMethod) { this.factoryMethod = factoryMethod; } public Met...
0true
common_src_main_java_org_broadleafcommerce_common_cache_engine_HydrationItemDescriptor.java
1,244
autoFlushTask = new TimerTask() { @Override public void run() { flush(); } };
0true
core_src_main_java_com_orientechnologies_orient_core_storage_fs_OMMapManagerNew.java
1,891
public class Scopes { private Scopes() { } /** * One instance per {@link Injector}. Also see {@code @}{@link Singleton}. */ public static final Scope SINGLETON = new Scope() { public <T> Provider<T> scope(Key<T> key, final Provider<T> creator) { return new Provider<T>() {...
0true
src_main_java_org_elasticsearch_common_inject_Scopes.java
3,733
public static class Nested { public static final Nested NO = new Nested(false, false, false); public static Nested newNested(boolean includeInParent, boolean includeInRoot) { return new Nested(true, includeInParent, includeInRoot); } private final boolean nested; ...
0true
src_main_java_org_elasticsearch_index_mapper_object_ObjectMapper.java
3,104
public final class EngineSearcherTotalHitsMatcher extends TypeSafeMatcher<Engine.Searcher> { private final Query query; private final int totalHits; public EngineSearcherTotalHitsMatcher(Query query, int totalHits) { this.query = query; this.totalHits = totalHits; } @Override ...
1no label
src_test_java_org_elasticsearch_index_engine_EngineSearcherTotalHitsMatcher.java
964
public abstract class NodesOperationResponse<NodeResponse extends NodeOperationResponse> extends ActionResponse implements Iterable<NodeResponse> { private ClusterName clusterName; protected NodeResponse[] nodes; private Map<String, NodeResponse> nodesMap; protected NodesOperationResponse() { } ...
0true
src_main_java_org_elasticsearch_action_support_nodes_NodesOperationResponse.java
980
public interface ORecordSerializer { public ORecordInternal<?> fromStream(byte[] iSource, ORecordInternal<?> iRecord, String[] iFields); public byte[] toStream(ORecordInternal<?> iSource, boolean iOnlyDelta); }
0true
core_src_main_java_com_orientechnologies_orient_core_serialization_serializer_record_ORecordSerializer.java
2,624
public interface ZenPing extends LifecycleComponent<ZenPing> { void setNodesProvider(DiscoveryNodesProvider nodesProvider); void ping(PingListener listener, TimeValue timeout) throws ElasticsearchException; public interface PingListener { void onPing(PingResponse[] pings); } public stat...
0true
src_main_java_org_elasticsearch_discovery_zen_ping_ZenPing.java
2,030
= new DefaultBindingTargetVisitor<Object, Object>() { @Override public Object visit(InstanceBinding<?> binding) { return binding.getInstance(); } @Override protected Object visitOther(Binding<?> binding) { throw new IllegalArgumentException();...
0true
src_main_java_org_elasticsearch_common_inject_spi_Elements.java
883
public final class CountDownLatchPortableHook implements PortableHook { static final int F_ID = FactoryIdHelper.getFactoryId(FactoryIdHelper.CDL_PORTABLE_FACTORY, -14); static final int COUNT_DOWN = 1; static final int AWAIT = 2; static final int SET_COUNT = 3; static final int GET_COUNT = 4; ...
0true
hazelcast_src_main_java_com_hazelcast_concurrent_countdownlatch_client_CountDownLatchPortableHook.java