Unnamed: 0 int64 0 6.45k | func stringlengths 37 161k | target class label 2
classes | project stringlengths 33 167 |
|---|---|---|---|
548 | public class XAResourceProxy implements XAResource {
private final TransactionContextProxy transactionContext;
private final ClientTransactionManager transactionManager;
private final ILogger logger;
private final String uuid = UUID.randomUUID().toString();
//To overcome race condition in Atomikos
... | 1no label | hazelcast-client_src_main_java_com_hazelcast_client_txn_XAResourceProxy.java |
46 | public class OCaseInsentiveComparator implements Comparator<String> {
public int compare(final String stringOne, final String stringTwo) {
return stringOne.compareToIgnoreCase(stringTwo);
}
} | 0true | commons_src_main_java_com_orientechnologies_common_comparator_OCaseInsentiveComparator.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 |
106 | public static class MyCredentials extends UsernamePasswordCredentials {
public MyCredentials() {
super("foo", "bar");
}
} | 0true | hazelcast-client_src_test_java_com_hazelcast_client_ClientIssueTest.java |
1,637 | public class OHazelcastDistributedMessageService implements ODistributedMessageService {
protected final OHazelcastPlugin manager;
protected Map<String, OHazelcastDistributedDatabase> databases = new ConcurrentHashMap<String, OHazelcastDistribu... | 1no label | distributed_src_main_java_com_orientechnologies_orient_server_hazelcast_OHazelcastDistributedMessageService.java |
481 | public class AnalyzeRequest extends SingleCustomOperationRequest<AnalyzeRequest> {
private String index;
private String text;
private String analyzer;
private String tokenizer;
private String[] tokenFilters;
private String field;
AnalyzeRequest() {
}
/**
* Constructs a ... | 0true | src_main_java_org_elasticsearch_action_admin_indices_analyze_AnalyzeRequest.java |
396 | public class ORecordLazySet implements Set<OIdentifiable>, ORecordLazyMultiValue, ORecordElement, ORecordLazyListener {
public static final ORecordLazySet EMPTY_SET = new ORecordLazySet();
private static final Object NEWMAP_VALUE = new Object();
protected final ORecordLazyList ... | 0true | core_src_main_java_com_orientechnologies_orient_core_db_record_ORecordLazySet.java |
79 | public class ClientDestroyRequest extends CallableClientRequest implements Portable, RetryableRequest, SecureRequest {
private String name;
private String serviceName;
public ClientDestroyRequest() {
}
public ClientDestroyRequest(String name, String serviceName) {
this.name = name;
... | 0true | hazelcast_src_main_java_com_hazelcast_client_ClientDestroyRequest.java |
1,282 | public class ClusterInfo {
private final ImmutableMap<String, DiskUsage> usages;
private final ImmutableMap<String, Long> shardSizes;
public ClusterInfo(ImmutableMap<String, DiskUsage> usages, ImmutableMap<String, Long> shardSizes) {
this.usages = usages;
this.shardSizes = shardSizes;
... | 0true | src_main_java_org_elasticsearch_cluster_ClusterInfo.java |
81 | 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";
}
public static class Order {
... | 0true | admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_file_domain_StaticAssetImpl.java |
170 | public abstract class SpeedTestThread extends Thread implements SpeedTest {
protected SpeedTestData data;
protected SpeedTestMultiThreads owner;
protected SpeedTestThread() {
data = new SpeedTestData();
}
protected SpeedTestThread(long iCycles) {
data = new SpeedTestData(iCycles);
}
pub... | 0true | commons_src_test_java_com_orientechnologies_common_test_SpeedTestThread.java |
3,252 | public class CountDownLatchPermission extends InstancePermission {
private static final int READ = 0x4;
private static final int MODIFY = 0x8;
private static final int ALL = CREATE | DESTROY | READ | MODIFY;
public CountDownLatchPermission(String name, String... actions) {
super(name, actions)... | 1no label | hazelcast_src_main_java_com_hazelcast_security_permission_CountDownLatchPermission.java |
518 | MessageListener listener = new MessageListener() {
public void onMessage(Message message) {
}
}; | 0true | hazelcast-client_src_test_java_com_hazelcast_client_topic_ClientTopicTest.java |
839 | private static class NullFunction implements IFunction<String, String> {
@Override
public String apply(String input) {
return null;
}
} | 0true | hazelcast_src_test_java_com_hazelcast_concurrent_atomicreference_AtomicReferenceTest.java |
590 | public class FinalizeJoinOperation extends MemberInfoUpdateOperation implements JoinOperation {
private PostJoinOperation postJoinOp;
public FinalizeJoinOperation() {
}
public FinalizeJoinOperation(Collection<MemberInfo> members, PostJoinOperation postJoinOp, long masterTime) {
super(members,... | 1no label | hazelcast_src_main_java_com_hazelcast_cluster_FinalizeJoinOperation.java |
303 | public interface OConfigurationChangeCallback {
public void change(final Object iCurrentValue, final Object iNewValue);
} | 0true | core_src_main_java_com_orientechnologies_orient_core_config_OConfigurationChangeCallback.java |
340 | public abstract class ODatabasePoolAbstract<DB extends ODatabase> extends OAdaptiveLock implements
OResourcePoolListener<String, DB>, OOrientListener {
private final HashMap<String, OResourcePool<String, DB>> pools = new HashMap<String, OResourcePool<String, DB>>();
private int ... | 1no label | core_src_main_java_com_orientechnologies_orient_core_db_ODatabasePoolAbstract.java |
521 | @RunWith(HazelcastParallelClassRunner.class)
@Category(QuickTest.class)
public class ClientTxnListTest {
static HazelcastInstance client;
static HazelcastInstance server;
@BeforeClass
public static void init(){
server = Hazelcast.newHazelcastInstance();
client = HazelcastClient.newHazel... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_txn_ClientTxnListTest.java |
520 | public class BLCArrayUtils {
/**
* Given an array and a typed predicate, determines if the array has an object that matches the condition of the
* predicate. The predicate should evaluate to true when a match occurs.
*
* @param array
* @param predicate
* @return whether or not th... | 0true | common_src_main_java_org_broadleafcommerce_common_util_BLCArrayUtils.java |
562 | public class OCompositeIndexDefinition extends OAbstractIndexDefinition {
private final List<OIndexDefinition> indexDefinitions;
private String className;
private int multiValueDefinitionIndex = -1;
public OCompositeIndexDefinition() {
indexDefinitions = new A... | 0true | core_src_main_java_com_orientechnologies_orient_core_index_OCompositeIndexDefinition.java |
1,169 | clientTransportService.submitRequest(node, "benchmark", message, new BaseTransportResponseHandler<BenchmarkMessageResponse>() {
@Override
public BenchmarkMessageResponse newInstance() {
return new BenchmarkMessageResponse();
}
... | 0true | src_test_java_org_elasticsearch_benchmark_transport_TransportBenchmark.java |
733 | private static final class PagePathItemUnit {
private final long pageIndex;
private final int itemIndex;
private PagePathItemUnit(long pageIndex, int itemIndex) {
this.pageIndex = pageIndex;
this.itemIndex = itemIndex;
}
} | 1no label | core_src_main_java_com_orientechnologies_orient_core_index_sbtree_local_OSBTree.java |
1,408 | public class CeylonPlugin extends AbstractUIPlugin implements CeylonResources {
public static final String PLUGIN_ID = "com.redhat.ceylon.eclipse.ui";
public static final String DIST_PLUGIN_ID = "com.redhat.ceylon.dist";
public static final String EMBEDDED_REPO_PLUGIN_ID = "com.redhat.ceylon.dist.repo";
... | 1no label | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_ui_CeylonPlugin.java |
1,113 | public class OSQLFunctionEval extends OSQLFunctionMathAbstract {
public static final String NAME = "eval";
private OSQLPredicate predicate;
public OSQLFunctionEval() {
super(NAME, 1, 1);
}
public Object execute(final OIdentifiable iRecord, final Object iCurrentResult, final Object[] iParameters,
... | 1no label | core_src_main_java_com_orientechnologies_orient_core_sql_functions_math_OSQLFunctionEval.java |
781 | transportService.sendRequest(discoveryNode, MoreLikeThisAction.NAME, request, new TransportResponseHandler<SearchResponse>() {
@Override
public SearchResponse newInstance() {
return new SearchResponse();
}
@Override
public void handle... | 0true | src_main_java_org_elasticsearch_action_mlt_TransportMoreLikeThisAction.java |
22 | static abstract class NavigableSubMap<K, V> extends AbstractMap<K, V> implements ONavigableMap<K, V>, java.io.Serializable {
/**
* The backing map.
*/
final OMVRBTree<K, V> m;
/**
* Endpoints are represented as triples (fromStart, lo, loInclusive) and (toEnd, hi, hiInclusive). If fromStart... | 0true | commons_src_main_java_com_orientechnologies_common_collection_OMVRBTree.java |
133 | public static class ClientListenerLatch extends CountDownLatch implements ClientListener {
public ClientListenerLatch(int count) {
super(count);
}
@Override
public void clientConnected(Client client) {
countDown();
}
@Override
public... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_ClientServiceTest.java |
5,290 | public class IpRangeParser implements Aggregator.Parser {
@Override
public String type() {
return InternalIPv4Range.TYPE.name();
}
@Override
public AggregatorFactory parse(String aggregationName, XContentParser parser, SearchContext context) throws IOException {
ValuesSourceConfig... | 1no label | src_main_java_org_elasticsearch_search_aggregations_bucket_range_ipv4_IpRangeParser.java |
36 | public class StandaloneClusterClientIT
{
@Test
public void canJoinWithExplicitInitialHosts() throws Exception
{
startAndAssertJoined( 5003,
// Config file
stringMap(),
// Arguments
stringMap(
initial_hosts.name()... | 1no label | enterprise_server-enterprise_src_test_java_org_neo4j_server_enterprise_StandaloneClusterClientIT.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 |
333 | public class InsertChildrenOf extends BaseHandler {
public Node[] merge(List<Node> nodeList1, List<Node> nodeList2, List<Node> exhaustedNodes) {
if (CollectionUtils.isEmpty(nodeList1) || CollectionUtils.isEmpty(nodeList2)) {
return null;
}
Node node1 = nodeList1.get(0);
... | 0true | common_src_main_java_org_broadleafcommerce_common_extensibility_context_merge_handlers_InsertChildrenOf.java |
1,416 | public static interface PutListener {
void onResponse(PutResponse response);
void onFailure(Throwable t);
} | 0true | src_main_java_org_elasticsearch_cluster_metadata_MetaDataIndexTemplateService.java |
1,510 | public class FailedShardsRoutingTests extends ElasticsearchAllocationTestCase {
private final ESLogger logger = Loggers.getLogger(FailedShardsRoutingTests.class);
@Test
public void testFailedShardPrimaryRelocatingToAndFrom() {
AllocationService allocation = createAllocationService(settingsBuilder(... | 0true | src_test_java_org_elasticsearch_cluster_routing_allocation_FailedShardsRoutingTests.java |
154 | assertTrueEventually(new AssertTask() {
@Override
public void run() {
assertEquals(1, listener.events.size());
MembershipEvent event = listener.events.get(0);
assertEquals(MembershipEvent.MEMBER_REMOVED, event.getEventType());
... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_MembershipListenerTest.java |
800 | public class AlterAndGetRequest extends AbstractAlterRequest {
public AlterAndGetRequest() {
}
public AlterAndGetRequest(String name, Data function) {
super(name, function);
}
@Override
protected Operation prepareOperation() {
return new AlterAndGetOperation(name, getFunction(... | 0true | hazelcast_src_main_java_com_hazelcast_concurrent_atomiclong_client_AlterAndGetRequest.java |
156 | public class OIntegerSerializer implements OBinarySerializer<Integer> {
private static final OBinaryConverter CONVERTER = OBinaryConverterFactory.getConverter();
public static OIntegerSerializer INSTANCE = new OIntegerSerializer();
public static final byte ID = 8;
/**
* size of int value in bytes
*/
p... | 0true | commons_src_main_java_com_orientechnologies_common_serialization_types_OIntegerSerializer.java |
971 | private class NodeTransportHandler extends BaseTransportRequestHandler<NodeRequest> {
@Override
public NodeRequest newInstance() {
return newNodeRequest();
}
@Override
public void messageReceived(final NodeRequest request, final TransportChannel channel) throws ... | 0true | src_main_java_org_elasticsearch_action_support_nodes_TransportNodesOperationAction.java |
494 | private static class IdentityRewriter<T> implements FieldRewriter<T> {
@Override
public T rewriteValue(T value) {
return null;
}
} | 0true | core_src_main_java_com_orientechnologies_orient_core_db_tool_ODatabaseImport.java |
496 | return scheduledExecutor.scheduleAtFixedRate(new Runnable() {
public void run() {
executeInternal(command);
}
}, initialDelay, period, unit); | 1no label | hazelcast-client_src_main_java_com_hazelcast_client_spi_impl_ClientExecutionServiceImpl.java |
2 | Collection<Long> perm1Ids = BLCCollectionUtils.collect(perm1, new TypedTransformer<Long>() {
@Override
public Long transform(Object input) {
return ((ProductOptionValue) input).getId();
}
}); | 0true | admin_broadleaf-admin-module_src_main_java_org_broadleafcommerce_admin_server_service_AdminCatalogServiceImpl.java |
180 | @RunWith(HazelcastSerialClassRunner.class)
@Category(QuickTest.class)
public class ClientAtomicReferenceTest {
static final String name = "test1";
static HazelcastInstance client;
static HazelcastInstance server;
static IAtomicReference<String> clientReference;
static IAtomicReference<String> serve... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_atomicreference_ClientAtomicReferenceTest.java |
141 | (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_Striped64.java |
884 | threadPool.executor(ThreadPool.Names.SEARCH).execute(new Runnable() {
@Override
public void run() {
executePhase(shardIndex, node, target.v2());
... | 0true | src_main_java_org_elasticsearch_action_search_type_TransportSearchScrollQueryAndFetchAction.java |
95 | public class RagManager implements Visitor<LineLogger, RuntimeException>
{
// if a runtime exception is thrown from any method it means that the
// RWLock class hasn't kept the contract to the RagManager
// The contract is:
// o When a transaction gets a lock on a resource and both the readCount and
... | 0true | community_kernel_src_main_java_org_neo4j_kernel_impl_transaction_RagManager.java |
9 | display.timerExec(100, new Runnable() {
@Override
public void run() {
fCompleted= true;
}
}); | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_browser_BrowserInformationControl.java |
565 | public class HibernateToolTask extends Task {
public HibernateToolTask() {
super();
}
@SuppressWarnings("rawtypes")
protected List configurationTasks = new ArrayList();
protected File destDir;
@SuppressWarnings("rawtypes")
protected List generators = new ArrayList();
protected L... | 0true | common_src_main_java_org_broadleafcommerce_common_util_sql_HibernateToolTask.java |
659 | public class ORemoteIndexEngine implements OIndexEngine {
@Override
public void init() {
}
@Override
public void flush() {
}
@Override
public void create(String indexName, OIndexDefinition indexDefinition, String clusterIndexName,
OStreamSerializer valueSerializer, boolean isAutomatic) {
}
... | 1no label | core_src_main_java_com_orientechnologies_orient_core_index_engine_ORemoteIndexEngine.java |
177 | public static final List<EntryMetaData> IDENTIFYING_METADATA = new ArrayList<EntryMetaData>(3) {{
for (EntryMetaData meta : values()) if (meta.isIdentifying()) add(meta);
}}; | 0true | titan-core_src_main_java_com_thinkaurelius_titan_diskstorage_EntryMetaData.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 |
392 | public interface Media extends Serializable {
public Long getId();
public void setId(Long id);
public String getUrl();
public void setUrl(String url);
public String getTitle();
public void setTitle(String title);
public String getAltText();
public void setAltText(String altTe... | 0true | common_src_main_java_org_broadleafcommerce_common_media_domain_Media.java |
1,074 | indexAction.execute(indexRequest, new ActionListener<IndexResponse>() {
@Override
public void onResponse(IndexResponse response) {
UpdateResponse update = new UpdateResponse(response.getIndex(), response.getType(), response.getId(), respons... | 1no label | src_main_java_org_elasticsearch_action_update_TransportUpdateAction.java |
686 | constructors[COLLECTION_CLEAR_BACKUP] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {
public IdentifiedDataSerializable createNew(Integer arg) {
return new CollectionClearBackupOperation();
}
}; | 0true | hazelcast_src_main_java_com_hazelcast_collection_CollectionDataSerializerHook.java |
1,333 | @ClusterScope(scope = TEST)
public class AckClusterUpdateSettingsTests extends ElasticsearchIntegrationTest {
@Override
protected Settings nodeSettings(int nodeOrdinal) {
//to test that the acknowledgement mechanism is working we better disable the wait for publish
//otherwise the operation is ... | 0true | src_test_java_org_elasticsearch_cluster_ack_AckClusterUpdateSettingsTests.java |
16 | static class A {
private int c = 0;
private final Object o;
A(final Object o) {
this.o = o;
}
public void inc() {
c++;
}
} | 0true | titan-test_src_main_java_com_thinkaurelius_titan_TestBed.java |
1,312 | class ApplySettings implements NodeSettingsService.Listener {
@Override
public void onRefreshSettings(Settings settings) {
TimeValue newUpdateFrequency = settings.getAsTime(INTERNAL_CLUSTER_INFO_UPDATE_INTERVAL, null);
// ClusterInfoService is only enabled if the DiskThreshol... | 0true | src_main_java_org_elasticsearch_cluster_InternalClusterInfoService.java |
1,507 | public static class Map extends Mapper<NullWritable, FaunusVertex, Text, LongWritable> {
private Closure keyClosure;
private Closure valueClosure;
private boolean isVertex;
private CounterMap<Object> map;
private int mapSpillOver;
private SafeMapperOutputs outputs;... | 1no label | titan-hadoop-parent_titan-hadoop-core_src_main_java_com_thinkaurelius_titan_hadoop_mapreduce_sideeffect_GroupCountMapReduce.java |
544 | flushAction.execute(Requests.flushRequest(request.indices()), new ActionListener<FlushResponse>() {
@Override
public void onResponse(FlushResponse flushResponse) {
// get all types that need to be deleted.
ImmutableOpenMap<String, ImmutableOpenMap<Strin... | 1no label | src_main_java_org_elasticsearch_action_admin_indices_mapping_delete_TransportDeleteMappingAction.java |
224 | @Documented
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface OAccess {
public enum OAccessType {
FIELD, PROPERTY
}
public OAccessType value() default OAccessType.PROPERTY;
} | 0true | core_src_main_java_com_orientechnologies_orient_core_annotation_OAccess.java |
327 | EntryListener listener1 = new EntryAdapter() {
public void entryAdded(EntryEvent event) {
latch1Add.countDown();
}
public void entryRemoved(EntryEvent event) {
latch1Remove.countDown();
}
}; | 0true | hazelcast-client_src_test_java_com_hazelcast_client_map_ClientMapTest.java |
1,487 | public class RoutingValidationException extends RoutingException {
private final RoutingTableValidation validation;
public RoutingValidationException(RoutingTableValidation validation) {
super(validation.toString());
this.validation = validation;
}
public RoutingTableValidation valida... | 0true | src_main_java_org_elasticsearch_cluster_routing_RoutingValidationException.java |
808 | public class GetAndAlterRequest extends AbstractAlterRequest {
public GetAndAlterRequest() {
}
public GetAndAlterRequest(String name, Data function) {
super(name, function);
}
@Override
protected Operation prepareOperation() {
return new GetAndAlterOperation(name, getFunction(... | 0true | hazelcast_src_main_java_com_hazelcast_concurrent_atomiclong_client_GetAndAlterRequest.java |
688 | public class CollectionEventFilter implements EventFilter, IdentifiedDataSerializable {
boolean includeValue;
public CollectionEventFilter() {
}
public CollectionEventFilter(boolean includeValue) {
this.includeValue = includeValue;
}
public boolean isIncludeValue() {
return i... | 1no label | hazelcast_src_main_java_com_hazelcast_collection_CollectionEventFilter.java |
366 | public interface Translation {
public Long getId();
public void setId(Long id);
public TranslatedEntity getEntityType();
public void setEntityType(TranslatedEntity entityType);
public String getEntityId();
public void setEntityId(String entityId);
public String getFieldName();
... | 0true | common_src_main_java_org_broadleafcommerce_common_i18n_domain_Translation.java |
160 | public interface StructuredContentService extends SandBoxItemListener {
/**
* Returns the StructuredContent item associated with the passed in id.
*
* @param contentId - The id of the content item.
* @return The associated structured content item.
*/
public StructuredContent findStruc... | 0true | admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_structure_service_StructuredContentService.java |
539 | public abstract class ODocumentHookAbstract implements ORecordHook {
private String[] includeClasses;
private String[] excludeClasses;
protected ODocumentHookAbstract() {
}
/**
* It's called just before to create the new document.
*
* @param iDocument
* The document to create
* @ret... | 0true | core_src_main_java_com_orientechnologies_orient_core_hook_ODocumentHookAbstract.java |
161 | private static final class SingleTargetCallback implements Callback<Object> {
final Address target;
final MultiTargetCallback parent;
private SingleTargetCallback(Address target, MultiTargetCallback parent) {
this.target = target;
this.parent = parent;
}
... | 0true | hazelcast_src_main_java_com_hazelcast_client_MultiTargetClientRequest.java |
818 | public class ClearScrollResponse extends ActionResponse {
private boolean succeeded;
public ClearScrollResponse(boolean succeeded) {
this.succeeded = succeeded;
}
ClearScrollResponse() {
}
public boolean isSucceeded() {
return succeeded;
}
@Override
public void r... | 1no label | src_main_java_org_elasticsearch_action_search_ClearScrollResponse.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 |
577 | public interface IndexValuesResultListener {
boolean addResult(OIdentifiable value);
} | 0true | core_src_main_java_com_orientechnologies_orient_core_index_OIndex.java |
366 | @SuppressWarnings("unchecked")
public class OGraphDatabasePooled extends OGraphDatabase implements ODatabasePooled {
private OGraphDatabasePool ownerPool;
public OGraphDatabasePooled(final OGraphDatabasePool iOwnerPool, final String iURL, final String iUserName,
final String iUserPassword) {
super(iURL)... | 0true | core_src_main_java_com_orientechnologies_orient_core_db_graph_OGraphDatabasePooled.java |
1,540 | @Service("blUpdateCartService")
public class UpdateCartServiceImpl implements UpdateCartService {
protected static final Log LOG = LogFactory.getLog(UpdateCartServiceImpl.class);
protected static BroadleafCurrency savedCurrency;
@Resource(name="blOrderService")
protected OrderService orderService;
... | 1no label | core_broadleaf-framework-web_src_main_java_org_broadleafcommerce_core_web_service_UpdateCartServiceImpl.java |
183 | futures.add(es.submit(new Callable<Void>() {
@Override
public Void call() {
try {
getBlock();
} catch (BackendException e) {
throw new RuntimeException(e);
}
... | 0true | titan-test_src_main_java_com_thinkaurelius_titan_diskstorage_IDAuthorityTest.java |
85 | public abstract class OConsoleCommandCollection {
protected OConsoleApplication context;
void setContext(OConsoleApplication context){
this.context = context;
}
} | 0true | commons_src_main_java_com_orientechnologies_common_console_OConsoleCommandCollection.java |
6,303 | public static final class ElasticsearchMockDirectoryWrapper extends MockDirectoryWrapper {
private final ESLogger logger;
private final boolean failOnClose;
public ElasticsearchMockDirectoryWrapper(Random random, Directory delegate, ESLogger logger, boolean failOnClose) {
super... | 1no label | src_test_java_org_elasticsearch_test_store_MockDirectoryHelper.java |
694 | class Flush implements Runnable {
@Override
public void run() {
synchronized (BulkProcessor.this) {
if (closed) {
return;
}
if (bulkRequest.numberOfActions() == 0) {
return;
}
... | 0true | src_main_java_org_elasticsearch_action_bulk_BulkProcessor.java |
463 | public class IndicesAliasesClusterStateUpdateRequest extends ClusterStateUpdateRequest<IndicesAliasesClusterStateUpdateRequest> {
AliasAction[] actions;
IndicesAliasesClusterStateUpdateRequest() {
}
/**
* Returns the alias actions to be performed
*/
public AliasAction[] actions() {
... | 0true | src_main_java_org_elasticsearch_action_admin_indices_alias_IndicesAliasesClusterStateUpdateRequest.java |
1,122 | public class ScriptsScorePayloadSumBenchmark extends BasicScriptBenchmark {
public static void main(String[] args) throws Exception {
int minTerms = 1;
int maxTerms = 50;
int maxIter = 100;
int warmerIter = 10;
init(maxTerms);
List<Results> allResults = new ArrayLi... | 0true | src_test_java_org_elasticsearch_benchmark_scripts_score_ScriptsScorePayloadSumBenchmark.java |
787 | return new DataSerializableFactory() {
@Override
public IdentifiedDataSerializable create(int typeId) {
switch (typeId) {
case ADD_BACKUP:
return new AddBackupOperation();
case ADD_AND_GET:
... | 0true | hazelcast_src_main_java_com_hazelcast_concurrent_atomiclong_AtomicLongDataSerializerHook.java |
140 | public static class FileSizePruneStrategy extends AbstractPruneStrategy
{
private final int maxSize;
public FileSizePruneStrategy( FileSystemAbstraction fileystem, int maxSizeBytes )
{
super( fileystem );
this.maxSize = maxSizeBytes;
}
@Override
... | 0true | community_kernel_src_main_java_org_neo4j_kernel_impl_transaction_xaframework_LogPruneStrategies.java |
407 | @Component("blEntityConfiguration")
public class EntityConfiguration implements ApplicationContextAware {
private static final Log LOG = LogFactory.getLog(EntityConfiguration.class);
private ApplicationContext webApplicationContext;
private final HashMap<String, Class<?>> entityMap = new HashMap<String, C... | 0true | common_src_main_java_org_broadleafcommerce_common_persistence_EntityConfiguration.java |
332 | new Thread() {
public void run() {
boolean result = map.tryRemove("key2", 1, TimeUnit.SECONDS);
if (!result) {
latch.countDown();
}
}
}.start(); | 0true | hazelcast-client_src_test_java_com_hazelcast_client_map_ClientMapTest.java |
198 | public interface Authenticator {
void auth(ClientConnection connection) throws AuthenticationException, IOException;
} | 0true | hazelcast-client_src_main_java_com_hazelcast_client_connection_Authenticator.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 |
1,586 | public class Entity implements Serializable {
protected static final long serialVersionUID = 1L;
protected String[] type;
protected Property[] properties;
protected boolean isDirty = false;
protected Boolean isDeleted = false;
protected Boolean isInactive = false;
protected Boolean isActiv... | 1no label | admin_broadleaf-open-admin-platform_src_main_java_org_broadleafcommerce_openadmin_dto_Entity.java |
318 | public class OStorageDataConfiguration extends OStorageSegmentConfiguration {
private static final long serialVersionUID = 1L;
public OStorageDataHoleConfiguration holeFile;
private static final String START_SIZE = "1Mb";
private static final String INCREMENT_SIZE = "100%";
public OStorageDa... | 0true | core_src_main_java_com_orientechnologies_orient_core_config_OStorageDataConfiguration.java |
147 | public class TestLogPruneStrategy
{
@Rule public EphemeralFileSystemRule fs = new EphemeralFileSystemRule();
private EphemeralFileSystemAbstraction FS;
private File directory;
@Before
public void before()
{
FS = fs.get();
directory = TargetDirectory.forTest( FS, getClass() )... | 0true | community_kernel_src_test_java_org_neo4j_kernel_impl_transaction_xaframework_TestLogPruneStrategy.java |
1,284 | public class ClusterModule extends AbstractModule implements SpawnModules {
private final Settings settings;
public ClusterModule(Settings settings) {
this.settings = settings;
}
@Override
public Iterable<? extends Module> spawnModules() {
return ImmutableList.of(new AllocationMod... | 0true | src_main_java_org_elasticsearch_cluster_ClusterModule.java |
1,576 | public class BasicCollectionMetadata extends CollectionMetadata {
private AddMethodType addMethodType;
public AddMethodType getAddMethodType() {
return addMethodType;
}
public void setAddMethodType(AddMethodType addMethodType) {
this.addMethodType = addMethodType;
}
@Override... | 1no label | admin_broadleaf-open-admin-platform_src_main_java_org_broadleafcommerce_openadmin_dto_BasicCollectionMetadata.java |
1,158 | threads[i] = new Thread(new Runnable() {
@Override
public void run() {
if (USE_NANO_TIME) {
for (long i = 0; i < NUMBER_OF_ITERATIONS; i++) {
System.nanoTime();
}
... | 0true | src_test_java_org_elasticsearch_benchmark_time_SimpleTimeBenchmark.java |
99 | private static class DeadlockProneTransactionStateFactory extends TransactionStateFactory
{
private DoubleLatch latch;
DeadlockProneTransactionStateFactory( Logging logging )
{
super( logging );
}
public DoubleLatch installDeadlockLatch()
{
... | 0true | community_kernel_src_test_java_org_neo4j_kernel_impl_transaction_TestCacheUpdateDeadlock.java |
373 | public class PutRepositoryAction extends ClusterAction<PutRepositoryRequest, PutRepositoryResponse, PutRepositoryRequestBuilder> {
public static final PutRepositoryAction INSTANCE = new PutRepositoryAction();
public static final String NAME = "cluster/repository/put";
private PutRepositoryAction() {
... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_repositories_put_PutRepositoryAction.java |
1 | public final class OAlwaysGreaterKey implements Comparable<Comparable<?>>{
public int compareTo(Comparable<?> o) {
return 1;
}
} | 0true | commons_src_main_java_com_orientechnologies_common_collection_OAlwaysGreaterKey.java |
102 | private static class FindNamedArgumentsVisitor
extends Visitor
implements NaturalVisitor {
Tree.NamedArgumentList argumentList;
int offset;
private Tree.NamedArgumentList getArgumentList() {
return argumentList;
}
private FindN... | 0true | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_correct_ConvertToPositionalArgumentsProposal.java |
75 | public interface StaticAsset extends Serializable {
/**
* Returns the id of the static asset.
* @return
*/
public Long getId();
/**
* Sets the id of the static asset.
* @param id
*/
public void setId(Long id);
/**
* The name of the static asset.
* @ret... | 0true | admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_file_domain_StaticAsset.java |
966 | private class AsyncAction {
private final Request request;
private final String[] nodesIds;
private final ActionListener<Response> listener;
private final ClusterState clusterState;
private final AtomicReferenceArray<Object> responses;
private final AtomicInteger cou... | 0true | src_main_java_org_elasticsearch_action_support_nodes_TransportNodesOperationAction.java |
1,479 | public final static class UnassignedShards implements Iterable<MutableShardRouting> {
private final List<MutableShardRouting> unassigned;
private int primaries = 0;
private long transactionId = 0;
private final UnassignedShards source;
private final long sourceTransactionI... | 0true | src_main_java_org_elasticsearch_cluster_routing_RoutingNodes.java |
731 | public class DeleteByQueryAction extends Action<DeleteByQueryRequest, DeleteByQueryResponse, DeleteByQueryRequestBuilder> {
public static final DeleteByQueryAction INSTANCE = new DeleteByQueryAction();
public static final String NAME = "deleteByQuery";
private DeleteByQueryAction() {
super(NAME);
... | 0true | src_main_java_org_elasticsearch_action_deletebyquery_DeleteByQueryAction.java |
390 | new Thread(){
public void run() {
mm.forceUnlock(key);
forceUnlock.countDown();
}
}.start(); | 0true | hazelcast-client_src_test_java_com_hazelcast_client_multimap_ClientMultiMapLockTest.java |
134 | @Entity
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "BLC_SC_FLD")
@EntityListeners(value = { AdminAuditableListener.class })
public class StructuredContentFieldImpl implements StructuredContentField {
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue(generator = "Struc... | 0true | admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_structure_domain_StructuredContentFieldImpl.java |
1,094 | threads[i] = new Thread() {
@Override
public void run() {
try {
latch.await();
} catch (InterruptedException e) {
return;
}
while (recycles.getAndDe... | 0true | src_test_java_org_elasticsearch_benchmark_common_recycler_RecyclerBenchmark.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.