Unnamed: 0 int64 0 6.45k | func stringlengths 37 143k | target class label 2
classes | project stringlengths 33 157 |
|---|---|---|---|
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 |
741 | public class ProductOptionType implements Serializable, BroadleafEnumerationType {
private static final long serialVersionUID = 1L;
private static final Map<String, ProductOptionType> TYPES = new LinkedHashMap<String, ProductOptionType>();
public static final ProductOptionType COLOR = new ProductOptionT... | 1no label | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_catalog_service_type_ProductOptionType.java |
8 | public interface OLazyIterator<T> extends Iterator<T> {
public T update(T iValue);
} | 0true | commons_src_main_java_com_orientechnologies_common_collection_OLazyIterator.java |
1,460 | public class OCommandExecutorSQLDeleteVertex extends OCommandExecutorSQLAbstract implements OCommandResultListener {
public static final String NAME = "DELETE VERTEX";
private ORecordId rid;
private int removed = 0;
private ODatabaseRecord database;
private OCommandRequest que... | 1no label | graphdb_src_main_java_com_orientechnologies_orient_graph_sql_OCommandExecutorSQLDeleteVertex.java |
110 | private static class LatchMembershipListener implements MembershipListener {
private final CountDownLatch latch;
private LatchMembershipListener(CountDownLatch latch) {
this.latch = latch;
}
@Override
public void memberAdded(MembershipEvent membershipEvent) {
... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_ClientMemberAttributeTest.java |
16 | public static interface AsynchronousCompletionTask {
} | 0true | src_main_java_jsr166e_CompletableFuture.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 |
111 | public class DoubleMaxUpdater extends Striped64 implements Serializable {
private static final long serialVersionUID = 7249069246863182397L;
/**
* Long representation of negative infinity. See class Double
* internal documentation for explanation.
*/
private static final long MIN_AS_LONG = 0x... | 0true | src_main_java_jsr166e_DoubleMaxUpdater.java |
5,224 | static class Bucket extends InternalHistogram.Bucket implements DateHistogram.Bucket {
private final ValueFormatter formatter;
Bucket(long key, long docCount, InternalAggregations aggregations, ValueFormatter formatter) {
super(key, docCount, aggregations);
this.formatter =... | 1no label | src_main_java_org_elasticsearch_search_aggregations_bucket_histogram_InternalDateHistogram.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 |
392 | static class UnLockThread extends Thread{
public Exception exception=null;
public MultiMap mm=null;
public Object key=null;
public UnLockThread(MultiMap mm, Object key){
this.mm = mm;
this.key = key;
}
public void run() {
try{
... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_multimap_ClientMultiMapLockTest.java |
280 | public abstract class MessageCreator {
private JavaMailSender mailSender;
public MessageCreator(JavaMailSender mailSender) {
this.mailSender = mailSender;
}
public void sendMessage(final HashMap<String,Object> props) throws MailException {
MimeMessagePreparator preparator = bu... | 1no label | common_src_main_java_org_broadleafcommerce_common_email_service_message_MessageCreator.java |
350 | Thread t = new Thread(new Runnable() {
@Override
public void run() {
try {
Thread.sleep(request.delay.millis());
} catch (InterruptedException e) {
// ignore
}
... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_node_shutdown_TransportNodesShutdownAction.java |
40 | public interface Action<A> { void apply(A a); } | 0true | src_main_java_jsr166e_ConcurrentHashMapV8.java |
381 | public class PutItemsThread extends Thread{
public static final int MAX_ITEMS = 1000;
public final MyEntryListener listener = new MyEntryListener();
public HazelcastInstance hzInstance;
public MultiMap mm;
public String id;
public PutItemsThread(HazelcastInstance hz... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_multimap_ClientMultiMapListenerStressTest.java |
150 | @Entity
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "BLC_SC_TYPE")
@Cache(usage= CacheConcurrencyStrategy.NONSTRICT_READ_WRITE, region="blCMSElements")
@AdminPresentationClass(populateToOneFields = PopulateToOneFieldsEnum.TRUE, friendlyName = "StructuredContentTypeImpl_baseStructuredContentType")
publ... | 0true | admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_structure_domain_StructuredContentTypeImpl.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 |
2,603 | static class NotMasterException extends ElasticsearchIllegalStateException {
@Override
public Throwable fillInStackTrace() {
return null;
}
} | 1no label | src_main_java_org_elasticsearch_discovery_zen_fd_MasterFaultDetection.java |
1,053 | private static class IndexComparator implements Comparator<OIndex<?>> {
private static final IndexComparator INSTANCE = new IndexComparator();
public int compare(final OIndex<?> indexOne, final OIndex<?> indexTwo) {
return indexOne.getDefinition().getParamCount() - indexTwo.getDefinition().getParamCoun... | 1no label | core_src_main_java_com_orientechnologies_orient_core_sql_OCommandExecutorSQLSelect.java |
210 | public class CustomPassageFormatter extends PassageFormatter {
private final String preTag;
private final String postTag;
private final Encoder encoder;
public CustomPassageFormatter(String preTag, String postTag, Encoder encoder) {
this.preTag = preTag;
this.postTag = postTag;
... | 0true | src_main_java_org_apache_lucene_search_postingshighlight_CustomPassageFormatter.java |
2,104 | public class ReplaceOperation extends BasePutOperation {
private boolean successful = false;
public ReplaceOperation(String name, Data dataKey, Data value) {
super(name, dataKey, value);
}
public ReplaceOperation() {
}
public void run() {
final Object oldValue = recordStore.r... | 1no label | hazelcast_src_main_java_com_hazelcast_map_operation_ReplaceOperation.java |
4,876 | public class RestAllocationAction extends AbstractCatAction {
@Inject
public RestAllocationAction(Settings settings, Client client, RestController controller) {
super(settings, client);
controller.registerHandler(GET, "/_cat/allocation", this);
controller.registerHandler(GET, "/_cat/all... | 1no label | src_main_java_org_elasticsearch_rest_action_cat_RestAllocationAction.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 |
2,067 | public class MapReplicationOperation extends AbstractOperation {
private Map<String, Set<RecordReplicationInfo>> data;
private Map<String, Boolean> mapInitialLoadInfo;
private Map<String, List<DelayedEntry>> delayedEntries;
public MapReplicationOperation() {
}
public MapReplicationOperation(M... | 1no label | hazelcast_src_main_java_com_hazelcast_map_operation_MapReplicationOperation.java |
1,213 | public class PaymentLogEventType implements Serializable, BroadleafEnumerationType {
private static final long serialVersionUID = 1L;
private static final Map<String, PaymentLogEventType> TYPES = new LinkedHashMap<String, PaymentLogEventType>();
public static final PaymentLogEventType START = new Paymen... | 1no label | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_payment_service_type_PaymentLogEventType.java |
2,977 | public class UnsortedIndexStore implements IndexStore {
private final ConcurrentMap<Comparable, ConcurrentMap<Data, QueryableEntry>> mapRecords
= new ConcurrentHashMap<Comparable, ConcurrentMap<Data, QueryableEntry>>(1000);
@Override
public void getSubRecordsBetween(MultiResultSet results, Comp... | 1no label | hazelcast_src_main_java_com_hazelcast_query_impl_UnsortedIndexStore.java |
292 | public interface OScriptFormatter {
public String getFunctionDefinition(OFunction iFunction);
public String getFunctionInvoke(OFunction iFunction, final Object[] iArgs);
} | 0true | core_src_main_java_com_orientechnologies_orient_core_command_script_formatter_OScriptFormatter.java |
544 | flushAction.execute(Requests.flushRequest(request.indices()), new ActionListener<FlushResponse>() {
@Override
public void onResponse(FlushResponse flushResponse) {
// get all types that need to be deleted.
ImmutableOpenMap<String, ImmutableOpenMap<Strin... | 1no label | src_main_java_org_elasticsearch_action_admin_indices_mapping_delete_TransportDeleteMappingAction.java |
618 | private static final class MultiValuesTransformer implements OIndexEngine.ValuesTransformer<Set<OIdentifiable>> {
private static final MultiValuesTransformer INSTANCE = new MultiValuesTransformer();
@Override
public Collection<OIdentifiable> transformFromValue(Set<OIdentifiable> value) {
return val... | 1no label | core_src_main_java_com_orientechnologies_orient_core_index_OIndexMultiValues.java |
70 | public abstract class AllPartitionsClientRequest extends ClientRequest {
@Override
final void process() throws Exception {
ClientEndpoint endpoint = getEndpoint();
OperationFactory operationFactory = new OperationFactoryWrapper(createOperationFactory(), endpoint.getUuid());
Map<Integer,... | 0true | hazelcast_src_main_java_com_hazelcast_client_AllPartitionsClientRequest.java |
1,096 | @SuppressWarnings("serial")
public class AboutDialog extends JDialog {
private static ImageIcon mctLogoIcon = new ImageIcon(ClassLoader.getSystemResource("images/mctlogo.png"));
public AboutDialog(JFrame frame) {
super(frame);
setDefaultCloseOperation(DISPOSE_ON_CLOSE);
Image image = ... | 1no label | platform_src_main_java_gov_nasa_arc_mct_gui_dialogs_AboutDialog.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 |
2,638 | public class ClassDefinitionImpl extends BinaryClassDefinition implements ClassDefinition {
private final List<FieldDefinition> fieldDefinitions = new ArrayList<FieldDefinition>();
private final Map<String, FieldDefinition> fieldDefinitionsMap = new HashMap<String,
FieldDefinition>();
private f... | 1no label | hazelcast_src_main_java_com_hazelcast_nio_serialization_ClassDefinitionImpl.java |
19 | final class InverseEntryIterator extends AbstractEntryIterator<K, V, Map.Entry<K, V>> {
InverseEntryIterator(final OMVRBTreeEntry<K, V> last) {
super(last);
// we have to set ourselves after current index to make iterator work
if (last != null) {
pageIndex = last.getTree().getPageIndex()... | 0true | commons_src_main_java_com_orientechnologies_common_collection_OMVRBTree.java |
1,839 | @Component("blUriPropertyValidator")
public class UriPropertyValidator extends ValidationConfigurationBasedPropertyValidator {
protected static final Log LOG = LogFactory.getLog(UriPropertyValidator.class);
protected String ERROR_KEY_BEGIN_WITH_SLASH = "uriPropertyValidatorMustBeginWithSlashError";
protec... | 1no label | admin_broadleaf-open-admin-platform_src_main_java_org_broadleafcommerce_openadmin_server_service_persistence_validation_UriPropertyValidator.java |
449 | public class ClusterStatsRequestBuilder extends NodesOperationRequestBuilder<ClusterStatsRequest, ClusterStatsResponse, ClusterStatsRequestBuilder> {
public ClusterStatsRequestBuilder(ClusterAdminClient clusterClient) {
super((InternalClusterAdminClient) clusterClient, new ClusterStatsRequest());
}
... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_stats_ClusterStatsRequestBuilder.java |
608 | public class OIndexManagerRemote extends OIndexManagerAbstract {
private static final String QUERY_DROP = "drop index %s";
public OIndexManagerRemote(final ODatabaseRecord iDatabase) {
super(iDatabase);
}
protected OIndex<?> getRemoteIndexInstance(boolean isMultiValueIndex, String type, String name, Set<S... | 1no label | core_src_main_java_com_orientechnologies_orient_core_index_OIndexManagerRemote.java |
1,303 | @Test
public class LocalPaginatedStorageUpdateCrashRestore {
private ODatabaseDocumentTx baseDocumentTx;
private ODatabaseDocumentTx testDocumentTx;
private File buildDir;
private int idGen = 0;
private OLockManager<Integer, Th... | 1no label | server_src_test_java_com_orientechnologies_orient_core_storage_impl_local_paginated_LocalPaginatedStorageUpdateCrashRestore.java |
96 | class ODirectMemoryFactory {
public static final ODirectMemoryFactory INSTANCE = new ODirectMemoryFactory();
private static final ODirectMemory directMemory;
static {
ODirectMemory localDirectMemory = null;
try {
final Class<?> jnaClass = Class.forName("com.orientechnologies.nio.OJNADirectMem... | 1no label | commons_src_main_java_com_orientechnologies_common_directmemory_ODirectMemoryFactory.java |
1,270 | public class OStorageLocal extends OStorageLocalAbstract {
private final int DELETE_MAX_RETRIES;
private final int DELETE_WAIT_TIME;
private final Map<String, OCluster> clusterMap = new LinkedHashMap<String, OCluster>();
private OCluster[] ... | 1no label | core_src_main_java_com_orientechnologies_orient_core_storage_impl_local_OStorageLocal.java |
143 | @Test
public class FloatSerializerTest {
private static final int FIELD_SIZE = 4;
private static final Float OBJECT = 3.14f;
private OFloatSerializer floatSerializer;
byte[] stream = new byte[FIELD_SIZE];
@BeforeClass
public void beforeClass() {
floatSerializer = new OFl... | 0true | commons_src_test_java_com_orientechnologies_common_serialization_types_FloatSerializerTest.java |
501 | public class CreateIndexAction extends IndicesAction<CreateIndexRequest, CreateIndexResponse, CreateIndexRequestBuilder> {
public static final CreateIndexAction INSTANCE = new CreateIndexAction();
public static final String NAME = "indices/create";
private CreateIndexAction() {
super(NAME);
}
... | 0true | src_main_java_org_elasticsearch_action_admin_indices_create_CreateIndexAction.java |
182 | public class BroadleafPageController extends BroadleafAbstractController implements Controller {
protected static String MODEL_ATTRIBUTE_NAME="page";
@Override
public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws Exception {
ModelAndView model =... | 0true | admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_web_controller_BroadleafPageController.java |
122 | public abstract class AbstractPageRuleProcessor implements PageRuleProcessor {
private static final Log LOG = LogFactory.getLog(AbstractPageRuleProcessor.class);
private Map expressionCache = Collections.synchronizedMap(new LRUMap(1000));
private ParserContext parserContext;
private Map<String, String>... | 0true | admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_page_service_AbstractPageRuleProcessor.java |
5,346 | public abstract class ValuesSourceMetricsAggregatorParser<S extends MetricsAggregation> implements Aggregator.Parser {
protected boolean requiresSortedValues() {
return false;
}
@Override
public AggregatorFactory parse(String aggregationName, XContentParser parser, SearchContext context) throw... | 1no label | src_main_java_org_elasticsearch_search_aggregations_metrics_ValuesSourceMetricsAggregatorParser.java |
180 | public class OByteBufferUtilsTest {
private ByteBuffer buffer1;
private ByteBuffer buffer2;
@BeforeMethod
public void setUp() throws Exception {
buffer1 = ByteBuffer.allocate(10);
buffer2 = ByteBuffer.allocate(10);
}
@Test
public void testSplitShort() throws Exception {
short var = 42;
... | 0true | core_src_test_java_com_orientechnologies_common_util_OByteBufferUtilsTest.java |
3,204 | public class ReplicationMessage<K, V>
implements IdentifiedDataSerializable {
private String name;
private K key;
private V value;
private VectorClock vectorClock;
private Member origin;
private int updateHash;
private long ttlMillis;
public ReplicationMessage() {
}
pu... | 1no label | hazelcast_src_main_java_com_hazelcast_replicatedmap_messages_ReplicationMessage.java |
377 | public static class TestReducerFactory
implements ReducerFactory<String, Integer, Integer> {
@Override
public Reducer<String, Integer, Integer> newReducer(String key) {
return new TestReducer();
}
} | 0true | hazelcast-client_src_test_java_com_hazelcast_client_mapreduce_DistributedMapperClientMapReduceTest.java |
411 | public class CleanImportsHandler extends AbstractHandler {
@Override
public Object execute(ExecutionEvent event)
throws ExecutionException {
CeylonEditor editor = (CeylonEditor) getCurrentEditor();
IDocument doc = editor.getCeylonSourceViewer().getDocument();
cleanImpor... | 1no label | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_imports_CleanImportsHandler.java |
207 | private class ClientPacketProcessor implements Runnable {
final ClientPacket packet;
ClientPacketProcessor(ClientPacket packet) {
this.packet = packet;
}
@Override
public void run() {
final ClientConnection conn = (ClientConnection) packet.getConn()... | 1no label | hazelcast-client_src_main_java_com_hazelcast_client_connection_nio_ClientConnectionManagerImpl.java |
461 | public abstract class IndicesAction<Request extends ActionRequest, Response extends ActionResponse, RequestBuilder extends ActionRequestBuilder<Request, Response, RequestBuilder>>
extends GenericAction<Request, Response> {
protected IndicesAction(String name) {
super(name);
}
public abstra... | 0true | src_main_java_org_elasticsearch_action_admin_indices_IndicesAction.java |
244 | static final Comparator<Pair<Long,BytesRef>> weightComparator = new Comparator<Pair<Long,BytesRef>> () {
@Override
public int compare(Pair<Long,BytesRef> left, Pair<Long,BytesRef> right) {
return left.output1.compareTo(right.output1);
}
}; | 0true | src_main_java_org_apache_lucene_search_suggest_analyzing_XAnalyzingSuggester.java |
6,323 | public static class Names {
public static final String SAME = "same";
public static final String GENERIC = "generic";
public static final String GET = "get";
public static final String INDEX = "index";
public static final String BULK = "bulk";
public static final Stri... | 1no label | src_main_java_org_elasticsearch_threadpool_ThreadPool.java |
827 | getDatabase().getStorage().callInLock(new Callable<Object>() {
@Override
public Object call() throws Exception {
final OClass cls = classes.get(key);
if (cls == null)
throw new OSchemaException("Class " + iClassName + " was not found in current database");
if (cls.getB... | 1no label | core_src_main_java_com_orientechnologies_orient_core_metadata_schema_OSchemaShared.java |
144 | public static class Order {
public static final int Rules = 1000;
} | 0true | admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_structure_domain_StructuredContentImpl.java |
1,513 | @Component("blCategoriesProcessor")
public class CategoriesProcessor extends AbstractModelVariableModifierProcessor {
@Resource(name = "blCatalogService")
protected CatalogService catalogService;
/**
* Sets the name of this processor to be used in Thymeleaf template
*/
public CategoriesP... | 1no label | core_broadleaf-framework-web_src_main_java_org_broadleafcommerce_core_web_processor_CategoriesProcessor.java |
749 | public class OBonsaiBucketAbstract extends ODurablePage {
public OBonsaiBucketAbstract(ODirectMemoryPointer pagePointer, TrackMode trackMode) {
super(pagePointer, trackMode);
}
protected void setBucketPointer(int pageOffset, OBonsaiBucketPointer value) throws IOException {
setLongValue(pageOffset, value.... | 1no label | core_src_main_java_com_orientechnologies_orient_core_index_sbtreebonsai_local_OBonsaiBucketAbstract.java |
114 | public interface PageTemplate extends Serializable {
public Long getId();
public void setId(Long id);
public String getTemplateName();
public void setTemplateName(String templateName);
public String getTemplateDescription();
public void setTemplateDescription(String templateDescription);
... | 0true | admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_page_domain_PageTemplate.java |
10 | @SuppressWarnings("serial")
public class OLimitedMap<K, V> extends LinkedHashMap<K, V> {
protected final int limit;
public OLimitedMap(final int initialCapacity, final float loadFactor, final int limit) {
super(initialCapacity, loadFactor, true);
this.limit = limit;
}
@Override
protected boolean rem... | 0true | commons_src_main_java_com_orientechnologies_common_collection_OLimitedMap.java |
6,090 | clusterService.submitStateUpdateTask(request.cause(), new TimeoutClusterStateUpdateTask() {
RestoreInfo restoreInfo = null;
@Override
public ClusterState execute(ClusterState currentState) {
// Check if another restore process is already r... | 1no label | src_main_java_org_elasticsearch_snapshots_RestoreService.java |
86 | nodeEngine.getExecutionService().schedule(new Runnable() {
public void run() {
if (connection.live()) {
try {
connection.close();
} catch (Throwable e) {
... | 1no label | hazelcast_src_main_java_com_hazelcast_client_ClientEngineImpl.java |
634 | public class IndicesStatusRequest extends BroadcastOperationRequest<IndicesStatusRequest> {
private boolean recovery = false;
private boolean snapshot = false;
public IndicesStatusRequest() {
this(Strings.EMPTY_ARRAY);
}
public IndicesStatusRequest(String... indices) {
super(indi... | 0true | src_main_java_org_elasticsearch_action_admin_indices_status_IndicesStatusRequest.java |
126 | public abstract class ClientRequest implements Portable, SecureRequest {
protected int callId = -1;
protected transient ClientEngineImpl clientEngine;
protected transient Object service;
protected transient ClientEndpoint endpoint;
/**
* Some request needs to use a single connection like tran... | 0true | hazelcast_src_main_java_com_hazelcast_client_ClientRequest.java |
1,229 | @Entity
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "BLC_SHIPPING_RATE")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE, region="blStandardElements")
@Deprecated
public class ShippingRateImpl implements ShippingRate {
private static final long serialVersionUID = 1L;
@Id
@GeneratedVal... | 1no label | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_pricing_domain_ShippingRateImpl.java |
5 | public class OIterableObject<T> implements Iterable<T>, OResettable, Iterator<T> {
private final T object;
private boolean alreadyRead = false;
public OIterableObject(T o) {
object = o;
}
/**
* Returns an iterator over a set of elements of type T.
*
* @return an Iterator.
*/
public Itera... | 0true | commons_src_main_java_com_orientechnologies_common_collection_OIterableObject.java |
33 | @Test
public class OMVRBTreeCompositeTest {
protected OMVRBTree<OCompositeKey, Double> tree;
@BeforeMethod
public void beforeMethod() throws Exception {
tree = new OMVRBTreeMemory<OCompositeKey, Double>(4, 0.5f, 2);
for (double i = 1; i < 4; i++) {
for (double j = 1; j < 10; j++) {
final OC... | 0true | core_src_test_java_com_orientechnologies_common_collection_OMVRBTreeCompositeTest.java |
2,074 | public class MultipleEntryOperation extends AbstractMapOperation
implements BackupAwareOperation, PartitionAwareOperation {
private static final EntryEventType __NO_NEED_TO_FIRE_EVENT = null;
private EntryProcessor entryProcessor;
private Set<Data> keys;
MapEntrySet response;
public Multi... | 1no label | hazelcast_src_main_java_com_hazelcast_map_operation_MultipleEntryOperation.java |
5 | public class BrowserInformationControl extends AbstractInformationControl
implements IInformationControlExtension2, IDelayedInputChangeProvider {
/**
* Tells whether the SWT Browser widget and hence this information
* control is available.
*
* @param parent the parent component us... | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_browser_BrowserInformationControl.java |
298 | new Thread() {
public void run() {
l.forceUnlock();
latch.countDown();
}
}.start(); | 0true | hazelcast-client_src_test_java_com_hazelcast_client_lock_ClientLockTest.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 |
623 | static final class Fields {
static final XContentBuilderString ROUTING = new XContentBuilderString("routing");
static final XContentBuilderString STATE = new XContentBuilderString("state");
static final XContentBuilderString PRIMARY = new XContentBuilderString("primary");
static fina... | 0true | src_main_java_org_elasticsearch_action_admin_indices_stats_ShardStats.java |
863 | public class MoveFileRefactoringParticipant extends MoveParticipant {
private IFile file;
private static Map<String,TextFileChange> fileChanges =
new HashMap<String,TextFileChange>();
private static List<IResource> movingFiles =
new ArrayList<IResource>();
@Overr... | 1no label | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_refactor_MoveFileRefactoringParticipant.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 |
2,589 | public class ElectMasterService extends AbstractComponent {
public static final String DISCOVERY_ZEN_MINIMUM_MASTER_NODES = "discovery.zen.minimum_master_nodes";
private final NodeComparator nodeComparator = new NodeComparator();
private volatile int minimumMasterNodes;
public ElectMasterService(Set... | 1no label | src_main_java_org_elasticsearch_discovery_zen_elect_ElectMasterService.java |
85 | @Entity
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "BLC_STATIC_ASSET_STRG")
public class StaticAssetStorageImpl implements StaticAssetStorage {
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue(generator = "StaticAssetStorageId")
@GenericGenerator(
name="S... | 0true | admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_file_domain_StaticAssetStorageImpl.java |
291 | public interface DataDrivenEnumerationValue extends Serializable {
public String getDisplay();
public void setDisplay(String display);
public Boolean getHidden();
public void setHidden(Boolean hidden);
public Long getId();
public void setId(Long id);
public String getKey();
p... | 0true | common_src_main_java_org_broadleafcommerce_common_enumeration_domain_DataDrivenEnumerationValue.java |
2,361 | public class MapCombineTask<KeyIn, ValueIn, KeyOut, ValueOut, Chunk> {
private final AtomicBoolean cancelled = new AtomicBoolean();
private final Mapper<KeyIn, ValueIn, KeyOut, ValueOut> mapper;
private final MappingPhase<KeyIn, ValueIn, KeyOut, ValueOut> mappingPhase;
private final KeyValueSource<Key... | 1no label | hazelcast_src_main_java_com_hazelcast_mapreduce_impl_task_MapCombineTask.java |
1,138 | public class OSQLMethodAsList extends OAbstractSQLMethod {
public static final String NAME = "aslist";
public OSQLMethodAsList() {
super(NAME);
}
@SuppressWarnings("unchecked")
@Override
public Object execute(OIdentifiable iCurrentRecord, OCommandContext iContext, Object ioResult, Object[] iMethodPar... | 1no label | core_src_main_java_com_orientechnologies_orient_core_sql_method_misc_OSQLMethodAsList.java |
8 | setInput(new BrowserInput(null) {
@Override
public String getHtml() {
return content;
}
@Override
public String getInputName() {
return "";
}
}); | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_browser_BrowserInformationControl.java |
1,541 | @Service("bli18nUpdateCartServiceExtensionHandler")
public class i18nUpdateCartServiceExtensionHandler extends AbstractUpdateCartServiceExtensionHandler
implements UpdateCartServiceExtensionHandler {
protected static final Log LOG = LogFactory.getLog(i18nUpdateCartServiceExtensionHandler.class);
@Valu... | 1no label | core_broadleaf-framework-web_src_main_java_org_broadleafcommerce_core_web_service_i18nUpdateCartServiceExtensionHandler.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 |
27 | static final class RunAfterEither extends Completion {
final CompletableFuture<?> src;
final CompletableFuture<?> snd;
final Runnable fn;
final CompletableFuture<Void> dst;
final Executor executor;
RunAfterEither(CompletableFuture<?> src,
Comple... | 0true | src_main_java_jsr166e_CompletableFuture.java |
974 | public class OCompositeKeySerializer implements OBinarySerializer<OCompositeKey>, OStreamSerializer {
public static final String NAME = "cks";
public static final OCompositeKeySerializer INSTANCE = new OCompositeKeySerializer();
public static final byte ID = 14;
@SuppressWarnings("unchecked")
public int ge... | 1no label | core_src_main_java_com_orientechnologies_orient_core_serialization_serializer_binary_impl_index_OCompositeKeySerializer.java |
162 | @Test
public class StringSerializerTest {
private int FIELD_SIZE;
private String OBJECT;
private OStringSerializer stringSerializer;
byte[] stream;
@BeforeClass
public void beforeClass() {
stringSerializer = new OStringSerializer();
Random random = new Ra... | 0true | commons_src_test_java_com_orientechnologies_common_serialization_types_StringSerializerTest.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 |
94 | @Target(ElementType.PARAMETER)
@Retention(RetentionPolicy.RUNTIME)
public @interface ConsoleParameter {
String name() default "";
String description() default "";
boolean optional() default false;
} | 0true | commons_src_main_java_com_orientechnologies_common_console_annotation_ConsoleParameter.java |
313 | public class StandardConfigLocations {
private static final Log LOG = LogFactory.getLog(StandardConfigLocations.class);
public static final String EXTRACONFIGLOCATIONSKEY = "extra.config.locations";
public static final int ALLCONTEXTTYPE = 0;
public static final int WEBCONTEXTTYPE = 1;
public ... | 0true | common_src_main_java_org_broadleafcommerce_common_extensibility_context_StandardConfigLocations.java |
2,609 | static class PingRequest extends TransportRequest {
// the (assumed) node id we are pinging
private String nodeId;
PingRequest() {
}
PingRequest(String nodeId) {
this.nodeId = nodeId;
}
@Override
public void readFrom(StreamInput in) thr... | 1no label | src_main_java_org_elasticsearch_discovery_zen_fd_NodesFaultDetection.java |
109 | @RunWith(HazelcastSerialClassRunner.class)
@Category(QuickTest.class)
public class ClientMemberAttributeTest extends HazelcastTestSupport {
@After
public void cleanup() {
HazelcastClient.shutdownAll();
Hazelcast.shutdownAll();
}
@Test(timeout = 40000)
public void testChangeMemberAt... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_ClientMemberAttributeTest.java |
488 | public class ClearIndicesCacheRequest extends BroadcastOperationRequest<ClearIndicesCacheRequest> {
private boolean filterCache = false;
private boolean fieldDataCache = false;
private boolean idCache = false;
private boolean recycler = false;
private String[] fields = null;
private String[] fi... | 0true | src_main_java_org_elasticsearch_action_admin_indices_cache_clear_ClearIndicesCacheRequest.java |
5,148 | public final class BytesRefHash extends AbstractHash {
private LongArray startOffsets;
private ByteArray bytes;
private IntArray hashes; // we cache hashes for faster re-hashing
private final BytesRef spare;
// Constructor with configurable capacity and default maximum load factor.
public Byte... | 1no label | src_main_java_org_elasticsearch_search_aggregations_bucket_BytesRefHash.java |
282 | @SuppressWarnings("serial")
public class OCommandScript extends OCommandRequestTextAbstract {
private String language;
private CompiledScript compiledScript;
public OCommandScript() {
useCache = true;
}
public OCommandScript(final String iLanguage, final String iText) {
super(iText);
lan... | 0true | core_src_main_java_com_orientechnologies_orient_core_command_script_OCommandScript.java |
3 | Collection<Long> perm2Ids = BLCCollectionUtils.collect(perm2, new TypedTransformer<Long>() {
@Override
public Long transform(Object input) {
return ((ProductOptionValue) input).getId();
}
}); | 0true | admin_broadleaf-admin-module_src_main_java_org_broadleafcommerce_admin_server_service_AdminCatalogServiceImpl.java |
5,119 | public class AggregationPhase implements SearchPhase {
private final AggregationParseElement parseElement;
private final AggregationBinaryParseElement binaryParseElement;
@Inject
public AggregationPhase(AggregationParseElement parseElement, AggregationBinaryParseElement binaryParseElement) {
... | 1no label | src_main_java_org_elasticsearch_search_aggregations_AggregationPhase.java |
1,072 | public class VertexLongList implements VertexListInternal {
private final StandardTitanTx tx;
private LongArrayList vertices;
private boolean sorted;
public VertexLongList(StandardTitanTx tx, LongArrayList vertices, boolean sorted) {
assert !sorted || AbstractLongListUtil.isSorted(vertices);
... | 1no label | titan-core_src_main_java_com_thinkaurelius_titan_graphdb_query_vertex_VertexLongList.java |
46 | static final class PackageDescriptorProposal extends CompletionProposal {
PackageDescriptorProposal(int offset, String prefix, String packageName) {
super(offset, prefix, PACKAGE,
"package " + packageName,
"package " + packageName + ";");
... | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_complete_PackageCompletions.java |
4 | public class CeylonAndroidPlugin extends AbstractUIPlugin {
public static final String PLUGIN_ID = "com.redhat.ceylon.eclipse.android.plugin";
private static CeylonAndroidPlugin plugin;
@Override
public void start(BundleContext context) throws Exception {
super.start(context);
... | 0true | plugins_com.redhat.ceylon.eclipse.android.plugin_src_com_redhat_ceylon_eclipse_android_plugin_CeylonAndroidPlugin.java |
715 | class ShardCountRequest extends BroadcastShardOperationRequest {
private float minScore;
private BytesReference querySource;
private String[] types = Strings.EMPTY_ARRAY;
private long nowInMillis;
@Nullable
private String[] filteringAliases;
ShardCountRequest() {
}
public Sha... | 0true | src_main_java_org_elasticsearch_action_count_ShardCountRequest.java |
55 | @SuppressWarnings("serial")
static final class ForEachMappingTask<K,V>
extends BulkTask<K,V,Void> {
final BiAction<? super K, ? super V> action;
ForEachMappingTask
(BulkTask<K,V,?> p, int b, int i, int f, Node<K,V>[] t,
BiAction<? super K,? super V> action) {
... | 0true | src_main_java_jsr166e_ConcurrentHashMapV8.java |
293 | public class OTraverse implements OCommand, Iterable<OIdentifiable>, Iterator<OIdentifiable> {
private OTraverseContext context = new OTraverseContext();
private OCommandPredicate predicate;
private Iterator<? extends OIdentifiable> target;
private List<Object> ... | 1no label | core_src_main_java_com_orientechnologies_orient_core_command_traverse_OTraverse.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.