Unnamed: 0
int64
0
6.45k
func
stringlengths
29
253k
target
class label
2 classes
project
stringlengths
36
167
6,016
final class CandidateScorer { private final WordScorer scorer; private final int maxNumCorrections; private final int gramSize; public CandidateScorer(WordScorer scorer, int maxNumCorrections, int gramSize) { this.scorer = scorer; this.maxNumCorrections = maxNumCorrections; this...
1no label
src_main_java_org_elasticsearch_search_suggest_phrase_CandidateScorer.java
1,542
@Component("blSocialSignInAdapter") public class BroadleafSocialSignInAdapter implements SignInAdapter { @Resource(name="blUserDetailsService") private UserDetailsService userDetailsService; @Override public String signIn(String username, Connection<?> connection, NativeWebRequest request) { U...
0true
core_broadleaf-framework-web_src_main_java_org_broadleafcommerce_core_web_social_BroadleafSocialSignInAdapter.java
3,413
public class IgnoreGatewayRecoveryException extends IndexShardException { public IgnoreGatewayRecoveryException(ShardId shardId, String msg) { super(shardId, msg); } public IgnoreGatewayRecoveryException(ShardId shardId, String msg, Throwable cause) { super(shardId, msg, cause); } }
0true
src_main_java_org_elasticsearch_index_gateway_IgnoreGatewayRecoveryException.java
774
public class CollectionReserveRemoveOperation extends CollectionOperation { String transactionId; private Data value; private long reservedItemId = -1; public CollectionReserveRemoveOperation() { } public CollectionReserveRemoveOperation(String name, long reservedItemId, Data value, String tr...
0true
hazelcast_src_main_java_com_hazelcast_collection_txn_CollectionReserveRemoveOperation.java
451
public class ReadOnlyKeyColumnValueStore extends KCVSProxy { public ReadOnlyKeyColumnValueStore(KeyColumnValueStore store) { super(store); } @Override public void acquireLock(StaticBuffer key, StaticBuffer column, StaticBuffer expectedValue, StoreTransaction txh) th...
0true
titan-core_src_main_java_com_thinkaurelius_titan_diskstorage_keycolumnvalue_ReadOnlyKeyColumnValueStore.java
585
getEntriesBetween(iRangeFrom, iRangeTo, iInclusive, new IndexEntriesResultListener() { @Override public boolean addResult(ODocument entry) { result.add(entry); return true; } });
0true
core_src_main_java_com_orientechnologies_orient_core_index_OIndexAbstract.java
1,477
public class HazelcastTimestampsRegion<Cache extends RegionCache> extends AbstractGeneralRegion<Cache> implements TimestampsRegion { public HazelcastTimestampsRegion(final HazelcastInstance instance, final String name, final Properties props, final Cache cache) { ...
0true
hazelcast-hibernate_hazelcast-hibernate4_src_main_java_com_hazelcast_hibernate_region_HazelcastTimestampsRegion.java
4,470
class RecoveryFilesInfoRequest extends TransportRequest { private long recoveryId; private ShardId shardId; List<String> phase1FileNames; List<Long> phase1FileSizes; List<String> phase1ExistingFileNames; List<Long> phase1ExistingFileSizes; long phase1TotalSize; long phase1ExistingTotal...
1no label
src_main_java_org_elasticsearch_indices_recovery_RecoveryFilesInfoRequest.java
200
public class PermanentBackendException extends BackendException { private static final long serialVersionUID = 203482308203400L; /** * @param msg Exception message */ public PermanentBackendException(String msg) { super(msg); } /** * @param msg Exception message * @p...
0true
titan-core_src_main_java_com_thinkaurelius_titan_diskstorage_PermanentBackendException.java
139
public static class Group { public static class Name { public static final String Description = "StructuredContentImpl_Description"; public static final String Internal = "StructuredContentImpl_Internal"; public static final String Rules = "StructuredC...
0true
admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_structure_domain_StructuredContentImpl.java
25
abstract class EntrySetView extends AbstractSet<Map.Entry<K, V>> { private transient int size = -1, sizeModCount; @Override public int size() { if (fromStart && toEnd) return m.size(); if (size == -1 || sizeModCount != m.modCount) { sizeModCount = m.modCount; ...
0true
commons_src_main_java_com_orientechnologies_common_collection_OMVRBTree.java
1,655
Thread thread = new Thread() { public void run() { try { Thread.sleep(3000 * finalI); HazelcastInstance instance = nodeFactory.newHazelcastInstance(config); instances.set(finalI, instance); ...
0true
hazelcast_src_test_java_com_hazelcast_map_BackupTest.java
1,873
public class Modules { public static Module createModule(String moduleClass, Settings settings) throws ClassNotFoundException { return createModule((Class<? extends Module>) settings.getClassLoader().loadClass(moduleClass), settings); } public static Module createModule(Class<? extends Module> mod...
0true
src_main_java_org_elasticsearch_common_inject_Modules.java
2,690
metaDataBlobContainer.deleteBlobsByFilter(new BlobContainer.BlobNameFilter() { @Override public boolean accept(String blobName) { return blobName.startsWith("metadata-") && !newMetaData.equals(blobName); } });
0true
src_main_java_org_elasticsearch_gateway_blobstore_BlobStoreGateway.java
2,923
public class PreBuiltCharFilterFactoryFactory implements CharFilterFactoryFactory { private final CharFilterFactory charFilterFactory; public PreBuiltCharFilterFactoryFactory(CharFilterFactory charFilterFactory) { this.charFilterFactory = charFilterFactory; } @Override public CharFilterFa...
1no label
src_main_java_org_elasticsearch_index_analysis_PreBuiltCharFilterFactoryFactory.java
776
public class ORecordIteratorClusters<REC extends ORecordInternal<?>> extends OIdentifiableIterator<REC> { protected int[] clusterIds; protected int currentClusterIdx; protected ORecord<?> currentRecord; protected ORID beginRange; protected ORID endRange; public ORecordIteratorClust...
1no label
core_src_main_java_com_orientechnologies_orient_core_iterator_ORecordIteratorClusters.java
578
public class OptimizeRequestBuilder extends BroadcastOperationRequestBuilder<OptimizeRequest, OptimizeResponse, OptimizeRequestBuilder> { public OptimizeRequestBuilder(IndicesAdminClient indicesClient) { super((InternalIndicesAdminClient) indicesClient, new OptimizeRequest()); } /** * Should ...
0true
src_main_java_org_elasticsearch_action_admin_indices_optimize_OptimizeRequestBuilder.java
1,235
public interface Client { /** * Closes the client. */ void close(); /** * The admin client that can be used to perform administrative operations. */ AdminClient admin(); /** * Executes a generic action, denoted by an {@link Action}. * * @param action T...
0true
src_main_java_org_elasticsearch_client_Client.java
2,767
public class NettyHttpRequest extends HttpRequest { private final org.jboss.netty.handler.codec.http.HttpRequest request; private final Channel channel; private final Map<String, String> params; private final String rawPath; private final BytesReference content; public NettyHttpRequest(org.jbo...
1no label
src_main_java_org_elasticsearch_http_netty_NettyHttpRequest.java
1,590
public enum STATUS { OFFLINE, STARTING, ONLINE, SHUTDOWNING };
0true
server_src_main_java_com_orientechnologies_orient_server_distributed_ODistributedServerManager.java
1,452
public abstract class TitanHadoopSetupCommon implements TitanHadoopSetup { private static final StaticBuffer DEFAULT_COLUMN = StaticArrayBuffer.of(new byte[0]); private static final SliceQuery DEFAULT_SLICE_QUERY = new SliceQuery(DEFAULT_COLUMN, DEFAULT_COLUMN); @Override public SliceQuery inputSlice(...
1no label
titan-hadoop-parent_titan-hadoop-core_src_main_java_com_thinkaurelius_titan_hadoop_formats_util_input_TitanHadoopSetupCommon.java
605
public class TransportUpdateSettingsAction extends TransportMasterNodeOperationAction<UpdateSettingsRequest, UpdateSettingsResponse> { private final MetaDataUpdateSettingsService updateSettingsService; @Inject public TransportUpdateSettingsAction(Settings settings, TransportService transportService, Clust...
1no label
src_main_java_org_elasticsearch_action_admin_indices_settings_put_TransportUpdateSettingsAction.java
778
private final SchemaCache.StoreRetrieval typeCacheRetrieval = new SchemaCache.StoreRetrieval() { @Override public Long retrieveSchemaByName(String typeName, StandardTitanTx tx) { tx.getTxHandle().disableCache(); //Disable cache to make sure that schema is only cached once and cache evic...
1no label
titan-core_src_main_java_com_thinkaurelius_titan_graphdb_database_StandardTitanGraph.java
73
public abstract class TransactionManagerProvider extends Service { public TransactionManagerProvider( String name ) { super( name ); } public abstract AbstractTransactionManager loadTransactionManager( String txLogDir, XaDataSourceManager xaDataSourceManager, KernelPanicEventGenerat...
0true
community_kernel_src_main_java_org_neo4j_kernel_impl_transaction_TransactionManagerProvider.java
96
@RunWith(HazelcastSerialClassRunner.class) @Category(QuickTest.class) public class ClientIssueTest extends HazelcastTestSupport { @After @Before public void cleanup() throws Exception { HazelcastClient.shutdownAll(); Hazelcast.shutdownAll(); } @Test public void testInitialMembe...
0true
hazelcast-client_src_test_java_com_hazelcast_client_ClientIssueTest.java
1,392
public static class Builder { private String uuid; private long version; private Settings transientSettings = ImmutableSettings.Builder.EMPTY_SETTINGS; private Settings persistentSettings = ImmutableSettings.Builder.EMPTY_SETTINGS; private final ImmutableOpenMap.Builder<St...
1no label
src_main_java_org_elasticsearch_cluster_metadata_MetaData.java
3,583
private static class MessageListenerImpl implements MessageListener { private final ClientEndpoint endpoint; private final ClientEngine clientEngine; private final int callId; public MessageListenerImpl(ClientEndpoint endpoint, ClientEngine clientEngine, int callId) { th...
1no label
hazelcast_src_main_java_com_hazelcast_topic_client_AddMessageListenerRequest.java
1,011
private class ShardTransportHandler extends BaseTransportRequestHandler<ShardSingleOperationRequest> { @Override public ShardSingleOperationRequest newInstance() { return new ShardSingleOperationRequest(); } @Override public String executor() { retur...
0true
src_main_java_org_elasticsearch_action_support_single_custom_TransportSingleCustomOperationAction.java
1,813
@Component("blBasicFieldPersistenceProvider") @Scope("prototype") public class BasicFieldPersistenceProvider extends FieldPersistenceProviderAdapter { protected static final Log LOG = LogFactory.getLog(BasicFieldPersistenceProvider.class); protected boolean canHandlePersistence(PopulateValueRequest popula...
1no label
admin_broadleaf-open-admin-platform_src_main_java_org_broadleafcommerce_openadmin_server_service_persistence_module_provider_BasicFieldPersistenceProvider.java
3,233
public static class Longs extends ScriptDocValues { private final LongValues values; private final MutableDateTime date = new MutableDateTime(0, DateTimeZone.UTC); private final SlicedLongList list; public Longs(LongValues values) { this.values = values; thi...
0true
src_main_java_org_elasticsearch_index_fielddata_ScriptDocValues.java
524
@Deprecated public class BLResourceBundleMessageSource extends ResourceBundleMessageSource implements InitializingBean { private static final Log LOG = LogFactory.getLog(BLResourceBundleMessageSource.class); public BLResourceBundleMessageSource(String[] basenames, ResourceBundleExtensionPoint resourceBundleEx...
0true
common_src_main_java_org_broadleafcommerce_common_util_BLResourceBundleMessageSource.java
1,097
public class QueueStoreConfig { private boolean enabled = true; private String className = null; private String factoryClassName = null; private Properties properties = new Properties(); private QueueStore storeImplementation; private QueueStoreFactory factoryImplementation; private QueueSt...
0true
hazelcast_src_main_java_com_hazelcast_config_QueueStoreConfig.java
2,755
public abstract class HttpRequest extends RestRequest { }
0true
src_main_java_org_elasticsearch_http_HttpRequest.java
189
FakeXAResource externalResource = new FakeXAResource("BananaStorageFacility"){ @Override public void rollback( Xid xid ) { super.rollback(xid); externalResourceWasRolledBack.set( true ); } };
0true
community_kernel_src_test_java_org_neo4j_kernel_impl_transaction_UseJOTMAsTxManagerIT.java
1,150
public interface ExecutionCallback<V> { /** * Called when an execution is completed successfully. * * @param response result of execution */ void onResponse(V response); /** * Called when an execution is completed with an error. * @param t exception thrown */ void on...
0true
hazelcast_src_main_java_com_hazelcast_core_ExecutionCallback.java
594
public class LogStatusHandler implements StatusHandler { private static final Log LOG = LogFactory.getLog(LogStatusHandler.class); public void handleStatus(String serviceName, ServiceStatusType status) { if (status.equals(ServiceStatusType.DOWN)) { LOG.error(serviceName + " is reporting a ...
0true
common_src_main_java_org_broadleafcommerce_common_vendor_service_monitor_handler_LogStatusHandler.java
1,764
map.addEntryListener(new EntryAdapter<Object, Object>() { public void entryEvicted(EntryEvent event) { latch.countDown(); } }, false);
0true
hazelcast_src_test_java_com_hazelcast_map_EvictionTest.java
237
@RunWith(HazelcastParallelClassRunner.class) @Category(QuickTest.class) public class ClientExecutorServiceSubmitTest { static final int CLUSTER_SIZE = 3; static HazelcastInstance instance1; static HazelcastInstance instance2; static HazelcastInstance instance3; static HazelcastInstance client; ...
0true
hazelcast-client_src_test_java_com_hazelcast_client_executor_ClientExecutorServiceSubmitTest.java
675
constructors[COLLECTION_ROLLBACK] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() { public IdentifiedDataSerializable createNew(Integer arg) { return new CollectionRollbackOperation(); } };
0true
hazelcast_src_main_java_com_hazelcast_collection_CollectionDataSerializerHook.java
1,678
runnable = new Runnable() { public void run() { map.putAsync(null, "value"); } };
0true
hazelcast_src_test_java_com_hazelcast_map_BasicMapTest.java
1,303
pool.submit(new Runnable() { public void run() { String command = threadCommand; String[] threadArgs = command.replaceAll("\\$t", "" + threadID).trim() .split(" "); // TODO &t #4 m...
0true
hazelcast_src_main_java_com_hazelcast_examples_TestApp.java
3,591
public static class Builder extends NumberFieldMapper.Builder<Builder, LongFieldMapper> { protected Long nullValue = Defaults.NULL_VALUE; public Builder(String name) { super(name, new FieldType(Defaults.FIELD_TYPE)); builder = this; } public Builder nullVal...
0true
src_main_java_org_elasticsearch_index_mapper_core_LongFieldMapper.java
478
listener.onMessage("\n--- DB1: " + makeDbCall(databaseDocumentTxOne, new ODbRelatedCall<String>() { public String call() { return indexOneValue.toString(); } }));
0true
core_src_main_java_com_orientechnologies_orient_core_db_tool_ODatabaseCompare.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
1,900
class NearCacheSizeEstimator implements SizeEstimator<NearCache.CacheRecord> { private final AtomicLong size = new AtomicLong(0L); protected NearCacheSizeEstimator() { super(); } @Override public long getCost(NearCache.CacheRecord record) { // immediate check nothing to do if reco...
0true
hazelcast_src_main_java_com_hazelcast_map_NearCacheSizeEstimator.java
6,270
public class IsFalseAssertion extends Assertion { private static final ESLogger logger = Loggers.getLogger(IsFalseAssertion.class); public IsFalseAssertion(String field) { super(field, false); } @Override @SuppressWarnings("unchecked") protected void doAssert(Object actualValue, Objec...
1no label
src_test_java_org_elasticsearch_test_rest_section_IsFalseAssertion.java
124
static final class AdaptedRunnableAction extends ForkJoinTask<Void> implements RunnableFuture<Void> { final Runnable runnable; AdaptedRunnableAction(Runnable runnable) { if (runnable == null) throw new NullPointerException(); this.runnable = runnable; } ...
0true
src_main_java_jsr166e_ForkJoinTask.java
378
private class ExecuteReplicaUpdateCallable implements Callable<Boolean> { private final ORecordId rid; private final ORecordInternal<?> record; public ExecuteReplicaUpdateCallable(ORecordInternal<?> record) { this.rid = (ORecordId) record.getIdentity(); this.record = record; } ...
0true
core_src_main_java_com_orientechnologies_orient_core_db_record_ODatabaseRecordAbstract.java
2,471
}, timer, TimeValue.timeValueMillis(100) /* enough timeout to catch them in the pending list... */, new Runnable() { @Override public void run() { timedOut.countDown(); } }
0true
src_test_java_org_elasticsearch_common_util_concurrent_PrioritizedExecutorsTests.java
462
@RunWith(HazelcastParallelClassRunner.class) @Category(QuickTest.class) public class ClientSemaphoreTest { static HazelcastInstance client; static HazelcastInstance server; @BeforeClass public static void init(){ server = Hazelcast.newHazelcastInstance(); client = HazelcastClient.newHaz...
0true
hazelcast-client_src_test_java_com_hazelcast_client_semaphore_ClientSemaphoreTest.java
250
public interface CurrencyCodeIdentifiable { public String getCurrencyCode(); }
0true
common_src_main_java_org_broadleafcommerce_common_currency_util_CurrencyCodeIdentifiable.java
30
public class IncrementCommandParser extends TypeAwareCommandParser { public IncrementCommandParser(TextCommandType type) { super(type); } public TextCommand parser(SocketTextReader socketTextReader, String cmd, int space) { StringTokenizer st = new StringTokenizer(cmd); st.nextToken...
0true
hazelcast_src_main_java_com_hazelcast_ascii_memcache_IncrementCommandParser.java
594
public interface JoinOperation extends UrgentSystemOperation { }
0true
hazelcast_src_main_java_com_hazelcast_cluster_JoinOperation.java
2,295
return new FilterRecycler<T>() { @Override protected Recycler<T> getDelegate() { return defaultRecycler; } @Override public Recycler.V<T> obtain(int sizing) { if (sizing > 0 && sizing < minSize) { r...
0true
src_main_java_org_elasticsearch_common_recycler_Recyclers.java
1,675
runnable = new Runnable() { public void run() { map.delete(null); } };
0true
hazelcast_src_test_java_com_hazelcast_map_BasicMapTest.java
1,945
public class MapKeySetRequest extends AllPartitionsClientRequest implements Portable, RetryableRequest, SecureRequest { private String name; public MapKeySetRequest() { } public MapKeySetRequest(String name) { this.name = name; } @Override protected OperationFactory createOperati...
0true
hazelcast_src_main_java_com_hazelcast_map_client_MapKeySetRequest.java
547
public class TransactionUtils { /** * Intended for use in all @Transactional definitions. For instance: * <pre>@Transactional(TransactionUtils.DEFAULT_TRANSACTION_MANAGER)</pre> */ public static final String DEFAULT_TRANSACTION_MANAGER = "blTransactionManager"; private static final Log ...
0true
common_src_main_java_org_broadleafcommerce_common_util_TransactionUtils.java
2,653
transportService.sendRequest(nodeToSend, UnicastPingRequestHandler.ACTION, pingRequest, TransportRequestOptions.options().withTimeout((long) (timeout.millis() * 1.25)), new BaseTransportResponseHandler<UnicastPingResponse>() { @Override public UnicastPingResponse newInstance() { ...
0true
src_main_java_org_elasticsearch_discovery_zen_ping_unicast_UnicastZenPing.java
1,301
public class DataPropagationTask implements Callable<Void> { private ODatabaseDocumentTx baseDB; private ODatabaseDocumentTx testDB; public DataPropagationTask(ODatabaseDocumentTx baseDB, ODatabaseDocumentTx testDocumentTx) { this.baseDB = new ODatabaseDocumentTx(baseDB.getURL()); this.testDB...
0true
server_src_test_java_com_orientechnologies_orient_core_storage_impl_local_paginated_LocalPaginatedStorageSmallCacheBigRecordsCrashRestore.java
854
public abstract class ModifyRequest extends PartitionClientRequest implements Portable, SecureRequest { String name; Data update; public ModifyRequest() { } public ModifyRequest(String name, Data update) { this.name = name; this.update = update; } @Override protected ...
0true
hazelcast_src_main_java_com_hazelcast_concurrent_atomicreference_client_ModifyRequest.java
2,569
public class ZenDiscovery extends AbstractLifecycleComponent<Discovery> implements Discovery, DiscoveryNodesProvider { private final ThreadPool threadPool; private final TransportService transportService; private final ClusterService clusterService; private AllocationService allocationService; priv...
1no label
src_main_java_org_elasticsearch_discovery_zen_ZenDiscovery.java
694
constructors[LIST_ADD_ALL] = new ConstructorFunction<Integer, Portable>() { public Portable createNew(Integer arg) { return new ListAddAllRequest(); } };
0true
hazelcast_src_main_java_com_hazelcast_collection_CollectionPortableHook.java
3,173
private static class ToDoublePreprocessor extends Preprocessor { @Override public String toString(BytesRef ref) { assertTrue(ref.length > 0); return Double.toString(Double.parseDouble(super.toString(ref))); } @Override public int compare(BytesRef a, ...
0true
src_test_java_org_elasticsearch_index_fielddata_DuelFieldDataTests.java
1,716
return new UnmodifiableIterator<VType>() { @Override public boolean hasNext() { return iterator.hasNext(); } @Override public VType next() { return iterator.next().value; } };
0true
src_main_java_org_elasticsearch_common_collect_ImmutableOpenLongMap.java
1,222
public abstract class OStorageAbstract extends OSharedContainerImpl implements OStorage { protected final String url; protected final String mode; protected OStorageConfiguration configuration; protected String name...
1no label
core_src_main_java_com_orientechnologies_orient_core_storage_OStorageAbstract.java
106
{ @Override public Void doWork( State state ) { state.tx.success(); state.tx.finish(); return null; } } );
0true
community_kernel_src_test_java_org_neo4j_kernel_impl_transaction_TestManualAcquireLock.java
92
INTERSECT { @Override public boolean evaluate(Object value, Object condition) { Preconditions.checkArgument(condition instanceof Geoshape); if (value == null) return false; Preconditions.checkArgument(value instanceof Geoshape); return ((Geoshape) valu...
0true
titan-core_src_main_java_com_thinkaurelius_titan_core_attribute_Geo.java
89
public class StaticAssetServiceImplTest extends TestCase { public void testConvertURLProperties() throws Exception { StaticAssetServiceImpl staticAssetService = new StaticAssetServiceImpl(); staticAssetService.setStaticAssetUrlPrefix("cmsstatic"); staticAssetService.setStaticAssetEnviro...
0true
admin_broadleaf-contentmanagement-module_src_test_java_org_broadleafcommerce_cms_file_service_StaticAssetServiceImplTest.java
58
public class HttpPostCommandParser implements CommandParser { public TextCommand parser(SocketTextReader socketTextReader, String cmd, int space) { StringTokenizer st = new StringTokenizer(cmd); st.nextToken(); String uri = null; if (st.hasMoreTokens()) { uri = st.nextTo...
0true
hazelcast_src_main_java_com_hazelcast_ascii_rest_HttpPostCommandParser.java
582
public class PaymentException extends BroadleafException { private static final long serialVersionUID = 1L; protected PaymentResponse paymentResponse; public PaymentException() { super(); } public PaymentException(String message, Throwable cause) { super(message, cause); } ...
0true
common_src_main_java_org_broadleafcommerce_common_vendor_service_exception_PaymentException.java
203
new IProblemChangedListener() { public void problemsChanged(IResource[] changedResources, boolean isMarkerChange) { // Remove annotations that were resolved by changes to // other resources. // TODO: It would be better to match the markers to the...
0true
plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_editor_CeylonEditor.java
1,595
class ApplySettings implements NodeSettingsService.Listener { @Override public void onRefreshSettings(Settings settings) { boolean newEnableRelocation = settings.getAsBoolean(CLUSTER_ROUTING_ALLOCATION_SNAPSHOT_RELOCATION_ENABLED, enableRelocation); if (newEnableRelocation !=...
0true
src_main_java_org_elasticsearch_cluster_routing_allocation_decider_SnapshotInProgressAllocationDecider.java
2,077
public interface BytesStream { BytesReference bytes(); }
0true
src_main_java_org_elasticsearch_common_io_BytesStream.java
2,299
return new FilterRecycler<T>() { private final Object lock; { this.lock = new Object(); } @Override protected Recycler<T> getDelegate() { return recycler; } @Override public org.el...
0true
src_main_java_org_elasticsearch_common_recycler_Recyclers.java
936
threadPool.executor(executor).execute(new Runnable() { @Override public void run() { try { onOperation(shard, shardIndex, shardOperation(shardRequest));...
0true
src_main_java_org_elasticsearch_action_support_broadcast_TransportBroadcastOperationAction.java
958
public abstract class ClusterInfoRequestBuilder<Request extends ClusterInfoRequest<Request>, Response extends ActionResponse, Builder extends ClusterInfoRequestBuilder<Request, Response, Builder>> extends MasterNodeReadOperationRequestBuilder<Request, Response, Builder> { protected ClusterInfoRequestBuilder(Intern...
0true
src_main_java_org_elasticsearch_action_support_master_info_ClusterInfoRequestBuilder.java
1,010
public interface OStringBuilderSerializable { public OStringBuilderSerializable toStream(StringBuilder iOutput) throws OSerializationException; public OStringBuilderSerializable fromStream(StringBuilder iInput) throws OSerializationException; }
0true
core_src_main_java_com_orientechnologies_orient_core_serialization_serializer_string_OStringBuilderSerializable.java
193
public abstract class LockKeyColumnValueStoreTest extends AbstractKCVSTest { private static final Logger log = LoggerFactory.getLogger(LockKeyColumnValueStoreTest.class); public static final int CONCURRENCY = 8; public static final int NUM_TX = 2; public static final String DB_NAME = "test...
0true
titan-test_src_main_java_com_thinkaurelius_titan_diskstorage_LockKeyColumnValueStoreTest.java
2,166
class NoAcceptDocsIterator extends DocIdSetIterator { private final int maxDoc; private int doc = -1; NoAcceptDocsIterator(int maxDoc) { this.maxDoc = maxDoc; } @Override public int docID() { return doc; } @Override ...
1no label
src_main_java_org_elasticsearch_common_lucene_docset_MatchDocIdSet.java
516
@RunWith(HazelcastParallelClassRunner.class) @Category(QuickTest.class) public class ClientTopicTest { static HazelcastInstance client; static HazelcastInstance server; @BeforeClass public static void init(){ server = Hazelcast.newHazelcastInstance(); client = HazelcastClient.newHazelc...
0true
hazelcast-client_src_test_java_com_hazelcast_client_topic_ClientTopicTest.java
164
public interface SpeedTest { public void cycle() throws Exception; public void init() throws Exception; public void deinit() throws Exception; public void beforeCycle() throws Exception; public void afterCycle() throws Exception; }
0true
commons_src_test_java_com_orientechnologies_common_test_SpeedTest.java
11
public interface DataProvider extends FeedAggregator { /** * An enum which defines the various level of service (LOS) a data provider can provide. * */ public static enum LOS { /** Fast enum. */ fast, /** Medium enum. */ medium, /** Slow enum.*/ s...
0true
mctcore_src_main_java_gov_nasa_arc_mct_api_feed_DataProvider.java
5,068
static class FieldDataWarmer extends IndicesWarmer.Listener { @Override public TerminationHandle warm(final IndexShard indexShard, IndexMetaData indexMetaData, final WarmerContext context, ThreadPool threadPool) { final MapperService mapperService = indexShard.mapperService(); ...
1no label
src_main_java_org_elasticsearch_search_SearchService.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
5,824
public class PlainHighlighter implements Highlighter { private static final String CACHE_KEY = "highlight-plain"; @Override public String[] names() { return new String[] { "plain", "highlighter" }; } public HighlightField highlight(HighlighterContext highlighterContext) { SearchCo...
1no label
src_main_java_org_elasticsearch_search_highlight_PlainHighlighter.java
3,608
public static class Defaults extends NumberFieldMapper.Defaults { public static final FieldType FIELD_TYPE = new FieldType(NumberFieldMapper.Defaults.FIELD_TYPE); static { FIELD_TYPE.freeze(); } public static final Short NULL_VALUE = null; }
0true
src_main_java_org_elasticsearch_index_mapper_core_ShortFieldMapper.java
1,195
@Service("blPaymentInfoService") public class PaymentInfoServiceImpl implements PaymentInfoService { @Resource(name = "blPaymentInfoDao") protected PaymentInfoDao paymentInfoDao; public PaymentInfo save(PaymentInfo paymentInfo) { return paymentInfoDao.save(paymentInfo); } public PaymentRe...
0true
core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_payment_service_PaymentInfoServiceImpl.java
1,373
public class AliasAction implements Streamable { public static enum Type { ADD((byte) 0), REMOVE((byte) 1); private final byte value; Type(byte value) { this.value = value; } public byte value() { return value; } public sta...
0true
src_main_java_org_elasticsearch_cluster_metadata_AliasAction.java
2,093
public class BytesStreamInput extends StreamInput { protected byte buf[]; protected int pos; protected int count; private final boolean unsafe; public BytesStreamInput(BytesReference bytes) { if (!bytes.hasArray()) { bytes = bytes.toBytesArray(); } this.buf =...
0true
src_main_java_org_elasticsearch_common_io_stream_BytesStreamInput.java
680
public class OHashIndexBufferStore extends OSingleFileSegment { public OHashIndexBufferStore(String iPath, String iType) throws IOException { super(iPath, iType); } public OHashIndexBufferStore(OStorageLocalAbstract iStorage, OStorageFileConfiguration iConfig) throws IOException { super(iStorage, iConfig...
0true
core_src_main_java_com_orientechnologies_orient_core_index_hashindex_local_OHashIndexBufferStore.java
1,298
clusterService.submitStateUpdateTask("1", new ClusterStateUpdateTask() { @Override public ClusterState execute(ClusterState currentState) { invoked3.countDown(); try { block2.await(); } catch (InterruptedException e) { ...
0true
src_test_java_org_elasticsearch_cluster_ClusterServiceTests.java
503
public interface OEngine { public String getName(); public OStorage createStorage(String iURL, Map<String, String> parameters); public void removeStorage(OStorage iStorage); public boolean isShared(); public void shutdown(); }
0true
core_src_main_java_com_orientechnologies_orient_core_engine_OEngine.java
319
new Thread() { public void run() { map.lock(key); map.lock(key); lockedLatch.countDown(); } }.start();
0true
hazelcast-client_src_test_java_com_hazelcast_client_map_ClientMapLockTest.java
1,278
public class TestSimulateError { public static TestSimulateError onDataLocalWriteRecord; public static boolean onDataLocalWriteRecord(ODataLocal iODataLocal, long[] iFilePosition, int iClusterSegment, long iClusterPosition, byte[] iContent) { if (onDataLocalWriteRecord != null) return onDataLocalWriteRecord...
0true
core_src_main_java_com_orientechnologies_orient_core_storage_impl_local_TestSimulateError.java
730
@SuppressWarnings("deprecation") public class CatalogTest extends BaseTest { @Resource private CatalogService catalogService; @Test(groups = {"testCatalog"}) @Transactional public void testCatalog() throws Exception { Category category = new CategoryImpl(); category.setName("Soaps"...
0true
integration_src_test_java_org_broadleafcommerce_core_catalog_service_CatalogTest.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
162
public class TestTxEntries { private final Random random = new Random(); private final long refTime = System.currentTimeMillis(); private final int refId = 1; private final int refMaster = 1; private final int refMe = 1; private final long startPosition = 1000; private final String storeDir ...
0true
community_kernel_src_test_java_org_neo4j_kernel_impl_transaction_xaframework_TestTxEntries.java
249
public class OEmptyCache implements OCache { @Override public void startup() { } @Override public void shutdown() { } @Override public boolean isEnabled() { return false; } @Override public boolean enable() { return false; } @Override public boolean disable() { return false; ...
0true
core_src_main_java_com_orientechnologies_orient_core_cache_OEmptyCache.java
588
public final class ConfigCheck implements IdentifiedDataSerializable { private String groupName; private String groupPassword; private String joinerType; private boolean partitionGroupEnabled; private PartitionGroupConfig.MemberGroupType memberGroupType; public ConfigCheck() { } p...
1no label
hazelcast_src_main_java_com_hazelcast_cluster_ConfigCheck.java
3,567
private static final class SuggestField extends Field { private final BytesRef payload; private final CompletionTokenStream.ToFiniteStrings toFiniteStrings; public SuggestField(String name, Reader value, FieldType type, BytesRef payload, CompletionTokenStream.ToFiniteStrings toFiniteStrings...
0true
src_main_java_org_elasticsearch_index_mapper_core_CompletionFieldMapper.java