Unnamed: 0
int64
0
6.45k
func
stringlengths
37
161k
target
class label
2 classes
project
stringlengths
33
167
402
public class ORecordTrackedSet extends AbstractCollection<OIdentifiable> implements Set<OIdentifiable>, ORecordElement { protected final ORecord<?> sourceRecord; protected Map<Object, Object> map = new HashMap<Object, Object>(); private STATUS status = STATUS.NOT_LOADED; protected final static Objec...
0true
core_src_main_java_com_orientechnologies_orient_core_db_record_ORecordTrackedSet.java
1,076
deleteAction.execute(deleteRequest, new ActionListener<DeleteResponse>() { @Override public void onResponse(DeleteResponse response) { UpdateResponse update = new UpdateResponse(response.getIndex(), response.getType(), response.getId(), res...
1no label
src_main_java_org_elasticsearch_action_update_TransportUpdateAction.java
56
@SuppressWarnings("serial") static final class ForEachTransformedEntryTask<K,V,U> extends BulkTask<K,V,Void> { final Fun<Map.Entry<K,V>, ? extends U> transformer; final Action<? super U> action; ForEachTransformedEntryTask (BulkTask<K,V,?> p, int b, int i, int f, Node...
0true
src_main_java_jsr166e_ConcurrentHashMapV8.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
655
@Repository("blCategoryDao") public class CategoryDaoImpl implements CategoryDao { protected Long currentDateResolution = 10000L; protected Date cachedDate = SystemTime.asDate(); protected Date getCurrentDateAfterFactoringInDateResolution() { Date returnDate = SystemTime.getCurrentDateWithinTimeRe...
0true
core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_catalog_dao_CategoryDaoImpl.java
528
public class DimensionUnitOfMeasureType implements Serializable, BroadleafEnumerationType { private static final long serialVersionUID = 1L; private static final Map<String, DimensionUnitOfMeasureType> TYPES = new LinkedHashMap<String, DimensionUnitOfMeasureType>(); public static final DimensionUnitOfMea...
1no label
common_src_main_java_org_broadleafcommerce_common_util_DimensionUnitOfMeasureType.java
4,963
public class RestUtils { public static PathTrie.Decoder REST_DECODER = new PathTrie.Decoder() { @Override public String decode(String value) { return RestUtils.decodeComponent(value); } }; public static boolean isBrowser(@Nullable String userAgent) { if (userAge...
1no label
src_main_java_org_elasticsearch_rest_support_RestUtils.java
176
@RunWith(HazelcastSerialClassRunner.class) @Category(QuickTest.class) public class ClientAtomicLongTest { static final String name = "test1"; static HazelcastInstance client; static HazelcastInstance server; static IAtomicLong l; @BeforeClass public static void init(){ server = Hazelca...
0true
hazelcast-client_src_test_java_com_hazelcast_client_atomiclong_ClientAtomicLongTest.java
308
public class ClusterHealthResponse extends ActionResponse implements Iterable<ClusterIndexHealth>, ToXContent { private String clusterName; int numberOfNodes = 0; int numberOfDataNodes = 0; int activeShards = 0; int relocatingShards = 0; int activePrimaryShards = 0; int initializingShards =...
0true
src_main_java_org_elasticsearch_action_admin_cluster_health_ClusterHealthResponse.java
6,274
public class MatchAssertion extends Assertion { private static final ESLogger logger = Loggers.getLogger(MatchAssertion.class); public MatchAssertion(String field, Object expectedValue) { super(field, expectedValue); } @Override protected void doAssert(Object actualValue, Object expectedV...
1no label
src_test_java_org_elasticsearch_test_rest_section_MatchAssertion.java
2,137
public class Lucene { public static final Version VERSION = Version.LUCENE_46; public static final Version ANALYZER_VERSION = VERSION; public static final Version QUERYPARSER_VERSION = VERSION; public static final NamedAnalyzer STANDARD_ANALYZER = new NamedAnalyzer("_standard", AnalyzerScope.GLOBAL, n...
1no label
src_main_java_org_elasticsearch_common_lucene_Lucene.java
311
public class ClusterIndexHealth implements Iterable<ClusterShardHealth>, Streamable, ToXContent { private String index; private int numberOfShards; private int numberOfReplicas; int activeShards = 0; int relocatingShards = 0; int initializingShards = 0; int unassignedShards = 0; ...
0true
src_main_java_org_elasticsearch_action_admin_cluster_health_ClusterIndexHealth.java
179
private static class WoohaaException extends RuntimeException { }
0true
hazelcast-client_src_test_java_com_hazelcast_client_atomiclong_ClientAtomicLongTest.java
76
@SuppressWarnings("serial") static final class MapReduceKeysToLongTask<K,V> extends BulkTask<K,V,Long> { final ObjectToLong<? super K> transformer; final LongByLongToLong reducer; final long basis; long result; MapReduceKeysToLongTask<K,V> rights, nextRight; ...
0true
src_main_java_jsr166e_ConcurrentHashMapV8.java
235
.registerHookValue(profilerPrefix + "enabled", "Cache enabled", METRIC_TYPE.ENABLED, new OProfilerHookValue() { public Object getValue() { return isEnabled(); } }, profilerMetadataPrefix + "enabled");
0true
core_src_main_java_com_orientechnologies_orient_core_cache_OAbstractRecordCache.java
344
public class NonEmptyNodeReplaceInsert extends NodeReplaceInsert { @Override protected boolean replaceNode(Node[] primaryNodes, Node testNode, final String attribute, List<Node> usedNodes) { if (testNode.getAttributes().getNamedItem(attribute) == null) { return false; } //fi...
0true
common_src_main_java_org_broadleafcommerce_common_extensibility_context_merge_handlers_NonEmptyNodeReplaceInsert.java
140
private class MyDistributedObjectListener implements DistributedObjectListener { @Override public void distributedObjectCreated(DistributedObjectEvent event) { send(event); } @Override public void distributedObjectDestroyed(DistributedObjectEvent event) { ...
1no label
hazelcast_src_main_java_com_hazelcast_client_DistributedObjectListenerRequest.java
1,016
applyTailIndexes(lastIndexResult, new IndexValuesResultListener() { @Override public boolean addResult(OIdentifiable value) { result.add(value); return true; } });
1no label
core_src_main_java_com_orientechnologies_orient_core_sql_OChainedIndexProxy.java
2,837
final class PartitionReplicaVersions { final int partitionId; // read and updated only by operation/partition threads final long[] versions = new long[InternalPartition.MAX_BACKUP_COUNT]; PartitionReplicaVersions(int partitionId) { this.partitionId = partitionId; } long[] incrementAndG...
1no label
hazelcast_src_main_java_com_hazelcast_partition_impl_PartitionReplicaVersions.java
110
public class DoubleAdder extends Striped64 implements Serializable { private static final long serialVersionUID = 7249069246863182397L; /** * Update function. Note that we must use "long" for underlying * representations, because there is no compareAndSet for double, * due to the fact that the b...
0true
src_main_java_jsr166e_DoubleAdder.java
121
public abstract class OAbstractProfiler extends OSharedResourceAbstract implements OProfilerMBean { protected long recordingFrom = -1; protected final Map<String, OProfilerHookValue> hooks = new ConcurrentHashMap<String, OProfilerHookValue>(); protected fina...
0true
commons_src_main_java_com_orientechnologies_common_profiler_OAbstractProfiler.java
2,612
private class SendPingRequest implements Runnable { private final DiscoveryNode node; private SendPingRequest(DiscoveryNode node) { this.node = node; } @Override public void run() { if (!running) { return; } t...
1no label
src_main_java_org_elasticsearch_discovery_zen_fd_NodesFaultDetection.java
149
public abstract class KeyBasedClientRequest extends PartitionClientRequest { protected abstract Object getKey(); protected final int getPartition() { Object key = getKey(); InternalPartitionService partitionService = clientEngine.getPartitionService(); if (key instanceof String) { ...
0true
hazelcast_src_main_java_com_hazelcast_client_KeyBasedClientRequest.java
71
public interface StaticAssetStorageDao { StaticAssetStorage create(); StaticAssetStorage readStaticAssetStorageById(Long id); public StaticAssetStorage readStaticAssetStorageByStaticAssetId(Long id); StaticAssetStorage save(StaticAssetStorage assetStorage); void delete(StaticAssetStorage assetSt...
0true
admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_file_dao_StaticAssetStorageDao.java
338
public static class NodeRestartResponse extends NodeOperationResponse { NodeRestartResponse() { } public NodeRestartResponse(DiscoveryNode node) { super(node); } public static NodeRestartResponse readNodeRestartResponse(StreamInput in) throws IOException { ...
0true
src_main_java_org_elasticsearch_action_admin_cluster_node_restart_NodesRestartResponse.java
27
static final class RunAfterEither extends Completion { final CompletableFuture<?> src; final CompletableFuture<?> snd; final Runnable fn; final CompletableFuture<Void> dst; final Executor executor; RunAfterEither(CompletableFuture<?> src, Comple...
0true
src_main_java_jsr166e_CompletableFuture.java
14
public interface TextCommandService { boolean offer(String queueName, Object value); Object poll(String queueName, int seconds); Object poll(String queueName); void processRequest(TextCommand command); void sendResponse(TextCommand textCommand); Object get(String mapName, String key); ...
0true
hazelcast_src_main_java_com_hazelcast_ascii_TextCommandService.java
838
public class ShardSearchFailure implements ShardOperationFailedException { public static final ShardSearchFailure[] EMPTY_ARRAY = new ShardSearchFailure[0]; private SearchShardTarget shardTarget; private String reason; private RestStatus status; private transient Throwable failure; private Sh...
0true
src_main_java_org_elasticsearch_action_search_ShardSearchFailure.java
319
public class OStorageDataHoleConfiguration extends OStorageFileConfiguration { private static final long serialVersionUID = 1L; private static final String DEF_EXTENSION = ".odh"; private static final String DEF_INCREMENT_SIZE = "50%"; public OStorageDataHoleConfiguration() { } public OStorageDataHoleConf...
0true
core_src_main_java_com_orientechnologies_orient_core_config_OStorageDataHoleConfiguration.java
271
public class MapPutRunnable implements Runnable, DataSerializable, HazelcastInstanceAware { private HazelcastInstance instance; public String mapName; public MapPutRunnable(){} public MapPutRunnable(String mapName) { this.mapName = mapName; } public void writeData(ObjectDataOutput o...
0true
hazelcast-client_src_test_java_com_hazelcast_client_executor_tasks_MapPutRunnable.java
962
public abstract class NodesOperationRequest<T extends NodesOperationRequest> extends ActionRequest<T> { public static String[] ALL_NODES = Strings.EMPTY_ARRAY; private String[] nodesIds; private TimeValue timeout; protected NodesOperationRequest() { } protected NodesOperationRequest(String...
0true
src_main_java_org_elasticsearch_action_support_nodes_NodesOperationRequest.java
325
public class OStoragePaginatedClusterConfiguration implements OStorageClusterConfiguration { public static float DEFAULT_GROW_FACTOR = (float) 1.2; public transient OStorageConfiguration root; public int id; public String name; pub...
0true
core_src_main_java_com_orientechnologies_orient_core_config_OStoragePaginatedClusterConfiguration.java
546
private static class TransactionalObjectKey { private final String serviceName; private final String name; TransactionalObjectKey(String serviceName, String name) { this.serviceName = serviceName; this.name = name; } public boolean equals(Object o) {...
0true
hazelcast-client_src_main_java_com_hazelcast_client_txn_TransactionContextProxy.java
1,518
public class SideEffectMap { public static final String CLASS = Tokens.makeNamespace(SideEffectMap.class) + ".class"; public static final String CLOSURE = Tokens.makeNamespace(SideEffectMap.class) + ".closure"; private static final ScriptEngine engine = new GremlinGroovyScriptEngine(); public enum Cou...
1no label
titan-hadoop-parent_titan-hadoop-core_src_main_java_com_thinkaurelius_titan_hadoop_mapreduce_sideeffect_SideEffectMap.java
129
public class TestApplyTransactions { @Test public void testCommittedTransactionReceivedAreForcedToLog() throws Exception { /* GIVEN * Create a tx on a db (as if the master), extract that, apply on dest (as if pullUpdate on slave). * Let slave crash uncleanly. */ Fi...
0true
community_kernel_src_test_java_org_neo4j_kernel_impl_transaction_xaframework_TestApplyTransactions.java
134
@Test public class UnsafeConverterTest extends AbstractConverterTest { @BeforeClass public void beforeClass() { converter = new OUnsafeBinaryConverter(); } @Override public void testPutIntBigEndian() { super.testPutIntBigEndian(); } @Override public void testPutIntLittleEndian() { super.te...
0true
commons_src_test_java_com_orientechnologies_common_serialization_UnsafeConverterTest.java
1,717
@Service("blDynamicEntityRemoteService") @Transactional(value="blTransactionManager", rollbackFor = ServiceException.class) public class DynamicEntityRemoteService implements DynamicEntityService, DynamicEntityRemote, ApplicationContextAware { public static final String DEFAULTPERSISTENCEMANAGERREF = "blPersistenc...
1no label
admin_broadleaf-open-admin-platform_src_main_java_org_broadleafcommerce_openadmin_server_service_DynamicEntityRemoteService.java
1,271
@Deprecated public class ShippingServiceType implements Serializable, BroadleafEnumerationType { private static final long serialVersionUID = 1L; private static final Map<String, ShippingServiceType> TYPES = new LinkedHashMap<String, ShippingServiceType>(); public static final ShippingServiceType BANDED_...
1no label
core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_pricing_service_workflow_type_ShippingServiceType.java
842
public abstract class AbstractAlterRequest extends PartitionClientRequest implements Portable, SecureRequest { protected String name; protected Data function; public AbstractAlterRequest() { } public AbstractAlterRequest(String name, Data function) { this.name = name; this.functio...
0true
hazelcast_src_main_java_com_hazelcast_concurrent_atomicreference_client_AbstractAlterRequest.java
1,188
public class CeylonBuilder extends IncrementalProjectBuilder { public static final String CEYLON_CLASSES_FOLDER_NAME = ".exploded"; /** * Extension ID of the Ceylon builder, which matches the ID in the * corresponding extension definition in plugin.xml. */ public static final String BUILDER...
1no label
plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_core_builder_CeylonBuilder.java
259
@TestMethodProviders({ LuceneJUnit3MethodProvider.class, JUnit4MethodProvider.class }) @Listeners({ ReproduceInfoPrinter.class }) @RunWith(value = com.carrotsearch.randomizedtesting.RandomizedRunner.class) @SuppressCodecs(value = "Lucene3x") // NOTE: this class is in o.a.lucene.util since it us...
0true
src_test_java_org_apache_lucene_util_AbstractRandomizedTest.java
1,398
CollectionUtil.timSort(templates, new Comparator<IndexTemplateMetaData>() { @Override public int compare(IndexTemplateMetaData o1, IndexTemplateMetaData o2) { return o2.order() - o1.order(); } });
0true
src_main_java_org_elasticsearch_cluster_metadata_MetaDataCreateIndexService.java
2,355
public class JobSupervisor { private final ConcurrentMap<Object, Reducer> reducers = new ConcurrentHashMap<Object, Reducer>(); private final ConcurrentMap<Integer, Set<Address>> remoteReducers = new ConcurrentHashMap<Integer, Set<Address>>(); private final AtomicReference<DefaultContext> context = new Atom...
1no label
hazelcast_src_main_java_com_hazelcast_mapreduce_impl_task_JobSupervisor.java
897
public abstract class TransportSearchTypeAction extends TransportAction<SearchRequest, SearchResponse> { protected final ClusterService clusterService; protected final SearchServiceTransportAction searchService; protected final SearchPhaseController searchPhaseController; public TransportSearchTypeA...
1no label
src_main_java_org_elasticsearch_action_search_type_TransportSearchTypeAction.java
132
@SuppressWarnings("restriction") public class OUnsafeBinaryConverter implements OBinaryConverter { public static final OUnsafeBinaryConverter INSTANCE = new OUnsafeBinaryConverter(); private static final Unsafe theUnsafe; private static final long BYTE_ARRAY_OFFSET; static { ...
0true
commons_src_main_java_com_orientechnologies_common_serialization_OUnsafeBinaryConverter.java
540
public class CreateTransactionRequest extends BaseTransactionRequest implements SecureRequest { private TransactionOptions options; private SerializableXID sXid; public CreateTransactionRequest() { } public CreateTransactionRequest(TransactionOptions options, SerializableXID sXid) { this....
0true
hazelcast_src_main_java_com_hazelcast_client_txn_CreateTransactionRequest.java
147
public class OBinaryTypeSerializer implements OBinarySerializer<byte[]> { private static final OBinaryConverter CONVERTER = OBinaryConverterFactory.getConverter(); public static final OBinaryTypeSerializer INSTANCE = new OBinaryTypeSerializer(); public static final byte ID = 17; public int getObjectSize(int l...
0true
commons_src_main_java_com_orientechnologies_common_serialization_types_OBinaryTypeSerializer.java
529
public class ClientTxnPortableHook implements PortableHook { public static final int F_ID = FactoryIdHelper.getFactoryId(FactoryIdHelper.CLIENT_TXN_PORTABLE_FACTORY, -19); public static final int CREATE = 1; public static final int COMMIT = 2; public static final int ROLLBACK = 3; public static fi...
0true
hazelcast_src_main_java_com_hazelcast_client_txn_ClientTxnPortableHook.java
750
public class TxnListSizeRequest extends TxnCollectionRequest { public TxnListSizeRequest() { } public TxnListSizeRequest(String name) { super(name); } @Override public Object innerCall() throws Exception { return getEndpoint().getTransactionContext(txnId).getList(name).size();...
0true
hazelcast_src_main_java_com_hazelcast_collection_client_TxnListSizeRequest.java
1,054
return new TermsEnum() { int currentTerm = 0; int freq = 0; int docFreq = -1; long totalTermFrequency = -1; int[] positions = new int[1]; int[] startOffsets = new int[1]; ...
0true
src_main_java_org_elasticsearch_action_termvector_TermVectorFields.java
368
public static class TimeConsumingMapper implements Mapper<Integer, Integer, String, Integer> { @Override public void map(Integer key, Integer value, Context<String, Integer> collector) { try { Thread.sleep(1000); } catch (Exception ignore) { ...
0true
hazelcast-client_src_test_java_com_hazelcast_client_mapreduce_ClientMapReduceTest.java
354
public class SingleTableInheritanceInfo { protected String className; protected String discriminatorName; protected DiscriminatorType discriminatorType; protected int discriminatorLength; public String getClassName() { return className; } public void setClassName(String cl...
1no label
common_src_main_java_org_broadleafcommerce_common_extensibility_jpa_convert_inheritance_SingleTableInheritanceInfo.java
133
@Test public class SafeConverterTest extends AbstractConverterTest { @BeforeClass public void beforeClass() { converter = new OSafeBinaryConverter(); } @Override public void testPutIntBigEndian() { super.testPutIntBigEndian(); } @Override public void testPutIntLittleEndian() { super.testP...
0true
commons_src_test_java_com_orientechnologies_common_serialization_SafeConverterTest.java
1,505
@SuppressWarnings("unchecked") @PrivateApi public final class HazelcastInstanceImpl implements HazelcastInstance { public final Node node; final ILogger logger; final String name; final ManagementService managementService; final LifecycleServiceImpl lifecycleService; final ManagedC...
1no label
hazelcast_src_main_java_com_hazelcast_instance_HazelcastInstanceImpl.java
1,152
public class NodesStressTest { private Node[] nodes; private int numberOfNodes = 2; private Client[] clients; private AtomicLong idGenerator = new AtomicLong(); private int fieldNumLimit = 50; private long searcherIterations = 10; private Searcher[] searcherThreads = new Searcher[1]; ...
0true
src_test_java_org_elasticsearch_benchmark_stress_NodesStressTest.java
3
Collection<Long> perm2Ids = BLCCollectionUtils.collect(perm2, new TypedTransformer<Long>() { @Override public Long transform(Object input) { return ((ProductOptionValue) input).getId(); } });
0true
admin_broadleaf-admin-module_src_main_java_org_broadleafcommerce_admin_server_service_AdminCatalogServiceImpl.java
762
public class TransportMultiGetAction extends TransportAction<MultiGetRequest, MultiGetResponse> { private final ClusterService clusterService; private final TransportShardMultiGetAction shardAction; @Inject public TransportMultiGetAction(Settings settings, ThreadPool threadPool, TransportService tran...
1no label
src_main_java_org_elasticsearch_action_get_TransportMultiGetAction.java
1,387
public static class Routing { public static final Routing EMPTY = new Routing(false, null); private final boolean required; private final String path; private final String[] pathElements; public Routing(boolean required, String path) { this.required = require...
0true
src_main_java_org_elasticsearch_cluster_metadata_MappingMetaData.java
106
public static class Order { public static final int Basic = 1000; public static final int Page = 2000; public static final int Rules = 1000; }
0true
admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_page_domain_PageImpl.java
997
execute(request, new ActionListener<Response>() { @Override public void onResponse(Response result) { try { channel.sendResponse(result); } catch (Throwable e) { onFailure(e); ...
0true
src_main_java_org_elasticsearch_action_support_replication_TransportShardReplicationOperationAction.java
143
public class GetDistributedObjectsRequest extends ClientRequest { @Override void process() throws Exception { ClientEndpoint endpoint = getEndpoint(); Collection<DistributedObject> distributedObjects = clientEngine.getProxyService().getAllDistributedObjects(); SerializationService serial...
0true
hazelcast_src_main_java_com_hazelcast_client_GetDistributedObjectsRequest.java
71
{ @Override public TransactionState create( Transaction tx ) { return TransactionState.NO_STATE; } };
0true
community_kernel_src_main_java_org_neo4j_kernel_impl_transaction_TransactionStateFactory.java
6,202
public class RandomizingClient implements InternalClient { private final SearchType defaultSearchType; private final InternalClient delegate; public RandomizingClient(InternalClient client, Random random) { this.delegate = client; // we don't use the QUERY_AND_FETCH types that break quite ...
1no label
src_test_java_org_elasticsearch_test_client_RandomizingClient.java
3,460
public class HazelcastClientBeanDefinitionParser extends AbstractHazelcastBeanDefinitionParser { protected AbstractBeanDefinition parseInternal(Element element, ParserContext parserContext) { final SpringXmlBuilder springXmlBuilder = new SpringXmlBuilder(parserContext); springXmlBuilder.handleClien...
1no label
hazelcast-spring_src_main_java_com_hazelcast_spring_HazelcastClientBeanDefinitionParser.java
1,193
boolean success = portsRange.iterate(new PortsRange.PortCallback() { @Override public boolean onPortNumber(int portNumber) { try { channel = bootstrap.bind(new InetSocketAddress(hostAddress, portNumber)); } catch (Exception e) { ...
0true
src_main_java_org_elasticsearch_bulk_udp_BulkUdpService.java
638
public class PeerRecoveryStatus { public enum Stage { INIT((byte) 0), INDEX((byte) 1), TRANSLOG((byte) 2), FINALIZE((byte) 3), DONE((byte) 4); private final byte value; Stage(byte value) { this.value = value; } public byte value...
0true
src_main_java_org_elasticsearch_action_admin_indices_status_PeerRecoveryStatus.java
585
public class TaxHostException extends TaxException { private static final long serialVersionUID = 1L; public TaxHostException() { super(); } public TaxHostException(String message, Throwable cause) { super(message, cause); } public TaxHostException(String message) { s...
0true
common_src_main_java_org_broadleafcommerce_common_vendor_service_exception_TaxHostException.java
2,229
class CustomBoostFactorWeight extends Weight { final Weight subQueryWeight; final Bits[] docSets; public CustomBoostFactorWeight(Weight subQueryWeight, int filterFunctionLength) throws IOException { this.subQueryWeight = subQueryWeight; this.docSets = new Bits[filte...
1no label
src_main_java_org_elasticsearch_common_lucene_search_function_FiltersFunctionScoreQuery.java
340
public class NodeReplaceInsert extends BaseHandler { private static final Log LOG = LogFactory.getLog(NodeReplaceInsert.class); private static final Comparator<Node> NODE_COMPARATOR = new Comparator<Node>() { public int compare(Node arg0, Node arg1) { int response = -1; if ...
0true
common_src_main_java_org_broadleafcommerce_common_extensibility_context_merge_handlers_NodeReplaceInsert.java
1,604
public class Property implements Serializable { private static final long serialVersionUID = 1L; protected String name; protected String value; protected String displayValue; protected FieldMetadata metadata = new BasicFieldMetadata(); protected boolean isAdvancedCollection = false; ...
1no label
admin_broadleaf-open-admin-platform_src_main_java_org_broadleafcommerce_openadmin_dto_Property.java
344
static class MapTryLockThread extends TestHelper { public MapTryLockThread(IMap map, String upKey, String downKey){ super(map, upKey, downKey); } public void doRun() throws Exception{ if(map.tryLock(upKey)){ try{ if(map.tryLock(do...
0true
hazelcast-client_src_test_java_com_hazelcast_client_map_ClientMapTryLockConcurrentTests.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
3,400
public static class SendEventOperation extends AbstractOperation { private EventPacket eventPacket; private int orderKey; public SendEventOperation() { } public SendEventOperation(EventPacket eventPacket, int orderKey) { this.eventPacket = eventPacket; ...
1no label
hazelcast_src_main_java_com_hazelcast_spi_impl_EventServiceImpl.java
107
public class OIOException extends OException { private static final long serialVersionUID = -3003977236203691448L; public OIOException(String string) { super(string); } public OIOException(String message, Throwable cause) { super(message, cause); } }
0true
commons_src_main_java_com_orientechnologies_common_io_OIOException.java
1,445
public class SnapshotId implements Serializable, Streamable { private String repository; private String snapshot; // Caching hash code private int hashCode; private SnapshotId() { } /** * Constructs new snapshot id * * @param repository repository name * @param snaps...
0true
src_main_java_org_elasticsearch_cluster_metadata_SnapshotId.java
1,387
public static class Map extends Mapper<NullWritable, FaunusElement, LongWritable, FaunusVertex> { private final HashMap<Long, FaunusVertex> map = new HashMap<Long, FaunusVertex>(); private static final int MAX_MAP_SIZE = 5000; private final LongWritable longWritable = new LongWritable(); ...
1no label
titan-hadoop-parent_titan-hadoop-core_src_main_java_com_thinkaurelius_titan_hadoop_formats_edgelist_EdgeListInputMapReduce.java
251
@Deprecated public class Broadleaf2CompatibilityMySQL5InnoDBDialect extends MySQL5InnoDBDialect { public Broadleaf2CompatibilityMySQL5InnoDBDialect() { super(); registerColumnType( java.sql.Types.BOOLEAN, "bit" ); } }
0true
common_src_main_java_org_broadleafcommerce_common_dialect_Broadleaf2CompatibilityMySQL5InnoDBDialect.java
497
return scheduledExecutor.scheduleWithFixedDelay(new Runnable() { public void run() { executeInternal(command); } }, initialDelay, period, unit);
1no label
hazelcast-client_src_main_java_com_hazelcast_client_spi_impl_ClientExecutionServiceImpl.java
225
private static class HazelcastInstanceAwareObject implements HazelcastInstanceAware { HazelcastInstance hazelcastInstance; public HazelcastInstance getHazelcastInstance() { return hazelcastInstance; } @Override public void setHazelcastInstance(HazelcastInstance...
0true
hazelcast-client_src_main_java_com_hazelcast_client_examples_ClientTestApp.java
1,236
final class RootFolderScanner implements IResourceVisitor { private final Module defaultModule; private final JDTModelLoader modelLoader; private final JDTModuleManager moduleManager; private final IFolderVirtualFile rootDir; private final TypeChecker typeChecker; private final List<IFile> scann...
1no label
plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_core_builder_RootFolderScanner.java
106
static final class ValueSpliterator<K,V> extends Traverser<K,V> implements ConcurrentHashMapSpliterator<V> { long est; // size estimate ValueSpliterator(Node<K,V>[] tab, int size, int index, int limit, long est) { super(tab, size, index, lim...
0true
src_main_java_jsr166e_ConcurrentHashMapV8.java
4,722
public class RepositoriesService extends AbstractComponent implements ClusterStateListener { private final RepositoryTypesRegistry typesRegistry; private final Injector injector; private final ClusterService clusterService; private volatile ImmutableMap<String, RepositoryHolder> repositories = Immut...
1no label
src_main_java_org_elasticsearch_repositories_RepositoriesService.java
80
class ChangeParametersProposal implements ICompletionProposal, ICompletionProposalExtension6 { private final Declaration dec; private final CeylonEditor editor; ChangeParametersProposal(Declaration dec, CeylonEditor editor) { this.dec = dec; this.editor = editor; } ...
0true
plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_correct_ChangeParametersProposal.java
1,513
public class NodeVersionAllocationDeciderTests extends ElasticsearchAllocationTestCase { private final ESLogger logger = Loggers.getLogger(NodeVersionAllocationDeciderTests.class); @Test public void testDoNotAllocateFromPrimary() { AllocationService strategy = createAllocationService(settingsBuild...
0true
src_test_java_org_elasticsearch_cluster_routing_allocation_NodeVersionAllocationDeciderTests.java
582
public class TransportOptimizeAction extends TransportBroadcastOperationAction<OptimizeRequest, OptimizeResponse, ShardOptimizeRequest, ShardOptimizeResponse> { private final IndicesService indicesService; @Inject public TransportOptimizeAction(Settings settings, ThreadPool threadPool, ClusterService clus...
1no label
src_main_java_org_elasticsearch_action_admin_indices_optimize_TransportOptimizeAction.java
1,824
public class AddSearchMappingRequest { private final PersistencePerspective persistencePerspective; private final CriteriaTransferObject requestedCto; private final String ceilingEntityFullyQualifiedClassname; private final Map<String, FieldMetadata> mergedProperties; private final String propertyN...
1no label
admin_broadleaf-open-admin-platform_src_main_java_org_broadleafcommerce_openadmin_server_service_persistence_module_provider_request_AddSearchMappingRequest.java
1,293
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
305
public class ClusterHealthAction extends ClusterAction<ClusterHealthRequest, ClusterHealthResponse, ClusterHealthRequestBuilder> { public static final ClusterHealthAction INSTANCE = new ClusterHealthAction(); public static final String NAME = "cluster/health"; private ClusterHealthAction() { super...
0true
src_main_java_org_elasticsearch_action_admin_cluster_health_ClusterHealthAction.java
1,353
tokenStream.getTokens()) { @Override protected boolean reuseExistingDescriptorModels() { return true; } };
1no label
plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_core_model_ProjectSourceFile.java
1,375
Collections.sort(indexesToLock, new Comparator<OIndex<?>>() { public int compare(final OIndex<?> indexOne, final OIndex<?> indexTwo) { return indexOne.getName().compareTo(indexTwo.getName()); } });
1no label
core_src_main_java_com_orientechnologies_orient_core_tx_OTransactionOptimistic.java
145
BackendOperation.execute(new Callable<Boolean>(){ @Override public Boolean call() throws Exception { config.getBackend().clearStorage(); return true; } @Override public String toString() { return "ClearBackend"; } ...
0true
titan-core_src_main_java_com_thinkaurelius_titan_core_util_TitanCleanup.java
120
public abstract class ForkJoinTask<V> implements Future<V>, Serializable { /* * See the internal documentation of class ForkJoinPool for a * general implementation overview. ForkJoinTasks are mainly * responsible for maintaining their "status" field amidst relays * to methods in ForkJoinWorker...
0true
src_main_java_jsr166e_ForkJoinTask.java
1,851
public class Merger implements Runnable { Map<MapContainer, Collection<Record>> recordMap; public Merger(Map<MapContainer, Collection<Record>> recordMap) { this.recordMap = recordMap; } public void run() { for (final MapContainer mapContainer : recordMap.ke...
1no label
hazelcast_src_main_java_com_hazelcast_map_MapService.java
16
public interface PersistenceService { /** * This method is invoked when starting a set of related persistence operations in the current thread. If the underlying * persistence implementation is a database this will likely start a transaction. This method will * generally only be used from code that ...
0true
mctcore_src_main_java_gov_nasa_arc_mct_api_persistence_PersistenceService.java
1,508
public class FailedNodeRoutingTests extends ElasticsearchAllocationTestCase { private final ESLogger logger = Loggers.getLogger(FailedNodeRoutingTests.class); @Test public void simpleFailedNodeTest() { AllocationService strategy = createAllocationService(settingsBuilder().put("cluster.routing.allo...
0true
src_test_java_org_elasticsearch_cluster_routing_allocation_FailedNodeRoutingTests.java
172
public class LogIoUtils { private static final short CURRENT_FORMAT_VERSION = ( LogEntry.CURRENT_VERSION ) & 0xFF; static final int LOG_HEADER_SIZE = 16; public static long[] readLogHeader( FileSystemAbstraction fileSystem, File file ) throws IOException { StoreChannel channel = fileSystem....
0true
community_kernel_src_main_java_org_neo4j_kernel_impl_transaction_xaframework_LogIoUtils.java
485
@Service("blExploitProtectionService") public class ExploitProtectionServiceImpl implements ExploitProtectionService { private static final String CSRFTOKEN = "csrfToken"; private static final String CSRFTOKENPARAMETER = "csrfToken"; private static final Log LOG = LogFactory.getLog(ExploitProtectionService...
1no label
common_src_main_java_org_broadleafcommerce_common_security_service_ExploitProtectionServiceImpl.java
1,206
floatIntMap = build(type, limit, smartSize, availableProcessors, new Recycler.C<FloatIntOpenHashMap>() { @Override public FloatIntOpenHashMap newInstance(int sizing) { return new FloatIntOpenHashMap(size(sizing)); } @Override public vo...
0true
src_main_java_org_elasticsearch_cache_recycler_CacheRecycler.java
537
@Deprecated public class ResourceBundleExtensionPoint { private String[] basenameExtensions = new String[0]; public String[] getBasenameExtensions() { return basenameExtensions; } public void setBasenameExtensions(String[] basenameExtensions) { this.basenameExtensions = basenameExtens...
0true
common_src_main_java_org_broadleafcommerce_common_util_ResourceBundleExtensionPoint.java
113
@Entity @Inheritance(strategy = InheritanceType.JOINED) @Table(name = "BLC_PAGE_RULE") public class PageRuleImpl implements PageRule { private static final long serialVersionUID = 1L; @Id @GeneratedValue(generator= "PageRuleId") @GenericGenerator( name="PageRuleId", strategy="org.broad...
1no label
admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_page_domain_PageRuleImpl.java