Unnamed: 0
int64
0
6.45k
func
stringlengths
29
253k
target
class label
2 classes
project
stringlengths
36
167
1,220
final class CompileErrorReporter implements DiagnosticListener<JavaFileObject> { private IProject project; private boolean errorReported; private List<IFolder> sourceDirectories; public CompileErrorReporter(IProject project) { this.project = project; sourceDirectories = Cey...
1no label
plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_core_builder_CompileErrorReporter.java
3,154
public abstract class AbstractNumericFieldDataTests extends AbstractFieldDataImplTests { protected abstract FieldDataType getFieldDataType(); @Test public void testSingleValueAllSetNumber() throws Exception { fillSingleValueAllSet(); IndexNumericFieldData indexFieldData = getForField("valu...
0true
src_test_java_org_elasticsearch_index_fielddata_AbstractNumericFieldDataTests.java
2,090
public class PutAllOperation extends AbstractMapOperation implements PartitionAwareOperation, BackupAwareOperation { private MapEntrySet entrySet; private boolean initialLoad = false; private List<Map.Entry<Data, Data>> backupEntrySet; private List<RecordInfo> backupRecordInfos; public PutAllOpera...
1no label
hazelcast_src_main_java_com_hazelcast_map_operation_PutAllOperation.java
1,490
@RunWith(HazelcastSerialClassRunner.class) @Category(QuickTest.class) public class HibernateSerializationHookNonAvailableTest { private static final Field ORIGINAL; private static final Field TYPE_MAP; private static final Method GET_SERIALIZATION_SERVICE; private static final ClassLoader FILTERING_CL...
0true
hazelcast-hibernate_hazelcast-hibernate4_src_test_java_com_hazelcast_hibernate_serialization_HibernateSerializationHookNonAvailableTest.java
2,016
@Retention(RUNTIME) @Target({ElementType.FIELD, ElementType.PARAMETER, ElementType.METHOD}) @BindingAnnotation public @interface Named { String value(); }
0true
src_main_java_org_elasticsearch_common_inject_name_Named.java
711
private final class FileFlushTask implements Callable<Void> { private final long fileId; private FileFlushTask(long fileId) { this.fileId = fileId; } @Override public Void call() throws Exception { final GroupKey firstKey = new GroupKey(fileId, 0); final GroupKey lastKey = new ...
0true
core_src_main_java_com_orientechnologies_orient_core_index_hashindex_local_cache_OWOWCache.java
432
public class ClusterStatsIndices implements ToXContent, Streamable { private int indexCount; private ShardStats shards; private DocsStats docs; private StoreStats store; private FieldDataStats fieldData; private FilterCacheStats filterCache; private IdCacheStats idCache; private Complet...
0true
src_main_java_org_elasticsearch_action_admin_cluster_stats_ClusterStatsIndices.java
194
private class LockStressor implements Runnable { private final KeyColumnValueStoreManager manager; private final KeyColumnValueStore store; private final CountDownLatch doneLatch; private final int opCount; private final StaticBuffer toLock; private int succeeded = ...
0true
titan-test_src_main_java_com_thinkaurelius_titan_diskstorage_LockKeyColumnValueStoreTest.java
263
public class EmbeddedMultiWriteStoreTest extends MultiWriteKeyColumnValueStoreTest { @Override public KeyColumnValueStoreManager openStorageManager() throws BackendException { return new CassandraEmbeddedStoreManager(CassandraStorageSetup.getEmbeddedConfiguration(getClass().getSimpleName())); } }
0true
titan-cassandra_src_test_java_com_thinkaurelius_titan_diskstorage_cassandra_embedded_EmbeddedMultiWriteStoreTest.java
872
public class TransportSearchQueryAndFetchAction extends TransportSearchTypeAction { @Inject public TransportSearchQueryAndFetchAction(Settings settings, ThreadPool threadPool, ClusterService clusterService, SearchServiceTransportAction searchService, SearchPhaseCon...
0true
src_main_java_org_elasticsearch_action_search_type_TransportSearchQueryAndFetchAction.java
3,660
public class BoostFieldMapper extends NumberFieldMapper<Float> implements InternalMapper, RootMapper { public static final String CONTENT_TYPE = "_boost"; public static final String NAME = "_boost"; public static class Defaults extends NumberFieldMapper.Defaults { public static final String NAME =...
1no label
src_main_java_org_elasticsearch_index_mapper_internal_BoostFieldMapper.java
524
Runnable incrementor = new Runnable() { public void run() { try { getKeyForUpdateLatch.await(30, TimeUnit.SECONDS); boolean result = map.tryPut(key, value, 0, TimeUnit.SECONDS); tryPutResult.set(result); ...
0true
hazelcast-client_src_test_java_com_hazelcast_client_txn_ClientTxnMapTest.java
3,752
public class MergeStats implements Streamable, ToXContent { private long total; private long totalTimeInMillis; private long totalNumDocs; private long totalSizeInBytes; private long current; private long currentNumDocs; private long currentSizeInBytes; public MergeStats() { } ...
0true
src_main_java_org_elasticsearch_index_merge_MergeStats.java
448
public class KeyRange { private final StaticBuffer start; private final StaticBuffer end; public KeyRange(StaticBuffer start, StaticBuffer end) { this.start = start; this.end = end; } @Override public String toString() { return String.format("KeyRange(left: %s, right: ...
0true
titan-core_src_main_java_com_thinkaurelius_titan_diskstorage_keycolumnvalue_KeyRange.java
3,694
public static class Builder extends NumberFieldMapper.Builder<Builder, TimestampFieldMapper> { private EnabledAttributeMapper enabledState = EnabledAttributeMapper.UNSET_DISABLED; private String path = Defaults.PATH; private FormatDateTimeFormatter dateTimeFormatter = Defaults.DATE_TIME_FOR...
1no label
src_main_java_org_elasticsearch_index_mapper_internal_TimestampFieldMapper.java
742
public class ProductOptionValidationType implements Serializable, BroadleafEnumerationType { private static final long serialVersionUID = 1L; private static final Map<String, ProductOptionValidationType> TYPES = new LinkedHashMap<String, ProductOptionValidationType>(); public static final ProductOptionVa...
1no label
core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_catalog_service_type_ProductOptionValidationType.java
237
public static class Task { private final String text; private final int priority; private final int line; private final int startIndex; public Task(String text, int priority, int line, int startIndex) { this.text = text; this.priority = priority; ...
0true
plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_editor_CeylonTaskUtil.java
3,101
public class EngineCreationFailureException extends EngineException { public EngineCreationFailureException(ShardId shardId, String msg, Throwable cause) { super(shardId, msg, cause); } }
0true
src_main_java_org_elasticsearch_index_engine_EngineCreationFailureException.java
2,489
public final class XContentBuilder implements BytesStream { public static enum FieldCaseConversion { /** * No conversion will occur. */ NONE, /** * Camel Case will be converted to Underscore casing. */ UNDERSCORE, /** * Underscore...
0true
src_main_java_org_elasticsearch_common_xcontent_XContentBuilder.java
209
@SuppressWarnings("unchecked") public class OStorageRemoteThread implements OStorageProxy { private static AtomicInteger sessionSerialId = new AtomicInteger(-1); private final OStorageRemote delegate; private String serverURL; private int sessionId; public OStorageRemoteThread...
1no label
client_src_main_java_com_orientechnologies_orient_client_remote_OStorageRemoteThread.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
1,101
public class OSQLFunctionIntersect extends OSQLFunctionMultiValueAbstract<Set<Object>> { public static final String NAME = "intersect"; public OSQLFunctionIntersect() { super(NAME, 1, -1); } public Object execute(final OIdentifiable iCurrentRecord, Object iCurrentResult, final Object[] iParameters, ...
1no label
core_src_main_java_com_orientechnologies_orient_core_sql_functions_coll_OSQLFunctionIntersect.java
215
public static abstract class Configuration { // TODO This config should be split into a boolean and a string (keep_logical_logs vs kept_logical_logs) public static final Setting<String> keep_logical_logs = GraphDatabaseSettings.keep_logical_logs; }
0true
community_kernel_src_main_java_org_neo4j_kernel_impl_transaction_xaframework_LogBackedXaDataSource.java
1,268
addOperation(operations, new Runnable() { public void run() { IQueue q = hazelcast.getQueue("myQ"); q.contains(new byte[100]); } }, 1);
0true
hazelcast_src_main_java_com_hazelcast_examples_AllTest.java
1,927
public abstract class AbstractRuleBuilderFieldService implements RuleBuilderFieldService, ApplicationContextAware, InitializingBean { protected DynamicEntityDao dynamicEntityDao; protected ApplicationContext applicationContext; protected List<FieldData> fields = new ArrayList<FieldData>(); @Override ...
1no label
admin_broadleaf-open-admin-platform_src_main_java_org_broadleafcommerce_openadmin_web_rulebuilder_service_AbstractRuleBuilderFieldService.java
1,248
addOperation(operations, new Runnable() { public void run() { IMap map = hazelcast.getMap("myMap"); map.remove(random.nextInt(SIZE)); } }, 10);
0true
hazelcast_src_main_java_com_hazelcast_examples_AllTest.java
1,609
public class OCopyDatabaseChunkTask extends OAbstractReplicatedTask { private static final long serialVersionUID = 1L; private String databaseName; private boolean lastChunk = false; private byte[] chunkContent; public OCopyDatabaseChunkTask() { } public OCopyData...
1no label
server_src_main_java_com_orientechnologies_orient_server_distributed_task_OCopyDatabaseChunkTask.java
3,857
public class HasChildFilterParser implements FilterParser { public static final String NAME = "has_child"; @Inject public HasChildFilterParser() { } @Override public String[] names() { return new String[]{NAME, Strings.toCamelCase(NAME)}; } @Override public Filter parse(Q...
1no label
src_main_java_org_elasticsearch_index_query_HasChildFilterParser.java
995
public static class Presentation { public static class Tab { public static class Name { public static final String Items = "FulfillmentGroupImpl_Items_Tab"; public static final String Pricing = "FulfillmentGroupImpl_Pricing_Tab"; public static fina...
0true
core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_order_domain_FulfillmentGroupImpl.java
2,287
public class NoneRecyclerTests extends AbstractRecyclerTests { @Override protected Recycler<byte[]> newRecycler() { return Recyclers.none(RECYCLER_C); } }
0true
src_test_java_org_elasticsearch_common_recycler_NoneRecyclerTests.java
1,225
public interface OStorageProxy extends OStorage { }
0true
core_src_main_java_com_orientechnologies_orient_core_storage_OStorageProxy.java
1,818
return new ConstructionProxy<T>() { public T newInstance(Object... arguments) throws InvocationTargetException { try { return constructor.newInstance(arguments); } catch (InstantiationException e) { throw new AssertionError(e); ...
0true
src_main_java_org_elasticsearch_common_inject_DefaultConstructionProxyFactory.java
1,342
public class OUpdatePageRecord extends OAbstractPageWALRecord { private OPageChanges pageChanges; private OLogSequenceNumber prevLsn; public OUpdatePageRecord() { } public OUpdatePageRecord(long pageIndex, long fileId, OOperationUnitId operationUnitId, OPageChanges pageChanges, OLogSequenceNumbe...
0true
core_src_main_java_com_orientechnologies_orient_core_storage_impl_local_paginated_wal_OUpdatePageRecord.java
728
public class CollectionAddAllRequest extends CollectionRequest { protected List<Data> valueList; public CollectionAddAllRequest() { } public CollectionAddAllRequest(String name, List<Data> valueList) { super(name); this.valueList = valueList; } @Override protected Operati...
0true
hazelcast_src_main_java_com_hazelcast_collection_client_CollectionAddAllRequest.java
678
public static class Name { public static final String General = "CategoryImpl_Category_Description"; public static final String ActiveDateRange = "CategoryImpl_Active_Date_Range"; public static final String Advanced = "CategoryImpl_Advanced"; }
0true
core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_catalog_domain_CategoryImpl.java
1,462
public abstract class AbstractAccountController extends BroadleafAbstractController { @Resource(name="blOrderService") protected OrderService orderService; @Resource(name="blCatalogService") protected CatalogService catalogService; }
0true
core_broadleaf-framework-web_src_main_java_org_broadleafcommerce_core_web_controller_account_AbstractAccountController.java
845
return new IAnswer<OrderItemPriceDetailAdjustment>() { @Override public OrderItemPriceDetailAdjustment answer() throws Throwable { return new OrderItemPriceDetailAdjustmentImpl(); } };
0true
core_broadleaf-framework_src_test_java_org_broadleafcommerce_core_offer_service_OfferDataItemProvider.java
2,363
private class SingleExecutionProcessor implements Runnable { @Override public void run() { try { RequestPartitionResult result = mapReduceService .processRequest(supervisor.getJobOwner(), new RequestMemberIdAssignment(name, jobId), nam...
1no label
hazelcast_src_main_java_com_hazelcast_mapreduce_impl_task_MapCombineTask.java
133
class InlineDeclarationProposal implements ICompletionProposal, ICompletionProposalExtension6 { private final InlineRefactoringAction action; public InlineDeclarationProposal(CeylonEditor editor) { action = new InlineRefactoringAction(editor); } @Override public Point getS...
0true
plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_correct_InlineDeclarationProposal.java
260
{ @Override public boolean visit( XaCommand element ) { if ( element instanceof PropertyCommand ) { // THEN PropertyCommand propertyCommand = (PropertyCommand) element; verifyPropertyR...
0true
community_kernel_src_test_java_org_neo4j_kernel_impl_nioneo_xa_WriteTransactionTest.java
1,771
map.addEntryListener(new EntryAdapter() { @Override public void entryEvicted(EntryEvent event) { super.entryEvicted(event); latch.countDown(); } }, false);
0true
hazelcast_src_test_java_com_hazelcast_map_EvictionTest.java
1,732
public interface EntryProcessor<K, V> extends Serializable { /** * Process the entry without worrying about concurrency. * <p/> * * @param entry entry to be processes * @return result of the process */ Object process(Map.Entry<K, V> entry); /** * Get the entry processor ...
0true
hazelcast_src_main_java_com_hazelcast_map_EntryProcessor.java
164
{ int doneRecordCount = 0; @Override public boolean accept( LogEntry item ) { //System.out.println(item); if( item instanceof LogEntry.Done) { doneRecordCount++; // Accept ev...
0true
community_kernel_src_test_java_org_neo4j_kernel_impl_transaction_xaframework_TestPartialTransactionCopier.java
137
public interface TitanManagement extends TitanConfiguration, SchemaManager { /* ##################### RELATION TYPE INDEX ########################## */ /** * Identical to {@link #buildEdgeIndex(com.thinkaurelius.titan.core.EdgeLabel, String, com.tinkerpop.blueprints.Direction, com.thinkaurelius....
0true
titan-core_src_main_java_com_thinkaurelius_titan_core_schema_TitanManagement.java
1,176
public class OQueryOperatorContainsText extends OQueryTargetOperator { private boolean ignoreCase = true; public OQueryOperatorContainsText(final boolean iIgnoreCase) { super("CONTAINSTEXT", 5, false); ignoreCase = iIgnoreCase; } public OQueryOperatorContainsText() { super("CONTAINSTEXT", 5, false...
1no label
core_src_main_java_com_orientechnologies_orient_core_sql_operator_OQueryOperatorContainsText.java
193
public class GeneralCLibrary implements CLibrary { public static native Pointer memmove(Pointer dest, Pointer src, NativeLong len); static { Native.register(Platform.C_LIBRARY_NAME); } @Override public void memoryMove(long src, long dest, long len) { memmove(new Pointer(dest), new Pointer(src), new ...
0true
nativeos_src_main_java_com_orientechnologies_nio_GeneralCLibrary.java
93
DISJOINT { @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) value...
0true
titan-core_src_main_java_com_thinkaurelius_titan_core_attribute_Geo.java
333
fUpdateJob= new UIJob(display, PackagesMessages.PackageExplorerContentProvider_update_job_description) { @Override public IStatus runInUIThread(IProgressMonitor monitor) { TreeViewer viewer= fViewer; if (viewer != null && viewer.isBusy(...
0true
plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_explorer_PackageExplorerContentProvider.java
1,955
public interface InternalFactory<T> { /** * ES: * An factory that returns a pre created instance. */ public static class Instance<T> implements InternalFactory<T> { private final T object; public Instance(T object) { this.object = object; } @Overrid...
0true
src_main_java_org_elasticsearch_common_inject_internal_InternalFactory.java
1,295
Files.walkFileTree(testStoragePath, new SimpleFileVisitor<Path>() { @Override public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException { Path fileToCopy = copyTo.resolve(testStoragePath.relativize(file)); if (fileToCopy.endsWith("baseLocalPaginatedStorage...
0true
core_src_test_java_com_orientechnologies_orient_core_storage_impl_local_paginated_LocalPaginatedStorageRestoreFromWALAndAddAdditionalRecords.java
1,442
public static class Factory implements MetaData.Custom.Factory<RestoreMetaData> { /** * {@inheritDoc} */ @Override public String type() { return TYPE; } /** * {@inheritDoc} */ @Override public RestoreMetaData r...
0true
src_main_java_org_elasticsearch_cluster_metadata_RestoreMetaData.java
2,819
public class ArmenianAnalyzerProvider extends AbstractIndexAnalyzerProvider<ArmenianAnalyzer> { private final ArmenianAnalyzer analyzer; @Inject public ArmenianAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, Environment env, @Assisted String name, @Assisted Settings settings) { ...
0true
src_main_java_org_elasticsearch_index_analysis_ArmenianAnalyzerProvider.java
926
public abstract class BroadcastOperationRequest<T extends BroadcastOperationRequest> extends ActionRequest<T> { protected String[] indices; private BroadcastOperationThreading operationThreading = BroadcastOperationThreading.THREAD_PER_SHARD; private IndicesOptions indicesOptions = IndicesOptions.strict()...
1no label
src_main_java_org_elasticsearch_action_support_broadcast_BroadcastOperationRequest.java
629
@SuppressWarnings("unchecked") public class OIndexRemoteMultiValue extends OIndexRemote<Collection<OIdentifiable>> { protected final static String QUERY_GET = "select EXPAND( rid ) from index:%s where key = ?"; public OIndexRemoteMultiValue(final String iName, final String iWrappedType, final ORID iRid, fina...
0true
core_src_main_java_com_orientechnologies_orient_core_index_OIndexRemoteMultiValue.java
657
constructors[COLLECTION_ADD_ALL_BACKUP] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() { public IdentifiedDataSerializable createNew(Integer arg) { return new CollectionAddAllBackupOperation(); } };
0true
hazelcast_src_main_java_com_hazelcast_collection_CollectionDataSerializerHook.java
290
public class NoShardAvailableActionException extends IndexShardException { public NoShardAvailableActionException(ShardId shardId) { super(shardId, null); } public NoShardAvailableActionException(ShardId shardId, String msg) { super(shardId, msg); } public NoShardAvailableActionEx...
0true
src_main_java_org_elasticsearch_action_NoShardAvailableActionException.java
354
public enum RUN_MODE { DEFAULT, RUNNING_DISTRIBUTED }
0true
core_src_main_java_com_orientechnologies_orient_core_db_OScenarioThreadLocal.java
598
ex.execute(new Runnable() { public void run() { try { Thread.sleep(random.nextInt(10) * 1000); final Config config = new Config(); config.setProperty("hazelcast.wait.seconds.before.join", "5"); ...
0true
hazelcast_src_test_java_com_hazelcast_cluster_JoinStressTest.java
1,628
public static final Validator EMPTY = new Validator() { @Override public String validate(String setting, String value) { return null; } };
0true
src_main_java_org_elasticsearch_cluster_settings_Validator.java
4,223
public abstract class FsDirectoryService extends AbstractIndexShardComponent implements DirectoryService, StoreRateLimiting.Listener, StoreRateLimiting.Provider { protected final FsIndexStore indexStore; private final CounterMetric rateLimitingTimeInNanos = new CounterMetric(); public FsDirectoryService(...
1no label
src_main_java_org_elasticsearch_index_store_fs_FsDirectoryService.java
282
public class CTConnectionFactory implements KeyedPoolableObjectFactory<String, CTConnection> { private static final Logger log = LoggerFactory.getLogger(CTConnectionFactory.class); private static final long SCHEMA_WAIT_MAX = 5000L; private static final long SCHEMA_WAIT_INCREMENT = 25L; private final A...
1no label
titan-cassandra_src_main_java_com_thinkaurelius_titan_diskstorage_cassandra_thrift_thriftpool_CTConnectionFactory.java
314
public class TransportClusterHealthAction extends TransportMasterNodeReadOperationAction<ClusterHealthRequest, ClusterHealthResponse> { private final ClusterName clusterName; @Inject public TransportClusterHealthAction(Settings settings, TransportService transportService, ClusterService clusterService, Th...
0true
src_main_java_org_elasticsearch_action_admin_cluster_health_TransportClusterHealthAction.java
380
public interface ODetachable { /** * Detaches the object. * * @return true if the object has been fully detached, otherwise false */ public boolean detach(); }
0true
core_src_main_java_com_orientechnologies_orient_core_db_record_ODetachable.java
1,549
@Component("blDefaultErrorHandler") public class DefaultErrorHandler implements ErrorHandler { private static final Log LOG = LogFactory.getLog(DefaultErrorHandler.class); @SuppressWarnings("unused") private String name; protected List<String> unloggedExceptionClasses = new ArrayList<String>(); ...
0true
core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_workflow_DefaultErrorHandler.java
898
protected abstract class BaseAsyncAction<FirstResult extends SearchPhaseResult> { protected final ActionListener<SearchResponse> listener; protected final GroupShardsIterator shardsIts; protected final SearchRequest request; protected final ClusterState clusterState; prot...
1no label
src_main_java_org_elasticsearch_action_search_type_TransportSearchTypeAction.java
702
public static class Presentation { public static class Tab { public static class Name { public static final String Marketing = "ProductImpl_Marketing_Tab"; public static final String Media = "SkuImpl_Media_Tab"; public static final String ProductOp...
0true
core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_catalog_domain_ProductImpl.java
1,073
public class MaxSizeConfigReadOnly extends MaxSizeConfig { public MaxSizeConfigReadOnly(MaxSizeConfig config) { super(config); } public MaxSizeConfig setSize(int size) { throw new UnsupportedOperationException("This config is read-only"); } public MaxSizeConfig setMaxSizePolicy(Ma...
0true
hazelcast_src_main_java_com_hazelcast_config_MaxSizeConfigReadOnly.java
146
(new java.security.PrivilegedExceptionAction<sun.misc.Unsafe>() { public sun.misc.Unsafe run() throws Exception { Class<sun.misc.Unsafe> k = sun.misc.Unsafe.class; for (java.lang.reflect.Field f : k.getDeclaredFields()) { f.setA...
0true
src_main_java_jsr166e_extra_AtomicDouble.java
232
@Documented @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.FIELD) public @interface OVersion { }
0true
core_src_main_java_com_orientechnologies_orient_core_annotation_OVersion.java
2,674
public class FailedToResolveConfigException extends ElasticsearchException { public FailedToResolveConfigException(String msg) { super(msg); } public FailedToResolveConfigException(String msg, Throwable cause) { super(msg, cause); } }
0true
src_main_java_org_elasticsearch_env_FailedToResolveConfigException.java
2,532
new HashMap<String, Object>() {{ put("field", "value"); put("field2", "value2"); }});
0true
src_test_java_org_elasticsearch_common_xcontent_support_XContentMapValuesTests.java
4,520
class ApplySettings implements NodeSettingsService.Listener { @Override public void onRefreshSettings(Settings settings) { TimeValue interval = settings.getAsTime(INDICES_TTL_INTERVAL, IndicesTTLService.this.interval); if (!interval.equals(IndicesTTLService.this.interval)) { ...
1no label
src_main_java_org_elasticsearch_indices_ttl_IndicesTTLService.java
2,544
public class SimpleJodaTests extends ElasticsearchTestCase { @Test public void testMultiParsers() { DateTimeFormatterBuilder builder = new DateTimeFormatterBuilder(); DateTimeParser[] parsers = new DateTimeParser[3]; parsers[0] = DateTimeFormat.forPattern("MM/dd/yyyy").withZone(DateTime...
0true
src_test_java_org_elasticsearch_deps_joda_SimpleJodaTests.java
1,227
private final class Counter implements Callable<Void> { private final Random random = new Random(); public Void call() throws Exception { countDownLatch.await(); for (int n = 0; n < CYCLES_COUNT; n++) { final int modificationsCount = random.nextInt(255); modificationLock.requestMo...
0true
core_src_test_java_com_orientechnologies_orient_core_storage_StorageModificationLockTest.java
67
public class CloudyUtility { final static ILogger logger = Logger.getLogger(CloudyUtility.class); private CloudyUtility() { } public static String getQueryString(Map<String, String> attributes) { StringBuilder query = new StringBuilder(); for (Iterator<Map.Entry<String,String>> iterato...
1no label
hazelcast-cloud_src_main_java_com_hazelcast_aws_utility_CloudyUtility.java
94
WITHIN { @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) value)....
0true
titan-core_src_main_java_com_thinkaurelius_titan_core_attribute_Geo.java
1,350
completableFuture.andThen(new ExecutionCallback() { @Override public void onResponse(Object response) { reference.set(response); latch2.countDown(); } @Override public void onFailure(Throwable t) { refer...
0true
hazelcast_src_test_java_com_hazelcast_executor_ExecutorServiceTest.java
633
public final class AddMembershipListenerRequest extends CallableClientRequest implements RetryableRequest { public AddMembershipListenerRequest() { } @Override public Object call() throws Exception { final ClusterServiceImpl service = getService(); final ClientEndpoint endpoint = getEn...
0true
hazelcast_src_main_java_com_hazelcast_cluster_client_AddMembershipListenerRequest.java
2,811
public class AnalysisTestsHelper { public static AnalysisService createAnalysisServiceFromClassPath(String resource) { Settings settings = ImmutableSettings.settingsBuilder() .loadFromClasspath(resource).build(); return createAnalysisServiceFromSettings(settings); } public...
0true
src_test_java_org_elasticsearch_index_analysis_AnalysisTestsHelper.java
1,114
public class SymmetricEncryptionConfig { private boolean enabled = false; private String salt = "thesalt"; private String password = "thepassword"; private int iterationCount = 19; private String algorithm = "PBEWithMD5AndDES"; private byte[] key = null; public boolean isEnabled() { ...
0true
hazelcast_src_main_java_com_hazelcast_config_SymmetricEncryptionConfig.java
1,511
public class FilterRoutingTests extends ElasticsearchAllocationTestCase { private final ESLogger logger = Loggers.getLogger(FilterRoutingTests.class); @Test public void testClusterFilters() { AllocationService strategy = createAllocationService(settingsBuilder() .put("cluster.routi...
0true
src_test_java_org_elasticsearch_cluster_routing_allocation_FilterRoutingTests.java
571
public class ODefaultIndexFactory implements OIndexFactory { public static final String SBTREE_ALGORITHM = "SBTREE"; public static final String MVRBTREE_ALGORITHM = "MVRBTREE"; public static final String MVRBTREE_VALUE_CONTAINER = "MVRBTREESET"; public static final ...
1no label
core_src_main_java_com_orientechnologies_orient_core_index_ODefaultIndexFactory.java
265
public interface EmailTrackingManager { public Long createTrackedEmail(String emailAddress, String type, String extraValue); public void recordOpen (Long emailId, Map<String, String> extraValues); public void recordClick(Long emailId , Map<String, String> parameterMap, String customerId, Map<String, String...
0true
common_src_main_java_org_broadleafcommerce_common_email_service_EmailTrackingManager.java
1,336
final ExecutionCallback callback = new ExecutionCallback() { public void onResponse(Object response) { if (response == null) count.incrementAndGet(); latch.countDown(); } public void onFailure(Throwable t) { } ...
0true
hazelcast_src_test_java_com_hazelcast_executor_ExecutorServiceTest.java
125
final EntryAdapter<String, String> listener = new EntryAdapter<String, String>() { public void onEntryEvent(EntryEvent<String, String> event) { latch.countDown(); } };
0true
hazelcast-client_src_test_java_com_hazelcast_client_ClientReconnectTest.java
116
public class NullPageDTO extends PageDTO { }
0true
admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_page_dto_NullPageDTO.java
1,528
@Component("blRemoveFacetValuesLinkProcessor") public class RemoveFacetValuesLinkProcessor extends AbstractAttributeModifierAttrProcessor { /** * Sets the name of this processor to be used in Thymeleaf template */ public RemoveFacetValuesLinkProcessor() { super("removefacetvalueslink"); }...
0true
core_broadleaf-framework-web_src_main_java_org_broadleafcommerce_core_web_processor_RemoveFacetValuesLinkProcessor.java
313
public class ClusterShardHealth implements Streamable { private int shardId; ClusterHealthStatus status = ClusterHealthStatus.RED; int activeShards = 0; int relocatingShards = 0; int initializingShards = 0; int unassignedShards = 0; boolean primaryActive = false; private ClusterS...
0true
src_main_java_org_elasticsearch_action_admin_cluster_health_ClusterShardHealth.java
2,380
MEGA { @Override public long toSingles(long size) { return x(size, C2 / C0, MAX / (C2 / C0)); } @Override public long toKilo(long size) { return x(size, C2 / C1, MAX / (C2 / C1)); } @Override public long toMega(long size) { ...
0true
src_main_java_org_elasticsearch_common_unit_SizeUnit.java
3,845
public class GeoPolygonFilterParser implements FilterParser { public static final String NAME = "geo_polygon"; public static final String POINTS = "points"; @Inject public GeoPolygonFilterParser() { } @Override public String[] names() { return new String[]{NAME, "geoPolygon"}; ...
1no label
src_main_java_org_elasticsearch_index_query_GeoPolygonFilterParser.java
1,559
public class MoveAllocationCommand implements AllocationCommand { public static final String NAME = "move"; public static class Factory implements AllocationCommand.Factory<MoveAllocationCommand> { @Override public MoveAllocationCommand readFrom(StreamInput in) throws IOException { ...
0true
src_main_java_org_elasticsearch_cluster_routing_allocation_command_MoveAllocationCommand.java
3,538
public class CompoundTypesTests extends ElasticsearchTestCase { @Test public void testStringType() throws Exception { String mapping = XContentFactory.jsonBuilder().startObject().startObject("type") .startObject("properties") .startObject("field1").field("type", "string"...
0true
src_test_java_org_elasticsearch_index_mapper_compound_CompoundTypesTests.java
383
static class CountDownValueNotNullListener extends MyEntryListener{ public CountDownValueNotNullListener(int latchCount){ super(latchCount); } public CountDownValueNotNullListener(int addlatchCount, int removeLatchCount){ super(addlatchCount, removeLatchCount); ...
0true
hazelcast-client_src_test_java_com_hazelcast_client_multimap_ClientMultiMapListenersTest.java
1,646
public class ThreadDumpRequest implements ConsoleRequest { private boolean dumpDeadlocks; private Address target; public ThreadDumpRequest() { } public ThreadDumpRequest(Address target, boolean dumpDeadlocks) { this.target = target; this.dumpDeadlocks = dumpDeadlocks; } @...
0true
hazelcast_src_main_java_com_hazelcast_management_request_ThreadDumpRequest.java
79
public class ClientDestroyRequest extends CallableClientRequest implements Portable, RetryableRequest, SecureRequest { private String name; private String serviceName; public ClientDestroyRequest() { } public ClientDestroyRequest(String name, String serviceName) { this.name = name; ...
0true
hazelcast_src_main_java_com_hazelcast_client_ClientDestroyRequest.java
1,294
new OCommandOutputListener() { @Override public void onMessage(String text) { System.out.println(text); } });
0true
core_src_test_java_com_orientechnologies_orient_core_storage_impl_local_paginated_LocalPaginatedStorageRestoreFromWALAndAddAdditionalRecords.java
422
static final class Fields { static final XContentBuilderString SNAPSHOT = new XContentBuilderString("snapshot"); static final XContentBuilderString ACCEPTED = new XContentBuilderString("accepted"); }
0true
src_main_java_org_elasticsearch_action_admin_cluster_snapshots_restore_RestoreSnapshotResponse.java
2,864
public class GermanAnalyzerProvider extends AbstractIndexAnalyzerProvider<GermanAnalyzer> { private final GermanAnalyzer analyzer; @Inject public GermanAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, Environment env, @Assisted String name, @Assisted Settings settings) { super(...
0true
src_main_java_org_elasticsearch_index_analysis_GermanAnalyzerProvider.java
3,681
public class SizeFieldMapper extends IntegerFieldMapper implements RootMapper { public static final String NAME = "_size"; public static final String CONTENT_TYPE = "_size"; public static class Defaults extends IntegerFieldMapper.Defaults { public static final String NAME = CONTENT_TYPE; p...
1no label
src_main_java_org_elasticsearch_index_mapper_internal_SizeFieldMapper.java
636
public final class ClientPingRequest extends CallableClientRequest { public Object call() throws Exception { return null; } public String getServiceName() { return null; } public int getFactoryId() { return ClientPortableHook.ID; } public int getClassId() { ...
0true
hazelcast_src_main_java_com_hazelcast_cluster_client_ClientPingRequest.java