Unnamed: 0 int64 0 6.45k | func stringlengths 37 161k | target class label 2
classes | project stringlengths 33 167 |
|---|---|---|---|
825 | public class GetOperation extends AtomicLongBaseOperation {
private long returnValue;
public GetOperation() {
}
public GetOperation(String name) {
super(name);
}
@Override
public void run() throws Exception {
LongWrapper number = getNumber();
returnValue = number.... | 0true | hazelcast_src_main_java_com_hazelcast_concurrent_atomiclong_operations_GetOperation.java |
933 | public abstract class TransportBroadcastOperationAction<Request extends BroadcastOperationRequest, Response extends BroadcastOperationResponse, ShardRequest extends BroadcastShardOperationRequest, ShardResponse extends BroadcastShardOperationResponse>
extends TransportAction<Request, Response> {
protected ... | 1no label | src_main_java_org_elasticsearch_action_support_broadcast_TransportBroadcastOperationAction.java |
1,476 | public class RoutingNodes implements Iterable<RoutingNode> {
private final MetaData metaData;
private final ClusterBlocks blocks;
private final RoutingTable routingTable;
private final Map<String, RoutingNode> nodesToShards = newHashMap();
private final UnassignedShards unassignedShards = new U... | 1no label | src_main_java_org_elasticsearch_cluster_routing_RoutingNodes.java |
856 | public class SetRequest extends ModifyRequest {
public SetRequest() {
}
public SetRequest(String name, Data update) {
super(name, update);
}
@Override
protected Operation prepareOperation() {
return new SetOperation(name, update);
}
@Override
public int getClassId... | 0true | hazelcast_src_main_java_com_hazelcast_concurrent_atomicreference_client_SetRequest.java |
46 | public class TouchCommandProcessor extends MemcacheCommandProcessor<TouchCommand> {
private final ILogger logger;
public TouchCommandProcessor(TextCommandServiceImpl textCommandService) {
super(textCommandService);
logger = textCommandService.getNode().getLogger(this.getClass().getName());
... | 0true | hazelcast_src_main_java_com_hazelcast_ascii_memcache_TouchCommandProcessor.java |
3,307 | public abstract class DoubleArrayAtomicFieldData extends AbstractAtomicNumericFieldData {
public static DoubleArrayAtomicFieldData empty(int numDocs) {
return new Empty(numDocs);
}
private final int numDocs;
protected long size = -1;
public DoubleArrayAtomicFieldData(int numDocs) {
... | 1no label | src_main_java_org_elasticsearch_index_fielddata_plain_DoubleArrayAtomicFieldData.java |
21 | @SuppressWarnings("rawtypes")
static final class KeySet<E> extends AbstractSet<E> implements ONavigableSet<E> {
private final ONavigableMap<E, Object> m;
KeySet(ONavigableMap<E, Object> map) {
m = map;
}
@Override
public OLazyIterator<E> iterator() {
if (m instanceof OMVRBTree)
... | 0true | commons_src_main_java_com_orientechnologies_common_collection_OMVRBTree.java |
2,601 | private class SymmetricCipherPacketWriter implements PacketWriter {
final Cipher cipher;
ByteBuffer packetBuffer = ByteBuffer.allocate(ioService.getSocketSendBufferSize() * IOService.KILO_BYTE);
boolean packetWritten;
SymmetricCipherPacketWriter() {
cipher = init();
... | 1no label | hazelcast_src_main_java_com_hazelcast_nio_SocketPacketWriter.java |
4,802 | public class RestClusterStateAction extends BaseRestHandler {
private final SettingsFilter settingsFilter;
@Inject
public RestClusterStateAction(Settings settings, Client client, RestController controller,
SettingsFilter settingsFilter) {
super(settings, client);
... | 1no label | src_main_java_org_elasticsearch_rest_action_admin_cluster_state_RestClusterStateAction.java |
58 | @SuppressWarnings("serial")
static final class ForEachTransformedMappingTask<K,V,U>
extends BulkTask<K,V,Void> {
final BiFun<? super K, ? super V, ? extends U> transformer;
final Action<? super U> action;
ForEachTransformedMappingTask
(BulkTask<K,V,?> p, int b, int i,... | 0true | src_main_java_jsr166e_ConcurrentHashMapV8.java |
527 | public class FlushResponse extends BroadcastOperationResponse {
FlushResponse() {
}
FlushResponse(int totalShards, int successfulShards, int failedShards, List<ShardOperationFailedException> shardFailures) {
super(totalShards, successfulShards, failedShards, shardFailures);
}
@Override
... | 0true | src_main_java_org_elasticsearch_action_admin_indices_flush_FlushResponse.java |
441 | public static class JvmStats implements Streamable, ToXContent {
ObjectIntOpenHashMap<JvmVersion> versions;
long threads;
long maxUptime;
long heapUsed;
long heapMax;
JvmStats() {
versions = new ObjectIntOpenHashMap<JvmVersion>();
threads = 0... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_stats_ClusterStatsNodes.java |
958 | public abstract class ClusterInfoRequestBuilder<Request extends ClusterInfoRequest<Request>, Response extends ActionResponse, Builder extends ClusterInfoRequestBuilder<Request, Response, Builder>> extends MasterNodeReadOperationRequestBuilder<Request, Response, Builder> {
protected ClusterInfoRequestBuilder(Intern... | 0true | src_main_java_org_elasticsearch_action_support_master_info_ClusterInfoRequestBuilder.java |
16 | public static interface AsynchronousCompletionTask {
} | 0true | src_main_java_jsr166e_CompletableFuture.java |
178 | public static class Map extends EnumMap<EntryMetaData,Object> {
public Map() {
super(EntryMetaData.class);
}
@Override
public Object put(EntryMetaData key, Object value) {
Preconditions.checkArgument(key.isValidData(value),"Invalid meta data [%s] for [%s]",v... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_diskstorage_EntryMetaData.java |
586 | public interface FulfillmentPriceExceptionResponse extends Serializable {
public boolean isErrorDetected();
public void setErrorDetected(boolean isErrorDetected);
public String getErrorCode();
public void setErrorCode(String errorCode);
public String getErrorText();
public void setErrorTex... | 0true | common_src_main_java_org_broadleafcommerce_common_vendor_service_message_FulfillmentPriceExceptionResponse.java |
599 | public abstract class BLCAbstractHandlerMapping extends AbstractHandlerMapping {
protected String controllerName;
@Override
/**
* This handler mapping does not provide a default handler. This method
* has been coded to always return null.
*/
public Object getDefaultHandler() {
... | 0true | common_src_main_java_org_broadleafcommerce_common_web_BLCAbstractHandlerMapping.java |
645 | public class DeleteIndexTemplateRequestBuilder extends MasterNodeOperationRequestBuilder<DeleteIndexTemplateRequest, DeleteIndexTemplateResponse, DeleteIndexTemplateRequestBuilder> {
public DeleteIndexTemplateRequestBuilder(IndicesAdminClient indicesClient) {
super((InternalIndicesAdminClient) indicesClien... | 0true | src_main_java_org_elasticsearch_action_admin_indices_template_delete_DeleteIndexTemplateRequestBuilder.java |
567 | metaDataMappingService.putMapping(updateRequest, new ClusterStateUpdateListener() {
@Override
public void onResponse(ClusterStateUpdateResponse response) {
listener.onResponse(new PutMappingResponse(response.isAcknowledged()));
}
@Override
... | 1no label | src_main_java_org_elasticsearch_action_admin_indices_mapping_put_TransportPutMappingAction.java |
444 | @RunWith(HazelcastParallelClassRunner.class)
@Category(QuickTest.class)
public class ClientQueueTest {
final static int maxSizeForQueue = 8;
final static String queueWithMaxSize = "queueWithMaxSize*";
static HazelcastInstance client;
static HazelcastInstance server;
@BeforeClass
public static... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_queue_ClientQueueTest.java |
148 | final class JavaClientExceptionConverter implements ClientExceptionConverter {
@Override
public Object convert(Throwable t) {
return t;
}
} | 0true | hazelcast_src_main_java_com_hazelcast_client_JavaClientExceptionConverter.java |
199 | public static class Name {
public static final String Audit = "Auditable_Tab";
} | 0true | common_src_main_java_org_broadleafcommerce_common_audit_Auditable.java |
2,682 | class FieldDefinitionImpl implements DataSerializable, FieldDefinition {
int index;
String fieldName;
FieldType type;
int classId;
int factoryId;
FieldDefinitionImpl() {
}
FieldDefinitionImpl(int index, String fieldName, FieldType type) {
this(index, fieldName, type, 0, Data.N... | 1no label | hazelcast_src_main_java_com_hazelcast_nio_serialization_FieldDefinitionImpl.java |
637 | public class MemberAttributeChange implements DataSerializable {
private String uuid;
private MemberAttributeOperationType operationType;
private String key;
private Object value;
public MemberAttributeChange() {
}
public MemberAttributeChange(String uuid, MemberAttributeOperationType ope... | 0true | hazelcast_src_main_java_com_hazelcast_cluster_client_MemberAttributeChange.java |
3 | ceylonOutputFolder.accept(new IResourceVisitor() {
@Override
public boolean visit(IResource resource) throws CoreException {
if (resource instanceof IFile) {
filesToAddInArchive.add((IFile)res... | 0true | plugins_com.redhat.ceylon.eclipse.android.plugin_src_com_redhat_ceylon_eclipse_android_plugin_AndroidBuildHookProvider.java |
122 | class FindArgumentsVisitor extends Visitor
implements NaturalVisitor {
Tree.MemberOrTypeExpression smte;
Tree.NamedArgumentList namedArgs;
Tree.PositionalArgumentList positionalArgs;
ProducedType currentType;
ProducedType expectedType;
boolean found = false;
boolean inEnumeration = ... | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_correct_FindArgumentsVisitor.java |
130 | public enum SchemaAction {
/**
* Registers the index with all instances in the graph cluster. After an index is installed, it must be registered
* with all graph instances.
*/
REGISTER_INDEX,
/**
* Re-builds the index from the graph
*/
REINDEX,
/**
* Enables the inde... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_core_schema_SchemaAction.java |
258 | public class ODefaultCollateFactory implements OCollateFactory {
private static final Map<String, OCollate> COLLATES = new HashMap<String, OCollate>(2);
static {
register(new ODefaultCollate());
register(new OCaseInsensitiveCollate());
}
/**
* @return Set of supported collate names of this factory... | 0true | core_src_main_java_com_orientechnologies_orient_core_collate_ODefaultCollateFactory.java |
3,208 | constructors[VECTOR] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {
public IdentifiedDataSerializable createNew(Integer arg) {
return new VectorClock();
}
}; | 1no label | hazelcast_src_main_java_com_hazelcast_replicatedmap_operation_ReplicatedMapDataSerializerHook.java |
333 | static class NodeInfoRequest extends NodeOperationRequest {
NodesInfoRequest request;
NodeInfoRequest() {
}
NodeInfoRequest(String nodeId, NodesInfoRequest request) {
super(request, nodeId);
this.request = request;
}
@Override
publi... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_node_info_TransportNodesInfoAction.java |
668 | public class DeleteWarmerAction extends IndicesAction<DeleteWarmerRequest, DeleteWarmerResponse, DeleteWarmerRequestBuilder> {
public static final DeleteWarmerAction INSTANCE = new DeleteWarmerAction();
public static final String NAME = "indices/warmer/delete";
private DeleteWarmerAction() {
super... | 0true | src_main_java_org_elasticsearch_action_admin_indices_warmer_delete_DeleteWarmerAction.java |
92 | public class StaticAssetStorageServiceImplTest extends TestCase {
/**
* * For example, if the URL is /product/myproductimage.jpg, then the MD5 would be
* 35ec52a8dbd8cf3e2c650495001fe55f resulting in the following file on the filesystem
* {assetFileSystemPath}/64/a7/myproductimage.jpg.
... | 0true | admin_broadleaf-contentmanagement-module_src_test_java_org_broadleafcommerce_cms_file_service_StaticAssetStorageServiceImplTest.java |
3,743 | final class HazelcastInstanceLoader {
public static final String INSTANCE_NAME = "instance-name";
public static final String CONFIG_LOCATION = "config-location";
public static final String USE_CLIENT = "use-client";
public static final String CLIENT_CONFIG_LOCATION = "client-config-location";
priv... | 1no label | hazelcast-wm_src_main_java_com_hazelcast_web_HazelcastInstanceLoader.java |
245 | assertTrueEventually(new AssertTask() {
public void run() throws Exception {
assertTrue(map.containsKey(member.getUuid()));
}
}); | 0true | hazelcast-client_src_test_java_com_hazelcast_client_executor_ClientExecutorServiceSubmitTest.java |
2,349 | public class StartProcessingJobOperation<K>
extends AbstractOperation
implements IdentifiedDataSerializable {
private String name;
private Collection<K> keys;
private String jobId;
private KeyPredicate<K> predicate;
public StartProcessingJobOperation() {
}
public StartProc... | 1no label | hazelcast_src_main_java_com_hazelcast_mapreduce_impl_operation_StartProcessingJobOperation.java |
284 | public class VelocityMessageCreator extends MessageCreator {
private VelocityEngine velocityEngine;
private Map<String, Object> additionalConfigItems;
public VelocityMessageCreator(VelocityEngine velocityEngine, JavaMailSender mailSender, HashMap<String, Object> additionalConfigItems) {
super(... | 0true | common_src_main_java_org_broadleafcommerce_common_email_service_message_VelocityMessageCreator.java |
5,101 | class SearchFreeContextTransportHandler extends BaseTransportRequestHandler<SearchFreeContextRequest> {
static final String ACTION = "search/freeContext";
@Override
public SearchFreeContextRequest newInstance() {
return new SearchFreeContextRequest();
}
@Overri... | 1no label | src_main_java_org_elasticsearch_search_action_SearchServiceTransportAction.java |
20 | public class DeleteCommand extends AbstractTextCommand {
ByteBuffer response;
private final String key;
private final int expiration;
private final boolean noreply;
public DeleteCommand(String key, int expiration, boolean noreply) {
super(TextCommandType.DELETE);
this.key = key;
... | 0true | hazelcast_src_main_java_com_hazelcast_ascii_memcache_DeleteCommand.java |
621 | public class NullBroadleafTemplateResolver implements ITemplateResolver {
@Override
public String getName() {
return "NullBroadleafTemplateResolver";
}
@Override
public Integer getOrder() {
return 9999;
}
@Override
public TemplateResolution resolveTemplate(TemplateProc... | 0true | common_src_main_java_org_broadleafcommerce_common_web_NullBroadleafTemplateResolver.java |
614 | indexEngine.getValuesMinor(iRangeTo, isInclusive, MultiValuesTransformer.INSTANCE, new OIndexEngine.ValuesResultListener() {
@Override
public boolean addResult(OIdentifiable identifiable) {
return resultListener.addResult(identifiable);
}
}); | 1no label | core_src_main_java_com_orientechnologies_orient_core_index_OIndexMultiValues.java |
345 | public class ElasticSearchConstants {
public static final String ES_PROPERTIES_FILE = "titan-es.properties";
public static final Version ES_VERSION_EXPECTED;
private static final Logger log = LoggerFactory.getLogger(ElasticSearchConstants.class);
static {
Properties props;
t... | 1no label | titan-es_src_main_java_com_thinkaurelius_titan_diskstorage_es_ElasticSearchConstants.java |
331 | public interface ODatabase extends OBackupable, Closeable {
public static enum OPTIONS {
SECURITY
}
public static enum STATUS {
OPEN, CLOSED, IMPORTING
}
public static enum ATTRIBUTES {
TYPE, STATUS, DEFAULTCLUSTERID, DATEFORMAT, DATETIMEFORMAT, TIMEZONE, LOCALECOUNTRY, LOCALELANGUAGE, CHARSET, ... | 0true | core_src_main_java_com_orientechnologies_orient_core_db_ODatabase.java |
135 | public interface StructuredContentFieldTemplate 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 Lon... | 0true | admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_structure_domain_StructuredContentFieldTemplate.java |
416 | static final class Fields {
static final XContentBuilderString SNAPSHOTS = new XContentBuilderString("snapshots");
} | 0true | src_main_java_org_elasticsearch_action_admin_cluster_snapshots_get_GetSnapshotsResponse.java |
666 | constructors[COLLECTION_RESERVE_ADD] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {
public IdentifiedDataSerializable createNew(Integer arg) {
return new CollectionReserveAddOperation();
}
}; | 0true | hazelcast_src_main_java_com_hazelcast_collection_CollectionDataSerializerHook.java |
214 | Comparator <Snippet> comparator = new Comparator<Snippet>() {
@Override
public int compare(Snippet o1, Snippet o2) {
return (int)Math.signum(o1.getScore() - o2.getScore());
}
}; | 0true | src_test_java_org_apache_lucene_search_postingshighlight_CustomPostingsHighlighterTests.java |
2,585 | public class SocketAcceptor implements Runnable {
private final ServerSocketChannel serverSocketChannel;
private final TcpIpConnectionManager connectionManager;
private final ILogger logger;
public SocketAcceptor(ServerSocketChannel serverSocketChannel, TcpIpConnectionManager connectionManager) {
... | 1no label | hazelcast_src_main_java_com_hazelcast_nio_SocketAcceptor.java |
6 | Collections.sort(abbreviationsForPhrase, new Comparator<String>() {
@Override
public int compare(String o1, String o2) {
return o1.length() - o2.length();
}
}); | 0true | tableViews_src_main_java_gov_nasa_arc_mct_abbreviation_impl_AbbreviationsManager.java |
300 | public class SiteNotFoundException extends RuntimeException {
public SiteNotFoundException() {
//do nothing
}
public SiteNotFoundException(Throwable cause) {
super(cause);
}
public SiteNotFoundException(String message) {
super(message);
}
public SiteNotFoundExcept... | 0true | common_src_main_java_org_broadleafcommerce_common_exception_SiteNotFoundException.java |
1,013 | execute(request, new ActionListener<Response>() {
@Override
public void onResponse(Response result) {
try {
channel.sendResponse(result);
} catch (Throwable e) {
onFailure(e);
... | 0true | src_main_java_org_elasticsearch_action_support_single_custom_TransportSingleCustomOperationAction.java |
428 | public class ClusterStateRequestBuilder extends MasterNodeReadOperationRequestBuilder<ClusterStateRequest, ClusterStateResponse, ClusterStateRequestBuilder> {
public ClusterStateRequestBuilder(ClusterAdminClient clusterClient) {
super((InternalClusterAdminClient) clusterClient, new ClusterStateRequest());
... | 1no label | src_main_java_org_elasticsearch_action_admin_cluster_state_ClusterStateRequestBuilder.java |
139 | public class DistributedObjectListenerRequest extends CallableClientRequest implements RetryableRequest {
public DistributedObjectListenerRequest() {
}
@Override
public Object call() throws Exception {
ProxyService proxyService = clientEngine.getProxyService();
String registrationId = ... | 1no label | hazelcast_src_main_java_com_hazelcast_client_DistributedObjectListenerRequest.java |
413 | public class GetSnapshotsRequest extends MasterNodeOperationRequest<GetSnapshotsRequest> {
private String repository;
private String[] snapshots = Strings.EMPTY_ARRAY;
GetSnapshotsRequest() {
}
/**
* Constructs a new get snapshots request with given repository name and list of snapshots
... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_snapshots_get_GetSnapshotsRequest.java |
1,126 | public class OSQLFunctionSysdate extends OSQLFunctionAbstract {
public static final String NAME = "sysdate";
private final Date now;
private SimpleDateFormat format;
/**
* Get the date at construction to have the same date for all the iteration.
*/
public OSQLFunctionSysdate() {
super(NA... | 1no label | core_src_main_java_com_orientechnologies_orient_core_sql_functions_misc_OSQLFunctionSysdate.java |
1,038 | public class GetTermVectorCheckDocFreqTests extends ElasticsearchIntegrationTest {
@Test
public void testSimpleTermVectors() throws ElasticsearchException, IOException {
XContentBuilder mapping = XContentFactory.jsonBuilder().startObject().startObject("type1")
.startObject("proper... | 0true | src_test_java_org_elasticsearch_action_termvector_GetTermVectorCheckDocFreqTests.java |
195 | public static class Group {
public static class Name {
public static final String Audit = "Auditable_Audit";
}
public static class Order {
public static final int Audit = 1000;
}
} | 0true | common_src_main_java_org_broadleafcommerce_common_audit_Auditable.java |
22 | public class LogPruneStrategies
{
public static final LogPruneStrategy NO_PRUNING = new LogPruneStrategy()
{
@Override
public void prune( LogLoader source )
{ // Don't prune logs at all.
}
@Override
public String toString()
{
return ... | 1no label | community_kernel_src_main_java_org_neo4j_kernel_impl_transaction_xaframework_LogPruneStrategies.java |
2,315 | public class MapReduceService
implements ManagedService, RemoteService {
/**
* The service name to retrieve an instance of the MapReduceService
*/
public static final String SERVICE_NAME = "hz:impl:mapReduceService";
private static final ILogger LOGGER = Logger.getLogger(MapReduceService... | 1no label | hazelcast_src_main_java_com_hazelcast_mapreduce_impl_MapReduceService.java |
1,332 | @ClusterScope(scope=Scope.TEST, numNodes=0)
public class UpdateSettingsValidationTests extends ElasticsearchIntegrationTest {
@Test
public void testUpdateSettingsValidation() throws Exception {
String master = cluster().startNode(settingsBuilder().put("node.data", false).build());
String node_1... | 0true | src_test_java_org_elasticsearch_cluster_UpdateSettingsValidationTests.java |
750 | public class GetResponse extends ActionResponse implements Iterable<GetField>, ToXContent {
private GetResult getResult;
GetResponse() {
}
GetResponse(GetResult getResult) {
this.getResult = getResult;
}
/**
* Does the document exists.
*/
public boolean isExists() {
... | 0true | src_main_java_org_elasticsearch_action_get_GetResponse.java |
199 | public class TrackingConcurrentMergeScheduler extends ConcurrentMergeScheduler {
protected final ESLogger logger;
private final MeanMetric totalMerges = new MeanMetric();
private final CounterMetric totalMergesNumDocs = new CounterMetric();
private final CounterMetric totalMergesSizeInBytes = new Coun... | 0true | src_main_java_org_apache_lucene_index_TrackingConcurrentMergeScheduler.java |
56 | public class AddAnnotionProposal extends CorrectionProposal {
private static final List<String> ANNOTATIONS_ORDER =
asList("doc", "throws", "see", "tagged", "shared", "abstract",
"actual", "formal", "default", "variable");
private static final List<String> ANNOTATIONS_ON_S... | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_correct_AddAnnotionProposal.java |
395 | public class ClusterSearchShardsRequestBuilder extends MasterNodeReadOperationRequestBuilder<ClusterSearchShardsRequest, ClusterSearchShardsResponse, ClusterSearchShardsRequestBuilder> {
public ClusterSearchShardsRequestBuilder(ClusterAdminClient clusterClient) {
super((InternalClusterAdminClient) clusterC... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_shards_ClusterSearchShardsRequestBuilder.java |
1,484 | public class Hibernate4CacheEntrySerializerHook
implements SerializerHook {
private static final String SKIP_INIT_MSG = "Hibernate4 not available, skipping serializer initialization";
private final Class<?> cacheEntryClass;
public Hibernate4CacheEntrySerializerHook() {
Class<?> cacheEntry... | 1no label | hazelcast-hibernate_hazelcast-hibernate4_src_main_java_com_hazelcast_hibernate_serialization_Hibernate4CacheEntrySerializerHook.java |
434 | public class ClientSetProxy<E> extends AbstractClientCollectionProxy<E> implements ISet<E> {
public ClientSetProxy(String instanceName, String serviceName, String name) {
super(instanceName, serviceName, name);
}
@Override
public String toString() {
return "ISet{" + "name='" + getName(... | 1no label | hazelcast-client_src_main_java_com_hazelcast_client_proxy_ClientSetProxy.java |
344 | public class ODatabasePoolEntry {
public String url;
public String userName;
public String userPassword;
public ODatabasePoolEntry(String url, String userName, String userPassword) {
super();
this.url = url;
this.userName = userName;
this.userPassword = userPassword;
}
@Override
public int hashCode() {... | 0true | core_src_main_java_com_orientechnologies_orient_core_db_ODatabasePoolEntry.java |
1,251 | public class ClientTransportModule extends AbstractModule {
@Override
protected void configure() {
bind(InternalTransportClient.class).asEagerSingleton();
bind(InternalTransportAdminClient.class).asEagerSingleton();
bind(InternalTransportIndicesAdminClient.class).asEagerSingleton();
... | 0true | src_main_java_org_elasticsearch_client_transport_ClientTransportModule.java |
2 | Files.walkFileTree(java.nio.file.FileSystems.getDefault().getPath(libsDirectory.getAbsolutePath()), new SimpleFileVisitor<Path>() {
@Override
public FileVisitResult visitFile(Path path, BasicFileAttributes attrs) throws IOException
... | 0true | plugins_com.redhat.ceylon.eclipse.android.plugin_src_com_redhat_ceylon_eclipse_android_plugin_AndroidBuildHookProvider.java |
6,452 | clusterService.submitStateUpdateTask("cluster event from " + tribeName + ", " + event.source(), new ClusterStateUpdateTask() {
@Override
public ClusterState execute(ClusterState currentState) throws Exception {
ClusterState tribeState = event.state();
... | 1no label | src_main_java_org_elasticsearch_tribe_TribeService.java |
458 | public class OSBTreeRIDSet implements Set<OIdentifiable>, OStringBuilderSerializable, ORecordLazyMultiValue {
private final long fileId;
private final OBonsaiBucketPointer rootPointer;
private ORecordInternal<?> owner;
private boolean autoConvertToRecord ... | 0true | core_src_main_java_com_orientechnologies_orient_core_db_record_ridset_sbtree_OSBTreeRIDSet.java |
936 | threadPool.executor(executor).execute(new Runnable() {
@Override
public void run() {
try {
onOperation(shard, shardIndex, shardOperation(shardRequest));... | 0true | src_main_java_org_elasticsearch_action_support_broadcast_TransportBroadcastOperationAction.java |
2,061 | @Component("blCustomerStateRequestProcessor")
public class CustomerStateRequestProcessor extends AbstractBroadleafWebRequestProcessor implements ApplicationEventPublisherAware {
/** Logger for this class and subclasses */
protected final Log logger = LogFactory.getLog(getClass());
public static final Stri... | 1no label | core_broadleaf-profile-web_src_main_java_org_broadleafcommerce_profile_web_core_security_CustomerStateRequestProcessor.java |
3,257 | public class ListPermission extends InstancePermission {
private static final int ADD = 0x4;
private static final int READ = 0x8;
private static final int REMOVE = 0x16;
private static final int LISTEN = 0x32;
private static final int ALL = ADD | REMOVE | READ | CREATE | DESTROY | LISTEN;
publ... | 1no label | hazelcast_src_main_java_com_hazelcast_security_permission_ListPermission.java |
5,090 | transportService.sendRequest(node, SearchQueryByIdTransportHandler.ACTION, request, new BaseTransportResponseHandler<QuerySearchResult>() {
@Override
public QuerySearchResult newInstance() {
return new QuerySearchResult();
}
... | 1no label | src_main_java_org_elasticsearch_search_action_SearchServiceTransportAction.java |
92 | public class ReadOnlyTxManager extends AbstractTransactionManager
implements Lifecycle
{
private ThreadLocalWithSize<ReadOnlyTransactionImpl> txThreadMap;
private int eventIdentifierCounter = 0;
private XaDataSourceManager xaDsManager = null;
private final StringLogger logger;
private fin... | 0true | community_kernel_src_main_java_org_neo4j_kernel_impl_transaction_ReadOnlyTxManager.java |
69 | public interface TitanRelation extends TitanElement {
/**
* Establishes a unidirectional edge between this relation and the given vertex for the specified label.
* The label must be defined {@link EdgeLabel#isUnidirected()}.
*
* @param label
* @param vertex
*/
public void setPrope... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_core_TitanRelation.java |
963 | public abstract class NodesOperationRequestBuilder<Request extends NodesOperationRequest<Request>, Response extends NodesOperationResponse, RequestBuilder extends NodesOperationRequestBuilder<Request, Response, RequestBuilder>>
extends ActionRequestBuilder<Request, Response, RequestBuilder> {
protected Nod... | 0true | src_main_java_org_elasticsearch_action_support_nodes_NodesOperationRequestBuilder.java |
569 | return new DataSerializableFactory() {
@Override
public IdentifiedDataSerializable create(int typeId) {
switch (typeId) {
case DATA:
return new Data();
case ADDRESS:
return new Address... | 0true | hazelcast_src_main_java_com_hazelcast_cluster_ClusterDataSerializerHook.java |
1,448 | public abstract class TitanInputFormat extends InputFormat<NullWritable, FaunusVertex> implements Configurable {
private static final String SETUP_PACKAGE_PREFIX = "com.thinkaurelius.titan.hadoop.formats.util.input.";
private static final String SETUP_CLASS_NAME = ".TitanHadoopSetupImpl";
protected Faunus... | 1no label | titan-hadoop-parent_titan-hadoop-core_src_main_java_com_thinkaurelius_titan_hadoop_formats_util_TitanInputFormat.java |
1,356 | public class JDTAnnotation implements AnnotationMirror {
private Map<String, Object> values;
public JDTAnnotation(AnnotationBinding annotation) {
values = new HashMap<String, Object>();
ElementValuePair[] annotationVaues = annotation.getElementValuePairs();
for (ElementValuePair annota... | 1no label | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_core_model_mirror_JDTAnnotation.java |
830 | public class SearchRequest extends ActionRequest<SearchRequest> {
private static final XContentType contentType = Requests.CONTENT_TYPE;
private SearchType searchType = SearchType.DEFAULT;
private String[] indices;
@Nullable
private String routing;
@Nullable
private String preference;
... | 1no label | src_main_java_org_elasticsearch_action_search_SearchRequest.java |
405 | public interface OTrackedMultiValue<K, V> {
/**
* Add change listener.
*
* @param changeListener
* Change listener instance.
*/
public void addChangeListener(OMultiValueChangeListener<K, V> changeListener);
/**
* Remove change listener.
*
* @param changeListener
* Change liste... | 0true | core_src_main_java_com_orientechnologies_orient_core_db_record_OTrackedMultiValue.java |
70 | public interface TitanTransaction extends TitanGraphTransaction {
/* ---------------------------------------------------------------
* Modifications
* ---------------------------------------------------------------
*/
/**
* Creates a new vertex in the graph with the given vertex id and the giv... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_core_TitanTransaction.java |
185 | public class UrlRewriteTag extends TagSupport {
private static final long serialVersionUID = 1L;
// The following attribute is set in BroadleafProcessURLFilter
public static final String REQUEST_DTO = "blRequestDTO";
private String value;
private String var;
private static StaticAssetService ... | 0true | admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_web_file_UrlRewriteTag.java |
212 | public interface HydratedCacheManager {
public Object getHydratedCacheElementItem(String cacheRegion, String cacheName, Serializable elementKey, String elementItemName);
public void addHydratedCacheElementItem(String cacheRegion, String cacheName, Serializable elementKey, String elementItemName, Object elemen... | 0true | common_src_main_java_org_broadleafcommerce_common_cache_engine_HydratedCacheManager.java |
716 | public class CollectionRemoveBackupOperation extends CollectionOperation implements BackupOperation {
private long itemId;
public CollectionRemoveBackupOperation() {
}
public CollectionRemoveBackupOperation(String name, long itemId) {
super(name);
this.itemId = itemId;
}
@Ove... | 0true | hazelcast_src_main_java_com_hazelcast_collection_CollectionRemoveBackupOperation.java |
731 | return new Map.Entry<K, V>() {
@Override
public K getKey() {
return key;
}
@Override
public V getValue() {
return value;
}
@Override
public V setValue(V value) {
throw new UnsupportedOperationException("setValue");
}
}; | 1no label | core_src_main_java_com_orientechnologies_orient_core_index_sbtree_local_OSBTree.java |
448 | final Thread t2 = new Thread() {
public void run() {
try {
Thread.sleep(2 * 1000);
} catch (InterruptedException e) {
e.printStackTrace();
}
q.offer("item1");
}
}; | 0true | hazelcast-client_src_test_java_com_hazelcast_client_queue_ClientQueueTest.java |
453 | 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,350 | private class NodeIndexStoreDeletedTransportHandler extends BaseTransportRequestHandler<NodeIndexStoreDeletedMessage> {
static final String ACTION = "cluster/nodeIndexStoreDeleted";
@Override
public NodeIndexStoreDeletedMessage newInstance() {
return new NodeIndexStoreDeletedMe... | 0true | src_main_java_org_elasticsearch_cluster_action_index_NodeIndexDeletedAction.java |
1,027 | threadPool.executor(executor).execute(new Runnable() {
@Override
public void run() {
try {
Response response = shardOperation(request, shardRouting.id());
... | 0true | src_main_java_org_elasticsearch_action_support_single_shard_TransportShardSingleOperationAction.java |
431 | public class ClusterStatsAction extends ClusterAction<ClusterStatsRequest, ClusterStatsResponse, ClusterStatsRequestBuilder> {
public static final ClusterStatsAction INSTANCE = new ClusterStatsAction();
public static final String NAME = "cluster/stats";
private ClusterStatsAction() {
super(NAME);
... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_stats_ClusterStatsAction.java |
135 | class InvertIfElseProposal extends CorrectionProposal {
InvertIfElseProposal(int offset, TextChange change) {
super("Invert if-else", change, new Region(offset, 0));
}
static void addReverseIfElseProposal(IDocument doc,
Collection<ICompletionProposal> proposals, IFile file,... | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_correct_InvertIfElseProposal.java |
1,288 | public class ReviewStatusType {
private static final long serialVersionUID = 1L;
private static final Map<String, ReviewStatusType> TYPES = new HashMap<String, ReviewStatusType>();
public static final ReviewStatusType PENDING = new ReviewStatusType("PENDING");
public static final ReviewStatusType APPR... | 1no label | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_rating_service_type_ReviewStatusType.java |
301 | public enum WriteConsistencyLevel {
DEFAULT((byte) 0),
ONE((byte) 1),
QUORUM((byte) 2),
ALL((byte) 3);
private final byte id;
WriteConsistencyLevel(byte id) {
this.id = id;
}
public byte id() {
return id;
}
public static WriteConsistencyLevel fromId(byte value... | 0true | src_main_java_org_elasticsearch_action_WriteConsistencyLevel.java |
594 | public class LogStatusHandler implements StatusHandler {
private static final Log LOG = LogFactory.getLog(LogStatusHandler.class);
public void handleStatus(String serviceName, ServiceStatusType status) {
if (status.equals(ServiceStatusType.DOWN)) {
LOG.error(serviceName + " is reporting a ... | 0true | common_src_main_java_org_broadleafcommerce_common_vendor_service_monitor_handler_LogStatusHandler.java |
2,920 | public class PreBuiltAnalyzerProviderFactory implements AnalyzerProviderFactory {
private final PreBuiltAnalyzerProvider analyzerProvider;
public PreBuiltAnalyzerProviderFactory(String name, AnalyzerScope scope, Analyzer analyzer) {
analyzerProvider = new PreBuiltAnalyzerProvider(name, scope, analyzer... | 1no label | src_main_java_org_elasticsearch_index_analysis_PreBuiltAnalyzerProviderFactory.java |
480 | final OIndexManager indexManagerTwo = makeDbCall(databaseDocumentTxTwo, new ODbRelatedCall<OIndexManager>() {
public OIndexManager call() {
return databaseDocumentTxTwo.getMetadata().getIndexManager();
}
}); | 0true | core_src_main_java_com_orientechnologies_orient_core_db_tool_ODatabaseCompare.java |
486 | public class TransportAnalyzeAction extends TransportSingleCustomOperationAction<AnalyzeRequest, AnalyzeResponse> {
private final IndicesService indicesService;
private final IndicesAnalysisService indicesAnalysisService;
@Inject
public TransportAnalyzeAction(Settings settings, ThreadPool threadPool,... | 1no label | src_main_java_org_elasticsearch_action_admin_indices_analyze_TransportAnalyzeAction.java |
877 | kryos = new ThreadLocal<Kryo>() {
public Kryo initialValue() {
Kryo k = new Kryo();
k.setRegistrationRequired(registerRequired);
k.register(Class.class,new DefaultSerializers.ClassSerializer());
for (int i=0;i<defaultRegistrations.size(... | 1no label | titan-core_src_main_java_com_thinkaurelius_titan_graphdb_database_serialize_kryo_KryoSerializer.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.