Unnamed: 0
int64
0
6.45k
func
stringlengths
29
253k
target
class label
2 classes
project
stringlengths
36
167
3,480
rootObjectMapper.toXContent(builder, params, new ToXContent() { @Override public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException { if (indexAnalyzer != null && searchAnalyzer != null && indexAnalyzer.name().equals(searchAnalyzer.name(...
0true
src_main_java_org_elasticsearch_index_mapper_DocumentMapper.java
735
public class OSBTreeBucket<K, V> extends ODurablePage { private static final int FREE_POINTER_OFFSET = NEXT_FREE_POSITION; private static final int SIZE_OFFSET = FREE_POINTER_OFFSET + OIntegerSerializer.INT_SIZE; private static final int IS_LEAF_OFFSET = S...
1no label
core_src_main_java_com_orientechnologies_orient_core_index_sbtree_local_OSBTreeBucket.java
3,201
public class IndexFieldDataServiceTests extends ElasticsearchTestCase { private static Settings DOC_VALUES_SETTINGS = ImmutableSettings.builder().put(FieldDataType.FORMAT_KEY, FieldDataType.DOC_VALUES_FORMAT_VALUE).build(); @SuppressWarnings("unchecked") public void testGetForFieldDefaults() { fin...
0true
src_test_java_org_elasticsearch_index_fielddata_IndexFieldDataServiceTests.java
212
protected class NavigatePreviousSubWordAction extends PreviousSubWordAction { /** * Creates a new navigate previous sub-word action. */ public NavigatePreviousSubWordAction() { super(ST.WORD_PREVIOUS); } @Override protected void setCaretPositio...
0true
plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_editor_CeylonEditor.java
3,572
public static class TypeParser implements Mapper.TypeParser { @Override public Mapper.Builder<?, ?> parse(String name, Map<String, Object> node, ParserContext parserContext) throws MapperParsingException { DateFieldMapper.Builder builder = dateField(name); parseNumberField(bu...
0true
src_main_java_org_elasticsearch_index_mapper_core_DateFieldMapper.java
108
public class OIOUtils { public static final long SECOND = 1000; public static final long MINUTE = SECOND * 60; public static final long HOUR = MINUTE * 60; public static final long DAY = HOUR * 24; public static final long YEAR = DAY * 365; public static final long WEEK = DAY * 7; public static ...
1no label
commons_src_main_java_com_orientechnologies_common_io_OIOUtils.java
27
class InvocationCompletionProposal extends CompletionProposal { static void addProgramElementReferenceProposal(int offset, String prefix, CeylonParseController cpc, List<ICompletionProposal> result, Declaration dec, Scope scope, boolean isMember) { Unit unit = cpc.getRootNode(...
0true
plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_complete_InvocationCompletionProposal.java
609
@RunWith(HazelcastSerialClassRunner.class) @Category(NightlyTest.class) public class MemberListTest { @Before @After public void killAllHazelcastInstances() throws IOException { Hazelcast.shutdownAll(); } /* * Sets up a situation where node3 removes the master and sets node2 as the ...
0true
hazelcast_src_test_java_com_hazelcast_cluster_MemberListTest.java
1,450
public class BillingInfoForm implements Serializable { private static final long serialVersionUID = 7408792703984771616L; private Address address = new AddressImpl(); private String paymentMethod; private String creditCardName; private String creditCardNumber; private String creditCard...
0true
core_broadleaf-framework-web_src_main_java_org_broadleafcommerce_core_web_checkout_model_BillingInfoForm.java
1,133
public class CartOperationContext implements ProcessContext { public final static long serialVersionUID = 1L; protected boolean stopEntireProcess = false; protected CartOperationRequest seedData; public void setSeedData(Object seedObject) { seedData = (CartOperationRequest) seedObject; } ...
0true
core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_order_service_workflow_CartOperationContext.java
1,108
@Test public class SQLFunctionDifferenceTest { @Test public void testOperator() { final OSQLFunctionDifference differenceFunction = new OSQLFunctionDifference() { @Override protected boolean returnDistributedResult() { return false; } }; final List<Object> income = Arrays.<Ob...
0true
core_src_test_java_com_orientechnologies_orient_core_sql_functions_coll_SQLFunctionDifferenceTest.java
1,143
static class IndexThread implements Runnable { private final Client client; private volatile boolean run = true; IndexThread(Client client) { this.client = client; } @Override public void run() { while (run) { int childIdLimi...
0true
src_test_java_org_elasticsearch_benchmark_search_child_ChildSearchAndIndexingBenchmark.java
905
public class OfferMaxUseExceededException extends CheckoutException { private static final long serialVersionUID = 1L; public OfferMaxUseExceededException() { super(); } public OfferMaxUseExceededException(String message) { super(message, null); } public OfferMaxUseExceed...
0true
core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_offer_service_exception_OfferMaxUseExceededException.java
314
public abstract class AbstractMergeBeanPostProcessor implements BeanPostProcessor, ApplicationContextAware { protected static final Log LOG = LogFactory.getLog(AbstractMergeBeanPostProcessor.class); protected String collectionRef; protected String targetRef; protected Placement placement = Placement.AP...
0true
common_src_main_java_org_broadleafcommerce_common_extensibility_context_merge_AbstractMergeBeanPostProcessor.java
1,421
public class OChannelBinaryAsynchClient extends OChannelBinary { private final Condition readCondition = lockRead.getUnderlying().newCondition(); private volatile boolean channelRead = false; private byte currentStatus; private int current...
1no label
enterprise_src_main_java_com_orientechnologies_orient_enterprise_channel_binary_OChannelBinaryAsynchClient.java
336
public class CommonsConfiguration implements WriteConfiguration { private final Configuration config; private static final Logger log = LoggerFactory.getLogger(CommonsConfiguration.class); public CommonsConfiguration() { this(new BaseConfiguration()); } public CommonsConfigur...
0true
titan-core_src_main_java_com_thinkaurelius_titan_diskstorage_configuration_backend_CommonsConfiguration.java
288
@Repository("blDataDrivenEnumerationDao") public class DataDrivenEnumerationDaoImpl implements DataDrivenEnumerationDao { @PersistenceContext(unitName = "blPU") protected EntityManager em; @Resource(name = "blEntityConfiguration") protected EntityConfiguration entityConfiguration; @Override ...
0true
common_src_main_java_org_broadleafcommerce_common_enumeration_dao_DataDrivenEnumerationDaoImpl.java
2,627
public final class BinaryClassDefinitionProxy extends BinaryClassDefinition implements ClassDefinition { public BinaryClassDefinitionProxy(int factoryId, int classId, int version, byte[] binary) { this.classId = classId; this.version = version; this.factoryId = factoryId; setBinary(...
1no label
hazelcast_src_main_java_com_hazelcast_nio_serialization_BinaryClassDefinitionProxy.java
347
field(TTL_FIELD, new HashMap<String, Object>() {{ put("enabled", true); }}).
0true
titan-es_src_main_java_com_thinkaurelius_titan_diskstorage_es_ElasticSearchIndex.java
219
public abstract class OrientConsole extends OConsoleApplication { public OrientConsole(String[] args) { super(args); } @Override protected void onException(Throwable e) { Throwable current = e; while (current != null) { err.print("\nError: " + current.toString()); current = current.get...
0true
tools_src_main_java_com_orientechnologies_orient_console_OrientConsole.java
928
public abstract class BroadcastOperationResponse extends ActionResponse { private static final ShardOperationFailedException[] EMPTY = new ShardOperationFailedException[0]; private int totalShards; private int successfulShards; private int failedShards; private ShardOperationFailedException[] shardF...
0true
src_main_java_org_elasticsearch_action_support_broadcast_BroadcastOperationResponse.java
90
public class ClientEntryListenerDisconnectTest { private static int adds = 0; private static int evictionsNull = 0; private ClientEntryListenerDisconnectTest() { } public static void main(String[] args) throws InterruptedException { Config config = new Config(); config.setGroupCo...
0true
hazelcast-client_src_test_java_com_hazelcast_client_ClientEntryListenerDisconnectTest.java
271
final class PeekDefinitionPopup extends PopupDialog implements IInformationControl, IInformationControlExtension2, IInformationControlExtension3 { private final class GotoListener implements KeyListener { @Override public void keyReleased(KeyEvent e) {} @Ove...
0true
plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_editor_PeekDefinitionPopup.java
2,969
public class CommonGramsTokenFilterFactoryTests extends ElasticsearchTokenStreamTestCase { @Test public void testDefault() throws IOException { Settings settings = ImmutableSettings.settingsBuilder().put("index.analysis.filter.common_grams_default.type", "common_grams").build(); try { ...
0true
src_test_java_org_elasticsearch_index_analysis_commongrams_CommonGramsTokenFilterFactoryTests.java
959
public class AwaitRequest extends KeyBasedClientRequest implements Portable, SecureRequest { private ObjectNamespace namespace; private String name; private long timeout; private long threadId; private String conditionId; public AwaitRequest() { } public AwaitRequest(ObjectNamespace n...
0true
hazelcast_src_main_java_com_hazelcast_concurrent_lock_client_AwaitRequest.java
370
public class GetRepositoriesRequestBuilder extends MasterNodeReadOperationRequestBuilder<GetRepositoriesRequest, GetRepositoriesResponse, GetRepositoriesRequestBuilder> { /** * Creates new get repository request builder * * @param clusterAdminClient cluster admin client */ public GetReposit...
0true
src_main_java_org_elasticsearch_action_admin_cluster_repositories_get_GetRepositoriesRequestBuilder.java
602
public class MasterConfirmationOperation extends AbstractClusterOperation { @Override public void run() { final Address endpoint = getCallerAddress(); if (endpoint == null) { return; } final ClusterServiceImpl clusterService = getService(); final ILogger logg...
0true
hazelcast_src_main_java_com_hazelcast_cluster_MasterConfirmationOperation.java
2,078
public class CachedStreams { public static void clear() { CachedStreamInput.clear(); } }
0true
src_main_java_org_elasticsearch_common_io_CachedStreams.java
2,402
final class BigLongArray extends AbstractBigArray implements LongArray { private long[][] pages; /** Constructor. */ public BigLongArray(long size, PageCacheRecycler recycler, boolean clearOnResize) { super(LONG_PAGE_SIZE, recycler, clearOnResize); this.size = size; pages = new lon...
0true
src_main_java_org_elasticsearch_common_util_BigLongArray.java
1,543
public class ProcessorUtils { /** * Gets a UTF-8 URL encoded URL based on the current URL as well as the specified map * of query string parameters * * @param baseUrl * @param parameters * @return the built URL */ public static String getUrl(String baseUrl, Map<String, ...
0true
core_broadleaf-framework-web_src_main_java_org_broadleafcommerce_core_web_util_ProcessorUtils.java
640
public class ShardStatus extends BroadcastShardOperationResponse { private ShardRouting shardRouting; IndexShardState state; ByteSizeValue storeSize; long translogId = -1; long translogOperations = -1; DocsStatus docs; MergeStats mergeStats; RefreshStats refreshStats; FlushS...
0true
src_main_java_org_elasticsearch_action_admin_indices_status_ShardStatus.java
804
return new PortableFactory() { @Override public Portable create(int classId) { switch (classId) { case ADD_AND_GET: return new AddAndGetRequest(); case COMPARE_AND_SET: return new Comp...
0true
hazelcast_src_main_java_com_hazelcast_concurrent_atomiclong_client_AtomicLongPortableHook.java
1,687
public class OAsyncCommandResultListener extends OAbstractCommandResultListener { private final ONetworkProtocolBinary protocol; private final AtomicBoolean empty = new AtomicBoolean(true); private final int txId; public OAsyncCommandResultListener(final ONetworkProtocolBinary iNet...
1no label
server_src_main_java_com_orientechnologies_orient_server_network_protocol_binary_OAsyncCommandResultListener.java
1,659
public final class Preconditions { private Preconditions() { } /** * Ensures the truth of an expression involving one or more parameters to the * calling method. * * @param expression a boolean expression * @throws org.elasticsearch.ElasticsearchIllegalArgumentException * ...
0true
src_main_java_org_elasticsearch_common_Preconditions.java
2,329
interface Builder { /** * Builds the settings. */ Settings build(); }
0true
src_main_java_org_elasticsearch_common_settings_Settings.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
940
Thread thread = new Thread(new Runnable() { public void run() { try { lock2.lock(); error.set(true); } catch (Throwable ignored) { } } });
0true
hazelcast_src_test_java_com_hazelcast_concurrent_lock_LockTest.java
10
CollectionUtils.collect(values, new Transformer() { @Override public Object transform(Object input) { return ((ProductOptionValue) input).getAttributeValue(); } }, stringValues);
0true
admin_broadleaf-admin-module_src_main_java_org_broadleafcommerce_admin_server_service_handler_SkuCustomPersistenceHandler.java
2,598
private static class MasterPingResponseResponse extends TransportResponse { private boolean connectedToMaster; private MasterPingResponseResponse() { } private MasterPingResponseResponse(boolean connectedToMaster) { this.connectedToMaster = connectedToMaster; }...
0true
src_main_java_org_elasticsearch_discovery_zen_fd_MasterFaultDetection.java
427
public class ClusterStateRequest extends MasterNodeReadOperationRequest<ClusterStateRequest> { private boolean routingTable = true; private boolean nodes = true; private boolean metaData = true; private boolean blocks = true; private String[] indices = Strings.EMPTY_ARRAY; private String[] inde...
1no label
src_main_java_org_elasticsearch_action_admin_cluster_state_ClusterStateRequest.java
326
ExecutionCallback executionCallback = new ExecutionCallback() { @Override public void onResponse(Object response) { latch.countDown(); } @Override public void onFailure(Throwable t) { } };
0true
hazelcast-client_src_test_java_com_hazelcast_client_map_ClientMapTest.java
352
public class ODefaultDataSegmentStrategy implements ODataSegmentStrategy { public int assignDataSegmentId(final ODatabase iDatabase, final ORecord<?> iRecord) { // GET THE DATASEGMENT SPECIFIED IN THE RECORD IF ANY final String dsName = iRecord.getDataSegmentName(); if (dsName != null) return iData...
0true
core_src_main_java_com_orientechnologies_orient_core_db_ODefaultDataSegmentStrategy.java
922
new ConstructorFunction<ObjectNamespace, EntryTaskScheduler>() { @Override public EntryTaskScheduler createNew(ObjectNamespace namespace) { LockEvictionProcessor entryProcessor = new LockEvictionProcessor(nodeEngine, namespace); Schedul...
0true
hazelcast_src_main_java_com_hazelcast_concurrent_lock_LockServiceImpl.java
1,747
private static class IncrementorEntryProcessor extends AbstractEntryProcessor implements DataSerializable { IncrementorEntryProcessor() { super(true); } public Object process(Map.Entry entry) { Integer value = (Integer) entry.getValue(); if (value == null...
0true
hazelcast_src_test_java_com_hazelcast_map_EntryProcessorTest.java
577
public class ClusterProxy implements Cluster { private final ClusterServiceImpl clusterService; public ClusterProxy(final ClusterServiceImpl clusterService) { this.clusterService = clusterService; } @Override public Member getLocalMember() { return clusterService.getLocalMember();...
0true
hazelcast_src_main_java_com_hazelcast_cluster_ClusterProxy.java
3,461
static final class Fields { static final XContentBuilderString GET = new XContentBuilderString("get"); static final XContentBuilderString TOTAL = new XContentBuilderString("total"); static final XContentBuilderString TIME = new XContentBuilderString("getTime"); static final XContentB...
0true
src_main_java_org_elasticsearch_index_get_GetStats.java
883
threadPool.executor(ThreadPool.Names.SEARCH).execute(new Runnable() { @Override public void run() { Tuple<String, Long>[] context1 = scrollId.getContext(); for (int i = 0; i < context1.length; i++...
0true
src_main_java_org_elasticsearch_action_search_type_TransportSearchScrollQueryAndFetchAction.java
3,241
class PerSegmentComparator extends NestedWrappableComparator<BytesRef> { final Ordinals.Docs readerOrds; final BytesValues.WithOrdinals termsIndex; public PerSegmentComparator(BytesValues.WithOrdinals termsIndex) { this.readerOrds = termsIndex.ordinals(); this.termsI...
1no label
src_main_java_org_elasticsearch_index_fielddata_fieldcomparator_BytesRefOrdValComparator.java
1,898
public class CacheRecord implements Comparable<CacheRecord> { final Data key; final Object value; final long creationTime; final AtomicInteger hit; volatile long lastAccessTime; CacheRecord(Data key, Object value) { this.key = key; this.value ...
0true
hazelcast_src_main_java_com_hazelcast_map_NearCache.java
1,251
public class ClientTransportModule extends AbstractModule { @Override protected void configure() { bind(InternalTransportClient.class).asEagerSingleton(); bind(InternalTransportAdminClient.class).asEagerSingleton(); bind(InternalTransportIndicesAdminClient.class).asEagerSingleton(); ...
0true
src_main_java_org_elasticsearch_client_transport_ClientTransportModule.java
1,061
public class ManagementCenterConfig { private boolean enabled = false; private String url; private int updateInterval = 5; private String clusterId; private String securityToken; public ManagementCenterConfig() { } public ManagementCenterConfig(final String url, final int ...
0true
hazelcast_src_main_java_com_hazelcast_config_ManagementCenterConfig.java
597
public class ServiceStatusType implements Serializable, BroadleafEnumerationType { private static final long serialVersionUID = 1L; private static final Map<String, ServiceStatusType> TYPES = new LinkedHashMap<String, ServiceStatusType>(); public static final ServiceStatusType UP = new ServiceStatusType...
1no label
common_src_main_java_org_broadleafcommerce_common_vendor_service_type_ServiceStatusType.java
848
new Visitor() { private boolean needsParens = false; @Override public void visit(Tree.Variable that) { if (that.getType() instanceof Tree.SyntheticVariable) { TypedDeclaration od = that.getDeclarationModel().get...
1no label
plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_refactor_InlineRefactoring.java
94
@Target(ElementType.PARAMETER) @Retention(RetentionPolicy.RUNTIME) public @interface ConsoleParameter { String name() default ""; String description() default ""; boolean optional() default false; }
0true
commons_src_main_java_com_orientechnologies_common_console_annotation_ConsoleParameter.java
442
static final class Fields { static final XContentBuilderString VERSIONS = new XContentBuilderString("versions"); static final XContentBuilderString VERSION = new XContentBuilderString("version"); static final XContentBuilderString VM_NAME = new XContentBuilderString("vm_name"...
0true
src_main_java_org_elasticsearch_action_admin_cluster_stats_ClusterStatsNodes.java
1,039
public static class Tab { public static class Name { public static final String Advanced = "OrderImpl_Advanced"; } public static class Order { public static final int Advanced = 2000; } }
0true
core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_order_domain_OrderItemImpl.java
329
@SuppressWarnings("serial") public class OStorageTxConfiguration extends OStorageFileConfiguration { private static final String DEF_EXTENSION = ".otd"; private static final String DEF_MAX_SIZE = "512mb"; private static final String DEF_INCREMENT_SIZE = "50%"; private boolean synchRecord = false; ...
0true
core_src_main_java_com_orientechnologies_orient_core_config_OStorageTxConfiguration.java
803
@Entity @Table(name = "BLC_CUSTOMER_OFFER_XREF") @Inheritance(strategy=InheritanceType.JOINED) public class CustomerOfferImpl implements CustomerOffer { public static final long serialVersionUID = 1L; @Id @GeneratedValue(generator= "CustomerOfferId") @GenericGenerator( name="CustomerOfferId", ...
1no label
core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_offer_domain_CustomerOfferImpl.java
304
{ @Override protected NodePropertyUpdate read( NodeRecord node ) { long[] labels = parseLabelsField( node ).get( nodeStore ); if ( !containsLabel( soughtLabelId, labels ) ) { return null; } ...
0true
community_kernel_src_main_java_org_neo4j_kernel_impl_nioneo_xa_NeoStoreIndexStoreView.java
906
Thread t = new Thread(new Runnable() { public void run() { try { lock.lock(); if (lock.isLockedByCurrentThread()) { count.incrementAndGet(); } condition.await(); ...
0true
hazelcast_src_test_java_com_hazelcast_concurrent_lock_ConditionTest.java
1,349
@Repository("blZipCodeDao") public class ZipCodeDaoImpl implements ZipCodeDao { @PersistenceContext(unitName="blPU") private EntityManager em; @SuppressWarnings("unchecked") public ZipCode findZipCodeByZipCode(Integer zipCode) { Query query = em.createNamedQuery("BC_FIND_ZIP_CODE_BY_ZIP_CODE")...
0true
core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_store_dao_ZipCodeDaoImpl.java
1,208
public interface OClusterFactory { OCluster createCluster(String iType); OCluster createCluster(OStorageClusterConfiguration iConfig); String[] getSupported(); boolean isSupported(String clusterType); }
0true
core_src_main_java_com_orientechnologies_orient_core_storage_OClusterFactory.java
1,487
public class BroadleafSearchController extends AbstractCatalogController { @Resource(name = "blSearchService") protected SearchService searchService; @Resource(name = "blExploitProtectionService") protected ExploitProtectionService exploitProtectionService; @Resource(name = "blSearchFacet...
0true
core_broadleaf-framework-web_src_main_java_org_broadleafcommerce_core_web_controller_catalog_BroadleafSearchController.java
550
public class ClientTxnListProxy<E> extends AbstractClientTxnCollectionProxy<E> implements TransactionalList<E> { public ClientTxnListProxy(String name, TransactionContextProxy proxy) { super(name, proxy); } public String getServiceName() { return ListService.SERVICE_NAME; } public...
0true
hazelcast-client_src_main_java_com_hazelcast_client_txn_proxy_ClientTxnListProxy.java
1,646
tasks.add(distributedQueryExecutors.submit(new Runnable() { @Override public void run() { try { Object result = node.command(wrapped.getName(), iDistributedCommand, false); if (result != null && !node.isLocal()) { // generally we need thread local da...
0true
distributed_src_main_java_com_orientechnologies_orient_server_hazelcast_oldsharding_OAbstractDistributedQueryExecutor.java
1,530
public class SingleShardOneReplicaRoutingTests extends ElasticsearchAllocationTestCase { private final ESLogger logger = Loggers.getLogger(SingleShardOneReplicaRoutingTests.class); @Test public void testSingleIndexFirstStartPrimaryThenBackups() { AllocationService strategy = createAllocationServic...
0true
src_test_java_org_elasticsearch_cluster_routing_allocation_SingleShardOneReplicaRoutingTests.java
695
constructors[LIST_GET] = new ConstructorFunction<Integer, Portable>() { public Portable createNew(Integer arg) { return new ListGetRequest(); } };
0true
hazelcast_src_main_java_com_hazelcast_collection_CollectionPortableHook.java
1,939
public class MapExecuteWithPredicateRequest extends AllPartitionsClientRequest { private String name; private EntryProcessor processor; private Predicate predicate; public MapExecuteWithPredicateRequest() { } public MapExecuteWithPredicateRequest(String name, EntryProcessor processor, Predicat...
0true
hazelcast_src_main_java_com_hazelcast_map_client_MapExecuteWithPredicateRequest.java
864
public enum STATUSES { SUSPENDED, ACTIVE }
0true
core_src_main_java_com_orientechnologies_orient_core_metadata_security_OUser.java
2,010
public static class TestMapStore extends MapStoreAdapter implements MapLoaderLifecycleSupport, MapStore { final Map store = new ConcurrentHashMap(); final CountDownLatch latchStore; final CountDownLatch latchStoreAll; final CountDownLatch latchDelete; final CountDownLatch l...
0true
hazelcast_src_test_java_com_hazelcast_map_mapstore_MapStoreTest.java
540
public class OHookThreadLocal extends ThreadLocal<Set<OIdentifiable>> { public static OHookThreadLocal INSTANCE = new OHookThreadLocal(); @Override protected Set<OIdentifiable> initialValue() { return new HashSet<OIdentifiable>(); } public boolean push(final OIdentifiable iRecord) { final Set<OIdentifiable> ...
0true
core_src_main_java_com_orientechnologies_orient_core_hook_OHookThreadLocal.java
447
static final class Fields { static final XContentBuilderString CPU = new XContentBuilderString("cpu"); static final XContentBuilderString PERCENT = new XContentBuilderString("percent"); static final XContentBuilderString OPEN_FILE_DESCRIPTORS = new XContentBuilderString("open...
0true
src_main_java_org_elasticsearch_action_admin_cluster_stats_ClusterStatsNodes.java
555
public class ClientTxnSetProxy<E> extends AbstractClientTxnCollectionProxy<E> implements TransactionalSet<E> { public ClientTxnSetProxy(String name, TransactionContextProxy proxy) { super(name, proxy); } public boolean add(E e) { throwExceptionIfNull(e); final Data value = toData(e...
0true
hazelcast-client_src_main_java_com_hazelcast_client_txn_proxy_ClientTxnSetProxy.java
536
class ShardGatewaySnapshotResponse extends BroadcastShardOperationResponse { ShardGatewaySnapshotResponse() { } public ShardGatewaySnapshotResponse(String index, int shardId) { super(index, shardId); } @Override public void readFrom(StreamInput in) throws IOException { super.r...
0true
src_main_java_org_elasticsearch_action_admin_indices_gateway_snapshot_ShardGatewaySnapshotResponse.java
170
es.submit(new Runnable() { public void run() { IMap<String, byte[]> map = client.getMap("default"); while (true) { int key = (int) (Math.random() * ENTRY_COUNT); int operation = ((int) (Math.random() * 10...
0true
hazelcast-client_src_test_java_com_hazelcast_client_SimpleMapTestFromClient.java
2,953
@AnalysisSettingsRequired public class SynonymTokenFilterFactory extends AbstractTokenFilterFactory { private final SynonymMap synonymMap; private final boolean ignoreCase; @Inject public SynonymTokenFilterFactory(Index index, @IndexSettings Settings indexSettings, Environment env, IndicesAnalysisServ...
0true
src_main_java_org_elasticsearch_index_analysis_SynonymTokenFilterFactory.java
26
final class DataValue { private final Map<String, String> data; DataValue(Map<String, String> data) { this.data = data; } Map<String, String> getData() { return data; } }
0true
timeSequenceFeedAggregator_src_main_java_gov_nasa_arc_mct_buffer_disk_internal_DataValue.java
438
public static class Counts implements Streamable, ToXContent { int total; int masterOnly; int dataOnly; int masterData; int client; public void addNodeInfo(NodeInfo nodeInfo) { total++; DiscoveryNode node = nodeInfo.getNode(); if (...
0true
src_main_java_org_elasticsearch_action_admin_cluster_stats_ClusterStatsNodes.java
801
public static class DocBuilder implements ToXContent { private BytesReference doc; public DocBuilder setDoc(BytesReference doc) { this.doc = doc; return this; } public DocBuilder setDoc(String field, Object value) { Map<String, Object> values = ...
0true
src_main_java_org_elasticsearch_action_percolate_PercolateSourceBuilder.java
1,374
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 static Type fromValue(byte value) { if (v...
0true
src_main_java_org_elasticsearch_cluster_metadata_AliasAction.java
2,369
public class ByteSizeValueTests extends ElasticsearchTestCase { @Test public void testActualPeta() { MatcherAssert.assertThat(new ByteSizeValue(4, ByteSizeUnit.PB).bytes(), equalTo(4503599627370496l)); } @Test public void testActualTera() { MatcherAssert.assertThat(new ByteSizeValu...
0true
src_test_java_org_elasticsearch_common_unit_ByteSizeValueTests.java
965
return new PortableFactory() { public Portable create(int classId) { switch (classId) { case LOCK: return new LockRequest(); case UNLOCK: return new UnlockRequest(); case IS_LO...
0true
hazelcast_src_main_java_com_hazelcast_concurrent_lock_client_LockPortableHook.java
1,376
public class TitanCassandraHadoopGraph extends TitanHadoopGraph { public TitanCassandraHadoopGraph(TitanHadoopSetup setup) { super(setup); } public FaunusVertex readHadoopVertex(final Configuration configuration, final ByteBuffer key, final SortedMap<ByteBuffer, Column> value) { return sup...
1no label
titan-hadoop-parent_titan-hadoop-core_src_main_java_com_thinkaurelius_titan_hadoop_formats_cassandra_TitanCassandraHadoopGraph.java
61
static final class ForwardingNode<K,V> extends Node<K,V> { final Node<K,V>[] nextTable; ForwardingNode(Node<K,V>[] tab) { super(MOVED, null, null, null); this.nextTable = tab; } Node<K,V> find(int h, Object k) { // loop to avoid arbitrarily deep r...
0true
src_main_java_jsr166e_ConcurrentHashMapV8.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
136
public interface TitanIndex extends TitanSchemaElement { }
0true
titan-core_src_main_java_com_thinkaurelius_titan_core_schema_TitanIndex.java
1,311
@Entity @Inheritance(strategy = InheritanceType.JOINED) @Table(name = "BLC_SEARCH_FACET") @Cache(usage = CacheConcurrencyStrategy.READ_WRITE, region = "blStandardElements") public class SearchFacetImpl implements SearchFacet, Serializable { private static final long serialVersionUID = 1L; @Id @GeneratedVa...
1no label
core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_search_domain_SearchFacetImpl.java
961
public class OrderItemDaoTest extends BaseTest { private Long orderItemId; private Long giftWrapItemId; @Resource private OrderItemDao orderItemDao; @Resource private SkuDao skuDao; @Test(groups = { "createDiscreteOrderItem" }, dataProvider = "basicDiscreteOrderItem", dataProviderClass =...
0true
integration_src_test_java_org_broadleafcommerce_core_order_dao_OrderItemDaoTest.java
1,793
.setImplementation(new StreamSerializer() { public void write(ObjectDataOutput out, Object object) throws IOException { } public Object read(ObjectDataInput in) throws IOException { return new DummyValue(); ...
0true
hazelcast_src_test_java_com_hazelcast_map_IssuesTest.java
2,503
FIELD_NAME { @Override public boolean isValue() { return false; } },
0true
src_main_java_org_elasticsearch_common_xcontent_XContentParser.java
1,302
public class TestApp implements EntryListener, ItemListener, MessageListener { private static final int LOAD_EXECUTORS_COUNT = 16; private static final int ONE_KB = 1024; private static final int ONE_THOUSAND = 1000; private static final int ONE_HUNDRED = 100; private static final int ONE_HOUR = 36...
0true
hazelcast_src_main_java_com_hazelcast_examples_TestApp.java
77
public class OSharedResourceExternalTimeout extends OSharedResourceTimeout { public OSharedResourceExternalTimeout(final int timeout) { super(timeout); } @Override public void acquireExclusiveLock() throws OTimeoutException { super.acquireExclusiveLock(); } @Override public void acquireSharedLock() throws...
0true
commons_src_main_java_com_orientechnologies_common_concur_resource_OSharedResourceExternalTimeout.java
608
public class OIndexManagerRemote extends OIndexManagerAbstract { private static final String QUERY_DROP = "drop index %s"; public OIndexManagerRemote(final ODatabaseRecord iDatabase) { super(iDatabase); } protected OIndex<?> getRemoteIndexInstance(boolean isMultiValueIndex, String type, String name, Set<S...
1no label
core_src_main_java_com_orientechnologies_orient_core_index_OIndexManagerRemote.java
54
public class TypeArgumentListCompletions { public static void addTypeArgumentListProposal(final int offset, final CeylonParseController cpc, final Node node, final Scope scope, final IDocument document, final List<ICompletionProposal> result) { final Integer startInd...
0true
plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_complete_TypeArgumentListCompletions.java
1,192
bootstrap.setPipelineFactory(new ChannelPipelineFactory() { @Override public ChannelPipeline getPipeline() throws Exception { return Channels.pipeline(new Handler()); } });
0true
src_main_java_org_elasticsearch_bulk_udp_BulkUdpService.java
1,492
public static class Map extends Mapper<NullWritable, FaunusVertex, NullWritable, FaunusVertex> { private boolean isVertex; private ElementChecker elementChecker; @Override public void setup(final Mapper.Context context) throws IOException, InterruptedException { this.is...
1no label
titan-hadoop-parent_titan-hadoop-core_src_main_java_com_thinkaurelius_titan_hadoop_mapreduce_filter_PropertyFilterMap.java
1,203
public abstract class OutOfMemoryHandler { /** * When an <code>OutOfMemoryError</code> is caught by Hazelcast threads, * this method is called for ALL <code>HazelcastInstance</code>s * knows by current JVM (actually ClassLoader). * * <p> * User can shutdown <tt>HazelcastInstance</tt>,...
0true
hazelcast_src_main_java_com_hazelcast_core_OutOfMemoryHandler.java
1,275
public class OStorageLocalTxExecuter { private final OStorageLocal storage; private final OTxSegment txSegment; private OTransaction currentTransaction; public OStorageLocalTxExecuter(final OStorageLocal iStorage, final OStorageTxConfiguration iConfig) throws IOException { storage = iStorage; ...
0true
core_src_main_java_com_orientechnologies_orient_core_storage_impl_local_OStorageLocalTxExecuter.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
54
private class ClusterListenerImpl extends ClusterListener.Adapter { @Override public void enteredCluster( ClusterConfiguration clusterConfiguration ) { // Catch up with elections for ( Map.Entry<String, InstanceId> memberRoles : clusterConfiguration.getRoles().ent...
1no label
enterprise_cluster_src_main_java_org_neo4j_cluster_member_paxos_PaxosClusterMemberEvents.java