Unnamed: 0 int64 0 6.45k | func stringlengths 37 143k | target class label 2
classes | project stringlengths 33 157 |
|---|---|---|---|
219 | ThreadLocal<T> response = new ThreadLocal<T>() {
@Override
protected T initialValue() {
addThreadLocal(this);
if (!createInitialValue) {
return null;
}
try {
return type.newInstance();... | 0true | common_src_main_java_org_broadleafcommerce_common_classloader_release_ThreadLocalManager.java |
1,362 | @Entity
@Table(name = "BLC_CODE_TYPES")
@Inheritance(strategy=InheritanceType.JOINED)
@Cache(usage=CacheConcurrencyStrategy.READ_WRITE, region="blStandardElements")
@Deprecated
public class CodeTypeImpl implements CodeType {
public static final long serialVersionUID = 1L;
@Id
@GeneratedValue(generator = "... | 1no label | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_util_domain_CodeTypeImpl.java |
114 | {
@Override
public Object doWork( Void state )
{
try
{
tm.rollback();
}
catch ( Exception e )
{
throw new RuntimeException( e );
}
... | 0true | community_kernel_src_test_java_org_neo4j_kernel_impl_transaction_TestJtaCompliance.java |
309 | public class MergeFileSystemAndClassPathXMLApplicationContext extends AbstractMergeXMLApplicationContext {
public MergeFileSystemAndClassPathXMLApplicationContext(ApplicationContext parent) {
super(parent);
}
public MergeFileSystemAndClassPathXMLApplicationContext(String[] classPathLocations, ... | 0true | common_src_main_java_org_broadleafcommerce_common_extensibility_context_MergeFileSystemAndClassPathXMLApplicationContext.java |
2,563 | firstMaster.clusterService.submitStateUpdateTask("local-disco-receive(from node[" + localNode + "])", new ProcessedClusterStateUpdateTask() {
@Override
public ClusterState execute(ClusterState currentState) {
DiscoveryNodes.Builder nodesBui... | 1no label | src_main_java_org_elasticsearch_discovery_local_LocalDiscovery.java |
277 | public class VersionTests extends ElasticsearchTestCase {
@Test
public void testVersions() throws Exception {
assertThat(V_0_20_0.before(V_0_90_0), is(true));
assertThat(V_0_20_0.before(V_0_20_0), is(false));
assertThat(V_0_90_0.before(V_0_20_0), is(false));
assertThat(V_0_20_0... | 0true | src_test_java_org_elasticsearch_VersionTests.java |
21 | @SuppressWarnings("rawtypes")
static final class KeySet<E> extends AbstractSet<E> implements ONavigableSet<E> {
private final ONavigableMap<E, Object> m;
KeySet(ONavigableMap<E, Object> map) {
m = map;
}
@Override
public OLazyIterator<E> iterator() {
if (m instanceof OMVRBTree)
... | 0true | commons_src_main_java_com_orientechnologies_common_collection_OMVRBTree.java |
5,436 | public class ScriptBytesValues extends BytesValues implements ScriptValues {
final SearchScript script;
private Iterator<?> iter;
private Object value;
private BytesRef scratch = new BytesRef();
public ScriptBytesValues(SearchScript script) {
super(true); // assume multi-valued
th... | 1no label | src_main_java_org_elasticsearch_search_aggregations_support_bytes_ScriptBytesValues.java |
6 | @Component("blCustomerCustomPersistenceHandler")
public class CustomerCustomPersistenceHandler extends CustomPersistenceHandlerAdapter {
private static final Log LOG = LogFactory.getLog(StructuredContentTypeCustomPersistenceHandler.class);
@Resource(name="blCustomerService")
protected CustomerService cust... | 1no label | admin_broadleaf-admin-module_src_main_java_org_broadleafcommerce_admin_server_service_handler_CustomerCustomPersistenceHandler.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 |
1,466 | public class FindReferencesVisitor extends Visitor implements NaturalVisitor {
private Referenceable declaration;
private final Set<Node> nodes = new HashSet<Node>();
public FindReferencesVisitor(Referenceable declaration) {
if (declaration instanceof TypedDeclaration) {
Refere... | 1no label | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_util_FindReferencesVisitor.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 |
4,427 | shardGatewayService.recover(indexShouldExists, new IndexShardGatewayService.RecoveryListener() {
@Override
public void onRecoveryDone() {
shardStateAction.shardStarted(shardRouting, indexMetaData.getUUID(), "after recovery from gateway");
... | 1no label | src_main_java_org_elasticsearch_indices_cluster_IndicesClusterStateService.java |
229 | @Documented
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
/**
* Tells to OrientDB to call the method BEFORE the record is marshalled and written to the database.
* Applies only to the entity Objects reachable by the OrientDB engine after have registered them.
*/
public @interface OBeforeSerializati... | 0true | core_src_main_java_com_orientechnologies_orient_core_annotation_OBeforeSerialization.java |
2,891 | public static class AndPredicate implements IndexAwarePredicate, DataSerializable {
protected Predicate[] predicates;
public AndPredicate() {
}
public AndPredicate(Predicate... predicates) {
this.predicates = predicates;
}
@Override
public Set<... | 1no label | hazelcast_src_main_java_com_hazelcast_query_Predicates.java |
183 | @RunWith(HazelcastSerialClassRunner.class)
@Category(QuickTest.class)
public class ClientListTest {
static final String name = "test";
static HazelcastInstance hz;
static IList list;
@BeforeClass
public static void init(){
Config config = new Config();
Hazelcast.newHazelcastInstanc... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_collections_ClientListTest.java |
611 | @Component("blSandBoxResolver")
public class BroadleafSandBoxResolverImpl implements BroadleafSandBoxResolver {
private final Log LOG = LogFactory.getLog(BroadleafSandBoxResolverImpl.class);
/**
* Property used to disable sandbox mode. Some implementations will want to
* turn off sandboxes in ... | 1no label | common_src_main_java_org_broadleafcommerce_common_web_BroadleafSandBoxResolverImpl.java |
4,469 | class RecoveryFileChunkRequest extends TransportRequest {
private long recoveryId;
private ShardId shardId;
private String name;
private long position;
private long length;
private String checksum;
private BytesReference content;
RecoveryFileChunkRequest() {
}
RecoveryFileChun... | 1no label | src_main_java_org_elasticsearch_indices_recovery_RecoveryFileChunkRequest.java |
305 | new Thread(){
public void run() {
try {
m.get("ali");
} catch (Exception ignored) {
latch.countDown();
}
}
}.start(); | 0true | hazelcast-client_src_test_java_com_hazelcast_client_map_ClientMapIssueTest.java |
1,474 | public class CyclicPathFilterMap {
public static final String CLASS = Tokens.makeNamespace(CyclicPathFilterMap.class) + ".class";
public enum Counters {
PATHS_FILTERED
}
public static Configuration createConfiguration(final Class<? extends Element> klass) {
final Configuration configu... | 1no label | titan-hadoop-parent_titan-hadoop-core_src_main_java_com_thinkaurelius_titan_hadoop_mapreduce_filter_CyclicPathFilterMap.java |
862 | public class OSecurityShared extends OSharedResourceAdaptive implements OSecurity, OCloseable {
public static final String RESTRICTED_CLASSNAME = "ORestricted";
public static final String IDENTITY_CLASSNAME = "OIdentity";
public static final String ALLOW_ALL_FIELD = "_allow";
public static final St... | 1no label | core_src_main_java_com_orientechnologies_orient_core_metadata_security_OSecurityShared.java |
1,237 | public class UnitDependencyVisitor extends Visitor {
private final PhasedUnit phasedUnit;
private Set<Declaration> alreadyDone;
public UnitDependencyVisitor(PhasedUnit phasedUnit) {
this.phasedUnit = phasedUnit;
alreadyDone = new HashSet<Declaration>();
}
private void ... | 1no label | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_core_builder_UnitDependencyVisitor.java |
2 | (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_CompletableFuture.java |
241 | highlighter = new XPostingsHighlighter() {
@Override
protected char getMultiValuedSeparator(String field) {
//U+2029 PARAGRAPH SEPARATOR (PS): each value holds a discrete passage for highlighting
return 8233;
}
}; | 0true | src_test_java_org_apache_lucene_search_postingshighlight_XPostingsHighlighterTests.java |
68 | public interface TitanProperty extends TitanRelation {
/**
* Returns the property key of this property
*
* @return property key of this property
* @see PropertyKey
*/
public PropertyKey getPropertyKey();
/**
* Returns the vertex on which this property is incident.
*
... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_core_TitanProperty.java |
277 | @SuppressWarnings("serial")
public abstract class OCommandRequestTextAbstract extends OCommandRequestAbstract implements OCommandRequestText {
protected String text;
protected OCommandRequestTextAbstract() {
}
protected OCommandRequestTextAbstract(final String iText) {
if (iText == null)
throw new I... | 1no label | core_src_main_java_com_orientechnologies_orient_core_command_OCommandRequestTextAbstract.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 |
89 | private static class DeadlockProneTransactionState extends WritableTransactionState
{
private final DoubleLatch latch;
public DeadlockProneTransactionState( LockManager lockManager, NodeManager nodeManager,
Logging logging, javax.transaction.Transaction tx, RemoteTxHook txHook, ... | 0true | community_kernel_src_test_java_org_neo4j_kernel_impl_transaction_TestCacheUpdateDeadlock.java |
299 | public class UnavailableShardsException extends ElasticsearchException {
public UnavailableShardsException(@Nullable ShardId shardId, String message) {
super(buildMessage(shardId, message));
}
private static String buildMessage(ShardId shardId, String message) {
if (shardId == null) {
... | 0true | src_main_java_org_elasticsearch_action_UnavailableShardsException.java |
41 | @Component("blDynamicFieldPersistenceHandlerHelper")
public class DynamicFieldPersistenceHandlerHelper {
/**
* Builds all of the metadata for all of the dynamic properties within a {@link StructuredContentType}, gleaned from
* the {@link FieldGroup}s and {@link FieldDefinition}s.
*
* @param fi... | 0true | admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_admin_server_handler_DynamicFieldPersistenceHandlerHelper.java |
62 | public interface Constants {
String DATE_FORMAT = "yyyy-MM-dd'T'HH:mm:ss'Z'";
String DOC_VERSION = "2011-05-15";
String SIGNATURE_METHOD = "HmacSHA256";
String SIGNATURE_VERSION = "2";
String GET = "GET";
} | 0true | hazelcast-cloud_src_main_java_com_hazelcast_aws_impl_Constants.java |
754 | public static class Item implements Streamable {
private String index;
private String type;
private String id;
private String routing;
private String[] fields;
private long version = Versions.MATCH_ANY;
private VersionType versionType = VersionType.INTERNAL;
... | 0true | src_main_java_org_elasticsearch_action_get_MultiGetRequest.java |
227 | XPostingsHighlighter highlighter = new XPostingsHighlighter(10000) {
@Override
protected String[][] loadFieldValues(IndexSearcher searcher, String[] fields, int[] docids, int maxLength) throws IOException {
assertThat(fields.length, equalTo(1));
assertThat... | 0true | src_test_java_org_apache_lucene_search_postingshighlight_XPostingsHighlighterTests.java |
222 | public class Orient extends OListenerManger<OOrientListener> {
public static final String ORIENTDB_HOME = "ORIENTDB_HOME";
public static final String URL_SYNTAX = "<engine>:<db-type>:<db-name>[?<db-param>=<db-value>[&]]*";
protected static final Orie... | 0true | core_src_main_java_com_orientechnologies_orient_core_Orient.java |
196 | public class XmlClientConfigBuilder extends AbstractXmlConfigHelper {
private static final ILogger LOGGER = Logger.getLogger(XmlClientConfigBuilder.class);
private ClientConfig clientConfig;
private InputStream in;
public XmlClientConfigBuilder(String resource) throws IOException {
URL url = ... | 1no label | hazelcast-client_src_main_java_com_hazelcast_client_config_XmlClientConfigBuilder.java |
3,386 | public class PagedBytesIndexFieldData extends AbstractBytesIndexFieldData<PagedBytesAtomicFieldData> {
private final CircuitBreakerService breakerService;
public static class Builder implements IndexFieldData.Builder {
@Override
public IndexFieldData<PagedBytesAtomicFieldData> build(Index ind... | 1no label | src_main_java_org_elasticsearch_index_fielddata_plain_PagedBytesIndexFieldData.java |
1,969 | @Entity
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "BLC_COUNTRY")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE, region="blStandardElements")
@AdminPresentationClass(friendlyName = "CountryImpl_baseCountry")
public class CountryImpl implements Country {
private static final long serialVersi... | 1no label | core_broadleaf-profile_src_main_java_org_broadleafcommerce_profile_core_domain_CountryImpl.java |
1,364 | public class OStorageMemory extends OStorageEmbedded {
private final List<ODataSegmentMemory> dataSegments = new ArrayList<ODataSegmentMemory>();
private final List<OClusterMemory> clusters = new ArrayList<OClusterMemory>();
private final Map<String, OClusterMemory> clusterMap = new... | 1no label | core_src_main_java_com_orientechnologies_orient_core_storage_impl_memory_OStorageMemory.java |
1,690 | public class OSyncCommandResultListener extends OAbstractCommandResultListener {
@Override
public boolean result(final Object iRecord) {
fetchRecord(iRecord);
return true;
}
public boolean isEmpty() {
return false;
}
} | 1no label | server_src_main_java_com_orientechnologies_orient_server_network_protocol_binary_OSyncCommandResultListener.java |
904 | @SuppressWarnings({ "unchecked" })
public class ODocument extends ORecordSchemaAwareAbstract<Object> implements Iterable<Entry<String, Object>>, ODetachable,
Externalizable {
private static final long serialVersionUID = 1L;
public static final byte ... | 1no label | core_src_main_java_com_orientechnologies_orient_core_record_impl_ODocument.java |
356 | future.andThen(new ExecutionCallback<Map<String, List<Integer>>>() {
@Override
public void onResponse(Map<String, List<Integer>> response) {
listenerResults.putAll(response);
semaphore.release();
}
@Override
public void... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_mapreduce_ClientMapReduceTest.java |
5,097 | static final class FreeContextResponseHandler extends EmptyTransportResponseHandler {
private final ESLogger logger;
FreeContextResponseHandler(ESLogger logger) {
super(ThreadPool.Names.SAME);
this.logger = logger;
}
@Override
public void handleExce... | 1no label | src_main_java_org_elasticsearch_search_action_SearchServiceTransportAction.java |
1,388 | public static class Timestamp {
public static String parseStringTimestamp(String timestampAsString, FormatDateTimeFormatter dateTimeFormatter) throws TimestampParsingException {
long ts;
try {
// if we manage to parse it, its a millisecond timestamp, just return the ... | 1no label | src_main_java_org_elasticsearch_cluster_metadata_MappingMetaData.java |
5,101 | class SearchFreeContextTransportHandler extends BaseTransportRequestHandler<SearchFreeContextRequest> {
static final String ACTION = "search/freeContext";
@Override
public SearchFreeContextRequest newInstance() {
return new SearchFreeContextRequest();
}
@Overri... | 1no label | src_main_java_org_elasticsearch_search_action_SearchServiceTransportAction.java |
2,107 | public class TryPutOperation extends BasePutOperation {
private boolean successful;
public TryPutOperation(String name, Data dataKey, Data value, long timeout) {
super(name, dataKey, value);
setWaitTimeout(timeout);
}
public TryPutOperation() {
}
public void run() {
s... | 1no label | hazelcast_src_main_java_com_hazelcast_map_operation_TryPutOperation.java |
508 | public class DayOfWeekType implements Serializable, BroadleafEnumerationType {
private static final long serialVersionUID = 1L;
private static final Map<String, DayOfWeekType> TYPES = new LinkedHashMap<String, DayOfWeekType>();
public static final DayOfWeekType SUNDAY = new DayOfWeekType("1", "Sunday");... | 1no label | common_src_main_java_org_broadleafcommerce_common_time_DayOfWeekType.java |
3,150 | public class TxnReservePollOperation extends QueueOperation implements WaitSupport {
private long reservedOfferId;
private String transactionId;
public TxnReservePollOperation() {
}
public TxnReservePollOperation(String name, long timeoutMillis, long reservedOfferId, String transactionId) {
... | 1no label | hazelcast_src_main_java_com_hazelcast_queue_tx_TxnReservePollOperation.java |
141 | final class GenericClientExceptionConverter implements ClientExceptionConverter {
@Override
public Object convert(Throwable t) {
StringWriter s = new StringWriter();
t.printStackTrace(new PrintWriter(s));
String clazzName = t.getClass().getName();
return new GenericError(clazzNa... | 0true | hazelcast_src_main_java_com_hazelcast_client_GenericClientExceptionConverter.java |
1,539 | public class ResourceAdapterImpl implements ResourceAdapter, Serializable {
/**
* Identity generator
*/
private static final AtomicInteger ID_GEN = new AtomicInteger();
private static final long serialVersionUID = -1727994229521767306L;
/**
* The hazelcast instance itself
*/
pr... | 1no label | hazelcast-ra_hazelcast-jca_src_main_java_com_hazelcast_jca_ResourceAdapterImpl.java |
4,443 | public class IndicesFieldDataCache extends AbstractComponent implements RemovalListener<IndicesFieldDataCache.Key, AtomicFieldData> {
Cache<Key, AtomicFieldData> cache;
private volatile String size;
private volatile long sizeInBytes;
private volatile TimeValue expire;
@Inject
public IndicesF... | 1no label | src_main_java_org_elasticsearch_indices_fielddata_cache_IndicesFieldDataCache.java |
1,469 | public static class Builder {
private ShardId shardId;
private final List<ShardRouting> shards;
private boolean primaryAllocatedPostApi;
public Builder(IndexShardRoutingTable indexShard) {
this.shardId = indexShard.shardId;
this.shards = newArrayList(index... | 1no label | src_main_java_org_elasticsearch_cluster_routing_IndexShardRoutingTable.java |
287 | public class OScriptManager {
protected final String DEF_LANGUAGE = "javascript";
protected ScriptEngineManager scriptEngineManager;
protected Map<String, ScriptEngineFactory> engines = new HashMap<String, ScriptEngineFactory>();
protected Map<String, ScriptEngi... | 0true | core_src_main_java_com_orientechnologies_orient_core_command_script_OScriptManager.java |
4,481 | public class RecoveryStatus {
public static enum Stage {
INIT,
INDEX,
TRANSLOG,
FINALIZE,
DONE
}
final ShardId shardId;
final long recoveryId;
final InternalIndexShard indexShard;
public RecoveryStatus(long recoveryId, InternalIndexShard indexShard) {
... | 1no label | src_main_java_org_elasticsearch_indices_recovery_RecoveryStatus.java |
322 | static class SimpleMapStore implements MapStore<String, String>, MapLoader<String, String> {
public static final int MAX_KEYS = 30;
public static final int DELAY_SECONDS_PER_KEY = 1;
@Override
public String load(String key) {
sleepSeconds(DELAY_SECONDS_PER_KEY);
... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_map_ClientMapStoreTest.java |
41 | public class ClusterLeaveReelectionListener
extends ClusterListener.Adapter
{
private final Election election;
private final StringLogger logger;
public ClusterLeaveReelectionListener( Election election, StringLogger logger )
{
this.election = election;
this.logger = logger;
... | 1no label | enterprise_cluster_src_main_java_org_neo4j_cluster_protocol_election_ClusterLeaveReelectionListener.java |
45 | public class TouchCommandParser extends TypeAwareCommandParser {
public TouchCommandParser(TextCommandType type) {
super(type);
}
public TextCommand parser(SocketTextReader socketTextReader, String cmd, int space) {
StringTokenizer st = new StringTokenizer(cmd);
st.nextToken();
... | 0true | hazelcast_src_main_java_com_hazelcast_ascii_memcache_TouchCommandParser.java |
96 | @RunWith(HazelcastSerialClassRunner.class)
@Category(QuickTest.class)
public class ClientIssueTest extends HazelcastTestSupport {
@After
@Before
public void cleanup() throws Exception {
HazelcastClient.shutdownAll();
Hazelcast.shutdownAll();
}
@Test
public void testInitialMembe... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_ClientIssueTest.java |
523 | public class TypesExistsResponse extends ActionResponse {
private boolean exists;
TypesExistsResponse() {
}
public TypesExistsResponse(boolean exists) {
this.exists = exists;
}
public boolean isExists() {
return this.exists;
}
public void readFrom(StreamInput in) thr... | 0true | src_main_java_org_elasticsearch_action_admin_indices_exists_types_TypesExistsResponse.java |
16 | @Scope("prototype")
@Component("blSkuFieldsPersistenceProvider")
public class SkuFieldsPersistenceProvider extends FieldPersistenceProviderAdapter {
@Override
public int getOrder() {
return SkuPricingPersistenceProvider.ORDER + 1;
}
@Override
public FieldProviderResponse extractVa... | 0true | admin_broadleaf-admin-module_src_main_java_org_broadleafcommerce_admin_server_service_persistence_module_provider_SkuFieldsPersistenceProvider.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 |
254 | public interface EmailTarget extends Serializable {
public String getEmailAddress();
public void setEmailAddress(String emailAddress);
public String[] getCCAddresses();
public void setCCAddresses(String[] ccAddresses);
public String[] getBCCAddresses();
public void setBCCAddresses(String[] BCCA... | 0true | common_src_main_java_org_broadleafcommerce_common_email_domain_EmailTarget.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 |
0 | public class BerkeleyStorageSetup extends StorageSetup {
public static ModifiableConfiguration getBerkeleyJEConfiguration(String dir) {
return buildConfiguration()
.set(STORAGE_BACKEND,"berkeleyje")
.set(STORAGE_DIRECTORY, dir);
}
public static ModifiableConfigurati... | 0true | titan-berkeleyje_src_test_java_com_thinkaurelius_titan_BerkeleyStorageSetup.java |
2,586 | class RejoinClusterRequestHandler extends BaseTransportRequestHandler<RejoinClusterRequest> {
static final String ACTION = "discovery/zen/rejoin";
@Override
public RejoinClusterRequest newInstance() {
return new RejoinClusterRequest();
}
@Override
publi... | 1no label | src_main_java_org_elasticsearch_discovery_zen_ZenDiscovery.java |
421 | return new EventHandler<PortableEntryEvent>() {
public void handle(PortableEntryEvent event) {
V value = null;
V oldValue = null;
if (includeValue) {
value = toObject(event.getValue());
oldValue = toObject(event.... | 1no label | hazelcast-client_src_main_java_com_hazelcast_client_proxy_ClientMapProxy.java |
144 | static final class ThreadHashCode extends ThreadLocal<HashCode> {
public HashCode initialValue() { return new HashCode(); }
} | 0true | src_main_java_jsr166e_Striped64.java |
120 | public final class ClientPrincipal implements Portable {
private String uuid;
private String ownerUuid;
public ClientPrincipal() {
}
public ClientPrincipal(String uuid, String ownerUuid) {
this.uuid = uuid;
this.ownerUuid = ownerUuid;
}
public String getUuid() {
r... | 0true | hazelcast_src_main_java_com_hazelcast_client_ClientPrincipal.java |
1,272 | public class FaunusSerializer {
// This is volatile to support double-checked locking
private static volatile Serializer standardSerializer;
private final FaunusSchemaManager types;
private final boolean trackState;
private final boolean trackPaths;
private final Configuration configuration;
... | 1no label | titan-hadoop-parent_titan-hadoop-core_src_main_java_com_thinkaurelius_titan_hadoop_FaunusSerializer.java |
4,235 | static class CustomRAMDirectory extends RAMDirectory {
public synchronized void renameTo(String from, String to) throws IOException {
RAMFile fromFile = fileMap.get(from);
if (fromFile == null)
throw new FileNotFoundException(from);
RAMFile toFile = fileM... | 1no label | src_main_java_org_elasticsearch_index_store_ram_RamDirectoryService.java |
1,082 | public class UpdateRequest extends InstanceShardOperationRequest<UpdateRequest> {
private String type;
private String id;
@Nullable
private String routing;
@Nullable
String script;
@Nullable
String scriptLang;
@Nullable
Map<String, Object> scriptParams;
private String[] fi... | 1no label | src_main_java_org_elasticsearch_action_update_UpdateRequest.java |
425 | restoreService.addListener(new RestoreService.RestoreCompletionListener() {
SnapshotId snapshotId = new SnapshotId(request.repository(), request.snapshot());
@Override
public void onRestoreCompletion(SnapshotId ... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_snapshots_restore_TransportRestoreSnapshotAction.java |
3,687 | return new Comparator<Map.Entry>() {
public int compare(Map.Entry entry1, Map.Entry entry2) {
return SortingUtil.compare(pagingPredicate.getComparator(),
pagingPredicate.getIterationType(), entry1, entry2);
}
}; | 1no label | hazelcast_src_main_java_com_hazelcast_util_SortingUtil.java |
888 | 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++... | 1no label | src_main_java_org_elasticsearch_action_search_type_TransportSearchScrollQueryThenFetchAction.java |
217 | public class OTableFormatter {
protected final static String MORE = "...";
protected final OConsoleApplication out;
protected int minColumnSize = 4;
protected int maxWidthSize = 132;
protected final static Set<String> prefixedColumns = new Has... | 0true | tools_src_main_java_com_orientechnologies_orient_console_OTableFormatter.java |
4,628 | public final class InternalNode implements Node {
private final Lifecycle lifecycle = new Lifecycle();
private final Injector injector;
private final Settings settings;
private final Environment environment;
private final PluginsService pluginsService;
private final Client client;
pub... | 1no label | src_main_java_org_elasticsearch_node_internal_InternalNode.java |
721 | public class DeleteResponse extends ActionResponse {
private String index;
private String id;
private String type;
private long version;
private boolean found;
public DeleteResponse() {
}
public DeleteResponse(String index, String type, String id, long version, boolean found) {
... | 0true | src_main_java_org_elasticsearch_action_delete_DeleteResponse.java |
184 | ItemListener listener = new ItemListener() {
public void itemAdded(ItemEvent itemEvent) {
latch.countDown();
}
public void itemRemoved(ItemEvent item) {
}
}; | 0true | hazelcast-client_src_test_java_com_hazelcast_client_collections_ClientListTest.java |
142 | public static class Tab {
public static class Name {
public static final String Rules = "StructuredContentImpl_Rules_Tab";
}
public static class Order {
public static final int Rules = 1000;
}
} | 0true | admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_structure_domain_StructuredContentImpl.java |
3,612 | public class TransactionManagerServiceImpl implements TransactionManagerService, ManagedService,
MembershipAwareService, ClientAwareService {
public static final String SERVICE_NAME = "hz:core:txManagerService";
public static final int RECOVER_TIMEOUT = 5000;
private final NodeEngineImpl nodeEngi... | 1no label | hazelcast_src_main_java_com_hazelcast_transaction_impl_TransactionManagerServiceImpl.java |
406 | public class AbstractClientCollectionProxy<E> extends ClientProxy implements ICollection<E> {
protected final String partitionKey;
public AbstractClientCollectionProxy(String instanceName, String serviceName, String name) {
super(instanceName, serviceName, name);
partitionKey = getPartitionKey... | 1no label | hazelcast-client_src_main_java_com_hazelcast_client_proxy_AbstractClientCollectionProxy.java |
842 | searchServiceTransportAction.sendFreeContext(node, target.v2(), request, new ActionListener<Boolean>() {
@Override
public void onResponse(Boolean success) {
onFreedContext();
}
... | 1no label | src_main_java_org_elasticsearch_action_search_TransportClearScrollAction.java |
42 | static final class ModuleProposal extends CompletionProposal {
private final int len;
private final String versioned;
private final ModuleDetails module;
private final boolean withBody;
private final ModuleVersionDetails version;
private final String name;
pri... | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_complete_ModuleCompletions.java |
1,112 | public class OSQLFunctionAverage extends OSQLFunctionMathAbstract {
public static final String NAME = "avg";
private Number sum;
private int total = 0;
public OSQLFunctionAverage() {
super(NAME, 1, -1);
}
public Object execute(OIdentifiable iCurrentRecord, Object iCurrentR... | 1no label | core_src_main_java_com_orientechnologies_orient_core_sql_functions_math_OSQLFunctionAverage.java |
611 | public class UpdateSettingsResponse extends AcknowledgedResponse {
UpdateSettingsResponse() {
}
UpdateSettingsResponse(boolean acknowledged) {
super(acknowledged);
}
@Override
public void readFrom(StreamInput in) throws IOException {
super.readFrom(in);
readAcknowledge... | 0true | src_main_java_org_elasticsearch_action_admin_indices_settings_put_UpdateSettingsResponse.java |
580 | executionService.scheduleWithFixedDelay(executorName, new Runnable() {
public void run() {
heartBeater();
}
}, heartbeatInterval, heartbeatInterval, TimeUnit.SECONDS); | 1no label | hazelcast_src_main_java_com_hazelcast_cluster_ClusterServiceImpl.java |
3,387 | public class EventServiceImpl implements EventService {
private static final EventRegistration[] EMPTY_REGISTRATIONS = new EventRegistration[0];
private final ILogger logger;
private final NodeEngineImpl nodeEngine;
private final ConcurrentMap<String, EventServiceSegment> segments;
private final St... | 1no label | hazelcast_src_main_java_com_hazelcast_spi_impl_EventServiceImpl.java |
111 | @Entity
@Table(name = "BLC_PAGE_ITEM_CRITERIA")
@Inheritance(strategy=InheritanceType.JOINED)
@AdminPresentationClass(friendlyName = "PageItemCriteriaImpl_basePageItemCriteria")
public class PageItemCriteriaImpl implements PageItemCriteria {
public static final long serialVersionUID = 1L;
@Id
@Generat... | 1no label | admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_page_domain_PageItemCriteriaImpl.java |
308 | public class MergeClassPathXMLApplicationContext extends AbstractMergeXMLApplicationContext {
public MergeClassPathXMLApplicationContext(ApplicationContext parent) {
super(parent);
}
/**
* Create a new MergeClassPathXMLApplicationContext, loading the definitions from the given definitions... | 0true | common_src_main_java_org_broadleafcommerce_common_extensibility_context_MergeClassPathXMLApplicationContext.java |
52 | public class OTimeoutException extends ONeedRetryException {
private static final long serialVersionUID = 1L;
public OTimeoutException() {
super();
}
public OTimeoutException(String message, Throwable cause) {
super(message, cause);
}
public OTimeoutException(String message) {
super(message);
}
public... | 0true | commons_src_main_java_com_orientechnologies_common_concur_OTimeoutException.java |
809 | public class PlotViewFactory {
private final static Logger logger = LoggerFactory.getLogger(PlotViewFactory.class);
/**
* Create the plot from persisted settings if available. Otherwise, create a default plot.
*/
static PlotView createPlot(PlotSettings settings, long currentTime, PlotViewManifestation parent... | 1no label | fastPlotViews_src_main_java_gov_nasa_arc_mct_fastplot_view_PlotViewFactory.java |
339 | public class TransportNodesRestartAction extends TransportNodesOperationAction<NodesRestartRequest, NodesRestartResponse, TransportNodesRestartAction.NodeRestartRequest, NodesRestartResponse.NodeRestartResponse> {
private final Node node;
private final boolean disabled;
private AtomicBoolean restartReque... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_node_restart_TransportNodesRestartAction.java |
347 | @RunWith(HazelcastSerialClassRunner.class)
@Category(QuickTest.class)
public class ClientSortLimitTest extends HazelcastTestSupport {
static HazelcastInstance client;
static IMap map;
static int pageSize = 5;
static int size = 50;
@BeforeClass
public static void createInstances(){
Haze... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_map_ClientSortLimitTest.java |
32 | public abstract class MemcacheCommandProcessor<T> extends AbstractTextCommandProcessor<T> {
public static final String MAP_NAME_PRECEDER = "hz_memcache_";
public static final String DEFAULT_MAP_NAME = "hz_memcache_default";
protected MemcacheCommandProcessor(TextCommandService textCommandService) {
... | 0true | hazelcast_src_main_java_com_hazelcast_ascii_memcache_MemcacheCommandProcessor.java |
250 | public class CustomFieldQuery extends FieldQuery {
private static Field multiTermQueryWrapperFilterQueryField;
static {
try {
multiTermQueryWrapperFilterQueryField = MultiTermQueryWrapperFilter.class.getDeclaredField("query");
multiTermQueryWrapperFilterQueryField.setAccessible... | 1no label | src_main_java_org_apache_lucene_search_vectorhighlight_CustomFieldQuery.java |
315 | clusterService.submitStateUpdateTask("cluster_health (wait_for_events [" + request.waitForEvents() + "])", request.waitForEvents(), new ProcessedClusterStateUpdateTask() {
@Override
public ClusterState execute(ClusterState currentState) {
return currentSta... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_health_TransportClusterHealthAction.java |
1,057 | public class ListenerConfig {
protected String className = null;
protected EventListener implementation = null;
private ListenerConfigReadOnly readOnly;
/**
* Creates a ListenerConfig without className/implementation.
*/
public ListenerConfig() {
}
/**
* Creates a Listene... | 1no label | hazelcast_src_main_java_com_hazelcast_config_ListenerConfig.java |
1,447 | public class TitanHadoopGraph {
private final TitanHadoopSetup setup;
private final TypeInspector typeManager;
private final SystemTypeInspector systemTypes;
private final VertexReader vertexReader;
private final boolean verifyVertexExistence = false;
private static final Logger log =
... | 1no label | titan-hadoop-parent_titan-hadoop-core_src_main_java_com_thinkaurelius_titan_hadoop_formats_util_TitanHadoopGraph.java |
14 | .withPredicateProvider(new PredicateProvider() {
@Override
public Predicate buildPredicate(CriteriaBuilder builder, FieldPathBuilder fieldPathBuilder,
From root, String ceilingEntity, String fullPropertyName,
... | 1no label | admin_broadleaf-admin-module_src_main_java_org_broadleafcommerce_admin_server_service_handler_SkuRestrictionFactoryImpl.java |
3,433 | private static class NoResponseHandler implements ResponseHandler {
@Override
public void sendResponse(final Object obj) {
}
@Override
public boolean isLocal() {
return false;
}
} | 1no label | hazelcast_src_main_java_com_hazelcast_spi_impl_ResponseHandlerFactory.java |
499 | public class TransportCloseIndexAction extends TransportMasterNodeOperationAction<CloseIndexRequest, CloseIndexResponse> {
private final MetaDataIndexStateService indexStateService;
private final DestructiveOperations destructiveOperations;
@Inject
public TransportCloseIndexAction(Settings settings, T... | 1no label | src_main_java_org_elasticsearch_action_admin_indices_close_TransportCloseIndexAction.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.