Unnamed: 0
int64
0
6.45k
func
stringlengths
29
253k
target
class label
2 classes
project
stringlengths
36
167
1,012
public class OStringSerializerAnyRuntime implements OStringSerializer { public static final OStringSerializerAnyRuntime INSTANCE = new OStringSerializerAnyRuntime(); private static final String NAME = "au"; public String getName() { return NAME; } /** * Re-Create any object if the class has a pub...
0true
core_src_main_java_com_orientechnologies_orient_core_serialization_serializer_string_OStringSerializerAnyRuntime.java
1,489
@RunWith(HazelcastSerialClassRunner.class) @Category(QuickTest.class) public class HibernateSerializationHookNonAvailableTest { private static final Field ORIGINAL; private static final Field TYPE_MAP; private static final Method GET_SERIALIZATION_SERVICE; private static final ClassLoader FILTERING_CL...
0true
hazelcast-hibernate_hazelcast-hibernate3_src_test_java_com_hazelcast_hibernate_serialization_HibernateSerializationHookNonAvailableTest.java
860
threadPool.executor(ThreadPool.Names.SEARCH).execute(new Runnable() { @Override public void run() { for (final AtomicArray.Entry<DfsSearchResult> entry : firstResults.asList()) { DfsSearchResu...
0true
src_main_java_org_elasticsearch_action_search_type_TransportSearchDfsQueryAndFetchAction.java
1,900
@Target({ElementType.TYPE, ElementType.METHOD}) @Retention(RUNTIME) @ScopeAnnotation public @interface Singleton { }
0true
src_main_java_org_elasticsearch_common_inject_Singleton.java
224
public class TransactionWriter { private final LogBuffer buffer; private final int identifier; private final int localId; public TransactionWriter( LogBuffer buffer, int identifier, int localId ) { this.buffer = buffer; this.identifier = identifier; this.localId = localId; ...
0true
community_kernel_src_main_java_org_neo4j_kernel_impl_nioneo_xa_TransactionWriter.java
1,787
public class FieldPathBuilder { protected DynamicDaoHelper dynamicDaoHelper = new DynamicDaoHelperImpl(); protected CriteriaQuery criteria; protected List<Predicate> restrictions; public FieldPath getFieldPath(From root, String fullPropertyName) { String[] pieces = fullPropertyNam...
1no label
admin_broadleaf-open-admin-platform_src_main_java_org_broadleafcommerce_openadmin_server_service_persistence_module_criteria_FieldPathBuilder.java
1,330
public interface OClusterAwareWALRecord { int getClusterId(); }
0true
core_src_main_java_com_orientechnologies_orient_core_storage_impl_local_paginated_wal_OClusterAwareWALRecord.java
462
public class ODatabaseCompare extends ODatabaseImpExpAbstract { private OStorage storage1; private OStorage storage2; private ODatabaseDocumentTx databaseDocumentTxOne; private ODatabaseDocumentTx databaseDocumentTxTwo; private boolean compareEntriesForAutomaticIn...
1no label
core_src_main_java_com_orientechnologies_orient_core_db_tool_ODatabaseCompare.java
1,257
addOperation(operations, new Runnable() { public void run() { IMap map = hazelcast.getMap("myMap"); Iterator it = map.entrySet(new SqlPredicate("name=" + random.nextInt(10000))).iterator(); while (it.hasNext()) { it.next(); ...
0true
hazelcast_src_main_java_com_hazelcast_examples_AllTest.java
1,688
public interface AdminSecurityContext extends Serializable { public ContextType getContextType(); public void setContextType(ContextType contextType); public String getContextKey(); public void setContextKey(String contextKey); public Set<AdminRole> getAllRoles(); public void setAllRoles(S...
0true
admin_broadleaf-open-admin-platform_src_main_java_org_broadleafcommerce_openadmin_server_security_domain_AdminSecurityContext.java
465
public interface StoreManager { /** * Returns a transaction handle for a new transaction according to the given configuration. * * @return New Transaction Handle */ public StoreTransaction beginTransaction(BaseTransactionConfig config) throws BackendException; /** * Closes the Sto...
0true
titan-core_src_main_java_com_thinkaurelius_titan_diskstorage_keycolumnvalue_StoreManager.java
1,469
public final class HazelcastEntityRegion<Cache extends RegionCache> extends AbstractTransactionalDataRegion<Cache> implements EntityRegion { public HazelcastEntityRegion(final HazelcastInstance instance, final String regionName, final Properties props, ...
0true
hazelcast-hibernate_hazelcast-hibernate3_src_main_java_com_hazelcast_hibernate_region_HazelcastEntityRegion.java
724
@RunWith(HazelcastParallelClassRunner.class) @Category(QuickTest.class) public class SetTest extends HazelcastTestSupport { @Test public void testSetMethods() throws Exception { Config config = new Config(); final String name = "defSet"; final int count = 100; final int insCount...
0true
hazelcast_src_test_java_com_hazelcast_collection_SetTest.java
255
service.submitToMembers(callable, selector, new MultiExecutionCallback() { public void onResponse(Member member, Object value) { if (value.equals(msg + AppendCallable.APPENDAGE)) { responseLatch.countDown(); } } public void...
0true
hazelcast-client_src_test_java_com_hazelcast_client_executor_ClientExecutorServiceSubmitTest.java
104
public class TestRWLock { private LockManagerImpl lm; @Before public void before() throws Exception { lm = new LockManagerImpl( new RagManager() ); } @Test public void testSingleThread() throws Exception { Transaction tx = mock( Transaction.class ); try ...
0true
community_kernel_src_test_java_org_neo4j_kernel_impl_transaction_TestRWLock.java
351
TRANSPORT_CLIENT { @Override public Connection connect(Configuration config) throws IOException { log.debug("Configuring TransportClient"); ImmutableSettings.Builder settingsBuilder = settingsBuilder(config); if (config.has(ElasticSearchIndex.CLIENT_SNIFF)) { ...
0true
titan-es_src_main_java_com_thinkaurelius_titan_diskstorage_es_ElasticSearchSetup.java
644
@Component("blAuthenticationFailureRedirectStrategy") public class BroadleafAuthenticationFailureRedirectStrategy implements RedirectStrategy { private RedirectStrategy redirectStrategy = new DefaultRedirectStrategy(); @Override public void sendRedirect(HttpServletRequest request, HttpServletResponse ...
0true
core_broadleaf-framework-web_src_main_java_org_broadleafcommerce_common_web_security_BroadleafAuthenticationFailureRedirectStrategy.java
1,578
public interface ODistributedDatabase { public ODistributedResponse send(ODistributedRequest iRequest) throws InterruptedException; void send2Node(ODistributedRequest iRequest, String iTargetNode); }
0true
server_src_main_java_com_orientechnologies_orient_server_distributed_ODistributedDatabase.java
3,342
public class GeoPointBinaryDVIndexFieldData extends DocValuesIndexFieldData implements IndexGeoPointFieldData<AtomicGeoPointFieldData<ScriptDocValues>> { public GeoPointBinaryDVIndexFieldData(Index index, Names fieldNames) { super(index, fieldNames); } @Override public boolean valuesOrdered() ...
0true
src_main_java_org_elasticsearch_index_fielddata_plain_GeoPointBinaryDVIndexFieldData.java
441
@Deprecated public @interface AdminPresentationCollectionOverride { /** * The name of the property whose AdminPresentation annotation should be overwritten * * @return the name of the property that should be overwritten */ String name(); /** * The AdminPresentation to overwrite th...
0true
common_src_main_java_org_broadleafcommerce_common_presentation_override_AdminPresentationCollectionOverride.java
3,639
public static class TypeParser implements Mapper.TypeParser { @Override public Mapper.Builder<?, ?> parse(String name, Map<String, Object> node, ParserContext parserContext) throws MapperParsingException { Builder builder = geoPointField(name); parseField(builder, name, node,...
0true
src_main_java_org_elasticsearch_index_mapper_geo_GeoPointFieldMapper.java
343
public class BerkeleyElasticsearchTest extends TitanIndexTest { public BerkeleyElasticsearchTest() { super(true, true, true); } @Override public WriteConfiguration getConfiguration() { ModifiableConfiguration config = getBerkeleyJEConfiguration(); //Add index config.set...
0true
titan-es_src_test_java_com_thinkaurelius_titan_diskstorage_es_BerkeleyElasticsearchTest.java
1,880
boolean b = h1.executeTransaction(options, new TransactionalTask<Boolean>() { public Boolean execute(TransactionalTaskContext context) throws TransactionException { final TransactionalMap<Object, Object> txMap = context.getMap("default"); assertEquals(0, txMap.values(...
0true
hazelcast_src_test_java_com_hazelcast_map_MapTransactionTest.java
2,779
public class IndexNameModule extends AbstractModule { private final Index index; public IndexNameModule(Index index) { this.index = index; } @Override protected void configure() { bind(Index.class).toInstance(index); } }
0true
src_main_java_org_elasticsearch_index_IndexNameModule.java
3,698
public static class Builder extends AbstractFieldMapper.Builder<Builder, TypeFieldMapper> { public Builder() { super(Defaults.NAME, new FieldType(Defaults.FIELD_TYPE)); indexName = Defaults.INDEX_NAME; } @Override public TypeFieldMapper build(BuilderContext ...
0true
src_main_java_org_elasticsearch_index_mapper_internal_TypeFieldMapper.java
411
}, new TxJob() { @Override public void run(IndexTransaction tx) { tx.add(defStore, defDoc, NAME, nameValue, false); } });
0true
titan-test_src_main_java_com_thinkaurelius_titan_diskstorage_indexing_IndexProviderTest.java
263
public interface IProblemChangedListener { /** * Called when problems changed. This call is posted in an aynch exec, therefore passed * resources must not exist. * @param changedResources A set with elements of type <code>IResource</code> that * describe the resources that had an problem chang...
0true
plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_editor_IProblemChangedListener.java
451
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
1,028
transportService.sendRequest(node, transportShardAction, new ShardSingleOperationRequest(request, shardRouting.id()), new BaseTransportResponseHandler<Response>() { @Override public Response newInstance() { return newRespon...
0true
src_main_java_org_elasticsearch_action_support_single_shard_TransportShardSingleOperationAction.java
426
public enum PopulateToOneFieldsEnum { TRUE,FALSE,NOT_SPECIFIED }
0true
common_src_main_java_org_broadleafcommerce_common_presentation_PopulateToOneFieldsEnum.java
249
service.submitToMembers(runnable, collection, new MultiExecutionCallback() { public void onResponse(Member member, Object value) { responseLatch.countDown(); } public void onComplete(Map<Member, Object> values) { completeLatch.countDown(); ...
0true
hazelcast-client_src_test_java_com_hazelcast_client_executor_ClientExecutorServiceSubmitTest.java
1,582
ClusterInfoService cis = new ClusterInfoService() { @Override public ClusterInfo getClusterInfo() { logger.info("--> calling fake getClusterInfo"); return clusterInfo; } };
0true
src_test_java_org_elasticsearch_cluster_routing_allocation_decider_DiskThresholdDeciderTests.java
201
new IPropertyListener() { public void propertyChanged(Object source, int propId) { if (source == CeylonEditor.this && propId == IEditorPart.PROP_INPUT) { IDocument oldDoc = getParseController().getDocument(); IDocument curDoc = getDocumentProvider().getDoc...
0true
plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_editor_CeylonEditor.java
266
public class CancellationAwareTask implements Callable<Boolean>, Serializable { long sleepTime; public CancellationAwareTask(long sleepTime) { this.sleepTime = sleepTime; } public Boolean call() throws InterruptedException { Thread.sleep(sleepTime); return Boolean.TRUE; } ...
0true
hazelcast-client_src_test_java_com_hazelcast_client_executor_tasks_CancellationAwareTask.java
5,325
public class UnmappedTerms extends InternalTerms { public static final Type TYPE = new Type("terms", "umterms"); private static final Collection<Bucket> BUCKETS = Collections.emptyList(); private static final Map<String, Bucket> BUCKETS_MAP = Collections.emptyMap(); public static AggregationStreams.S...
1no label
src_main_java_org_elasticsearch_search_aggregations_bucket_terms_UnmappedTerms.java
1,664
private static final class CreateRecordNodeCall extends NodeCall<OPhysicalPosition> { private String storageName; private ORecordId recordId; private byte[] content; private ORecordVersion recordVersion; private byte recordType; public CreateRecordNodeCall() { ...
0true
distributed_src_main_java_com_orientechnologies_orient_server_hazelcast_oldsharding_hazelcast_OHazelcastDHTNodeProxy.java
1,397
public interface OMVRBTreeEntryDataProvider<K, V> { public ORID getIdentity(); public K getKeyAt(int iIndex); public V getValueAt(int iIndex); public ORID getParent(); public ORID getLeft(); public ORID getRight(); public int getSize(); public int getPageSize(); public boolean getColor(); ...
0true
core_src_main_java_com_orientechnologies_orient_core_type_tree_provider_OMVRBTreeEntryDataProvider.java
1,338
@Service("blSolrSearchServiceExtensionManager") public class SolrSearchServiceExtensionManager extends ExtensionManager<SolrSearchServiceExtensionHandler> { public SolrSearchServiceExtensionManager() { super(SolrSearchServiceExtensionHandler.class); } }
0true
core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_search_service_solr_SolrSearchServiceExtensionManager.java
434
public static class ShardStats implements ToXContent, Streamable { int indices; int total; int primaries; // min/max int minIndexShards = -1; int maxIndexShards = -1; int minIndexPrimaryShards = -1; int maxIndexPrimaryShards = -1; double minI...
0true
src_main_java_org_elasticsearch_action_admin_cluster_stats_ClusterStatsIndices.java
1,523
public class OJPAPersistenceUnitInfo implements PersistenceUnitInfo { /** * the name of the persistence unit */ private final String unitName; /** * transaction type of the entity managers created by the EntityManagerFactory */ private final PersistenceUnitTransactionType transactionType; /**...
0true
object_src_main_java_com_orientechnologies_orient_object_jpa_OJPAPersistenceUnitInfo.java
596
public class JoinRequestOperation extends AbstractClusterOperation implements JoinOperation { private JoinRequest message; public JoinRequestOperation() { } public JoinRequestOperation(JoinRequest message) { this.message = message; } @Override public void run() { ClusterS...
1no label
hazelcast_src_main_java_com_hazelcast_cluster_JoinRequestOperation.java
1,799
assertTrueEventually(new AssertTask() { @Override public void run() { assertEquals(expectedLocal, localCount.get()); assertEquals(expectedGlobal, globalCount.get()); assertEquals(expectedValue, valueCount.get()); } });
0true
hazelcast_src_test_java_com_hazelcast_map_ListenerTest.java
262
class GotoPreviousTargetAction extends TargetNavigationAction { public GotoPreviousTargetAction() { this(null); } public GotoPreviousTargetAction(CeylonEditor editor) { super(editor, "Go to Previous Navigation Target", GOTO_PREVIOUS_TARGET); } @Override protected Object getNavT...
0true
plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_editor_GotoPreviousTargetAction.java
518
MessageListener listener = new MessageListener() { public void onMessage(Message message) { } };
0true
hazelcast-client_src_test_java_com_hazelcast_client_topic_ClientTopicTest.java
1,334
Future future = executorService.submit(new Callable<String>() { @Override public String call() { try { latch1.await(30, TimeUnit.SECONDS); return "success"; } catch (Exception e) { ...
0true
hazelcast_src_test_java_com_hazelcast_executor_ExecutorServiceTest.java
2,667
public class DefaultPortableReader implements PortableReader { protected final ClassDefinition cd; private final PortableSerializer serializer; private final BufferObjectDataInput in; private final int finalPosition; private final int offset; private boolean raw; public DefaultPortableRead...
1no label
hazelcast_src_main_java_com_hazelcast_nio_serialization_DefaultPortableReader.java
763
public class ListSetBackupOperation extends CollectionOperation implements BackupOperation { private long oldItemId; private long itemId; private Data value; public ListSetBackupOperation() { } public ListSetBackupOperation(String name, long oldItemId, long itemId, Data value) { super...
0true
hazelcast_src_main_java_com_hazelcast_collection_list_ListSetBackupOperation.java
13
final ScheduledExecutorService exe = new ScheduledThreadPoolExecutor(1,new RejectedExecutionHandler() { @Override public void rejectedExecution(Runnable r, ThreadPoolExecutor executor) { r.run(); } });
0true
titan-test_src_main_java_com_thinkaurelius_titan_TestBed.java
2,929
public class ReverseTokenFilterFactory extends AbstractTokenFilterFactory { @Inject public ReverseTokenFilterFactory(Index index, @IndexSettings Settings indexSettings, @Assisted String name, @Assisted Settings settings) { super(index, indexSettings, name, settings); } @Override public Tok...
0true
src_main_java_org_elasticsearch_index_analysis_ReverseTokenFilterFactory.java
1,188
public interface Member extends DataSerializable, Endpoint { /** * Returns if this member is the local member. * * @return <tt>true<tt> if this member is the * local member, <tt>false</tt> otherwise. */ boolean localMember(); /** * Returns the InetSocketAddress of thi...
0true
hazelcast_src_main_java_com_hazelcast_core_Member.java
696
constructors[LIST_SET] = new ConstructorFunction<Integer, Portable>() { public Portable createNew(Integer arg) { return new ListSetRequest(); } };
0true
hazelcast_src_main_java_com_hazelcast_collection_CollectionPortableHook.java
3,004
public interface IdReaderCache { IdReaderTypeCache type(String type); HashedBytesArray parentIdByDoc(String type, int docId); int docById(String type, HashedBytesArray id); long sizeInBytes(); }
0true
src_main_java_org_elasticsearch_index_cache_id_IdReaderCache.java
3,839
public class GeoBoundingBoxFilterParser implements FilterParser { public static final String TOP = "top"; public static final String LEFT = "left"; public static final String RIGHT = "right"; public static final String BOTTOM = "bottom"; public static final String TOP_LEFT = TOP + "_" + LEFT; ...
1no label
src_main_java_org_elasticsearch_index_query_GeoBoundingBoxFilterParser.java
625
h3.getLifecycleService().addLifecycleListener(new LifecycleListener() { public void stateChanged(LifecycleEvent event) { if (event.getState() == LifecycleState.MERGED) { latch.countDown(); } } });
0true
hazelcast_src_test_java_com_hazelcast_cluster_SplitBrainHandlerTest.java
1,045
@Entity @Table(name = "BLC_ITEM_OFFER_QUALIFIER") @Inheritance(strategy=InheritanceType.JOINED) @Cache(usage=CacheConcurrencyStrategy.NONSTRICT_READ_WRITE, region="blOrderElements") public class OrderItemQualifierImpl implements OrderItemQualifier { public static final Log LOG = LogFactory.getLog(OrderItemQualifie...
1no label
core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_order_domain_OrderItemQualifierImpl.java
1,555
@XmlRootElement(name = "command") @XmlType(propOrder = { "parameters", "implementation", "pattern" }) public class OServerCommandConfiguration { @XmlAttribute(required = true) public String pattern; @XmlAttribute(required = true) public String implementation; @XmlAt...
0true
server_src_main_java_com_orientechnologies_orient_server_config_OServerCommandConfiguration.java
336
new Thread() { public void run() { try { if (!tempMap.tryLock("key1", 2, TimeUnit.SECONDS)) { latch.countDown(); } } catch (InterruptedException e) { e.printStackTrace(); ...
0true
hazelcast-client_src_test_java_com_hazelcast_client_map_ClientMapTest.java
1,237
addOperation(operations, new Runnable() { public void run() { IMap map = hazelcast.getMap("myMap"); map.getEntryView(random.nextInt(SIZE)); } }, 2);
0true
hazelcast_src_main_java_com_hazelcast_examples_AllTest.java
2,918
public class PortugueseAnalyzerProvider extends AbstractIndexAnalyzerProvider<PortugueseAnalyzer> { private final PortugueseAnalyzer analyzer; @Inject public PortugueseAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, Environment env, @Assisted String name, @Assisted Settings settings) ...
0true
src_main_java_org_elasticsearch_index_analysis_PortugueseAnalyzerProvider.java
697
class LRUList implements Iterable<OCacheEntry> { private static final int SEED = 362498820; private LRUEntry head; private LRUEntry tail; private int nextThreshold; private int size; private LRUEntry entries[]; public LRUList() { entries = new LRUE...
0true
core_src_main_java_com_orientechnologies_orient_core_index_hashindex_local_cache_LRUList.java
4,742
public class FsRepository extends BlobStoreRepository { public final static String TYPE = "fs"; private final FsBlobStore blobStore; private ByteSizeValue chunkSize; private final BlobPath basePath; private boolean compress; /** * Constructs new shared file system repository * ...
1no label
src_main_java_org_elasticsearch_repositories_fs_FsRepository.java
569
trackedMap.addChangeListener(new OMultiValueChangeListener<Object, String>() { public void onAfterRecordChanged(final OMultiValueChangeEvent<Object, String> event) { firedEvents.add(event); } });
0true
core_src_test_java_com_orientechnologies_orient_core_index_OCompositeIndexDefinitionTest.java
386
public class ModuleLifecycleLoggingBean { private String moduleName; private LifeCycleEvent lifeCycleEvent; @PostConstruct /** * Initialize the bean and cause the logging message to take place */ public void init() { if (moduleName == null || lifeCycleEvent == null) { ...
0true
common_src_main_java_org_broadleafcommerce_common_logging_ModuleLifecycleLoggingBean.java
2,115
public interface Releasable { boolean release() throws ElasticsearchException; }
0true
src_main_java_org_elasticsearch_common_lease_Releasable.java
1,920
final class FactoryProvider2<F> implements InvocationHandler, Provider<F> { /** * if a factory method parameter isn't annotated, it gets this annotation. */ static final Assisted DEFAULT_ANNOTATION = new Assisted() { public String value() { return ""; } public Cla...
0true
src_main_java_org_elasticsearch_common_inject_assistedinject_FactoryProvider2.java
3,205
BYTE(8, false, SortField.Type.INT, Byte.MIN_VALUE, Byte.MAX_VALUE) { @Override public long toLong(BytesRef indexForm) { return INT.toLong(indexForm); } @Override public void toIndexForm(Number number, BytesRef bytes) { ...
0true
src_main_java_org_elasticsearch_index_fielddata_IndexNumericFieldData.java
1,329
public class OCheckpointEndRecord implements OWALRecord { private OLogSequenceNumber lsn; public OCheckpointEndRecord() { } @Override public int toStream(byte[] content, int offset) { return offset; } @Override public int fromStream(byte[] content, int offset) { return offset; } @Overrid...
0true
core_src_main_java_com_orientechnologies_orient_core_storage_impl_local_paginated_wal_OCheckpointEndRecord.java
1,770
public enum SpatialStrategy { TERM("term"), RECURSIVE("recursive"); private final String strategyName; private SpatialStrategy(String strategyName) { this.strategyName = strategyName; } public String getStrategyName() { return strategyName; } public PrefixTreeStrateg...
0true
src_main_java_org_elasticsearch_common_geo_SpatialStrategy.java
1,229
QUEUE { @Override <T> Recycler<T> build(Recycler.C<T> c, int limit, int estimatedThreadPoolSize, int availableProcessors) { return concurrentDeque(c, limit); } },
0true
src_main_java_org_elasticsearch_cache_recycler_PageCacheRecycler.java
67
public interface TitanMultiVertexQuery<Q extends TitanMultiVertexQuery<Q>> extends BaseVertexQuery<Q> { /* --------------------------------------------------------------- * Query Specification * --------------------------------------------------------------- */ /** * Adds the given vertex to t...
0true
titan-core_src_main_java_com_thinkaurelius_titan_core_TitanMultiVertexQuery.java
277
public class DefaultSchemaIndexProviderMap implements SchemaIndexProviderMap { private final SchemaIndexProvider indexProvider; public DefaultSchemaIndexProviderMap( SchemaIndexProvider indexProvider ) { this.indexProvider = indexProvider; } @Override public SchemaIndexProvider getDefa...
0true
community_kernel_src_main_java_org_neo4j_kernel_impl_nioneo_xa_DefaultSchemaIndexProviderMap.java
385
public class DocumentationHover implements ITextHover, ITextHoverExtension, ITextHoverExtension2 { private CeylonEditor editor; public DocumentationHover(CeylonEditor editor) { this.editor = editor; } public IRegion getHoverRegion(ITextViewer textViewer, int offset) { ...
1no label
plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_hover_DocumentationHover.java
1,516
public class ScriptMap { public static final String CLASS = Tokens.makeNamespace(ScriptMap.class) + ".class"; public static final String SCRIPT_PATH = Tokens.makeNamespace(ScriptMap.class) + ".scriptPath"; public static final String SCRIPT_ARGS = Tokens.makeNamespace(ScriptMap.class) + ".scriptArgs"; ...
1no label
titan-hadoop-parent_titan-hadoop-core_src_main_java_com_thinkaurelius_titan_hadoop_mapreduce_sideeffect_ScriptMap.java
1,964
public class MapValuesRequest extends AllPartitionsClientRequest implements Portable, RetryableRequest, SecureRequest { private String name; public MapValuesRequest() { } public MapValuesRequest(String name) { this.name = name; } @Override protected OperationFactory createOperati...
0true
hazelcast_src_main_java_com_hazelcast_map_client_MapValuesRequest.java
473
makeDbCall(databaseDocumentTxOne, new ODocumentHelper.ODbRelatedCall<Object>() { public Object call() { doc1.reset(); doc1.fromStream(buffer1.buffer); return null; } });
0true
core_src_main_java_com_orientechnologies_orient_core_db_tool_ODatabaseCompare.java
973
execute(request, new ActionListener<Response>() { @Override public void onResponse(Response response) { TransportResponseOptions options = TransportResponseOptions.options().withCompress(transportCompress()); try { ...
0true
src_main_java_org_elasticsearch_action_support_nodes_TransportNodesOperationAction.java
902
final class ConditionInfo implements DataSerializable { private String conditionId; private Map<ConditionWaiter, ConditionWaiter> waiters = new HashMap<ConditionWaiter, ConditionWaiter>(2); public ConditionInfo() { } public ConditionInfo(String conditionId) { this.conditionId = conditionI...
0true
hazelcast_src_main_java_com_hazelcast_concurrent_lock_ConditionInfo.java
613
public class CommonStatsFlags implements Streamable, Cloneable { public final static CommonStatsFlags ALL = new CommonStatsFlags().all(); public final static CommonStatsFlags NONE = new CommonStatsFlags().clear(); private EnumSet<Flag> flags = EnumSet.allOf(Flag.class); private String[] types = null; ...
0true
src_main_java_org_elasticsearch_action_admin_indices_stats_CommonStatsFlags.java
4,964
public static PathTrie.Decoder REST_DECODER = new PathTrie.Decoder() { @Override public String decode(String value) { return RestUtils.decodeComponent(value); } };
1no label
src_main_java_org_elasticsearch_rest_support_RestUtils.java
1,208
public interface PartitioningStrategy<K> { /** * Returns the key object that will be used by Hazelcast to specify the partition. * * @param key actual key object * @return partition key object or null to fallback to default partition calculation */ Object getPartitionKey(K key); }
0true
hazelcast_src_main_java_com_hazelcast_core_PartitioningStrategy.java
1,523
public final class TerminatedLifecycleService implements LifecycleService { @Override public boolean isRunning() { return false; } @Override public void shutdown() { } @Override public void terminate() { } @Override public String addLifecycleListener(LifecycleList...
0true
hazelcast_src_main_java_com_hazelcast_instance_TerminatedLifecycleService.java
1,595
public class ServerClusterLocalInsertTest extends AbstractServerClusterInsertTest { protected String getDatabaseURL(final ServerRun server) { return "local:" + server.getDatabasePath(getDatabaseName()); } }
0true
distributed_src_test_java_com_orientechnologies_orient_server_distributed_ServerClusterLocalInsertTest.java
1,879
public abstract class PrivateModule implements Module { /** * Like abstract module, the binder of the current private module */ private PrivateBinder binder; public final synchronized void configure(Binder binder) { checkState(this.binder == null, "Re-entry is not allowed."); //...
0true
src_main_java_org_elasticsearch_common_inject_PrivateModule.java
1,225
addOperation(operations, new Runnable() { public void run() { IQueue q = hazelcast.getQueue("myQ"); try { q.take(); } catch (InterruptedException e) { throw new RuntimeException(e); } ...
0true
hazelcast_src_main_java_com_hazelcast_examples_AllTest.java
4,836
public class RestGetFieldMappingAction extends BaseRestHandler { @Inject public RestGetFieldMappingAction(Settings settings, Client client, RestController controller) { super(settings, client); controller.registerHandler(GET, "/_mapping/field/{fields}", this); controller.registerHandler...
1no label
src_main_java_org_elasticsearch_rest_action_admin_indices_mapping_get_RestGetFieldMappingAction.java
3,758
return new FilterAtomicReader(reader) { @Override public FieldInfos getFieldInfos() { return newFieldInfos; } @Override public NumericDocValues getNumericDocValues(String field) throws IOException { if (VersionFieldMappe...
0true
src_main_java_org_elasticsearch_index_merge_policy_IndexUpgraderMergePolicy.java
2,551
public interface Discovery extends LifecycleComponent<Discovery> { final ClusterBlock NO_MASTER_BLOCK = new ClusterBlock(2, "no master", true, true, RestStatus.SERVICE_UNAVAILABLE, ClusterBlockLevel.ALL); public static final TimeValue DEFAULT_PUBLISH_TIMEOUT = TimeValue.timeValueSeconds(30); DiscoveryNod...
0true
src_main_java_org_elasticsearch_discovery_Discovery.java
32
public class Values extends AbstractCollection<V> { @Override public Iterator<V> iterator() { return new ValueIterator(getFirstEntry()); } public Iterator<V> inverseIterator() { return new ValueInverseIterator(getLastEntry()); } @Override public int size() { return OMVR...
0true
commons_src_main_java_com_orientechnologies_common_collection_OMVRBTree.java
3,747
public class SimpleStringMappingTests extends ElasticsearchTestCase { private static Settings DOC_VALUES_SETTINGS = ImmutableSettings.builder().put(FieldDataType.FORMAT_KEY, FieldDataType.DOC_VALUES_FORMAT_VALUE).build(); @Test public void testLimit() throws Exception { String mapping = XContentFa...
0true
src_test_java_org_elasticsearch_index_mapper_string_SimpleStringMappingTests.java
455
public class StaticArrayEntryTest { private static final RelationCache cache = new RelationCache(Direction.OUT,5,105,"Hello"); private static final EntryMetaData[] metaSchema = { EntryMetaData.TIMESTAMP, EntryMetaData.TTL, EntryMetaData.VISIBILITY}; private static final Map<EntryMetaData,Object> metaData ...
0true
titan-test_src_test_java_com_thinkaurelius_titan_diskstorage_keycolumnvalue_StaticArrayEntryTest.java
1,230
public interface FulfillmentPricingService { /** * Called during the Pricing workflow to determine the cost for the {@link FulfillmentGroup}. This will loop through * {@link #getProcessors()} and call {@link FulfillmentPricingProvider#calculateCostForFulfillmentGroup(FulfillmentGroup)} * on the firs...
0true
core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_pricing_service_FulfillmentPricingService.java
220
public class OConstants { public static final String ORIENT_VERSION = "1.6.2"; public static final String ORIENT_URL = "www.orientechnologies.com"; public static String getVersion() { final StringBuilder buffer = new StringBuilder(); buffer.append(OConstants.ORIENT_VERSION); final String buildNu...
0true
core_src_main_java_com_orientechnologies_orient_core_OConstants.java
257
public interface EmailTrackingClicks extends Serializable { /** * @return the emailId */ public abstract Long getId(); /** * @param id the i to set */ public abstract void setId(Long id); /** * @return the dateClicked */ public abstract Date getDateClicked(); ...
0true
common_src_main_java_org_broadleafcommerce_common_email_domain_EmailTrackingClicks.java
293
public class RefinementAnnotationImageProvider implements IAnnotationImageProvider { private static Image DEFAULT = CeylonPlugin.getInstance() .getImageRegistry().get(CEYLON_DEFAULT_REFINEMENT); private static Image FORMAL = CeylonPlugin.getInstance() .getImageRegistry().get(CEYLON_...
0true
plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_editor_RefinementAnnotationImageProvider.java
459
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
768
public class SetReplicationOperation extends CollectionReplicationOperation { public SetReplicationOperation() { } public SetReplicationOperation(Map<String, CollectionContainer> migrationData, int partitionId, int replicaIndex) { super(migrationData, partitionId, replicaIndex); } @Overri...
0true
hazelcast_src_main_java_com_hazelcast_collection_set_SetReplicationOperation.java
1,260
addOperation(operations, new Runnable() { public void run() { IMap map = hazelcast.getMap("myMap"); Iterator it = map.localKeySet(new SqlPredicate("name=" + random.nextInt(10000))).iterator(); while (it.hasNext()) { it.next(); ...
0true
hazelcast_src_main_java_com_hazelcast_examples_AllTest.java
1,264
addOperation(operations, new Runnable() { public void run() { IMap map = hazelcast.getMap("myMap"); final CountDownLatch latch = new CountDownLatch(1); EntryListener listener = new EntryAdapter() { @Override publ...
0true
hazelcast_src_main_java_com_hazelcast_examples_AllTest.java
2,517
public class JsonXContentParser extends AbstractXContentParser { final JsonParser parser; public JsonXContentParser(JsonParser parser) { this.parser = parser; } @Override public XContentType contentType() { return XContentType.JSON; } @Override public Token nextToken(...
0true
src_main_java_org_elasticsearch_common_xcontent_json_JsonXContentParser.java
1,263
threadPool.executor(ThreadPool.Names.MANAGEMENT).execute(new Runnable() { @Override public void run() { try { if (!transportService.nodeConnected(listedNode)) { try { ...
0true
src_main_java_org_elasticsearch_client_transport_TransportClientNodesService.java