Unnamed: 0 int64 0 6.45k | func stringlengths 37 161k | target class label 2
classes | project stringlengths 33 167 |
|---|---|---|---|
1,488 | @SuppressWarnings("unchecked")
public class OObjectDatabaseTxPooled extends OObjectDatabaseTx implements ODatabasePooled {
private OObjectDatabasePool ownerPool;
public OObjectDatabaseTxPooled(final OObjectDatabasePool iOwnerPool, final String iURL, final String iUserName,
final String iUserPassword) {
... | 1no label | object_src_main_java_com_orientechnologies_orient_object_db_OObjectDatabaseTxPooled.java |
395 | public final class BankersRounding {
public static final int DEFAULT_SCALE = 2;
public static final BigDecimal ZERO = setScale(0);
public static int getScaleForCurrency(Currency currency) {
if (currency != null) {
return currency.getDefaultFractionDigits();
} else {
... | 0true | common_src_main_java_org_broadleafcommerce_common_money_BankersRounding.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 |
33 | @Service("blProductFieldService")
public class ProductFieldServiceImpl extends AbstractRuleBuilderFieldService {
@Override
public void init() {
fields.add(new FieldData.Builder()
.label("rule_productUrl")
.name("url")
.operators("blcOperators_Text")
... | 0true | admin_broadleaf-admin-module_src_main_java_org_broadleafcommerce_admin_web_rulebuilder_service_ProductFieldServiceImpl.java |
45 | public class HeartbeatIAmAliveProcessor implements MessageProcessor
{
private final MessageHolder output;
private final ClusterContext clusterContext;
public HeartbeatIAmAliveProcessor( MessageHolder output, ClusterContext clusterContext )
{
this.output = output;
this.clusterContext = c... | 1no label | enterprise_cluster_src_main_java_org_neo4j_cluster_protocol_heartbeat_HeartbeatIAmAliveProcessor.java |
360 | public class FilterDefinition {
protected String name;
protected List<FilterParameter> params;
protected String entityImplementationClassName;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public List<FilterParameter> ... | 0true | common_src_main_java_org_broadleafcommerce_common_filter_FilterDefinition.java |
2,090 | public class PutAllOperation extends AbstractMapOperation implements PartitionAwareOperation, BackupAwareOperation {
private MapEntrySet entrySet;
private boolean initialLoad = false;
private List<Map.Entry<Data, Data>> backupEntrySet;
private List<RecordInfo> backupRecordInfos;
public PutAllOpera... | 1no label | hazelcast_src_main_java_com_hazelcast_map_operation_PutAllOperation.java |
1,623 | public class ClusterDynamicSettingsModule extends AbstractModule {
private final DynamicSettings clusterDynamicSettings;
public ClusterDynamicSettingsModule() {
clusterDynamicSettings = new DynamicSettings();
clusterDynamicSettings.addDynamicSetting(AwarenessAllocationDecider.CLUSTER_ROUTING_A... | 1no label | src_main_java_org_elasticsearch_cluster_settings_ClusterDynamicSettingsModule.java |
53 | public abstract class OAbstractLock implements OLock {
@Override
public <V> V callInLock(final Callable<V> iCallback) throws Exception {
lock();
try {
return iCallback.call();
} finally {
unlock();
}
}
} | 0true | commons_src_main_java_com_orientechnologies_common_concur_lock_OAbstractLock.java |
515 | public class SystemTimeTest extends TestCase {
private TimeSource mockTimeSource;
protected void setUp() throws Exception {
super.setUp();
mockTimeSource = createMock(TimeSource.class);
}
protected void tearDown() throws Exception {
SystemTime.reset();
super.tearDown();... | 0true | common_src_test_java_org_broadleafcommerce_common_time_SystemTimeTest.java |
326 | public interface OStoragePhysicalClusterConfiguration extends OStorageClusterConfiguration {
public OStorageFileConfiguration[] getInfoFiles();
public String getMaxSize();
} | 0true | core_src_main_java_com_orientechnologies_orient_core_config_OStoragePhysicalClusterConfiguration.java |
198 | public class OJNADirectMemory implements ODirectMemory {
private static final CLibrary C_LIBRARY = OCLibraryFactory.INSTANCE.library();
public static final OJNADirectMemory INSTANCE = new OJNADirectMemory();
@Override
public long allocate(byte[] bytes) {
final long pointer = allocate(bytes.length)... | 0true | nativeos_src_main_java_com_orientechnologies_nio_OJNADirectMemory.java |
78 | @SuppressWarnings("serial")
static final class MapReduceMappingsToDoubleTask<K,V>
extends BulkTask<K,V,Double> {
final ObjectByObjectToDouble<? super K, ? super V> transformer;
final DoubleByDoubleToDouble reducer;
final double basis;
double result;
MapReduceMappi... | 0true | src_main_java_jsr166e_ConcurrentHashMapV8.java |
454 | executor.execute(new Runnable() {
@Override
public void run() {
for (int i = 0; i < operations; i++) {
map1.put("foo-" + i, "bar");
}
}
}, 60, EntryEventType.ADDED, operations, 0.75, map1, map2); | 0true | hazelcast-client_src_test_java_com_hazelcast_client_replicatedmap_ClientReplicatedMapTest.java |
76 | public class OSharedResourceExternal extends OSharedResourceAbstract implements OSharedResource {
@Override
public void acquireExclusiveLock() {
super.acquireExclusiveLock();
}
@Override
public void acquireSharedLock() {
super.acquireSharedLock();
}
@Override
public void releaseExclusiveLock() {
super.... | 0true | commons_src_main_java_com_orientechnologies_common_concur_resource_OSharedResourceExternal.java |
463 | new Thread(){
public void run() {
try {
semaphore.acquire();
latch.countDown();
} catch (InterruptedException e) {
e.printStackTrace();
}
}
}.start(); | 0true | hazelcast-client_src_test_java_com_hazelcast_client_semaphore_ClientSemaphoreTest.java |
3,673 | public class ParentFieldMapper extends AbstractFieldMapper<Uid> implements InternalMapper, RootMapper {
public static final String NAME = "_parent";
public static final String CONTENT_TYPE = "_parent";
public static class Defaults extends AbstractFieldMapper.Defaults {
public static final String ... | 1no label | src_main_java_org_elasticsearch_index_mapper_internal_ParentFieldMapper.java |
733 | public class CollectionCompareAndRemoveRequest extends CollectionRequest {
private Set<Data> valueSet;
private boolean retain;
public CollectionCompareAndRemoveRequest() {
}
public CollectionCompareAndRemoveRequest(String name, Set<Data> valueSet, boolean retain) {
super(name);
t... | 0true | hazelcast_src_main_java_com_hazelcast_collection_client_CollectionCompareAndRemoveRequest.java |
872 | public class TransportSearchQueryAndFetchAction extends TransportSearchTypeAction {
@Inject
public TransportSearchQueryAndFetchAction(Settings settings, ThreadPool threadPool, ClusterService clusterService,
SearchServiceTransportAction searchService, SearchPhaseCon... | 0true | src_main_java_org_elasticsearch_action_search_type_TransportSearchQueryAndFetchAction.java |
780 | searchAction.execute(searchRequest, new ActionListener<SearchResponse>() {
@Override
public void onResponse(SearchResponse response) {
listener.onResponse(response);
}
@Override
p... | 0true | src_main_java_org_elasticsearch_action_mlt_TransportMoreLikeThisAction.java |
760 | public class ListRemoveOperation extends CollectionBackupAwareOperation {
private int index;
private long itemId;
public ListRemoveOperation() {
}
public ListRemoveOperation(String name, int index) {
super(name);
this.index = index;
}
@Override
public boolean shouldBa... | 0true | hazelcast_src_main_java_com_hazelcast_collection_list_ListRemoveOperation.java |
310 | public enum ResourceType {
FILESYSTEM,CLASSPATH
} | 0true | common_src_main_java_org_broadleafcommerce_common_extensibility_context_MergeFileSystemAndClassPathXMLApplicationContext.java |
99 | @SuppressWarnings("restriction")
public class OUnsafeMemory implements ODirectMemory {
public static final OUnsafeMemory INSTANCE;
protected static final Unsafe unsafe;
private static final boolean unaligned;
private static final long UNSAFE_COPY_THRESHOLD = 1024L * 1024L;
static {
OUn... | 0true | commons_src_main_java_com_orientechnologies_common_directmemory_OUnsafeMemory.java |
388 | new Thread(){
public void run() {
try {
if(mm.tryLock(key, 10, TimeUnit.SECONDS)){
tryLockReturnsTrue.countDown();
}
} catch (InterruptedException e) {
e.printStackTrace();
... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_multimap_ClientMultiMapLockTest.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,426 | nodeEngine.getExecutionService().execute(ExecutionService.SYSTEM_EXECUTOR, new Runnable() {
public void run() {
try {
((InitializingObject) object).initialize();
... | 1no label | hazelcast_src_main_java_com_hazelcast_spi_impl_ProxyServiceImpl.java |
512 | public class TransportDeleteIndexAction extends TransportMasterNodeOperationAction<DeleteIndexRequest, DeleteIndexResponse> {
private final MetaDataDeleteIndexService deleteIndexService;
private final DestructiveOperations destructiveOperations;
@Inject
public TransportDeleteIndexAction(Settings setti... | 1no label | src_main_java_org_elasticsearch_action_admin_indices_delete_TransportDeleteIndexAction.java |
1,653 | public abstract class Names {
public static String randomNodeName(URL nodeNames) {
BufferedReader reader = null;
try {
reader = new BufferedReader(new InputStreamReader(nodeNames.openStream(), Charsets.UTF_8));
int numberOfNames = 0;
while (reader.readLine() != n... | 1no label | src_main_java_org_elasticsearch_common_Names.java |
3,722 | private static final Comparator<ScheduledEntry> SCHEDULED_ENTRIES_COMPARATOR = new Comparator<ScheduledEntry>() {
@Override
public int compare(ScheduledEntry o1, ScheduledEntry o2) {
if (o1.getScheduleStartTimeInNanos() > o2.getScheduleStartTimeInNanos()) {
return 1;
... | 1no label | hazelcast_src_main_java_com_hazelcast_util_scheduler_SecondsBasedEntryTaskScheduler.java |
261 | public interface OCommandContext {
public enum TIMEOUT_STRATEGY {
RETURN, EXCEPTION
}
public Object getVariable(String iName);
public Object getVariable(String iName, Object iDefaultValue);
public OCommandContext setVariable(final String iName, final Object iValue);
public Map<String, Object> getVar... | 0true | core_src_main_java_com_orientechnologies_orient_core_command_OCommandContext.java |
377 | public class TransportPutRepositoryAction extends TransportMasterNodeOperationAction<PutRepositoryRequest, PutRepositoryResponse> {
private final RepositoriesService repositoriesService;
@Inject
public TransportPutRepositoryAction(Settings settings, TransportService transportService, ClusterService cluste... | 1no label | src_main_java_org_elasticsearch_action_admin_cluster_repositories_put_TransportPutRepositoryAction.java |
56 | public interface OLock {
public void lock();
public void unlock();
public <V> V callInLock(Callable<V> iCallback) throws Exception;
} | 0true | commons_src_main_java_com_orientechnologies_common_concur_lock_OLock.java |
1,364 | public class OStorageMemory extends OStorageEmbedded {
private final List<ODataSegmentMemory> dataSegments = new ArrayList<ODataSegmentMemory>();
private final List<OClusterMemory> clusters = new ArrayList<OClusterMemory>();
private final Map<String, OClusterMemory> clusterMap = new... | 1no label | core_src_main_java_com_orientechnologies_orient_core_storage_impl_memory_OStorageMemory.java |
592 | public class JoinCheckOperation extends AbstractOperation implements JoinOperation {
private JoinRequest joinRequest;
private JoinRequest response;
public JoinCheckOperation() {
}
public JoinCheckOperation(final JoinRequest joinRequest) {
this.joinRequest = joinRequest;
}
@Overri... | 0true | hazelcast_src_main_java_com_hazelcast_cluster_JoinCheckOperation.java |
238 | service.submitToMember(runnable, member, new ExecutionCallback() {
public void onResponse(Object response) {
responseLatch.countDown();
}
public void onFailure(Throwable t) {
}
}); | 0true | hazelcast-client_src_test_java_com_hazelcast_client_executor_ClientExecutorServiceSubmitTest.java |
1,287 | public interface ClusterService extends LifecycleComponent<ClusterService> {
/**
* The local node.
*/
DiscoveryNode localNode();
/**
* The current state.
*/
ClusterState state();
/**
* Adds an initial block to be set on the first cluster state created.
*/
void ad... | 0true | src_main_java_org_elasticsearch_cluster_ClusterService.java |
573 | public interface ValueAssignable<T extends Serializable> extends Serializable {
/**
* The value
*
* @return The value
*/
T getValue();
/**
* The value
*
* @param value The value
*/
void setValue(T value);
/**
* The name
*
* @return The name
... | 0true | common_src_main_java_org_broadleafcommerce_common_value_ValueAssignable.java |
1,431 | public class MetaDataService extends AbstractComponent {
private final Semaphore[] indexMdLocks;
@Inject
public MetaDataService(Settings settings) {
super(settings);
indexMdLocks = new Semaphore[500];
for (int i = 0; i < indexMdLocks.length; i++) {
indexMdLocks[i] = new... | 0true | src_main_java_org_elasticsearch_cluster_metadata_MetaDataService.java |
545 | deleteByQueryAction.execute(Requests.deleteByQueryRequest(request.indices()).source(querySourceBuilder), new ActionListener<DeleteByQueryResponse>() {
@Override
public void onResponse(DeleteByQueryResponse deleteByQueryResponse) {
refreshAc... | 1no label | src_main_java_org_elasticsearch_action_admin_indices_mapping_delete_TransportDeleteMappingAction.java |
313 | public class ClusterShardHealth implements Streamable {
private int shardId;
ClusterHealthStatus status = ClusterHealthStatus.RED;
int activeShards = 0;
int relocatingShards = 0;
int initializingShards = 0;
int unassignedShards = 0;
boolean primaryActive = false;
private ClusterS... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_health_ClusterShardHealth.java |
90 | {
@Override
protected void configure( GraphDatabaseBuilder builder )
{
builder.setConfig( GraphDatabaseSettings.cache_type, "none" );
};
}; | 0true | community_kernel_src_test_java_org_neo4j_kernel_impl_transaction_ReadTransactionLogWritingTest.java |
638 | public abstract class AbstractCollectionProxyImpl<S extends RemoteService, E> extends AbstractDistributedObject<S>
implements InitializingObject {
protected final String name;
protected final int partitionId;
protected AbstractCollectionProxyImpl(String name, NodeEngine nodeEngine, S service) {
... | 1no label | hazelcast_src_main_java_com_hazelcast_collection_AbstractCollectionProxyImpl.java |
967 | @Entity
@DiscriminatorColumn(name = "TYPE")
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "BLC_BUND_ITEM_FEE_PRICE")
@Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE, region = "blOrderElements")
@AdminPresentationMergeOverrides(
{
@AdminPresentationMergeOverride(name = "", mergeE... | 1no label | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_order_domain_BundleOrderItemFeePriceImpl.java |
79 | public class ChangeInitialCaseOfIdentifierInDeclaration
extends CorrectionProposal {
public static void addChangeIdentifierCaseProposal(Node node,
Collection<ICompletionProposal> proposals, IFile file) {
Tree.Identifier identifier = null;
if (node instanceof Tree.Type... | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_correct_ChangeInitialCaseOfIdentifierInDeclaration.java |
479 | public class TransportGetAliasesAction extends TransportMasterNodeReadOperationAction<GetAliasesRequest, GetAliasesResponse> {
@Inject
public TransportGetAliasesAction(Settings settings, TransportService transportService, ClusterService clusterService, ThreadPool threadPool) {
super(settings, transport... | 1no label | src_main_java_org_elasticsearch_action_admin_indices_alias_get_TransportGetAliasesAction.java |
300 | public class ValidateActions {
public static ActionRequestValidationException addValidationError(String error, ActionRequestValidationException validationException) {
if (validationException == null) {
validationException = new ActionRequestValidationException();
}
validationExc... | 0true | src_main_java_org_elasticsearch_action_ValidateActions.java |
471 | Object indexOneValue = makeDbCall(databaseDocumentTxOne, new ODbRelatedCall<Object>() {
public Object call() {
return indexOneEntry.getValue();
}
}); | 0true | core_src_main_java_com_orientechnologies_orient_core_db_tool_ODatabaseCompare.java |
115 | static final class EmptyTask extends ForkJoinTask<Void> {
private static final long serialVersionUID = -7721805057305804111L;
EmptyTask() { status = ForkJoinTask.NORMAL; } // force done
public final Void getRawResult() { return null; }
public final void setRawResult(Void x) {}
... | 0true | src_main_java_jsr166e_ForkJoinPool.java |
605 | public class BroadleafRequestContext {
protected static final Log LOG = LogFactory.getLog(BroadleafRequestContext.class);
private static final ThreadLocal<BroadleafRequestContext> BROADLEAF_REQUEST_CONTEXT = ThreadLocalManager.createThreadLocal(BroadleafRequestContext.class);
public static Br... | 0true | common_src_main_java_org_broadleafcommerce_common_web_BroadleafRequestContext.java |
92 | public class TTYConsoleReader implements OConsoleReader {
private static final String HISTORY_FILE_NAME = ".orientdb_history";
private static int MAX_HISTORY_ENTRIES = 50;
public static int END_CHAR = 70;
public static int BEGIN_CHAR = 72;
public static ... | 0true | commons_src_main_java_com_orientechnologies_common_console_TTYConsoleReader.java |
2,612 | public final class UTFEncoderDecoder {
private static final int STRING_CHUNK_SIZE = 16 * 1024;
private static final UTFEncoderDecoder INSTANCE;
static {
INSTANCE = buildUTFUtil();
}
private final StringCreator stringCreator;
private final boolean hazelcastEnterpriseActive;
priva... | 1no label | hazelcast_src_main_java_com_hazelcast_nio_UTFEncoderDecoder.java |
112 | public interface OProgressListener {
public void onBegin(Object iTask, long iTotal);
public boolean onProgress(Object iTask, long iCounter, float iPercent);
public void onCompletition(Object iTask, boolean iSucceed);
} | 0true | commons_src_main_java_com_orientechnologies_common_listener_OProgressListener.java |
1,449 | public static class ShardSnapshotStatus {
private State state;
private String nodeId;
private String reason;
private ShardSnapshotStatus() {
}
public ShardSnapshotStatus(String nodeId) {
this(nodeId, State.INIT);
}
public ShardSnapshotSt... | 0true | src_main_java_org_elasticsearch_cluster_metadata_SnapshotMetaData.java |
69 | @SuppressWarnings("serial")
static final class MapReduceEntriesTask<K,V,U>
extends BulkTask<K,V,U> {
final Fun<Map.Entry<K,V>, ? extends U> transformer;
final BiFun<? super U, ? super U, ? extends U> reducer;
U result;
MapReduceEntriesTask<K,V,U> rights, nextRight;
... | 0true | src_main_java_jsr166e_ConcurrentHashMapV8.java |
1,599 | public class PersistencePackage implements Serializable {
private static final long serialVersionUID = 1L;
protected String ceilingEntityFullyQualifiedClassname;
protected String fetchTypeFullyQualifiedClassname;
protected PersistencePerspective persistencePerspective;
protected String[] custo... | 1no label | admin_broadleaf-open-admin-platform_src_main_java_org_broadleafcommerce_openadmin_dto_PersistencePackage.java |
874 | public class TransportSearchQueryThenFetchAction extends TransportSearchTypeAction {
@Inject
public TransportSearchQueryThenFetchAction(Settings settings, ThreadPool threadPool, ClusterService clusterService,
SearchServiceTransportAction searchService, SearchPhase... | 1no label | src_main_java_org_elasticsearch_action_search_type_TransportSearchQueryThenFetchAction.java |
378 | .ackTimeout(request.timeout()), new ActionListener<RepositoriesService.RegisterRepositoryResponse>() {
@Override
public void onResponse(RepositoriesService.RegisterRepositoryResponse response) {
listener.onResponse(new PutRepositoryResponse(response.isAcknowledge... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_repositories_put_TransportPutRepositoryAction.java |
487 | public interface CookieUtils {
public final static String CUSTOMER_COOKIE_NAME = "customerId";
public abstract String getCookieValue(HttpServletRequest request, String cookieName);
public abstract void setCookieValue(HttpServletResponse response, String cookieName, String cookieValue, String path, Intege... | 0true | common_src_main_java_org_broadleafcommerce_common_security_util_CookieUtils.java |
252 | service.submit(runnable, selector, new ExecutionCallback() {
public void onResponse(Object response) {
responseLatch.countDown();
}
public void onFailure(Throwable t) {
}
}); | 0true | hazelcast-client_src_test_java_com_hazelcast_client_executor_ClientExecutorServiceSubmitTest.java |
3,249 | public class AtomicReferencePermission extends InstancePermission {
private static final int READ = 0x4;
private static final int MODIFY = 0x8;
private static final int ALL = READ | MODIFY | CREATE | DESTROY;
public AtomicReferencePermission(String name, String... actions) {
super(name, actio... | 1no label | hazelcast_src_main_java_com_hazelcast_security_permission_AtomicReferencePermission.java |
294 | public interface ShardOperationFailedException extends Streamable, Serializable {
/**
* The index the operation failed on. Might return <tt>null</tt> if it can't be derived.
*/
String index();
/**
* The index the operation failed on. Might return <tt>-1</tt> if it can't be derived.
*/
... | 0true | src_main_java_org_elasticsearch_action_ShardOperationFailedException.java |
90 | public interface StaticAssetStorageService {
StaticAssetStorage findStaticAssetStorageById(Long id);
/**
* @deprecated Use createStaticAssetStorageFromFile instead.
* @return
*/
StaticAssetStorage create();
StaticAssetStorage readStaticAssetStorageByStaticAssetId(Long id);
Stati... | 0true | admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_file_service_StaticAssetStorageService.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 |
1,009 | transportService.sendRequest(node, transportShardAction, new ShardSingleOperationRequest(request, shard.id()), new BaseTransportResponseHandler<Response>() {
@Override
public Response newInstance() {
return newResponse();
... | 0true | src_main_java_org_elasticsearch_action_support_single_custom_TransportSingleCustomOperationAction.java |
494 | public class CloseIndexAction extends IndicesAction<CloseIndexRequest, CloseIndexResponse, CloseIndexRequestBuilder> {
public static final CloseIndexAction INSTANCE = new CloseIndexAction();
public static final String NAME = "indices/close";
private CloseIndexAction() {
super(NAME);
}
@Ov... | 0true | src_main_java_org_elasticsearch_action_admin_indices_close_CloseIndexAction.java |
485 | while (makeDbCall(databaseDocumentTxOne, new ODbRelatedCall<Boolean>() {
public Boolean call() {
return iteratorOne.hasNext();
}
})) { | 0true | core_src_main_java_com_orientechnologies_orient_core_db_tool_ODatabaseCompare.java |
5,811 | public class HighlightBuilder implements ToXContent {
private List<Field> fields;
private String tagsSchema;
private String[] preTags;
private String[] postTags;
private String order;
private String encoder;
private Boolean requireFieldMatch;
private String highlighterType;
... | 1no label | src_main_java_org_elasticsearch_search_highlight_HighlightBuilder.java |
433 | public enum OperationType {
NONDESTRUCTIVEREMOVE,
BASIC,
ADORNEDTARGETLIST,
MAP
} | 0true | common_src_main_java_org_broadleafcommerce_common_presentation_client_OperationType.java |
183 | static final class Node {
final boolean isData; // false if this is a request node
volatile Object item; // initially non-null if isData; CASed to match
volatile Node next;
volatile Thread waiter; // null until waiting
// CAS methods for fields
final boolean casN... | 0true | src_main_java_jsr166y_LinkedTransferQueue.java |
1,909 | public class QueryResult implements DataSerializable {
private List<Integer> partitionIds;
private final Set<QueryResultEntry> result = new LinkedHashSet<QueryResultEntry>();
public List<Integer> getPartitionIds() {
return partitionIds;
}
public void setPartitionIds(List<Integer> partitio... | 1no label | hazelcast_src_main_java_com_hazelcast_map_QueryResult.java |
98 | public enum Type {
POINT, BOX, CIRCLE, POLYGON;
} | 0true | titan-core_src_main_java_com_thinkaurelius_titan_core_attribute_Geoshape.java |
1,527 | @Component("blRelatedProductProcessor")
public class RelatedProductProcessor extends AbstractModelVariableModifierProcessor {
@Resource(name = "blRelatedProductsService")
protected RelatedProductsService relatedProductsService;
/**
* Sets the name of this processor to be used in Thymeleaf templat... | 1no label | core_broadleaf-framework-web_src_main_java_org_broadleafcommerce_core_web_processor_RelatedProductProcessor.java |
1,903 | public class QueryEventFilter extends EntryEventFilter {
Predicate predicate = null;
public QueryEventFilter(boolean includeValue, Data key, Predicate predicate) {
super(includeValue, key);
this.predicate = predicate;
}
public QueryEventFilter() {
super();
}
public O... | 1no label | hazelcast_src_main_java_com_hazelcast_map_QueryEventFilter.java |
263 | public class SloppyMathTests extends ElasticsearchTestCase {
@Test
public void testAccuracy() {
for (double lat1 = -89; lat1 <= 89; lat1+=1) {
final double lon1 = randomLongitude();
for (double i = -180; i <= 180; i+=1) {
final double lon2 = i;
... | 0true | src_test_java_org_apache_lucene_util_SloppyMathTests.java |
1,685 | @Entity
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "BLC_ADMIN_ROLE")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE, region="blStandardElements")
@AdminPresentationClass(friendlyName = "AdminRoleImpl_baseAdminRole")
public class AdminRoleImpl implements AdminRole, AdminMainEntity {
private s... | 1no label | admin_broadleaf-open-admin-platform_src_main_java_org_broadleafcommerce_openadmin_server_security_domain_AdminRoleImpl.java |
57 | public class OLockException extends OException {
private static final long serialVersionUID = 2215169397325875189L;
public OLockException(String iMessage) {
super(iMessage);
// OProfiler.getInstance().updateCounter("system.concurrency.OLockException", +1);
}
public OLockException(String iMessage, Exce... | 0true | commons_src_main_java_com_orientechnologies_common_concur_lock_OLockException.java |
1,574 | public class AdornedTargetCollectionMetadata extends CollectionMetadata {
private boolean ignoreAdornedProperties;
private String parentObjectClass;
private String[] maintainedAdornedTargetFields = {};
private String[] gridVisibleFields = {};
public boolean isIgnoreAdornedProperties() {
re... | 1no label | admin_broadleaf-open-admin-platform_src_main_java_org_broadleafcommerce_openadmin_dto_AdornedTargetCollectionMetadata.java |
552 | public class ClientTxnMultiMapProxy<K, V> extends ClientTxnProxy implements TransactionalMultiMap<K, V> {
public ClientTxnMultiMapProxy(String name, TransactionContextProxy proxy) {
super(name, proxy);
}
public boolean put(K key, V value) throws TransactionException {
TxnMultiMapPutRequest... | 0true | hazelcast-client_src_main_java_com_hazelcast_client_txn_proxy_ClientTxnMultiMapProxy.java |
935 | threadPool.executor(executor).execute(new Runnable() {
@Override
public void run() {
int shardIndex = -1;
for (final ShardIterator shardIt : shardsIts) {
shardIndex... | 0true | src_main_java_org_elasticsearch_action_support_broadcast_TransportBroadcastOperationAction.java |
143 | private static class LoaderConfiguration {
private static final Logger log =
LoggerFactory.getLogger(LoaderConfiguration.class);
private final boolean enabled;
private final List<ClassLoader> preferredLoaders;
private final boolean useCallerLoader;
private f... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_core_util_ReflectiveConfigOptionLoader.java |
1,766 | public class GeoUtils {
/** Earth ellipsoid major axis defined by WGS 84 in meters */
public static final double EARTH_SEMI_MAJOR_AXIS = 6378137.0; // meters (WGS 84)
/** Earth ellipsoid minor axis defined by WGS 84 in meters */
public static final double EARTH_SEMI_MINOR_AXIS = 6356752.314245; /... | 1no label | src_main_java_org_elasticsearch_common_geo_GeoUtils.java |
556 | public interface ORID extends OIdentifiable, OSerializableStream {
public static final char PREFIX = '#';
public static final char SEPARATOR = ':';
public static final int CLUSTER_MAX = 32767;
public static final int CLUSTER_ID_INV... | 0true | core_src_main_java_com_orientechnologies_orient_core_id_ORID.java |
43 | proposals.add(new ICompletionProposal() {
@Override
public Point getSelection(IDocument document) {
return null;
}
@Override
public Image getImage() {
... | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_complete_ModuleCompletions.java |
112 | @RunWith(HazelcastParallelClassRunner.class)
@Category(QuickTest.class)
public class ClientNearCacheTest {
private static final int MAX_CACHE_SIZE = 100;
private static final int MAX_TTL_SECONDS = 3;
private static final int MAX_IDLE_SECONDS = 1;
private static final String NEAR_CACHE_WITH_NO_INVALIDA... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_ClientNearCacheTest.java |
6,420 | public class LocalTransportChannel implements TransportChannel {
private final LocalTransport sourceTransport;
// the transport we will *send to*
private final LocalTransport targetTransport;
private final String action;
private final long requestId;
private final Version version;
public L... | 1no label | src_main_java_org_elasticsearch_transport_local_LocalTransportChannel.java |
17 | private class ResponseThreadRunnable implements Runnable {
private final BlockingQueue<TextCommand> blockingQueue = new ArrayBlockingQueue<TextCommand>(200);
private final Object stopObject = new Object();
@edu.umd.cs.findbugs.annotations.SuppressWarnings("RV_RETURN_VALUE_IGNORED_BAD_PRACTI... | 0true | hazelcast_src_main_java_com_hazelcast_ascii_TextCommandServiceImpl.java |
2,109 | public class DateMathParser {
private final FormatDateTimeFormatter dateTimeFormatter;
private final TimeUnit timeUnit;
public DateMathParser(FormatDateTimeFormatter dateTimeFormatter, TimeUnit timeUnit) {
this.dateTimeFormatter = dateTimeFormatter;
this.timeUnit = timeUnit;
}
pu... | 1no label | src_main_java_org_elasticsearch_common_joda_DateMathParser.java |
3,145 | public class TxnPollBackupOperation extends QueueOperation {
long itemId;
public TxnPollBackupOperation() {
}
public TxnPollBackupOperation(String name, long itemId) {
super(name);
this.itemId = itemId;
}
@Override
public void run() throws Exception {
response = g... | 1no label | hazelcast_src_main_java_com_hazelcast_queue_tx_TxnPollBackupOperation.java |
288 | @Repository("blDataDrivenEnumerationDao")
public class DataDrivenEnumerationDaoImpl implements DataDrivenEnumerationDao {
@PersistenceContext(unitName = "blPU")
protected EntityManager em;
@Resource(name = "blEntityConfiguration")
protected EntityConfiguration entityConfiguration;
@Override
... | 0true | common_src_main_java_org_broadleafcommerce_common_enumeration_dao_DataDrivenEnumerationDaoImpl.java |
708 | constructors[COLLECTION_REMOVE_LISTENER] = new ConstructorFunction<Integer, Portable>() {
public Portable createNew(Integer arg) {
return new CollectionRemoveListenerRequest();
}
}; | 0true | hazelcast_src_main_java_com_hazelcast_collection_CollectionPortableHook.java |
1,057 | public static enum Flag {
// Do not change the order of these flags we use
// the ordinal for encoding! Only append to the end!
Positions, Offsets, Payloads, FieldStatistics, TermStatistics;
} | 0true | src_main_java_org_elasticsearch_action_termvector_TermVectorRequest.java |
592 | public class IndicesSegmentResponse extends BroadcastOperationResponse implements ToXContent {
private ShardSegments[] shards;
private Map<String, IndexSegments> indicesSegments;
IndicesSegmentResponse() {
}
IndicesSegmentResponse(ShardSegments[] shards, ClusterState clusterState, int totalShar... | 0true | src_main_java_org_elasticsearch_action_admin_indices_segments_IndicesSegmentResponse.java |
75 | private static class ResourceElement
{
private Xid xid = null;
private XAResource resource = null;
private int status;
ResourceElement( Xid xid, XAResource resource )
{
this.xid = xid;
this.resource = resource;
status = RS_ENLISTED;
... | 0true | community_kernel_src_main_java_org_neo4j_kernel_impl_transaction_TransactionImpl.java |
841 | public class ReferenceWrapper {
private Data value;
public Data get() {
return value;
}
public void set(Data value) {
this.value = value;
}
public boolean compareAndSet(Data expect, Data value) {
if (!contains(expect)) {
return false;
}
thi... | 0true | hazelcast_src_main_java_com_hazelcast_concurrent_atomicreference_ReferenceWrapper.java |
653 | public final class OMVRBTreeIndexEngine<V> extends OSharedResourceAdaptiveExternal implements OIndexEngine<V> {
private int maxUpdatesBeforeSave;
private OMemoryWatchDog.Listener watchDog;
private OMVRBTreeDatabaseLazySave<Object, V> map;
public OMVRBTreeIndexEngine... | 1no label | core_src_main_java_com_orientechnologies_orient_core_index_engine_OMVRBTreeIndexEngine.java |
424 | private class ClientJob<KeyIn, ValueIn> extends AbstractJob<KeyIn, ValueIn> {
public ClientJob(String name, KeyValueSource<KeyIn, ValueIn> keyValueSource) {
super(name, ClientMapReduceProxy.this, keyValueSource);
}
@Override
protected <T> JobCompletableFuture<T> invoke(... | 0true | hazelcast-client_src_main_java_com_hazelcast_client_proxy_ClientMapReduceProxy.java |
536 | static class LicenseType {
private String name;
private String url;
public static LicenseType APACHE2 = new LicenseType("APACHE2", "http://www.apache.org/licenses/LICENSE-2.0.html");
public static LicenseType LGPL = new LicenseType("LGPL", "http://www.gnu.org/licenses/lgpl-3.0.html... | 0true | common_src_main_java_org_broadleafcommerce_common_util_PomEvaluator.java |
337 | public class ODatabaseFactory {
final WeakHashMap<ODatabaseComplex<?>, Thread> instances = new WeakHashMap<ODatabaseComplex<?>, Thread>();
public synchronized List<ODatabaseComplex<?>> getInstances(final String iDatabaseName) {
final List<ODatabaseComplex<?>> result = new ArrayList<ODatabaseComplex<?>>();
... | 1no label | core_src_main_java_com_orientechnologies_orient_core_db_ODatabaseFactory.java |
296 | public class OTraverseContext extends OBasicCommandContext {
private Set<ORID> history = new HashSet<ORID>();
private List<OTraverseAbstractProcess<?>> stack = new ArrayList<OTraverseAbstractProcess<?>>();
private int depth = -1;
public void push(final ... | 1no label | core_src_main_java_com_orientechnologies_orient_core_command_traverse_OTraverseContext.java |
663 | @Repository("blProductOptionDao")
public class ProductOptionDaoImpl implements ProductOptionDao {
@PersistenceContext(unitName="blPU")
protected EntityManager em;
@Resource(name="blEntityConfiguration")
protected EntityConfiguration entityConfiguration;
@Override
public List<ProductOp... | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_catalog_dao_ProductOptionDaoImpl.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.