Unnamed: 0 int64 0 6.45k | func stringlengths 37 161k | target class label 2
classes | project stringlengths 33 167 |
|---|---|---|---|
916 | public class LockProxy extends AbstractDistributedObject<LockServiceImpl> implements ILock {
private final String name;
private final LockProxySupport lockSupport;
private final Data key;
private final int partitionId;
public LockProxy(NodeEngine nodeEngine, LockServiceImpl lockService, String nam... | 1no label | hazelcast_src_main_java_com_hazelcast_concurrent_lock_LockProxy.java |
1,147 | public class OSQLMethodKeys extends OAbstractSQLMethod {
public static final String NAME = "keys";
public OSQLMethodKeys() {
super(NAME);
}
@Override
public Object execute(OIdentifiable iCurrentRecord, OCommandContext iContext, Object ioResult, Object[] iMethodParams) {
ioResult =... | 1no label | core_src_main_java_com_orientechnologies_orient_core_sql_method_misc_OSQLMethodKeys.java |
1,288 | @ClusterScope(scope = Scope.TEST, numNodes = 0)
public class ClusterServiceTests extends ElasticsearchIntegrationTest {
@Test
public void testTimeoutUpdateTask() throws Exception {
Settings settings = settingsBuilder()
.put("discovery.type", "local")
.build();
cl... | 0true | src_test_java_org_elasticsearch_cluster_ClusterServiceTests.java |
77 | public interface AttributeSerializer<V> extends AttributeHandler<V> {
/**
* Reads an attribute from the given ReadBuffer.
* <p/>
* It is expected that this read operation adjusts the position in the ReadBuffer to after the attribute value.
*
* @param buffer ReadBuffer to read attribute fro... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_core_attribute_AttributeSerializer.java |
109 | @RunWith(HazelcastSerialClassRunner.class)
@Category(QuickTest.class)
public class ClientMemberAttributeTest extends HazelcastTestSupport {
@After
public void cleanup() {
HazelcastClient.shutdownAll();
Hazelcast.shutdownAll();
}
@Test(timeout = 40000)
public void testChangeMemberAt... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_ClientMemberAttributeTest.java |
5,291 | public class DoubleTerms extends InternalTerms {
public static final Type TYPE = new Type("terms", "dterms");
public static AggregationStreams.Stream STREAM = new AggregationStreams.Stream() {
@Override
public DoubleTerms readResult(StreamInput in) throws IOException {
DoubleTerms ... | 1no label | src_main_java_org_elasticsearch_search_aggregations_bucket_terms_DoubleTerms.java |
3,236 | public class ShardFieldData extends AbstractIndexShardComponent implements IndexFieldDataCache.Listener {
final CounterMetric evictionsMetric = new CounterMetric();
final CounterMetric totalMetric = new CounterMetric();
final ConcurrentMap<String, CounterMetric> perFieldTotals = ConcurrentCollections.newC... | 1no label | src_main_java_org_elasticsearch_index_fielddata_ShardFieldData.java |
688 | public class BulkItemRequest implements Streamable {
private int id;
private ActionRequest request;
BulkItemRequest() {
}
public BulkItemRequest(int id, ActionRequest request) {
this.id = id;
this.request = request;
}
public int id() {
return id;
}
publ... | 0true | src_main_java_org_elasticsearch_action_bulk_BulkItemRequest.java |
125 | static final class ExceptionNode extends WeakReference<ForkJoinTask<?>> {
final Throwable ex;
ExceptionNode next;
final long thrower; // use id not ref to avoid weak cycles
final int hashCode; // store task hashCode before weak ref disappears
ExceptionNode(ForkJoinTask<?> t... | 0true | src_main_java_jsr166e_ForkJoinTask.java |
3,429 | private class ProxyRegistry {
final String serviceName;
final RemoteService service;
final ConcurrentMap<String, DistributedObjectFuture> proxies = new ConcurrentHashMap<String, DistributedObjectFuture>();
private ProxyRegistry(String serviceName) {
this.serviceName = s... | 1no label | hazelcast_src_main_java_com_hazelcast_spi_impl_ProxyServiceImpl.java |
1,351 | public class ProjectSourceFile extends SourceFile implements IResourceAware {
public ProjectSourceFile(ProjectPhasedUnit phasedUnit) {
super(phasedUnit);
}
@Override
public ProjectPhasedUnit getPhasedUnit() {
return (ProjectPhasedUnit) super.getPhasedUnit();
}
@Override
... | 1no label | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_core_model_ProjectSourceFile.java |
1,637 | public class FaunusCassandraIT extends AbstractTitanAssemblyIT {
@BeforeClass
public static void startCassandra() {
CassandraStorageSetup.startCleanEmbedded();
}
@Test
@Category({ OrderedKeyStoreTests.class })
public void testGraphOfTheGodsWithBOP() throws Exception {
unzipAndR... | 1no label | titan-dist_src_test_java_com_thinkaurelius_titan_pkgtest_FaunusCassandraIT.java |
1,081 | public static class Result {
private final Streamable action;
private final Operation operation;
private final Map<String, Object> updatedSourceAsMap;
private final XContentType updateSourceContentType;
public Result(Streamable action, Operation operation, Map<String, Objec... | 0true | src_main_java_org_elasticsearch_action_update_UpdateHelper.java |
179 | public class ForkJoinWorkerThread extends Thread {
/*
* ForkJoinWorkerThreads are managed by ForkJoinPools and perform
* ForkJoinTasks. For explanation, see the internal documentation
* of class ForkJoinPool.
*
* This class just maintains links to its pool and WorkQueue. The
* pool fi... | 0true | src_main_java_jsr166y_ForkJoinWorkerThread.java |
570 | public class BigDecimalRoundingAdapter extends XmlAdapter<String, BigDecimal> {
@Override
public BigDecimal unmarshal(String s) throws Exception {
return new BigDecimal(s);
}
@Override
public String marshal(BigDecimal bigDecimal) throws Exception {
return bigDecimal.setScale(2, Rou... | 0true | common_src_main_java_org_broadleafcommerce_common_util_xml_BigDecimalRoundingAdapter.java |
1,057 | @SuppressWarnings("unchecked")
public class OCommandExecutorSQLTraverse extends OCommandExecutorSQLResultsetAbstract {
public static final String KEYWORD_WHILE = "WHILE";
public static final String KEYWORD_TRAVERSE = "TRAVERSE";
public static final String KEYWORD_STRATEGY = "STRATEGY";
// HANDLES ITERATION ... | 1no label | core_src_main_java_com_orientechnologies_orient_core_sql_OCommandExecutorSQLTraverse.java |
1,325 | assertThat(awaitBusy(new Predicate<Object>() {
public boolean apply(Object o) {
ClusterState state = client().admin().cluster().prepareState().setLocal(true).execute().actionGet().getState();
return state.blocks().hasGlobalBlock(Discovery.NO_MASTER_BLOCK);
... | 0true | src_test_java_org_elasticsearch_cluster_NoMasterNodeTests.java |
725 | @Entity
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "BLC_SKU")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE, region = "blStandardElements")
@AdminPresentationClass(friendlyName = "baseSku")
public class SkuImpl implements Sku {
private static final Log LOG = LogFactory.getLog(SkuImpl.cl... | 1no label | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_catalog_domain_SkuImpl.java |
194 | public static class Presentation {
public static class Tab {
public static class Name {
public static final String Audit = "Auditable_Tab";
}
public static class Order {
public static final int Audit = 99000;
}
}
... | 0true | common_src_main_java_org_broadleafcommerce_common_audit_Auditable.java |
95 | public class Geoshape {
private static final SpatialContext CTX = SpatialContext.GEO;
/**
* The Type of a shape: a point, box, circle, or polygon
*/
public enum Type {
POINT, BOX, CIRCLE, POLYGON;
}
//coordinates[0] = latitudes, coordinates[1] = longitudes
private final floa... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_core_attribute_Geoshape.java |
572 | public interface Searchable<T extends Serializable> extends ValueAssignable<T> {
/**
* Whether or not this class contains searchable information
*
* @return Whether or not this class contains searchable information
*/
Boolean getSearchable();
/**
* Whether or not this class contai... | 0true | common_src_main_java_org_broadleafcommerce_common_value_Searchable.java |
290 | public class ORubyScriptFormatter implements OScriptFormatter {
public String getFunctionDefinition(final OFunction f) {
final StringBuilder fCode = new StringBuilder();
fCode.append("def ");
fCode.append(f.getName());
fCode.append('(');
int i = 0;
if (f.getParameters() != null)
for (St... | 0true | core_src_main_java_com_orientechnologies_orient_core_command_script_formatter_ORubyScriptFormatter.java |
524 | public class FlushAction extends IndicesAction<FlushRequest, FlushResponse, FlushRequestBuilder> {
public static final FlushAction INSTANCE = new FlushAction();
public static final String NAME = "indices/flush";
private FlushAction() {
super(NAME);
}
@Override
public FlushResponse new... | 0true | src_main_java_org_elasticsearch_action_admin_indices_flush_FlushAction.java |
670 | @Entity
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name="BLC_CATEGORY")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE, region="blStandardElements")
@AdminPresentationClass(friendlyName = "CategoryImpl_baseCategory")
@SQLDelete(sql="UPDATE BLC_CATEGORY SET ARCHIVED = 'Y' WHERE CATEGORY_ID = ?")
public c... | 1no label | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_catalog_domain_CategoryImpl.java |
151 | class ObjectClassDefinitionGenerator extends DefinitionGenerator {
private final String brokenName;
private final MemberOrTypeExpression node;
private final CompilationUnit rootNode;
private final String desc;
private final Image image;
private final ProducedType returnType;
private fin... | 1no label | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_correct_ObjectClassDefinitionGenerator.java |
513 | public abstract class StressTestSupport extends HazelcastTestSupport {
//todo: should be system property
public static final int RUNNING_TIME_SECONDS = 180;
//todo: should be system property
public static final int CLUSTER_SIZE = 6;
//todo: should be system property
public static final int KILL_... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_stress_StressTestSupport.java |
766 | public class TransportShardMultiGetAction extends TransportShardSingleOperationAction<MultiGetShardRequest, MultiGetShardResponse> {
private final IndicesService indicesService;
private final boolean realtime;
@Inject
public TransportShardMultiGetAction(Settings settings, ClusterService clusterServic... | 1no label | src_main_java_org_elasticsearch_action_get_TransportShardMultiGetAction.java |
857 | @SuppressWarnings("unchecked")
public class ORole extends ODocumentWrapper {
private static final long serialVersionUID = 1L;
public static final String ADMIN = "admin";
public static final String CLASS_NAME = "ORole";
public enum ALLOW_MODES {
DENY_ALL_BUT, ALLOW_ALL_BUT
}
// CRUD ... | 1no label | core_src_main_java_com_orientechnologies_orient_core_metadata_security_ORole.java |
1,306 | public class OClusterPage extends ODurablePage {
private static final int VERSION_SIZE = OVersionFactory.instance().getVersionSize();
private static final int NEXT_PAGE_OFFSET = NEXT_FREE_POSITION;
private static final int PREV_PAGE_OFFSET = NEXT_PAGE_OFFSET + OLongSerializer.L... | 1no label | core_src_main_java_com_orientechnologies_orient_core_storage_impl_local_paginated_OClusterPage.java |
1,262 | class SniffNodesSampler extends NodeSampler {
@Override
protected void doSample() {
// the nodes we are going to ping include the core listed nodes that were added
// and the last round of discovered nodes
Set<DiscoveryNode> nodesToPing = Sets.newHashSet();
... | 1no label | src_main_java_org_elasticsearch_client_transport_TransportClientNodesService.java |
1,777 | public class FieldManager {
private static final Log LOG = LogFactory.getLog(FieldManager.class);
public static final String MAPFIELDSEPARATOR = "---";
protected EntityConfiguration entityConfiguration;
protected DynamicEntityDao dynamicEntityDao;
protected List<SortableValue> middleFields = ... | 1no label | admin_broadleaf-open-admin-platform_src_main_java_org_broadleafcommerce_openadmin_server_service_persistence_module_FieldManager.java |
835 | new ConstructorFunction<String, ReferenceWrapper>() {
public ReferenceWrapper createNew(String key) {
return new ReferenceWrapper();
}
}; | 0true | hazelcast_src_main_java_com_hazelcast_concurrent_atomicreference_AtomicReferenceService.java |
656 | public class CategoryDaoTest extends BaseTest {
@Resource
private CategoryDao categoryDao;
@Resource
private CatalogService catalogService;
@Test(groups = {"testSetFeaturedProducts"}, dataProvider="basicCategory", dataProviderClass=CategoryDaoDataProvider.class)
@Transactional
public void... | 0true | integration_src_test_java_org_broadleafcommerce_core_catalog_dao_CategoryDaoTest.java |
63 | public interface TitanGraphQuery<Q extends TitanGraphQuery<Q>> extends GraphQuery {
/* ---------------------------------------------------------------
* Query Specification
* ---------------------------------------------------------------
*/
/**
* The returned element must have a property for ... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_core_TitanGraphQuery.java |
37 | public class CompletionException extends RuntimeException {
private static final long serialVersionUID = 7830266012832686185L;
/**
* Constructs a {@code CompletionException} with no detail message.
* The cause is not initialized, and may subsequently be
* initialized by a call to {@link #initCau... | 0true | src_main_java_jsr166e_CompletionException.java |
287 | public interface DataDrivenEnumerationDao {
public DataDrivenEnumeration readEnumByKey(String enumKey);
public DataDrivenEnumerationValue readEnumValueByKey(String enumKey, String enumValueKey);
} | 0true | common_src_main_java_org_broadleafcommerce_common_enumeration_dao_DataDrivenEnumerationDao.java |
537 | @Deprecated
public class TransportGatewaySnapshotAction extends TransportBroadcastOperationAction<GatewaySnapshotRequest, GatewaySnapshotResponse, ShardGatewaySnapshotRequest, ShardGatewaySnapshotResponse> {
private final IndicesService indicesService;
@Inject
public TransportGatewaySnapshotAction(Setting... | 0true | src_main_java_org_elasticsearch_action_admin_indices_gateway_snapshot_TransportGatewaySnapshotAction.java |
208 | private class ClusterAuthenticator implements Authenticator {
@Override
public void auth(ClientConnection connection) throws AuthenticationException, IOException {
authenticate(connection, credentials, principal, false, false);
}
} | 1no label | hazelcast-client_src_main_java_com_hazelcast_client_connection_nio_ClientConnectionManagerImpl.java |
637 | static final class Fields {
static final XContentBuilderString INDICES = new XContentBuilderString("indices");
static final XContentBuilderString INDEX = new XContentBuilderString("index");
static final XContentBuilderString PRIMARY_SIZE = new XContentBuilderString("primary_size");
s... | 0true | src_main_java_org_elasticsearch_action_admin_indices_status_IndicesStatusResponse.java |
1,419 | public static interface RemoveListener {
void onResponse(RemoveResponse response);
void onFailure(Throwable t);
} | 0true | src_main_java_org_elasticsearch_cluster_metadata_MetaDataIndexTemplateService.java |
1,409 | clusterService.submitStateUpdateTask("index-aliases", Priority.URGENT, new AckedClusterStateUpdateTask() {
@Override
public boolean mustAck(DiscoveryNode discoveryNode) {
return true;
}
@Override
public void onAllNodesAcked(@Nullable ... | 1no label | src_main_java_org_elasticsearch_cluster_metadata_MetaDataIndexAliasesService.java |
717 | public class RelatedProductTypeEnum implements Serializable, BroadleafEnumerationType {
private static final long serialVersionUID = 1L;
private static final Map<String, RelatedProductTypeEnum> TYPES = new LinkedHashMap<String, RelatedProductTypeEnum>();
public static final RelatedProductTypeEnum FEATURE... | 1no label | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_catalog_domain_RelatedProductTypeEnum.java |
346 | public class ODatabaseRecordThreadLocal extends ThreadLocal<ODatabaseRecord> {
public static ODatabaseRecordThreadLocal INSTANCE = new ODatabaseRecordThreadLocal();
@Override
public ODatabaseRecord get() {
ODatabaseRecord db = super.get();
if (db == null) {
if (Orient.instance().getDatabaseThreadF... | 0true | core_src_main_java_com_orientechnologies_orient_core_db_ODatabaseRecordThreadLocal.java |
699 | @Entity
@Inheritance(strategy = InheritanceType.JOINED)
@javax.persistence.Table(name="BLC_PRODUCT")
//multi-column indexes don't appear to get exported correctly when declared at the field level, so declaring here as a workaround
@org.hibernate.annotations.Table(appliesTo = "BLC_PRODUCT", indexes = {
@Index(name =... | 1no label | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_catalog_domain_ProductImpl.java |
3,126 | static class EngineSearcher implements Searcher {
private final String source;
private final IndexSearcher searcher;
private final SearcherManager manager;
private EngineSearcher(String source, IndexSearcher searcher, SearcherManager manager) {
this.source = source;
... | 1no label | src_main_java_org_elasticsearch_index_engine_internal_InternalEngine.java |
1,287 | @Test
public class LocalPaginatedStorageMixCrashRestore {
private ODatabaseDocumentTx baseDocumentTx;
private ODatabaseDocumentTx testDocumentTx;
private File buildDir;
private AtomicInteger idGen = new AtomicInteger();
priva... | 1no label | server_src_test_java_com_orientechnologies_orient_core_storage_impl_local_paginated_LocalPaginatedStorageMixCrashRestore.java |
279 | public interface EmailServiceProducer {
public void send(@SuppressWarnings("rawtypes") final HashMap props);
} | 0true | common_src_main_java_org_broadleafcommerce_common_email_service_message_EmailServiceProducer.java |
220 | new Thread(){
public void run() {
for (int i=0; i<20; i++){
l.countDown();
try {
Thread.sleep(60);
} catch (InterruptedException e) {
e.printStackTrace();
}... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_countdownlatch_ClientCountDownLatchTest.java |
138 | public class MissingLogDataException extends IOException
{
public MissingLogDataException()
{
super();
}
public MissingLogDataException( String message, Throwable cause )
{
super( message, cause );
}
public MissingLogDataException( String message )
{
super( mess... | 0true | community_kernel_src_main_java_org_neo4j_kernel_impl_transaction_xaframework_MissingLogDataException.java |
421 | @Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD})
public @interface AdminPresentationToOneLookup {
/**
* <p>Optional - only required if the display property is other than "name"</p>
*
* <p>Specify the property on a lookup class that should be used as the value to display to the user i... | 0true | common_src_main_java_org_broadleafcommerce_common_presentation_AdminPresentationToOneLookup.java |
487 | public class ClearIndicesCacheAction extends IndicesAction<ClearIndicesCacheRequest, ClearIndicesCacheResponse, ClearIndicesCacheRequestBuilder> {
public static final ClearIndicesCacheAction INSTANCE = new ClearIndicesCacheAction();
public static final String NAME = "indices/cache/clear";
private ClearInd... | 0true | src_main_java_org_elasticsearch_action_admin_indices_cache_clear_ClearIndicesCacheAction.java |
69 | public interface OResourcePoolListener<K, V> {
/**
* Creates a new resource to be used and to be pooled when the client finishes with it.
*
* @return The new resource
*/
public V createNewResource(K iKey, Object... iAdditionalArgs);
/**
* Reuses the pooled resource.
*
* @return true if can be reuse... | 0true | commons_src_main_java_com_orientechnologies_common_concur_resource_OResourcePoolListener.java |
1,839 | @Component("blUriPropertyValidator")
public class UriPropertyValidator extends ValidationConfigurationBasedPropertyValidator {
protected static final Log LOG = LogFactory.getLog(UriPropertyValidator.class);
protected String ERROR_KEY_BEGIN_WITH_SLASH = "uriPropertyValidatorMustBeginWithSlashError";
protec... | 1no label | admin_broadleaf-open-admin-platform_src_main_java_org_broadleafcommerce_openadmin_server_service_persistence_validation_UriPropertyValidator.java |
5,821 | public class HighlighterParseElement implements SearchParseElement {
private static final String[] DEFAULT_PRE_TAGS = new String[]{"<em>"};
private static final String[] DEFAULT_POST_TAGS = new String[]{"</em>"};
private static final String[] STYLED_PRE_TAG = {
"<em class=\"hlt1\">", "<em clas... | 1no label | src_main_java_org_elasticsearch_search_highlight_HighlighterParseElement.java |
159 | private abstract class AbstractItr implements Iterator<E> {
/**
* Next node to return item for.
*/
private Node<E> nextNode;
/**
* nextItem holds on to item fields because once we claim
* that an element exists in hasNext(), we must return it in
... | 0true | src_main_java_jsr166y_ConcurrentLinkedDeque.java |
858 | public class AlterAndGetOperation extends AbstractAlterOperation {
public AlterAndGetOperation() {
}
public AlterAndGetOperation(String name, Data function) {
super(name, function);
}
@Override
public void run() throws Exception {
NodeEngine nodeEngine = getNodeEngine();
... | 1no label | hazelcast_src_main_java_com_hazelcast_concurrent_atomicreference_operations_AlterAndGetOperation.java |
514 | public class IndicesExistsAction extends IndicesAction<IndicesExistsRequest, IndicesExistsResponse, IndicesExistsRequestBuilder> {
public static final IndicesExistsAction INSTANCE = new IndicesExistsAction();
public static final String NAME = "indices/exists";
private IndicesExistsAction() {
super... | 0true | src_main_java_org_elasticsearch_action_admin_indices_exists_indices_IndicesExistsAction.java |
2,549 | public final class ClassLoaderUtil {
public static final String HAZELCAST_BASE_PACKAGE = "com.hazelcast.";
public static final String HAZELCAST_ARRAY = "[L" + HAZELCAST_BASE_PACKAGE;
private static final Map<String, Class> PRIMITIVE_CLASSES;
private static final int MAX_PRIM_CLASSNAME_LENGTH = 7;
... | 1no label | hazelcast_src_main_java_com_hazelcast_nio_ClassLoaderUtil.java |
505 | public class OEngineLocal extends OEngineAbstract {
public static final String NAME = "local";
private static final AtomicBoolean memoryLocked = new AtomicBoolean(false);
public OStorage createStorage(final String iDbName, final Map<String, String> iConfiguration) {
if (memoryLocked.compare... | 0true | core_src_main_java_com_orientechnologies_orient_core_engine_local_OEngineLocal.java |
123 | class FindImportNodeVisitor extends Visitor {
private final String[] packageNameComponents;
private Tree.Import result;
public FindImportNodeVisitor(String packageName) {
super();
this.packageNameComponents = packageName.split("\\.");
}
public Tree.Import getResult() {... | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_correct_FindImportNodeVisitor.java |
3,104 | public final class EngineSearcherTotalHitsMatcher extends TypeSafeMatcher<Engine.Searcher> {
private final Query query;
private final int totalHits;
public EngineSearcherTotalHitsMatcher(Query query, int totalHits) {
this.query = query;
this.totalHits = totalHits;
}
@Override
... | 1no label | src_test_java_org_elasticsearch_index_engine_EngineSearcherTotalHitsMatcher.java |
393 | public class ClusterSearchShardsGroup implements Streamable, ToXContent {
private String index;
private int shardId;
ShardRouting[] shards;
ClusterSearchShardsGroup() {
}
public ClusterSearchShardsGroup(String index, int shardId, ShardRouting[] shards) {
this.index = index;
t... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_shards_ClusterSearchShardsGroup.java |
3,745 | public class SessionAttributePredicate implements Predicate, IdentifiedDataSerializable {
private String sessionId;
// Serialization Constructor
public SessionAttributePredicate() {
}
public SessionAttributePredicate(String sessionId) {
this.sessionId = sessionId;
}
@Override
... | 1no label | hazelcast-wm_src_main_java_com_hazelcast_web_SessionAttributePredicate.java |
376 | public class MetadataNamingStrategy extends org.springframework.jmx.export.naming.MetadataNamingStrategy {
public ObjectName getObjectName(Object managedBean, String beanKey) throws MalformedObjectNameException {
managedBean = AspectUtil.exposeRootBean(managedBean);
return super.getObjectName(manag... | 0true | common_src_main_java_org_broadleafcommerce_common_jmx_MetadataNamingStrategy.java |
60 | public enum LOCK {
SHARED, EXCLUSIVE
} | 0true | commons_src_main_java_com_orientechnologies_common_concur_lock_OLockManager.java |
6,273 | public class LessThanAssertion extends Assertion {
private static final ESLogger logger = Loggers.getLogger(LessThanAssertion.class);
public LessThanAssertion(String field, Object expectedValue) {
super(field, expectedValue);
}
@Override
@SuppressWarnings("unchecked")
protected void d... | 1no label | src_test_java_org_elasticsearch_test_rest_section_LessThanAssertion.java |
446 | @Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
public @interface AdminPresentationMergeOverrides {
/**
* The new configurations for each field targeted for override
*
* @return field specific overrides
*/
AdminPresentationMergeOverride[] value();
} | 0true | common_src_main_java_org_broadleafcommerce_common_presentation_override_AdminPresentationMergeOverrides.java |
572 | public class ODocumentFieldsHashSet extends AbstractSet<ODocument> {
private final LinkedHashSet<ODocumentWrapper> hashSet;
public ODocumentFieldsHashSet() {
hashSet = new LinkedHashSet<ODocumentWrapper>();
}
@Override
public boolean contains(Object o) {
if (!(o instanceof ODocument))
return f... | 0true | core_src_main_java_com_orientechnologies_orient_core_index_ODocumentFieldsHashSet.java |
1,381 | public static enum State {
OPEN((byte) 0),
CLOSE((byte) 1);
private final byte id;
State(byte id) {
this.id = id;
}
public byte id() {
return this.id;
}
public static State fromId(byte id) {
if (id == 0) {
... | 0true | src_main_java_org_elasticsearch_cluster_metadata_IndexMetaData.java |
322 | @SuppressWarnings("serial")
public class OStorageFileConfiguration implements Serializable {
public transient OStorageSegmentConfiguration parent;
public String path;
public String type = "mmap";
public String maxSize = null;
public String in... | 0true | core_src_main_java_com_orientechnologies_orient_core_config_OStorageFileConfiguration.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 |
97 | @SuppressWarnings("serial")
static final class SearchKeysTask<K,V,U>
extends BulkTask<K,V,U> {
final Fun<? super K, ? extends U> searchFunction;
final AtomicReference<U> result;
SearchKeysTask
(BulkTask<K,V,?> p, int b, int i, int f, Node<K,V>[] t,
Fun<? ... | 0true | src_main_java_jsr166e_ConcurrentHashMapV8.java |
1,057 | public class TaxType implements Serializable, BroadleafEnumerationType {
private static final long serialVersionUID = 1L;
private static final Map<String, TaxType> TYPES = new LinkedHashMap<String, TaxType>();
public static final TaxType CITY = new TaxType("CITY", "City");
public static final TaxType... | 1no label | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_order_domain_TaxType.java |
1,448 | public static class Factory implements MetaData.Custom.Factory<SnapshotMetaData> {
@Override
public String type() {
return TYPE; //To change body of implemented methods use File | Settings | File Templates.
}
@Override
public SnapshotMetaData readFrom(StreamInp... | 0true | src_main_java_org_elasticsearch_cluster_metadata_SnapshotMetaData.java |
599 | ex.execute(new Runnable() {
public void run() {
try {
Thread.sleep(random.nextInt(10) * 1000);
final Config config = new Config();
config.setProperty("hazelcast.wait.seconds.before.join", "5");
... | 0true | hazelcast_src_test_java_com_hazelcast_cluster_JoinStressTest.java |
407 | @Test
public class TrackedListTest {
public void testAddNotificationOne() {
final ODocument doc = new ODocument();
doc.unsetDirty();
Assert.assertFalse(doc.isDirty());
final OTrackedList<String> trackedList = new OTrackedList<String>(doc);
final ORef<Boolean> changed = new ORef<Boolean>(false);
... | 0true | core_src_test_java_com_orientechnologies_orient_core_db_record_TrackedListTest.java |
1,112 | public class SimpleGetActionBenchmark {
public static void main(String[] args) {
long OPERATIONS = SizeValue.parseSizeValue("300k").singles();
Node node = NodeBuilder.nodeBuilder().node();
Client client;
if (false) {
client = NodeBuilder.nodeBuilder().client(true).node... | 0true | src_test_java_org_elasticsearch_benchmark_get_SimpleGetActionBenchmark.java |
269 | public class MapPutPartitionAwareCallable implements Callable, DataSerializable, PartitionAware, HazelcastInstanceAware {
private HazelcastInstance instance;
public String mapName;
public Object partitionKey;
public MapPutPartitionAwareCallable(){}
public MapPutPartitionAwareCallable(String mapN... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_executor_tasks_MapPutPartitionAwareCallable.java |
137 | public interface TitanManagement extends TitanConfiguration, SchemaManager {
/*
##################### RELATION TYPE INDEX ##########################
*/
/**
* Identical to {@link #buildEdgeIndex(com.thinkaurelius.titan.core.EdgeLabel, String, com.tinkerpop.blueprints.Direction, com.thinkaurelius.... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_core_schema_TitanManagement.java |
1,356 | ShardStartedTransportHandler.ACTION, new ShardRoutingEntry(shardRouting, indexUUID, reason), new EmptyTransportResponseHandler(ThreadPool.Names.SAME) {
@Override
public void handleException(TransportException exp) {
logger.warn("failed to send shar... | 0true | src_main_java_org_elasticsearch_cluster_action_shard_ShardStateAction.java |
79 | public static class Presentation {
public static class Tab {
public static class Name {
public static final String File_Details = "StaticAssetImpl_FileDetails_Tab";
public static final String Advanced = "StaticAssetImpl_Advanced_Tab";
}
... | 0true | admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_file_domain_StaticAssetImpl.java |
379 | public class ODatabaseRecordTx extends ODatabaseRecordAbstract {
public static final String TYPE = "record";
private OTransaction currentTx;
public ODatabaseRecordTx(final String iURL, final byte iRecordType) {
super(iURL, iRecordType);
init();
}
public ODatabaseRecord begin() {
return beg... | 1no label | core_src_main_java_com_orientechnologies_orient_core_db_record_ODatabaseRecordTx.java |
5,100 | class SearchFreeContextRequest extends TransportRequest {
private long id;
SearchFreeContextRequest() {
}
SearchFreeContextRequest(TransportRequest request, long id) {
super(request);
this.id = id;
}
public long id() {
return th... | 1no label | src_main_java_org_elasticsearch_search_action_SearchServiceTransportAction.java |
1,055 | private final class TermVectorsDocsAndPosEnum extends DocsAndPositionsEnum {
private boolean hasPositions;
private boolean hasOffsets;
private boolean hasPayloads;
int curPos = -1;
int doc = -1;
private int freq;
private int[] startOffsets;
private int... | 0true | src_main_java_org_elasticsearch_action_termvector_TermVectorFields.java |
7 | public class AbbreviationsManagerTest {
private Properties defaultProperties;
@BeforeMethod
public void init() {
defaultProperties = new Properties();
defaultProperties.setProperty("fiber optic", "F/O");
defaultProperties.setProperty("system", "Sys");
}
@Test
public void testGetAlternatives() {
Abbr... | 0true | tableViews_src_test_java_gov_nasa_arc_mct_abbreviation_impl_AbbreviationsManagerTest.java |
84 | GREATER_THAN_EQUAL {
@Override
public boolean isValidValueType(Class<?> clazz) {
Preconditions.checkNotNull(clazz);
return Comparable.class.isAssignableFrom(clazz);
}
@Override
public boolean isValidCondition(Object condition) {
return co... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_core_attribute_Cmp.java |
513 | deleteIndexService.deleteIndex(new MetaDataDeleteIndexService.Request(index).timeout(request.timeout()).masterTimeout(request.masterNodeTimeout()), new MetaDataDeleteIndexService.Listener() {
private volatile Throwable lastFailure;
private volatile boolean ack = true;
... | 0true | src_main_java_org_elasticsearch_action_admin_indices_delete_TransportDeleteIndexAction.java |
210 | public class OStorageRemoteThreadLocal extends ThreadLocal<OStorageRemoteSession> {
public static OStorageRemoteThreadLocal INSTANCE = new OStorageRemoteThreadLocal();
public class OStorageRemoteSession {
public boolean commandExecuting = false;
public Integer sessionId = -1;
public String serv... | 0true | client_src_main_java_com_orientechnologies_orient_client_remote_OStorageRemoteThreadLocal.java |
3,401 | public final class ExecutionServiceImpl implements ExecutionService {
private final NodeEngineImpl nodeEngine;
private final ExecutorService cachedExecutorService;
private final ScheduledExecutorService scheduledExecutorService;
private final ScheduledExecutorService defaultScheduledExecutorServiceDele... | 1no label | hazelcast_src_main_java_com_hazelcast_spi_impl_ExecutionServiceImpl.java |
1,507 | @Component("blAuthenticationSuccessHandler")
public class BroadleafAuthenticationSuccessHandler extends SavedRequestAwareAuthenticationSuccessHandler {
@Override
public void onAuthenticationSuccess(HttpServletRequest request, HttpServletResponse response,
Authentication authentication) throws Servl... | 1no label | core_broadleaf-framework-web_src_main_java_org_broadleafcommerce_core_web_order_security_BroadleafAuthenticationSuccessHandler.java |
1,489 | public class Nodes {
private static final String[] NO_STRINGS = new String[0];
private static final Pattern IDPATTERN =
Pattern.compile("(^|[A-Z])([A-Z]*)([_a-z]+)");
public static Tree.Declaration findDeclaration(Tree.CompilationUnit cu, Node node) {
FindDeclarationVisitor fcv =... | 1no label | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_util_Nodes.java |
130 | {
@Override
public boolean isValid( TransactionInfo txInfo )
{
return true;
}
}; | 0true | community_kernel_src_main_java_org_neo4j_kernel_impl_transaction_xaframework_RecoveryVerifier.java |
3,723 | private final class EntryProcessorExecutor implements Runnable {
private final Integer second;
private EntryProcessorExecutor(Integer second) {
this.second = second;
}
@Override
public void run() {
scheduledTaskMap.remove(second);
final M... | 1no label | hazelcast_src_main_java_com_hazelcast_util_scheduler_SecondsBasedEntryTaskScheduler.java |
34 | @Service("blRequestFieldService")
public class RequestFieldServiceImpl extends AbstractRuleBuilderFieldService {
@Override
public void init() {
fields.add(new FieldData.Builder()
.label("rule_requestFullUrl")
.name("fullUrlWithQueryString")
.operators("bl... | 0true | admin_broadleaf-admin-module_src_main_java_org_broadleafcommerce_admin_web_rulebuilder_service_RequestFieldServiceImpl.java |
634 | public class MergeContextLoader extends ContextLoader {
/**
* Name of servlet context parameter (i.e., "<code>patchConfigLocation</code>")
* that can specify the config location for the rootId context.
*/
public static final String PATCH_LOCATION_PARAM = "patchConfigLocation";
/**
... | 0true | common_src_main_java_org_broadleafcommerce_common_web_extensibility_MergeContextLoader.java |
558 | typeIntersection = Collections2.filter(indexService.mapperService().types(), new Predicate<String>() {
@Override
public boolean apply(String type) {
return Regex.simpleMatch(types, type);
}
}); | 0true | src_main_java_org_elasticsearch_action_admin_indices_mapping_get_TransportGetFieldMappingsAction.java |
498 | private static class MapRewriter implements FieldRewriter<Map<String, Object>> {
@Override
public Map<String, Object> rewriteValue(Map<String, Object> mapValue) {
boolean wasRewritten = false;
Map<String, Object> result = new HashMap<String, Object>();
for (Map.Entry<String, Object> entry : ... | 0true | core_src_main_java_com_orientechnologies_orient_core_db_tool_ODatabaseImport.java |
5,425 | public static class WithScript extends Bytes {
private final BytesValues bytesValues;
public WithScript(FieldDataSource delegate, SearchScript script) {
this.bytesValues = new BytesValues(delegate, script);
}
@Override
public MetaData metaData() {
r... | 1no label | src_main_java_org_elasticsearch_search_aggregations_support_FieldDataSource.java |
5,196 | public static AggregationStreams.Stream STREAM = new AggregationStreams.Stream() {
@Override
public InternalGeoHashGrid readResult(StreamInput in) throws IOException {
InternalGeoHashGrid buckets = new InternalGeoHashGrid();
buckets.readFrom(in);
return buckets;
... | 1no label | src_main_java_org_elasticsearch_search_aggregations_bucket_geogrid_InternalGeoHashGrid.java |
634 | public class IndicesStatusRequest extends BroadcastOperationRequest<IndicesStatusRequest> {
private boolean recovery = false;
private boolean snapshot = false;
public IndicesStatusRequest() {
this(Strings.EMPTY_ARRAY);
}
public IndicesStatusRequest(String... indices) {
super(indi... | 0true | src_main_java_org_elasticsearch_action_admin_indices_status_IndicesStatusRequest.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.