Unnamed: 0 int64 0 6.45k | func stringlengths 29 253k | target class label 2
classes | project stringlengths 36 167 |
|---|---|---|---|
3,127 | class FailEngineOnMergeFailure implements MergeSchedulerProvider.FailureListener {
@Override
public void onFailedMerge(MergePolicy.MergeException e) {
failEngine(e);
}
} | 1no label | src_main_java_org_elasticsearch_index_engine_internal_InternalEngine.java |
1,211 | THREAD_LOCAL {
@Override
<T> Recycler<T> build(Recycler.C<T> c, int limit, int availableProcessors) {
return threadLocal(dequeFactory(c, limit));
}
}, | 0true | src_main_java_org_elasticsearch_cache_recycler_CacheRecycler.java |
511 | @RunWith(HazelcastSerialClassRunner.class)
@Category(NightlyTest.class)
public class MapUpdateStressTest extends StressTestSupport {
public static final int CLIENT_THREAD_COUNT = 5;
public static final int MAP_SIZE = 100 * 1000;
private HazelcastInstance client;
private IMap<Integer, Integer> map;
... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_stress_MapUpdateStressTest.java |
291 | public class NoSuchNodeException extends FailedNodeException {
public NoSuchNodeException(String nodeId) {
super(nodeId, "No such node [" + nodeId + "]", null);
}
} | 0true | src_main_java_org_elasticsearch_action_NoSuchNodeException.java |
170 | public interface BaseTransactionConfig {
/**
* Returns the commit time of this transaction which is either a custom timestamp provided
* by the user, the commit time as set by the enclosing operation, or the first time this method is called.
*
* @return commit timestamp for this transaction
... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_diskstorage_BaseTransactionConfig.java |
1,483 | private class RoutingTableUpdater implements Runnable {
@Override
public void run() {
reroute();
}
} | 0true | src_main_java_org_elasticsearch_cluster_routing_RoutingService.java |
1,889 | @Target(ANNOTATION_TYPE)
@Retention(RUNTIME)
public @interface ScopeAnnotation {
} | 0true | src_main_java_org_elasticsearch_common_inject_ScopeAnnotation.java |
929 | public enum BroadcastOperationThreading {
/**
* No threads are used, all the local shards operations will be performed on the calling
* thread.
*/
NO_THREADS((byte) 0),
/**
* The local shards operations will be performed in serial manner on a single forked thread.
*/
SINGLE_THRE... | 0true | src_main_java_org_elasticsearch_action_support_broadcast_BroadcastOperationThreading.java |
1,701 | public class BoundedTreeSet<E> extends TreeSet<E> {
private final int size;
public BoundedTreeSet(int size) {
this.size = size;
}
public BoundedTreeSet(Comparator<? super E> comparator, int size) {
super(comparator);
this.size = size;
}
@Override
public boolean ad... | 0true | src_main_java_org_elasticsearch_common_collect_BoundedTreeSet.java |
1,792 | public interface DownloadProgress {
/**
* begin a download
*/
void beginDownload();
/**
* tick handler
*/
void onTick();
/**
* end a download
*/
void endDownload();
} | 0true | src_main_java_org_elasticsearch_common_http_client_HttpDownloadHelper.java |
132 | private final class InitializerValueProposal
implements ICompletionProposal, ICompletionProposalExtension2 {
private final String text;
private final Image image;
private final int offset;
private InitializerValueProposal(int offset, String text, Image image) {... | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_correct_InitializerProposal.java |
675 | @Test
public class LocalHashTableTest {
private static final int KEYS_COUNT = 1600000;
private ODatabaseDocumentTx databaseDocumentTx;
private OLocalHashTable<Integer, String> localHashTable;
@BeforeClass
public void beforeClass() {
String buildDirectory = System.getPropert... | 0true | core_src_test_java_com_orientechnologies_orient_core_index_hashindex_local_LocalHashTableTest.java |
1,957 | public class MapReplaceRequest extends MapPutRequest {
public MapReplaceRequest() {
}
public MapReplaceRequest(String name, Data key, Data value, long threadId) {
super(name, key, value, threadId);
}
public MapReplaceRequest(String name, Data key, Data value, long threadId, long ttl) {
... | 0true | hazelcast_src_main_java_com_hazelcast_map_client_MapReplaceRequest.java |
1,874 | public class ModulesBuilder implements Iterable<Module> {
private final List<Module> modules = Lists.newArrayList();
public ModulesBuilder add(Module... modules) {
for (Module module : modules) {
add(module);
}
return this;
}
public ModulesBuilder add(Module module... | 0true | src_main_java_org_elasticsearch_common_inject_ModulesBuilder.java |
2,052 | public class GetAllOperation extends AbstractMapOperation implements PartitionAwareOperation {
Set<Data> keys = new HashSet<Data>();
MapEntrySet entrySet;
public GetAllOperation(String name, Set<Data> keys) {
super(name);
this.keys = keys;
}
public GetAllOperation() {
}
p... | 0true | hazelcast_src_main_java_com_hazelcast_map_operation_GetAllOperation.java |
1,019 | @Entity
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name="BLC_ORDER_ATTRIBUTE")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE, region="blOrderElements")
@AdminPresentationMergeOverrides(
{
@AdminPresentationMergeOverride(name = "", mergeEntries =
@AdminPresentationMergeEntry(prop... | 1no label | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_order_domain_OrderAttributeImpl.java |
661 | constructors[COLLECTION_ADD_BACKUP] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {
public IdentifiedDataSerializable createNew(Integer arg) {
return new CollectionAddBackupOperation();
}
}; | 0true | hazelcast_src_main_java_com_hazelcast_collection_CollectionDataSerializerHook.java |
370 | public interface TranslationService {
/**
* Persists the given translation
*
* @param translation
* @return the persisted translation
*/
public Translation save(Translation translation);
/**
* Creates a new translation object for the requested parameters, saves it, and retur... | 0true | common_src_main_java_org_broadleafcommerce_common_i18n_service_TranslationService.java |
829 | public final class AtomicReferenceDataSerializerHook implements DataSerializerHook {
public static final int F_ID = FactoryIdHelper.getFactoryId(FactoryIdHelper.ATOMIC_REFERENCE_DS_FACTORY, -21);
public static final int ALTER_AND_GET = 0;
public static final int ALTER = 1;
public static final int APPL... | 0true | hazelcast_src_main_java_com_hazelcast_concurrent_atomicreference_AtomicReferenceDataSerializerHook.java |
299 | public class SelectRulerAction extends AbstractRulerActionDelegate {
@Override
protected IAction createAction(ITextEditor editor, IVerticalRulerInfo rulerInfo) {
return new CeylonSelectAnnotationRulerAction(
EditorActionMessages.ResBundle, "SelectRulerAction.", editor, rulerInfo);
}
... | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_editor_SelectRulerAction.java |
1,630 | @Deprecated
public abstract class OServerHandlerAbstract extends OServerPluginAbstract {
} | 0true | server_src_main_java_com_orientechnologies_orient_server_handler_OServerHandlerAbstract.java |
1,389 | @Test
public class OMVRBTreeDatabaseLazySaveNonCompositeTest extends OMVRBTreeNonCompositeTest {
private ODatabaseDocumentTx database;
private int oldPageSize;
private int oldEntryPoints;
@BeforeClass
public void beforeClass() {
database = new ODatabaseDocumentTx("memory:m... | 0true | core_src_test_java_com_orientechnologies_orient_core_type_tree_OMVRBTreeDatabaseLazySaveNonCompositeTest.java |
394 | @SuppressWarnings({ "serial", "unchecked" })
public class ORecordLazyMap extends OTrackedMap<OIdentifiable> implements ORecordLazyMultiValue {
final private byte recordType;
private ORecordMultiValueHelper.MULTIVALUE_CONTENT_TYPE status = MULTIVALUE_CONTENT_TYPE.EMP... | 0true | core_src_main_java_com_orientechnologies_orient_core_db_record_ORecordLazyMap.java |
497 | private static class ListRewriter implements FieldRewriter<List<?>> {
@Override
public List<?> rewriteValue(List<?> listValue) {
boolean wasRewritten = false;
List<Object> result = new ArrayList<Object>(listValue.size());
for (Object listItem : listValue) {
FieldRewriter<Object> fiel... | 0true | core_src_main_java_com_orientechnologies_orient_core_db_tool_ODatabaseImport.java |
1,243 | METRIC_TYPE.COUNTER, new OProfilerHookValue() {
public Object getValue() {
return metricReusedPages;
}
}); | 0true | core_src_main_java_com_orientechnologies_orient_core_storage_fs_OMMapManagerNew.java |
914 | return new DataSerializableFactory() {
@Override
public IdentifiedDataSerializable create(int typeId) {
switch (typeId) {
case AWAIT_BACKUP:
return new AwaitBackupOperation();
case AWAIT:
... | 0true | hazelcast_src_main_java_com_hazelcast_concurrent_lock_LockDataSerializerHook.java |
1,174 | NETTY {
@Override
public Transport newTransport(Settings settings, ThreadPool threadPool) {
return new NettyTransport(settings, threadPool, new NetworkService(ImmutableSettings.EMPTY), Version.CURRENT);
}
}; | 0true | src_test_java_org_elasticsearch_benchmark_transport_TransportBenchmark.java |
432 | public enum LookupType {
STANDARD,
DROPDOWN
} | 0true | common_src_main_java_org_broadleafcommerce_common_presentation_client_LookupType.java |
1,256 | public static interface NodeListenerCallback<Response> {
void doWithNode(DiscoveryNode node, ActionListener<Response> listener) throws ElasticsearchException;
} | 0true | src_main_java_org_elasticsearch_client_transport_TransportClientNodesService.java |
827 | public interface OrderAdjustment extends Adjustment {
public Order getOrder();
public void init(Order order, Offer offer, String reason);
public void setOrder(Order order);
} | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_offer_domain_OrderAdjustment.java |
4,105 | static class IncludeNestedDocsWeight extends Weight {
private final Query parentQuery;
private final Weight parentWeight;
private final Filter parentsFilter;
IncludeNestedDocsWeight(Query parentQuery, Weight parentWeight, Filter parentsFilter) {
this.parentQuery = paren... | 1no label | src_main_java_org_elasticsearch_index_search_nested_IncludeNestedDocsQuery.java |
43 | public class StatsCommandProcessor extends MemcacheCommandProcessor<StatsCommand> {
public StatsCommandProcessor(TextCommandService textCommandService) {
super(textCommandService);
}
public void handle(StatsCommand command) {
Stats stats = textCommandService.getStats();
command.set... | 0true | hazelcast_src_main_java_com_hazelcast_ascii_memcache_StatsCommandProcessor.java |
58 | public class AssetNotFoundException extends RuntimeException {
private static final long serialVersionUID = -6349160176427682630L;
public AssetNotFoundException() {
//do nothing
}
public AssetNotFoundException(Throwable cause) {
super(cause);
}
public AssetNotFoundException(St... | 0true | admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_common_AssetNotFoundException.java |
594 | public interface OIndexDefinitionMultiValue extends OIndexDefinition {
/**
* Converts passed in value in the key of single index entry.
*
* @param param
* Value to convert.
* @return Index key.
*/
public Object createSingleValue(final Object... param);
/**
* Process event that con... | 0true | core_src_main_java_com_orientechnologies_orient_core_index_OIndexDefinitionMultiValue.java |
701 | CollectionUtils.filter(returnProducts, new Predicate() {
@Override
public boolean evaluate(Object arg) {
return 'Y'!=((Status)((UpSaleProductImpl) arg).getRelatedProduct()).getArchived();
}
}); | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_catalog_domain_ProductImpl.java |
2,220 | public enum CombineFunction {
MULT {
@Override
public float combine(double queryBoost, double queryScore, double funcScore, double maxBoost) {
return toFloat(queryBoost * queryScore * Math.min(funcScore, maxBoost));
}
@Override
public String getName() {
... | 0true | src_main_java_org_elasticsearch_common_lucene_search_function_CombineFunction.java |
1,029 | class ShardSingleOperationRequest extends TransportRequest {
private Request request;
private int shardId;
ShardSingleOperationRequest() {
}
public ShardSingleOperationRequest(Request request, int shardId) {
super(request);
this.request = request;
... | 0true | src_main_java_org_elasticsearch_action_support_single_shard_TransportShardSingleOperationAction.java |
329 | IPropertyChangeListener workingSetListener= new IPropertyChangeListener() {
public void propertyChange(PropertyChangeEvent event) {
doWorkingSetChanged(event);
}
}; | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_explorer_PackageExplorerActionGroup.java |
275 | class PresentationDamageRepairer implements IPresentationDamager,
IPresentationRepairer {
private volatile List<CommonToken> tokens;
private final CeylonEditor editor;
private IDocument document;
PresentationDamageRepairer(ISourceViewer sourceViewer,
CeylonEditor editor) ... | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_editor_PresentationDamageRepairer.java |
1,338 | public abstract class IndicesClusterStateUpdateRequest<T extends IndicesClusterStateUpdateRequest<T>> extends ClusterStateUpdateRequest<T> {
private String[] indices;
/**
* Returns the indices the operation needs to be executed on
*/
public String[] indices() {
return indices;
}
... | 0true | src_main_java_org_elasticsearch_cluster_ack_IndicesClusterStateUpdateRequest.java |
744 | public class ExplainRequestBuilder extends SingleShardOperationRequestBuilder<ExplainRequest, ExplainResponse, ExplainRequestBuilder> {
private QuerySourceBuilder sourceBuilder;
ExplainRequestBuilder(Client client) {
super((InternalClient) client, new ExplainRequest());
}
public ExplainReques... | 0true | src_main_java_org_elasticsearch_action_explain_ExplainRequestBuilder.java |
1,599 | public abstract class SystemLog {
enum Type {
NODE,
JOIN,
CONNECTION,
PARTITION,
CALL,
NONE
}
protected long date = Clock.currentTimeMillis();
protected Type type = Type.NONE;
public long getDate() {
return date;
}
public Type getTy... | 0true | hazelcast_src_main_java_com_hazelcast_logging_SystemLog.java |
1,202 | doubleObjectMap = build(type, limit, smartSize, availableProcessors, new Recycler.C<DoubleObjectOpenHashMap>() {
@Override
public DoubleObjectOpenHashMap newInstance(int sizing) {
return new DoubleObjectOpenHashMap(size(sizing));
}
@Override
... | 0true | src_main_java_org_elasticsearch_cache_recycler_CacheRecycler.java |
141 | @Test
public class DecimalSerializerTest {
private final static int FIELD_SIZE = 9;
private static final BigDecimal OBJECT = new BigDecimal(new BigInteger("20"), 2);
private ODecimalSerializer decimalSerializer;
private static final byte[] stream = new byte[FIELD_SIZE];
@BeforeClass
... | 0true | commons_src_test_java_com_orientechnologies_common_serialization_types_DecimalSerializerTest.java |
53 | public class HttpDeleteCommandProcessor extends HttpCommandProcessor<HttpDeleteCommand> {
public HttpDeleteCommandProcessor(TextCommandService textCommandService) {
super(textCommandService);
}
public void handle(HttpDeleteCommand command) {
String uri = command.getURI();
if (uri.s... | 0true | hazelcast_src_main_java_com_hazelcast_ascii_rest_HttpDeleteCommandProcessor.java |
3,017 | public class ResidentQueryParserCache extends AbstractIndexComponent implements QueryParserCache {
private final Cache<QueryParserSettings, Query> cache;
private volatile int maxSize;
private volatile TimeValue expire;
@Inject
public ResidentQueryParserCache(Index index, @IndexSettings Settings i... | 1no label | src_main_java_org_elasticsearch_index_cache_query_parser_resident_ResidentQueryParserCache.java |
280 | public interface ActionListener<Response> {
/**
* A response handler.
*/
void onResponse(Response response);
/**
* A failure handler.
*/
void onFailure(Throwable e);
} | 0true | src_main_java_org_elasticsearch_action_ActionListener.java |
2,406 | public static class Factory {
public static final Factory DEFAULT = buildDefault();
private static Factory buildDefault() {
// Some numbers:
// 10k =0.001: 140.4kb , 10 Hashes
// 10k =0.01 : 93.6kb , 6 Hashes
// 100k=0.01 : 936.0kb , 6 Hashes
... | 0true | src_main_java_org_elasticsearch_common_util_BloomFilter.java |
429 | trackedMap.addChangeListener(new OMultiValueChangeListener<Object, String>() {
public void onAfterRecordChanged(final OMultiValueChangeEvent<Object, String> event) {
changed.value = true;
}
}); | 0true | core_src_test_java_com_orientechnologies_orient_core_db_record_TrackedMapTest.java |
310 | public enum ResourceType {
FILESYSTEM,CLASSPATH
} | 0true | common_src_main_java_org_broadleafcommerce_common_extensibility_context_MergeFileSystemAndClassPathXMLApplicationContext.java |
16 | public static class TransactionTimeSpanPruneStrategy extends AbstractPruneStrategy
{
private final int timeToKeep;
private final TimeUnit unit;
public TransactionTimeSpanPruneStrategy( FileSystemAbstraction fileSystem, int timeToKeep, TimeUnit unit )
{
super( fileSys... | 1no label | community_kernel_src_main_java_org_neo4j_kernel_impl_transaction_xaframework_LogPruneStrategies.java |
1,301 | public final class StartServer {
private StartServer() {
}
/**
* Creates a server instance of Hazelcast
*
* @param args none
*/
public static void main(String[] args) {
Hazelcast.newHazelcastInstance(null);
}
} | 0true | hazelcast_src_main_java_com_hazelcast_examples_StartServer.java |
1,036 | @SuppressWarnings("unchecked")
public class OCommandExecutorSQLDropClass extends OCommandExecutorSQLAbstract implements OCommandDistributedReplicateRequest {
public static final String KEYWORD_DROP = "DROP";
public static final String KEYWORD_CLASS = "CLASS";
private String className;
public OCom... | 1no label | core_src_main_java_com_orientechnologies_orient_core_sql_OCommandExecutorSQLDropClass.java |
584 | public class RefreshRequest extends BroadcastOperationRequest<RefreshRequest> {
private boolean force = true;
RefreshRequest() {
}
public RefreshRequest(String... indices) {
super(indices);
}
public boolean force() {
return force;
}
/**
* Forces calling refresh,... | 0true | src_main_java_org_elasticsearch_action_admin_indices_refresh_RefreshRequest.java |
54 | @SuppressWarnings("serial")
static final class ForEachKeyTask<K,V>
extends BulkTask<K,V,Void> {
final Action<? super K> action;
ForEachKeyTask
(BulkTask<K,V,?> p, int b, int i, int f, Node<K,V>[] t,
Action<? super K> action) {
super(p, b, i, f, t);
... | 0true | src_main_java_jsr166e_ConcurrentHashMapV8.java |
2,870 | @AnalysisSettingsRequired
public class HunspellTokenFilterFactory extends AbstractTokenFilterFactory {
private final HunspellDictionary dictionary;
private final boolean dedup;
private final int recursionLevel;
@Inject
public HunspellTokenFilterFactory(Index index, @IndexSettings Settings indexSet... | 0true | src_main_java_org_elasticsearch_index_analysis_HunspellTokenFilterFactory.java |
426 | trackedList.addChangeListener(new OMultiValueChangeListener<Integer, String>() {
public void onAfterRecordChanged(final OMultiValueChangeEvent<Integer, String> event) {
changed.value = true;
}
}); | 0true | core_src_test_java_com_orientechnologies_orient_core_db_record_TrackedListTest.java |
198 | public static class TxPosition
{
final long version;
final int masterId;
final int identifier;
final long position;
final long checksum;
public TxPosition( long version, int masterId, int identifier, long position, long checksum )
{
this.versi... | 0true | community_kernel_src_main_java_org_neo4j_kernel_impl_transaction_xaframework_LogExtractor.java |
1,157 | public interface AmountItem extends Serializable {
public abstract Long getId();
public abstract void setId(Long id);
public abstract String getShortDescription();
public abstract void setShortDescription(String shortDescription);
public abstract String getDescription();
public abstract vo... | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_payment_domain_AmountItem.java |
1,871 | boolean b = h1.executeTransaction(options, new TransactionalTask<Boolean>() {
public Boolean execute(TransactionalTaskContext context) throws TransactionException {
final TransactionalMap<Object, Object> txMap = context.getMap("default");
assertEquals(true, txMap.repl... | 0true | hazelcast_src_test_java_com_hazelcast_map_MapTransactionTest.java |
5,843 | public class InternalSearchHit implements SearchHit {
private static final Object[] EMPTY_SORT_VALUES = new Object[0];
private static final Text MAX_TERM_AS_TEXT = new StringAndBytesText(BytesRefFieldComparatorSource.MAX_TERM.utf8ToString());
private transient int docId;
private float score = Float.N... | 1no label | src_main_java_org_elasticsearch_search_internal_InternalSearchHit.java |
1,565 | public class RollbackStateLocal {
private static final ThreadLocal<RollbackStateLocal> THREAD_LOCAL = ThreadLocalManager.createThreadLocal(RollbackStateLocal.class, false);
public static RollbackStateLocal getRollbackStateLocal() {
return THREAD_LOCAL.get();
}
public static void setRollbackSt... | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_workflow_state_RollbackStateLocal.java |
253 | private class IteratorCollector<T> implements Answer<Object>
{
private final int arg;
private final List<T> elements = new ArrayList<>();
public IteratorCollector( int arg )
{
this.arg = arg;
}
@SafeVarargs
public final void assertContent( T.... | 0true | community_kernel_src_test_java_org_neo4j_kernel_impl_nioneo_xa_WriteTransactionTest.java |
953 | public static class OutputStream extends java.io.FilterOutputStream {
private boolean encode;
private int position;
private byte[] buffer;
private int bufferLength;
private int lineLength;
private boolean breakLines;
private byte[] b4; // Scratch used in a few places
private boolean suspen... | 0true | core_src_main_java_com_orientechnologies_orient_core_serialization_OBase64Utils.java |
2,884 | public class LimitTokenCountFilterFactoryTests extends ElasticsearchTokenStreamTestCase {
@Test
public void testDefault() throws IOException {
Settings settings = ImmutableSettings.settingsBuilder().put("index.analysis.filter.limit_default.type", "limit").build();
AnalysisService analysisServic... | 0true | src_test_java_org_elasticsearch_index_analysis_LimitTokenCountFilterFactoryTests.java |
1,048 | @RunWith(HazelcastParallelClassRunner.class)
@Category(QuickTest.class)
public class InterfacesTest {
final String interfaceA = "127.0.0.1";
final String interfaceB = "127.0.0.2";
final String interfaceC = "127.0.0.3";
@Test
public void testIsEnabledByDefault() {
InterfacesConfig interface... | 0true | hazelcast_src_test_java_com_hazelcast_config_InterfacesTest.java |
272 | public class ElasticsearchTimeoutException extends ElasticsearchException {
public ElasticsearchTimeoutException(String message) {
super(message);
}
public ElasticsearchTimeoutException(String message, Throwable cause) {
super(message, cause);
}
} | 0true | src_main_java_org_elasticsearch_ElasticsearchTimeoutException.java |
1,384 | public class MappingMetaData {
public static class Id {
public static final Id EMPTY = new Id(null);
private final String path;
private final String[] pathElements;
public Id(String path) {
this.path = path;
if (path == null) {
pathElement... | 1no label | src_main_java_org_elasticsearch_cluster_metadata_MappingMetaData.java |
279 | static class SchemaRuleCommand extends Command
{
private final NeoStore neoStore;
private final IndexingService indexes;
private final SchemaStore store;
private final Collection<DynamicRecord> recordsBefore;
private final Collection<DynamicRecord> recordsAfter;
p... | 0true | community_kernel_src_main_java_org_neo4j_kernel_impl_nioneo_xa_Command.java |
366 | public static class TestReducer
extends Reducer<String, Integer, Integer> {
private transient int sum = 0;
@Override
public void reduce(Integer value) {
sum += value;
}
@Override
public Integer finalizeReduce() {
return sum;
... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_mapreduce_ClientMapReduceTest.java |
1,292 | clusterService.submitStateUpdateTask("test", new AckedClusterStateUpdateTask() {
@Override
public boolean mustAck(DiscoveryNode discoveryNode) {
return true;
}
@Override
public void onAllNodesAcked(@Nullable Throwable t) {
... | 0true | src_test_java_org_elasticsearch_cluster_ClusterServiceTests.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 |
243 | private static class RecordingNodeStore extends NodeStore
{
private final AtomicReference<List<String>> currentRecording;
public RecordingNodeStore( AtomicReference<List<String>> currentRecording )
{
super( null, null, null, null, null, null, null );
this.current... | 0true | community_kernel_src_test_java_org_neo4j_kernel_impl_nioneo_xa_WriteTransactionCommandOrderingTest.java |
768 | public class OIntentMassiveRead implements OIntent {
public void begin(final ODatabaseRaw iDatabase, final Object... iArgs) {
}
public void end(final ODatabaseRaw iDatabase) {
}
} | 0true | core_src_main_java_com_orientechnologies_orient_core_intent_OIntentMassiveRead.java |
3,152 | public abstract class AbstractIndexFieldData<FD extends AtomicFieldData> extends AbstractIndexComponent implements IndexFieldData<FD> {
private final FieldMapper.Names fieldNames;
protected final FieldDataType fieldDataType;
protected final IndexFieldDataCache cache;
public AbstractIndexFieldData(Inde... | 0true | src_main_java_org_elasticsearch_index_fielddata_AbstractIndexFieldData.java |
1,009 | public class AvailableOperation extends SemaphoreOperation implements IdentifiedDataSerializable {
public AvailableOperation() {
}
public AvailableOperation(String name) {
super(name, -1);
}
@Override
public void run() throws Exception {
response = getPermit().getAvailable();
... | 0true | hazelcast_src_main_java_com_hazelcast_concurrent_semaphore_operations_AvailableOperation.java |
153 | public class TransactionReader
{
public interface Visitor
{
void visitStart( int localId, byte[] globalTransactionId, int masterId, int myId, long startTimestamp );
void visitPrepare( int localId, long prepareTimestamp );
void visitCommit( int localId, boolean twoPhase, long txId, long... | 0true | community_kernel_src_main_java_org_neo4j_kernel_impl_transaction_xaframework_TransactionReader.java |
44 | public enum OccurrenceLocation {
EXISTS(false),
NONEMPTY(false),
IS(false),
EXTENDS(false),
SATISFIES(false),
CLASS_ALIAS(false),
OF(false),
UPPER_BOUND(false),
TYPE_ALIAS(false),
CASE(false),
CATCH(false),
IMPORT(false),
EXPRESSION(false),
PARAMETER_LIST(fals... | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_complete_OccurrenceLocation.java |
4,896 | public class RestRecoveryAction extends AbstractCatAction {
@Inject
protected RestRecoveryAction(Settings settings, Client client, RestController restController) {
super(settings, client);
restController.registerHandler(GET, "/_cat/recovery", this);
restController.registerHandler(GET, "... | 1no label | src_main_java_org_elasticsearch_rest_action_cat_RestRecoveryAction.java |
279 | @Category({ CassandraSSLTests.class })
public class ThriftSSLStoreTest extends ThriftStoreTest {
@BeforeClass
public static void startCassandra() {
CassandraStorageSetup.startCleanEmbedded();
}
@Override
public ModifiableConfiguration getBaseStorageConfiguration() {
return Cassandr... | 0true | titan-cassandra_src_test_java_com_thinkaurelius_titan_diskstorage_cassandra_thrift_ThriftSSLStoreTest.java |
3,098 | static interface SnapshotHandler<T> {
T snapshot(SnapshotIndexCommit snapshotIndexCommit, Translog.Snapshot translogSnapshot) throws EngineException;
} | 0true | src_main_java_org_elasticsearch_index_engine_Engine.java |
662 | constructors[COLLECTION_GET_ALL] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {
public IdentifiedDataSerializable createNew(Integer arg) {
return new CollectionGetAllOperation();
}
}; | 0true | hazelcast_src_main_java_com_hazelcast_collection_CollectionDataSerializerHook.java |
1,471 | public class OSQLFunctionIn extends OSQLFunctionMove {
public static final String NAME = "in";
public OSQLFunctionIn() {
super(NAME, 0, -1);
}
@Override
protected Object move(final OrientBaseGraph graph, final OIdentifiable iRecord, final String[] iLabels) {
return v2v(graph, iRecord, Direction.IN, ... | 1no label | graphdb_src_main_java_com_orientechnologies_orient_graph_sql_functions_OSQLFunctionIn.java |
362 | public class DeleteRepositoryAction extends ClusterAction<DeleteRepositoryRequest, DeleteRepositoryResponse, DeleteRepositoryRequestBuilder> {
public static final DeleteRepositoryAction INSTANCE = new DeleteRepositoryAction();
public static final String NAME = "cluster/repository/delete";
private DeleteRe... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_repositories_delete_DeleteRepositoryAction.java |
3,451 | public class LocalIndexShardGateway extends AbstractIndexShardComponent implements IndexShardGateway {
private final ThreadPool threadPool;
private final InternalIndexShard indexShard;
private final RecoveryStatus recoveryStatus = new RecoveryStatus();
private volatile ScheduledFuture flushScheduler... | 1no label | src_main_java_org_elasticsearch_index_gateway_local_LocalIndexShardGateway.java |
535 | static enum FrameworkType {
PERSISTENCE,
GENERAL,
LOGGING,
UI,
XML,
UTILITY,
SCHEDULER,
CACHE,
RULES,
ECOMMERCE,
OTHER
} | 0true | common_src_main_java_org_broadleafcommerce_common_util_PomEvaluator.java |
1,907 | static class Person implements Serializable {
String name;
int age;
Person() {
}
Person(String name, int age) {
this.name = name;
this.age = age;
}
} | 0true | hazelcast_src_test_java_com_hazelcast_map_QueryListenerTest.java |
2,555 | public class DiscoveryService extends AbstractLifecycleComponent<DiscoveryService> {
private final TimeValue initialStateTimeout;
private final Discovery discovery;
private volatile boolean initialStateReceived;
@Inject
public DiscoveryService(Settings settings, Discovery discovery) {
su... | 1no label | src_main_java_org_elasticsearch_discovery_DiscoveryService.java |
1,512 | public class OObjectEnumLazyMap<TYPE extends Enum> extends HashMap<Object, Object> implements Serializable,
OObjectLazyEnumSerializer<Map<Object, Object>> {
private static final long serialVersionUID = -8606432090996808181L;
private final ORecord<?> sourceRecord;
private final Map<Object, Ob... | 0true | object_src_main_java_com_orientechnologies_orient_object_enumerations_OObjectEnumLazyMap.java |
1,347 | @Repository("blStoreDao")
public class StoreDaoImpl implements StoreDao {
@PersistenceContext(unitName = "blPU")
private EntityManager em;
@SuppressWarnings("unchecked")
public Store readStoreByStoreCode(final String storeCode) {
Query query = em.createNamedQuery("FIND_STORE_BY_STORE_CODE");
... | 0true | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_store_dao_StoreDaoImpl.java |
3,372 | static class LongValues extends DenseLongValues {
private final PackedInts.Mutable values;
private final long minValue;
LongValues(PackedInts.Mutable values, long minValue) {
super(false);
this.values = values;
this.minValue =... | 0true | src_main_java_org_elasticsearch_index_fielddata_plain_PackedArrayAtomicFieldData.java |
247 | public static class XBuilder {
private Builder<Pair<Long, BytesRef>> builder;
private int maxSurfaceFormsPerAnalyzedForm;
private IntsRef scratchInts = new IntsRef();
private final PairOutputs<Long, BytesRef> outputs;
private boolean hasPayloads;
private BytesRef anal... | 0true | src_main_java_org_apache_lucene_search_suggest_analyzing_XAnalyzingSuggester.java |
1,019 | transportService.sendRequest(node, transportAction, request, transportOptions(), new BaseTransportResponseHandler<Response>() {
@Override
public Response newInstance() {
return newResponse();
}
@Ove... | 0true | src_main_java_org_elasticsearch_action_support_single_instance_TransportInstanceSingleOperationAction.java |
65 | public class OSharedLockEntry<REQUESTER_TYPE> {
/** The requester lock : generally {@link Thread} or {@link Runnable}. */
protected REQUESTER_TYPE requester;
/**
* Count shared locks held by this requester for the resource.
* <p>
* Used for reentrancy : when the same requester acquire a shared lock ... | 0true | commons_src_main_java_com_orientechnologies_common_concur_lock_OSharedLockEntry.java |
1,749 | FACTOR() {
@Override
public double calculate(double sourceLatitude, double sourceLongitude, double targetLatitude, double targetLongitude, DistanceUnit unit) {
double longitudeDifference = targetLongitude - sourceLongitude;
double a = Math.toRadians(90D - sourceLatitude);
... | 0true | src_main_java_org_elasticsearch_common_geo_GeoDistance.java |
343 | public class NodeValueMerge extends BaseHandler {
protected String delimiter = " ";
protected String regex = "[\\s\\n\\r]+";
public Node[] merge(List<Node> nodeList1, List<Node> nodeList2, List<Node> exhaustedNodes) {
if (CollectionUtils.isEmpty(nodeList1) || CollectionUtils.isEmpty(nodeList2)) {
... | 0true | common_src_main_java_org_broadleafcommerce_common_extensibility_context_merge_handlers_NodeValueMerge.java |
1,644 | public class RuntimeStateRequest implements ConsoleRequest {
//todo: unused.
private static final long LOCK_TIME_THRESHOLD = TimeUnit.SECONDS.toMillis(300);
@Override
public int getType() {
return ConsoleRequestConstants.REQUEST_TYPE_CLUSTER_STATE;
}
private Collection<LockResource> c... | 0true | hazelcast_src_main_java_com_hazelcast_management_request_RuntimeStateRequest.java |
1,566 | public class ClusterRebalanceAllocationDecider extends AllocationDecider {
/**
* An enum representation for the configured re-balance type.
*/
public static enum ClusterRebalanceType {
/**
* Re-balancing is allowed once a shard replication group is active
*/
ALWAYS,... | 0true | src_main_java_org_elasticsearch_cluster_routing_allocation_decider_ClusterRebalanceAllocationDecider.java |
6,067 | public class TermSuggestion extends Suggestion<TermSuggestion.Entry> {
public static Comparator<Suggestion.Entry.Option> SCORE = new Score();
public static Comparator<Suggestion.Entry.Option> FREQUENCY = new Frequency();
// Same behaviour as comparators in suggest module, but for SuggestedWord
// High... | 1no label | src_main_java_org_elasticsearch_search_suggest_term_TermSuggestion.java |
1,162 | public interface ICountDownLatch extends DistributedObject {
/**
* Causes the current thread to wait until the latch has counted down to
* zero, an exception is thrown, or the specified waiting time elapses.
* <p/>
* <p>If the current count is zero then this method returns immediately
* wi... | 0true | hazelcast_src_main_java_com_hazelcast_core_ICountDownLatch.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.