Unnamed: 0
int64
0
6.45k
func
stringlengths
37
161k
target
class label
2 classes
project
stringlengths
33
167
1,098
public class OSQLFunctionDistinct extends OSQLFunctionAbstract { public static final String NAME = "distinct"; private Set<Object> context = new LinkedHashSet<Object>(); public OSQLFunctionDistinct() { super(NAME, 1, 1); } public Object execute(final OIdentifiable iCurrentRecord, Object iCurr...
1no label
core_src_main_java_com_orientechnologies_orient_core_sql_functions_coll_OSQLFunctionDistinct.java
330
public class PluginsInfo implements Streamable, Serializable, ToXContent { static final class Fields { static final XContentBuilderString PLUGINS = new XContentBuilderString("plugins"); } private List<PluginInfo> infos; public PluginsInfo() { infos = new ArrayList<PluginInfo>(); } ...
0true
src_main_java_org_elasticsearch_action_admin_cluster_node_info_PluginsInfo.java
199
public class ODatabaseHelper { public static void createDatabase(ODatabase database, final String url) throws IOException { createDatabase(database, url, "server", "plocal"); } public static void createDatabase(ODatabase database, final String url, String type) throws IOException { createDatabase(databas...
0true
client_src_main_java_com_orientechnologies_orient_client_db_ODatabaseHelper.java
190
public class KeyColumnValueStoreUtil { public static void delete(KeyColumnValueStore store, StoreTransaction txn, long key, String col) throws BackendException { StaticBuffer k = longToByteBuffer(key); StaticBuffer c = stringToByteBuffer(col); store.mutate(k, KeyColumnValueStore.NO_ADDITION...
0true
titan-test_src_main_java_com_thinkaurelius_titan_diskstorage_KeyColumnValueStoreUtil.java
335
public class NodesRestartRequest extends NodesOperationRequest<NodesRestartRequest> { TimeValue delay = TimeValue.timeValueSeconds(1); protected NodesRestartRequest() { } /** * Restarts down nodes based on the nodes ids specified. If none are passed, <b>all</b> * nodes will be shutdown. ...
0true
src_main_java_org_elasticsearch_action_admin_cluster_node_restart_NodesRestartRequest.java
655
public class PutIndexTemplateRequest extends MasterNodeOperationRequest<PutIndexTemplateRequest> { private String name; private String cause = ""; private String template; private int order; private boolean create; private Settings settings = EMPTY_SETTINGS; private Map<String, String...
0true
src_main_java_org_elasticsearch_action_admin_indices_template_put_PutIndexTemplateRequest.java
911
public abstract class AbstractListenableActionFuture<T, L> extends AdapterActionFuture<T, L> implements ListenableActionFuture<T> { final boolean listenerThreaded; final ThreadPool threadPool; volatile Object listeners; boolean executedListeners = false; protected AbstractListenableActionFuture...
0true
src_main_java_org_elasticsearch_action_support_AbstractListenableActionFuture.java
1,382
public class IndexTemplateMetaData { private final String name; private final int order; private final String template; private final Settings settings; // the mapping source should always include the type as top level private final ImmutableOpenMap<String, CompressedString> mappings; ...
1no label
src_main_java_org_elasticsearch_cluster_metadata_IndexTemplateMetaData.java
205
private class CleanResourcesTask implements Runnable { @Override public void run() { waitForPacketsProcessed(); cleanResources(new TargetDisconnectedException(remoteEndpoint)); } private void waitForPacketsProcessed() { final long begin = System.c...
0true
hazelcast-client_src_main_java_com_hazelcast_client_connection_nio_ClientConnection.java
609
@RunWith(HazelcastSerialClassRunner.class) @Category(NightlyTest.class) public class MemberListTest { @Before @After public void killAllHazelcastInstances() throws IOException { Hazelcast.shutdownAll(); } /* * Sets up a situation where node3 removes the master and sets node2 as the ...
0true
hazelcast_src_test_java_com_hazelcast_cluster_MemberListTest.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
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
611
public abstract class OIndexMultiValues extends OIndexAbstract<Set<OIdentifiable>> { public OIndexMultiValues(final String type, String algorithm, OIndexEngine<Set<OIdentifiable>> indexEngine, String valueContainerAlgorithm) { super(type, algorithm, indexEngine, valueContainerAlgorithm); } public Set<O...
1no label
core_src_main_java_com_orientechnologies_orient_core_index_OIndexMultiValues.java
31
final class NestedLiteralCompletionProposal implements ICompletionProposal, ICompletionProposalExtension2 { private final int loc; private final int index; private final String value; NestedLiteralCompletionProposal(String value, int loc, ...
0true
plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_complete_InvocationCompletionProposal.java
317
new Thread() { public void run() { map.lock(key); lockedLatch.countDown(); } }.start();
0true
hazelcast-client_src_test_java_com_hazelcast_client_map_ClientMapLockTest.java
777
public class MoreLikeThisRequestBuilder extends ActionRequestBuilder<MoreLikeThisRequest, SearchResponse, MoreLikeThisRequestBuilder> { public MoreLikeThisRequestBuilder(Client client) { super((InternalClient) client, new MoreLikeThisRequest()); } public MoreLikeThisRequestBuilder(Client client, S...
0true
src_main_java_org_elasticsearch_action_mlt_MoreLikeThisRequestBuilder.java
447
final Thread t1 = new Thread() { public void run() { try { Thread.sleep(2 * 1000); } catch (InterruptedException e) { e.printStackTrace(); } q.poll(); } };
0true
hazelcast-client_src_test_java_com_hazelcast_client_queue_ClientQueueTest.java
360
public class TransportNodesStatsAction extends TransportNodesOperationAction<NodesStatsRequest, NodesStatsResponse, TransportNodesStatsAction.NodeStatsRequest, NodeStats> { private final NodeService nodeService; @Inject public TransportNodesStatsAction(Settings settings, ClusterName clusterName, ThreadPoo...
0true
src_main_java_org_elasticsearch_action_admin_cluster_node_stats_TransportNodesStatsAction.java
136
@RunWith(HazelcastSerialClassRunner.class) @Category(QuickTest.class) public class ClientTimeoutTest { @Test(timeout = 20000, expected = IllegalStateException.class) public void testTimeoutToOutsideNetwork() throws Exception { ClientConfig clientConfig = new ClientConfig(); clientConfig.getGrou...
0true
hazelcast-client_src_test_java_com_hazelcast_client_ClientTimeoutTest.java
1,005
private class AsyncSingleAction { private final ActionListener<Response> listener; private final ShardsIterator shardsIt; private final Request request; private final DiscoveryNodes nodes; private AsyncSingleAction(Request request, ActionListener<Response> listener) { ...
0true
src_main_java_org_elasticsearch_action_support_single_custom_TransportSingleCustomOperationAction.java
1,118
public class OSQLFunctionCoalesce extends OSQLFunctionAbstract { public static final String NAME = "coalesce"; public OSQLFunctionCoalesce() { super(NAME, 1, 1000); } @Override public Object execute(OIdentifiable iCurrentRecord, Object iCurrentResult, final Object[] iParameters, OCommandContext iContext...
1no label
core_src_main_java_com_orientechnologies_orient_core_sql_functions_misc_OSQLFunctionCoalesce.java
146
public final class HazelcastClientProxy implements HazelcastInstance { volatile HazelcastClient client; HazelcastClientProxy(HazelcastClient client) { this.client = client; } @Override public Config getConfig() { return getClient().getConfig(); } @Override pub...
0true
hazelcast-client_src_main_java_com_hazelcast_client_HazelcastClientProxy.java
682
constructors[COLLECTION_REMOVE] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() { public IdentifiedDataSerializable createNew(Integer arg) { return new CollectionRemoveOperation(); } };
0true
hazelcast_src_main_java_com_hazelcast_collection_CollectionDataSerializerHook.java
1,496
public static class NodeExplanation { private final DiscoveryNode node; private final String description; /** * Creates a new {@link NodeExplanation} * * @param node node referenced by {@link This} {@link NodeExplanation} * @param description a message...
0true
src_main_java_org_elasticsearch_cluster_routing_allocation_AllocationExplanation.java
237
public interface ModuleProvider { /** * Indicates if, given the configuration, this module can respond to the particular request. * * @param config * @return */ public boolean canRespond(ModuleConfiguration config); }
0true
common_src_main_java_org_broadleafcommerce_common_config_service_ModuleProvider.java
788
public class StandardSchemaCache implements SchemaCache { public static final int MAX_CACHED_TYPES_DEFAULT = 10000; private static final int INITIAL_CAPACITY = 128; private static final int INITIAL_CACHE_SIZE = 16; private static final int CACHE_RELATION_MULTIPLIER = 3; // 1) type-name, 2) type-defini...
1no label
titan-core_src_main_java_com_thinkaurelius_titan_graphdb_database_cache_StandardSchemaCache.java
353
public class SingleTableInheritanceClassTransformer implements BroadleafClassTransformer { public static final String SINGLE_TABLE_ENTITIES = "broadleaf.ejb.entities.override_single_table"; private static final Log LOG = LogFactory.getLog(SingleTableInheritanceClassTransformer.class); protected Li...
0true
common_src_main_java_org_broadleafcommerce_common_extensibility_jpa_convert_inheritance_SingleTableInheritanceClassTransformer.java
513
public class OCommandExecutionException extends OException { private static final long serialVersionUID = -7430575036316163711L; public OCommandExecutionException(String message, Throwable cause) { super(message, cause); } public OCommandExecutionException(String message) { super(message); } }
0true
core_src_main_java_com_orientechnologies_orient_core_exception_OCommandExecutionException.java
1,612
public class ODeployDatabaseTask extends OAbstractReplicatedTask { private static final long serialVersionUID = 1L; // private static final String BACKUP_DIRECTORY = "tempBackups"; protected final static int CHUNK_MAX_SIZE = 1048576; // 1MB public ODeployDatabaseTask() { } @Override public Object ex...
1no label
server_src_main_java_com_orientechnologies_orient_server_distributed_task_ODeployDatabaseTask.java
477
public final class ProxyManager { private static final ILogger LOGGER = Logger.getLogger(ProxyManager.class); private static final Class[] CONSTRUCTOR_ARGUMENT_TYPES = new Class[]{String.class, String.class, String.class}; private final HazelcastClient client; private final ConcurrentMap<String, Clien...
1no label
hazelcast-client_src_main_java_com_hazelcast_client_spi_ProxyManager.java
944
public abstract class MasterNodeOperationRequest<T extends MasterNodeOperationRequest> extends ActionRequest<T> { public static TimeValue DEFAULT_MASTER_NODE_TIMEOUT = TimeValue.timeValueSeconds(30); protected TimeValue masterNodeTimeout = DEFAULT_MASTER_NODE_TIMEOUT; /** * A timeout value in case t...
1no label
src_main_java_org_elasticsearch_action_support_master_MasterNodeOperationRequest.java
20
return Iterables.transform(Iterables.filter(set, new Predicate<ByteEntry>() { @Override public boolean apply(@Nullable ByteEntry entry) { return !CHECK_VALUE || entry.value.getInt(0) == value; } }), new Function<ByteEntry, Verte...
0true
titan-test_src_main_java_com_thinkaurelius_titan_TestByteBuffer.java
1,607
public class SimpleValueMapStructure extends MapStructure { private static final long serialVersionUID = 1L; private String valuePropertyName; private String valuePropertyFriendlyName; public SimpleValueMapStructure() { super(); } /** * @param keyClassName * @pa...
1no label
admin_broadleaf-open-admin-platform_src_main_java_org_broadleafcommerce_openadmin_dto_SimpleValueMapStructure.java
275
public class SimpleClientInterceptor implements MapInterceptor, Portable { public static final int ID = 345; @Override public Object interceptGet(Object value) { if (value == null) return null; return value + ":"; } @Override public void afterGet(Object value) { ...
0true
hazelcast-client_src_test_java_com_hazelcast_client_helpers_SimpleClientInterceptor.java
1,031
private class TransportHandler extends BaseTransportRequestHandler<Request> { @Override public Request newInstance() { return newRequest(); } @Override public String executor() { return ThreadPool.Names.SAME; } @Override publ...
0true
src_main_java_org_elasticsearch_action_support_single_shard_TransportShardSingleOperationAction.java
114
{ @Override public Object doWork( Void state ) { try { tm.rollback(); } catch ( Exception e ) { throw new RuntimeException( e ); } ...
0true
community_kernel_src_test_java_org_neo4j_kernel_impl_transaction_TestJtaCompliance.java
999
public static class PrimaryResponse<Response, ReplicaRequest> { private final ReplicaRequest replicaRequest; private final Response response; private final Object payload; public PrimaryResponse(ReplicaRequest replicaRequest, Response response, Object payload) { this.rep...
0true
src_main_java_org_elasticsearch_action_support_replication_TransportShardReplicationOperationAction.java
32
@Service("blOrderItemFieldService") public class OrderItemFieldServiceImpl extends AbstractRuleBuilderFieldService { //TODO: extensibility mechanism, support i18N @Override public void init() { fields.add(new FieldData.Builder() .label("rule_orderItemName") .name("na...
0true
admin_broadleaf-admin-module_src_main_java_org_broadleafcommerce_admin_web_rulebuilder_service_OrderItemFieldServiceImpl.java
1,481
public class RoutingService extends AbstractLifecycleComponent<RoutingService> implements ClusterStateListener { private static final String CLUSTER_UPDATE_TASK_SOURCE = "routing-table-updater"; private final ThreadPool threadPool; private final ClusterService clusterService; private final Allocatio...
1no label
src_main_java_org_elasticsearch_cluster_routing_RoutingService.java
1,094
public abstract class OSQLFunctionConfigurableAbstract extends OSQLFunctionAbstract { protected Object[] configuredParameters; protected OSQLFunctionConfigurableAbstract(final String iName, final int iMinParams, final int iMaxParams) { super(iName, iMinParams, iMaxParams); } @Override public void config...
1no label
core_src_main_java_com_orientechnologies_orient_core_sql_functions_OSQLFunctionConfigurableAbstract.java
2,890
public abstract static class AbstractPredicate implements IndexAwarePredicate, DataSerializable { protected String attribute; private transient volatile AttributeType attributeType; protected AbstractPredicate() { } protected AbstractPredicate(String attribute) { ...
1no label
hazelcast_src_main_java_com_hazelcast_query_Predicates.java
5,092
transportService.sendRequest(node, SearchQueryFetchTransportHandler.ACTION, request, new BaseTransportResponseHandler<QueryFetchSearchResult>() { @Override public QueryFetchSearchResult newInstance() { return new QueryFetchSearchResult(); ...
1no label
src_main_java_org_elasticsearch_search_action_SearchServiceTransportAction.java
291
public class OSQLScriptFormatter implements OScriptFormatter { public String getFunctionDefinition(final OFunction f) { return null; } @Override public String getFunctionInvoke(final OFunction iFunction, final Object[] iArgs) { // TODO: BIND ARGS return iFunction.getCode(); } }
0true
core_src_main_java_com_orientechnologies_orient_core_command_script_formatter_OSQLScriptFormatter.java
690
public static class Failure { private final String index; private final String type; private final String id; private final String message; private final RestStatus status; public Failure(String index, String type, String id, Throwable t) { this.index = i...
0true
src_main_java_org_elasticsearch_action_bulk_BulkItemResponse.java
54
private class ClusterListenerImpl extends ClusterListener.Adapter { @Override public void enteredCluster( ClusterConfiguration clusterConfiguration ) { // Catch up with elections for ( Map.Entry<String, InstanceId> memberRoles : clusterConfiguration.getRoles().ent...
1no label
enterprise_cluster_src_main_java_org_neo4j_cluster_member_paxos_PaxosClusterMemberEvents.java
1,537
public static class Balancer { private final ESLogger logger; private final Map<String, ModelNode> nodes = new HashMap<String, ModelNode>(); private final HashSet<String> indices = new HashSet<String>(); private final RoutingAllocation allocation; private final RoutingNodes ...
0true
src_main_java_org_elasticsearch_cluster_routing_allocation_allocator_BalancedShardsAllocator.java
535
@RunWith(HazelcastSerialClassRunner.class) @Category(SlowTest.class) public class ClientXaTest { static final Random random = new Random(System.currentTimeMillis()); UserTransactionManager tm = null; public void cleanAtomikosLogs() { try { File currentDir = new File("."); ...
0true
hazelcast-client_src_test_java_com_hazelcast_client_txn_ClientXaTest.java
136
@Entity @Inheritance(strategy = InheritanceType.JOINED) @Table(name = "BLC_SC_FLD_TMPLT") @Cache(usage= CacheConcurrencyStrategy.NONSTRICT_READ_WRITE, region="blCMSElements") @AdminPresentationClass(populateToOneFields = PopulateToOneFieldsEnum.TRUE, friendlyName = "StructuredContentFieldTemplateImpl_baseStructuredCont...
0true
admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_structure_domain_StructuredContentFieldTemplateImpl.java
3,463
public class ShardGetService extends AbstractIndexShardComponent { private final ScriptService scriptService; private final MapperService mapperService; private final IndexFieldDataService fieldDataService; private IndexShard indexShard; private final MeanMetric existsMetric = new MeanMetric();...
1no label
src_main_java_org_elasticsearch_index_get_ShardGetService.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
200
public class OClusterRemote implements OCluster { private String name; private int id; private int dataSegmentId; private String type; /* * (non-Javadoc) * * @see com.orientechnologies.orient.core.storage.OCluster#configure(com.orientechnologies.orient.core.storage.OStorage, int, * java.la...
0true
client_src_main_java_com_orientechnologies_orient_client_remote_OClusterRemote.java
784
execute(request, new ActionListener<SearchResponse>() { @Override public void onResponse(SearchResponse result) { try { channel.sendResponse(result); } catch (Throwable e) { onFailure(e); ...
0true
src_main_java_org_elasticsearch_action_mlt_TransportMoreLikeThisAction.java
149
public interface StructuredContentType extends Serializable { /** * Gets the primary key. * * @return the primary key */ @Nullable public Long getId(); /** * Sets the primary key. * * @param id the new primary key */ public void setId(@Nullable Long id); ...
0true
admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_structure_domain_StructuredContentType.java
1,165
@Entity @Inheritance(strategy = InheritanceType.JOINED) @Table(name = "BLC_GIFT_CARD_PAYMENT") public class GiftCardPaymentInfoImpl implements GiftCardPaymentInfo { private static final long serialVersionUID = 1L; protected GiftCardPaymentInfoImpl() { // do not allow direct instantiation -- must at le...
1no label
core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_payment_domain_GiftCardPaymentInfoImpl.java
478
public class ProtoChannelBeanPostProcessor implements BeanPostProcessor, Ordered { Log LOG = LogFactory.getLog(ProtoChannelBeanPostProcessor.class); protected List<ChannelProcessor> channelProcessorOverrides; @Override public Object postProcessAfterInitialization(Object bean, String beanName)...
0true
common_src_main_java_org_broadleafcommerce_common_security_channel_ProtoChannelBeanPostProcessor.java
1,218
public class TitanSchemaVertex extends CacheVertex implements SchemaSource { public TitanSchemaVertex(StandardTitanTx tx, long id, byte lifecycle) { super(tx, id, lifecycle); } private String name = null; @Override public String getName() { if (name == null) { TitanPro...
1no label
titan-core_src_main_java_com_thinkaurelius_titan_graphdb_types_vertices_TitanSchemaVertex.java
146
class FileChannelWithChoppyDisk extends StoreFileChannel { ByteBuffer buff = ByteBuffer.allocate(1024); private int chunkSize; public FileChannelWithChoppyDisk(int writeThisMuchAtATime) { super( (FileChannel) null ); this.chunkSize = writeThisMuchAtATime...
0true
community_kernel_src_test_java_org_neo4j_kernel_impl_transaction_xaframework_TestDirectMappedLogBuffer.java
393
public class MediaDto implements Media { private static final long serialVersionUID = 1L; protected long id; protected String url = ""; protected String title = ""; protected String altText = ""; protected String tags = ""; @Override public Long getId() { return id; } ...
0true
common_src_main_java_org_broadleafcommerce_common_media_domain_MediaDto.java
85
public enum Contain implements TitanPredicate { /** * Whether an element is in a collection */ IN { @Override public boolean evaluate(Object value, Object condition) { Preconditions.checkArgument(isValidCondition(condition), "Invalid condition provided: %s", condition); ...
0true
titan-core_src_main_java_com_thinkaurelius_titan_core_attribute_Contain.java
661
public class ProductDaoTest extends BaseTest { @Resource private ProductDao productDao; @Resource private CatalogService catalogService; private List<Product> savedProducts = new ArrayList<Product>(); private static RelatedProduct getRelatedUpSaleProduct(Product prod, Product prodToRelat...
0true
integration_src_test_java_org_broadleafcommerce_core_catalog_dao_ProductDaoTest.java
446
public static class ProcessStats implements ToXContent, Streamable { int count; int cpuPercent; long totalOpenFileDescriptors; long minOpenFileDescriptors = Long.MAX_VALUE; long maxOpenFileDescriptors = Long.MIN_VALUE; public void addNodeStats(NodeStats nodeStats) {...
0true
src_main_java_org_elasticsearch_action_admin_cluster_stats_ClusterStatsNodes.java
1,155
iMethodParams = OMultiValue.array(iMethodParams, Object.class, new OCallable<Object, Object>() { @Override public Object call(final Object iArgument) { if (iArgument instanceof String && ((String) iArgument).startsWith("$")) return iContext.getVariable((String) iArgument); ...
1no label
core_src_main_java_com_orientechnologies_orient_core_sql_method_misc_OSQLMethodRemoveAll.java
226
@Documented @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.METHOD) /** * Tells to OrientDB to call the method AFTER the record is read and unmarshalled from database. * Applies only to the entity Objects reachable by the OrientDB engine after have registered them. */ public @interface OAfterDeserialization ...
0true
core_src_main_java_com_orientechnologies_orient_core_annotation_OAfterDeserialization.java
89
private static class DeadlockProneTransactionState extends WritableTransactionState { private final DoubleLatch latch; public DeadlockProneTransactionState( LockManager lockManager, NodeManager nodeManager, Logging logging, javax.transaction.Transaction tx, RemoteTxHook txHook, ...
0true
community_kernel_src_test_java_org_neo4j_kernel_impl_transaction_TestCacheUpdateDeadlock.java
421
return new EventHandler<PortableEntryEvent>() { public void handle(PortableEntryEvent event) { V value = null; V oldValue = null; if (includeValue) { value = toObject(event.getValue()); oldValue = toObject(event....
1no label
hazelcast-client_src_main_java_com_hazelcast_client_proxy_ClientMapProxy.java
1,230
public abstract class OAbstractFile implements OFile { private FileLock fileLock; protected File osFile; protected RandomAccessFile accessFile; protected FileChannel channel; protected volatile boolean dirty = false; protected volatile boolean headerDirty...
1no label
core_src_main_java_com_orientechnologies_orient_core_storage_fs_OAbstractFile.java
189
public class ClientConfig { /** * To pass properties */ private Properties properties = new Properties(); /** * The Group Configuration properties like: * Name and Password that is used to connect to the cluster. */ private GroupConfig groupConfig = new GroupConfig(); /*...
0true
hazelcast-client_src_main_java_com_hazelcast_client_config_ClientConfig.java
859
public class AlterOperation extends AbstractAlterOperation { public AlterOperation() { } public AlterOperation(String name, Data function) { super(name, function); } @Override public void run() throws Exception { NodeEngine nodeEngine = getNodeEngine(); IFunction f = n...
0true
hazelcast_src_main_java_com_hazelcast_concurrent_atomicreference_operations_AlterOperation.java
1,018
threadPool.executor(executor).execute(new Runnable() { @Override public void run() { try { shardOperation(request, listener); } catch (Throwable e) { ...
0true
src_main_java_org_elasticsearch_action_support_single_instance_TransportInstanceSingleOperationAction.java
683
public class PutWarmerResponse extends AcknowledgedResponse { PutWarmerResponse() { super(); } PutWarmerResponse(boolean acknowledged) { super(acknowledged); } @Override public void readFrom(StreamInput in) throws IOException { super.readFrom(in); readAcknowled...
0true
src_main_java_org_elasticsearch_action_admin_indices_warmer_put_PutWarmerResponse.java
465
@RunWith(HazelcastParallelClassRunner.class) @Category(QuickTest.class) public class ClientSemaphoreThreadedTest { protected static HazelcastInstance client; protected static HazelcastInstance server; @BeforeClass public static void init(){ server = Hazelcast.newHazelcastInstance(); cl...
0true
hazelcast-client_src_test_java_com_hazelcast_client_semaphore_ClientSemaphoreThreadedTest.java
166
(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_jsr166y_ForkJoinPool.java
510
public class OEntityManagerClassHandler { private Map<String, Class<?>> entityClasses = new HashMap<String, Class<?>>(); /** * Returns the Java class by its name * * @param iClassName * Simple class name without the package * @return Returns the Java class by its name */ public synch...
0true
core_src_main_java_com_orientechnologies_orient_core_entity_OEntityManagerClassHandler.java
562
public class StaticLB implements LoadBalancer { private final Member member; public StaticLB(Member member) { this.member = member; } @Override public void init(Cluster cluster, ClientConfig config) { } @Override public Member next() { return member; } }
0true
hazelcast-client_src_main_java_com_hazelcast_client_util_StaticLB.java
1,992
@Entity @Inheritance(strategy = InheritanceType.JOINED) @Table(name = "BLC_ID_GENERATION") public class IdGenerationImpl implements IdGeneration { private static final long serialVersionUID = 1L; @Id @Column(name = "ID_TYPE", nullable=false) protected String type; @Column(name = "ID_MIN", nullabl...
1no label
core_broadleaf-profile_src_main_java_org_broadleafcommerce_profile_core_domain_IdGenerationImpl.java
1,405
public static interface Listener { void onResponse(Response response); void onFailure(Throwable t); }
0true
src_main_java_org_elasticsearch_cluster_metadata_MetaDataDeleteIndexService.java
1,509
public class FailedRerouteAllocation extends RoutingAllocation { private final List<ShardRouting> failedShards; public FailedRerouteAllocation(AllocationDeciders deciders, RoutingNodes routingNodes, DiscoveryNodes nodes, List<ShardRouting> failedShards, ClusterInfo clusterInfo) { super(deciders, routi...
0true
src_main_java_org_elasticsearch_cluster_routing_allocation_FailedRerouteAllocation.java
1,379
public class TitanCassandraInputFormat extends TitanInputFormat { // Copied these private constants from Cassandra's ConfigHelper circa 2.0.9 private static final String INPUT_WIDEROWS_CONFIG = "cassandra.input.widerows"; private static final String RANGE_BATCH_SIZE_CONFIG = "cassandra.range.batch.size"; ...
1no label
titan-hadoop-parent_titan-hadoop-core_src_main_java_com_thinkaurelius_titan_hadoop_formats_cassandra_TitanCassandraInputFormat.java
3
public class AbbreviationServiceImplTest { @Mock private ComponentContext context; AbbreviationServiceImpl abbrev; Dictionary<String, String> properties; @BeforeMethod public void init() { MockitoAnnotations.initMocks(this); abbrev = new AbbreviationServiceImpl(); properties = new Hashtable<String, St...
0true
tableViews_src_test_java_gov_nasa_arc_mct_abbreviation_impl_AbbreviationServiceImplTest.java
350
public interface ODatabaseThreadLocalFactory { public ODatabaseRecord getThreadDatabase(); }
0true
core_src_main_java_com_orientechnologies_orient_core_db_ODatabaseThreadLocalFactory.java
232
public interface ModuleConfiguration extends Serializable { public Long getId(); public void setId(Long id); public String getModuleName(); public void setModuleName(String name); public void setActiveStartDate(Date startDate); public Date getActiveStartDate(); public void setActiveEn...
0true
common_src_main_java_org_broadleafcommerce_common_config_domain_ModuleConfiguration.java
855
@Service("blOfferService") public class OfferServiceImpl implements OfferService { private static final Log LOG = LogFactory.getLog(OfferServiceImpl.class); // should be called outside of Offer service after Offer service is executed @Resource(name="blCustomerOfferDao") protected CustomerOfferDao ...
1no label
core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_offer_service_OfferServiceImpl.java
4,510
public class TransportNodesListShardStoreMetaData extends TransportNodesOperationAction<TransportNodesListShardStoreMetaData.Request, TransportNodesListShardStoreMetaData.NodesStoreFilesMetaData, TransportNodesListShardStoreMetaData.NodeRequest, TransportNodesListShardStoreMetaData.NodeStoreFilesMetaData> { privat...
1no label
src_main_java_org_elasticsearch_indices_store_TransportNodesListShardStoreMetaData.java
394
@SuppressWarnings({ "serial", "unchecked" }) public class ORecordLazyMap extends OTrackedMap<OIdentifiable> implements ORecordLazyMultiValue { final private byte recordType; private ORecordMultiValueHelper.MULTIVALUE_CONTENT_TYPE status = MULTIVALUE_CONTENT_TYPE.EMP...
0true
core_src_main_java_com_orientechnologies_orient_core_db_record_ORecordLazyMap.java
771
public class IndexResponse extends ActionResponse { private String index; private String id; private String type; private long version; private boolean created; public IndexResponse() { } public IndexResponse(String index, String type, String id, long version, boolean created) { ...
0true
src_main_java_org_elasticsearch_action_index_IndexResponse.java
1,326
public class JDTModuleManager extends LazyModuleManager { private JDTModelLoader modelLoader; private IJavaProject javaProject; private Set<String> sourceModules; private TypeChecker typeChecker; private boolean loadDependenciesFromModelLoaderFirst; public Set<String> getSourceModules() { ...
1no label
plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_core_model_JDTModuleManager.java
277
@SuppressWarnings("serial") public abstract class OCommandRequestTextAbstract extends OCommandRequestAbstract implements OCommandRequestText { protected String text; protected OCommandRequestTextAbstract() { } protected OCommandRequestTextAbstract(final String iText) { if (iText == null) throw new I...
1no label
core_src_main_java_com_orientechnologies_orient_core_command_OCommandRequestTextAbstract.java
1,338
public abstract class IndicesClusterStateUpdateRequest<T extends IndicesClusterStateUpdateRequest<T>> extends ClusterStateUpdateRequest<T> { private String[] indices; /** * Returns the indices the operation needs to be executed on */ public String[] indices() { return indices; } ...
0true
src_main_java_org_elasticsearch_cluster_ack_IndicesClusterStateUpdateRequest.java
405
snapshotsService.addListener(new SnapshotsService.SnapshotCompletionListener() { SnapshotId snapshotId = new SnapshotId(request.repository(), request.snapshot()); @Override public void onSnapshotCompletion(SnapshotId snapshotId...
0true
src_main_java_org_elasticsearch_action_admin_cluster_snapshots_create_TransportCreateSnapshotAction.java
160
public class BackendTransaction implements LoggableTransaction { private static final Logger log = LoggerFactory.getLogger(BackendTransaction.class); public static final int MIN_TASKS_TO_PARALLELIZE = 2; //Assumes 64 bit key length as specified in IDManager public static final StaticBuffe...
0true
titan-core_src_main_java_com_thinkaurelius_titan_diskstorage_BackendTransaction.java
968
@Entity @Inheritance(strategy = InheritanceType.JOINED) @Table(name = "BLC_BUNDLE_ORDER_ITEM") @Cache(usage=CacheConcurrencyStrategy.NONSTRICT_READ_WRITE, region="blOrderElements") @AdminPresentationClass(friendlyName = "BundleOrderItemImpl_bundleOrderItem") public class BundleOrderItemImpl extends OrderItemImpl implem...
1no label
core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_order_domain_BundleOrderItemImpl.java
3,472
public class CacheMapLoader implements MapStore, MapLoaderLifecycleSupport { private String type; public void init(final HazelcastInstance hazelcastInstance, final Properties properties, final String mapName) { type = mapName; } public void destroy() { } public O...
1no label
hazelcast-spring_src_test_java_com_hazelcast_spring_cache_CacheMapLoader.java
4,050
public class ChildrenQuery extends Query { private final String parentType; private final String childType; private final Filter parentFilter; private final ScoreType scoreType; private final Query originalChildQuery; private final int shortCircuitParentDocSet; private final Filter nonNeste...
1no label
src_main_java_org_elasticsearch_index_search_child_ChildrenQuery.java
339
public class TransportNodesRestartAction extends TransportNodesOperationAction<NodesRestartRequest, NodesRestartResponse, TransportNodesRestartAction.NodeRestartRequest, NodesRestartResponse.NodeRestartResponse> { private final Node node; private final boolean disabled; private AtomicBoolean restartReque...
0true
src_main_java_org_elasticsearch_action_admin_cluster_node_restart_TransportNodesRestartAction.java
41
public class ClusterLeaveReelectionListener extends ClusterListener.Adapter { private final Election election; private final StringLogger logger; public ClusterLeaveReelectionListener( Election election, StringLogger logger ) { this.election = election; this.logger = logger; ...
1no label
enterprise_cluster_src_main_java_org_neo4j_cluster_protocol_election_ClusterLeaveReelectionListener.java
276
emailServiceTemplate.send(emailServiceDestination, new MessageCreator() { public Message createMessage(Session session) throws JMSException { ObjectMessage message = session.createObjectMessage(props); EmailInfo info = (EmailInfo) props.get(EmailPropertyType.INFO.getT...
0true
common_src_main_java_org_broadleafcommerce_common_email_service_jms_JMSEmailServiceProducerImpl.java
87
public interface ObjectByObjectToInt<A,B> {int apply(A a, B b); }
0true
src_main_java_jsr166e_ConcurrentHashMapV8.java
1,447
public class TitanHadoopGraph { private final TitanHadoopSetup setup; private final TypeInspector typeManager; private final SystemTypeInspector systemTypes; private final VertexReader vertexReader; private final boolean verifyVertexExistence = false; private static final Logger log = ...
1no label
titan-hadoop-parent_titan-hadoop-core_src_main_java_com_thinkaurelius_titan_hadoop_formats_util_TitanHadoopGraph.java
584
nodeEngine.getExecutionService().schedule(new Runnable() { public void run() { merge(newTargetAddress); } }, 10, TimeUnit.SECONDS);
0true
hazelcast_src_main_java_com_hazelcast_cluster_ClusterServiceImpl.java
444
@Retention(RetentionPolicy.RUNTIME) @Target(ElementType.TYPE) public @interface AdminPresentationMergeEntry { /** * The type for this property override. The types available are specific to the properties available in * the various admin presentation annotations. See {@link PropertyType} for a comprehensi...
0true
common_src_main_java_org_broadleafcommerce_common_presentation_override_AdminPresentationMergeEntry.java