Unnamed: 0 int64 0 6.45k | func stringlengths 37 161k | target class label 2
classes | project stringlengths 33 167 |
|---|---|---|---|
127 | public interface PropertyKeyMaker extends RelationTypeMaker {
/**
* Configures the {@link com.thinkaurelius.titan.core.Cardinality} of this property key.
*
* @param cardinality
* @return this PropertyKeyMaker
*/
public PropertyKeyMaker cardinality(Cardinality cardinality);
/**
... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_core_schema_PropertyKeyMaker.java |
2,841 | private static class DefaultNodeGroup implements NodeGroup {
final PartitionTable groupPartitionTable = new PartitionTable();
final Map<Address, PartitionTable> nodePartitionTables = new HashMap<Address, PartitionTable>();
final Set<Address> nodes = nodePartitionTables.keySet();
fina... | 1no label | hazelcast_src_main_java_com_hazelcast_partition_impl_PartitionStateGeneratorImpl.java |
5,393 | public class InternalValueCount extends MetricsAggregation implements ValueCount {
public static final Type TYPE = new Type("value_count", "vcount");
private static final AggregationStreams.Stream STREAM = new AggregationStreams.Stream() {
@Override
public InternalValueCount readResult(StreamI... | 1no label | src_main_java_org_elasticsearch_search_aggregations_metrics_valuecount_InternalValueCount.java |
159 | public abstract class MultiTargetClientRequest extends ClientRequest {
public static final int TRY_COUNT = 100;
@Override
final void process() throws Exception {
ClientEndpoint endpoint = getEndpoint();
OperationFactory operationFactory = createOperationFactory();
Collection<Addre... | 0true | hazelcast_src_main_java_com_hazelcast_client_MultiTargetClientRequest.java |
138 | public static class Presentation {
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 |
193 | public class TruncateTokenFilter extends TokenFilter {
private final CharTermAttribute termAttribute = addAttribute(CharTermAttribute.class);
private final int size;
public TruncateTokenFilter(TokenStream in, int size) {
super(in);
this.size = size;
}
@Override
public final b... | 0true | src_main_java_org_apache_lucene_analysis_miscellaneous_TruncateTokenFilter.java |
514 | public class KillMemberThread extends TestThread {
@Override
public void doRun() throws Exception {
while (!stopTest) {
try {
Thread.sleep(TimeUnit.SECONDS.toMillis(KILL_DELAY_SECONDS));
} catch (InterruptedException e) {
... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_stress_StressTestSupport.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 |
505 | public interface SiteConfigProvider {
public void configSite(Site site);
public void init(Map<String, Object> map);
} | 0true | common_src_main_java_org_broadleafcommerce_common_site_service_provider_SiteConfigProvider.java |
686 | clusterService.submitStateUpdateTask("put_warmer [" + request.name() + "]", new AckedClusterStateUpdateTask() {
@Override
public boolean mustAck(DiscoveryNode discoveryNode) {
return true;
}
@Overri... | 0true | src_main_java_org_elasticsearch_action_admin_indices_warmer_put_TransportPutWarmerAction.java |
850 | private class TransportHandler extends BaseTransportRequestHandler<SearchRequest> {
@Override
public SearchRequest newInstance() {
return new SearchRequest();
}
@Override
public void messageReceived(SearchRequest request, final TransportChannel channel) throws E... | 0true | src_main_java_org_elasticsearch_action_search_TransportSearchAction.java |
116 | public class ClientOutOfMemoryHandler extends OutOfMemoryHandler {
@Override
public void onOutOfMemory(OutOfMemoryError oom, HazelcastInstance[] hazelcastInstances) {
System.err.println(oom);
for (HazelcastInstance instance : hazelcastInstances) {
if (instance instanceof HazelcastCl... | 0true | hazelcast-client_src_main_java_com_hazelcast_client_ClientOutOfMemoryHandler.java |
1,151 | public class OSQLMethodPrefix extends OAbstractSQLMethod {
public static final String NAME = "prefix";
public OSQLMethodPrefix() {
super(NAME, 1);
}
@Override
public Object execute(OIdentifiable iRecord, OCommandContext iContext, Object ioResult, Object[] iMethodParams) {
final Ob... | 1no label | core_src_main_java_com_orientechnologies_orient_core_sql_method_misc_OSQLMethodPrefix.java |
877 | threadPool.executor(ThreadPool.Names.SEARCH).execute(new Runnable() {
@Override
public void run() {
executeFetch(entry.index, queryResult.shardTarget(), counter... | 0true | src_main_java_org_elasticsearch_action_search_type_TransportSearchQueryThenFetchAction.java |
531 | @Deprecated
public class GatewaySnapshotAction extends IndicesAction<GatewaySnapshotRequest, GatewaySnapshotResponse, GatewaySnapshotRequestBuilder> {
public static final GatewaySnapshotAction INSTANCE = new GatewaySnapshotAction();
public static final String NAME = "indices/gateway/snapshot";
private Gat... | 0true | src_main_java_org_elasticsearch_action_admin_indices_gateway_snapshot_GatewaySnapshotAction.java |
929 | public enum BroadcastOperationThreading {
/**
* No threads are used, all the local shards operations will be performed on the calling
* thread.
*/
NO_THREADS((byte) 0),
/**
* The local shards operations will be performed in serial manner on a single forked thread.
*/
SINGLE_THRE... | 0true | src_main_java_org_elasticsearch_action_support_broadcast_BroadcastOperationThreading.java |
754 | phasedUnit.getCompilationUnit().visit(new Visitor() {
@Override
public void visit(ImportMemberOrType that) {
super.visit(that);
visitIt(that.getIdentifier(), that.getDeclarationModel());
}
@Override
... | 1no label | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_refactor_CopyFileRefactoringParticipant.java |
1,161 | public class OSQLMethodToLowerCase extends OAbstractSQLMethod {
public static final String NAME = "tolowercase";
public OSQLMethodToLowerCase() {
super(NAME);
}
@Override
public Object execute(OIdentifiable iCurrentRecord, OCommandContext iContext, Object ioResult, Object[] iMethodParams)... | 1no label | core_src_main_java_com_orientechnologies_orient_core_sql_method_misc_OSQLMethodToLowerCase.java |
672 | public class TransportDeleteWarmerAction extends TransportMasterNodeOperationAction<DeleteWarmerRequest, DeleteWarmerResponse> {
@Inject
public TransportDeleteWarmerAction(Settings settings, TransportService transportService, ClusterService clusterService, ThreadPool threadPool) {
super(settings, trans... | 1no label | src_main_java_org_elasticsearch_action_admin_indices_warmer_delete_TransportDeleteWarmerAction.java |
829 | public class SearchPhaseExecutionException extends ElasticsearchException {
private final String phaseName;
private ShardSearchFailure[] shardFailures;
public SearchPhaseExecutionException(String phaseName, String msg, ShardSearchFailure[] shardFailures) {
super(buildMessage(phaseName, msg, shard... | 0true | src_main_java_org_elasticsearch_action_search_SearchPhaseExecutionException.java |
5,057 | public class SearchContextMissingException extends ElasticsearchException {
private final long id;
public SearchContextMissingException(long id) {
super("No search context found for id [" + id + "]");
this.id = id;
}
public long id() {
return this.id;
}
} | 1no label | src_main_java_org_elasticsearch_search_SearchContextMissingException.java |
267 | public class LoggingMailSender extends JavaMailSenderImpl {
private static final Log LOG = LogFactory.getLog(LoggingMailSender.class);
@Override
public void send(MimeMessagePreparator[] mimeMessagePreparators) throws MailException {
for (MimeMessagePreparator preparator : mimeMessagePreparators) {
... | 0true | common_src_main_java_org_broadleafcommerce_common_email_service_LoggingMailSender.java |
552 | public class UrlUtil {
public static String generateUrlKey(String toConvert) {
if (toConvert.matches(".*?\\W.*?")) {
//remove all non-word characters
String result = toConvert.replaceAll("\\W","");
//uncapitalizes the first letter of the url key
return StringU... | 0true | common_src_main_java_org_broadleafcommerce_common_util_UrlUtil.java |
1,176 | serverBootstrap.setPipelineFactory(new ChannelPipelineFactory() {
@Override
public ChannelPipeline getPipeline() throws Exception {
return Channels.pipeline(new EchoServerHandler());
}
}); | 0true | src_test_java_org_elasticsearch_benchmark_transport_netty_NettyEchoBenchmark.java |
191 | public class TimeDTO {
@AdminPresentation(excluded = true)
private Calendar cal;
@AdminPresentation(friendlyName = "TimeDTO_Hour_Of_Day", fieldType = SupportedFieldType.BROADLEAF_ENUMERATION, broadleafEnumeration = "org.broadleafcommerce.common.time.HourOfDayType")
private Integer hour;
@AdminPre... | 0true | common_src_main_java_org_broadleafcommerce_common_TimeDTO.java |
1,391 | public class EditedPhasedUnit extends IdePhasedUnit {
WeakReference<ProjectPhasedUnit> savedPhasedUnitRef;
public EditedPhasedUnit(VirtualFile unitFile, VirtualFile srcDir,
CompilationUnit cu, Package p, ModuleManager moduleManager,
TypeChecker typeChecker, List<CommonToken> tokenSt... | 1no label | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_core_typechecker_EditedPhasedUnit.java |
5,806 | public final class CustomQueryScorer extends QueryScorer {
public CustomQueryScorer(Query query, IndexReader reader, String field,
String defaultField) {
super(query, reader, field, defaultField);
}
public CustomQueryScorer(Query query, IndexReader reader, String field... | 1no label | src_main_java_org_elasticsearch_search_highlight_CustomQueryScorer.java |
398 | public interface CurrencyConversionService {
/**
* Converts the given Money into the destination. The starting currency is determined by {@code source.getCurrency()}
*
* @param source - the Money to convert
* @param destinationCurrency - which Currency to convert to
* @param destinati... | 0true | common_src_main_java_org_broadleafcommerce_common_money_CurrencyConversionService.java |
168 | public abstract class SpeedTestMonoThread extends SpeedTestAbstract {
protected SpeedTestMonoThread() {
}
protected SpeedTestMonoThread(final long iCycles) {
super(iCycles);
}
} | 0true | commons_src_test_java_com_orientechnologies_common_test_SpeedTestMonoThread.java |
8 | public class LabelAbbreviationsTest {
@Test
public void getAbbreviation() throws SecurityException, NoSuchFieldException, IllegalArgumentException, IllegalAccessException {
AbbreviationsImpl availableAbbreviations = new AbbreviationsImpl("value");
availableAbbreviations.addPhrase("Amps", Collections.singletonLi... | 0true | tableViews_src_test_java_gov_nasa_arc_mct_abbreviation_impl_LabelAbbreviationsTest.java |
427 | public enum RequiredOverride {
REQUIRED,
NOT_REQUIRED,
IGNORED
} | 0true | common_src_main_java_org_broadleafcommerce_common_presentation_RequiredOverride.java |
249 | public final class XFuzzySuggester extends XAnalyzingSuggester {
private final int maxEdits;
private final boolean transpositions;
private final int nonFuzzyPrefix;
private final int minFuzzyLength;
private final boolean unicodeAware;
/**
* Measure maxEdits, minFuzzyLength, transpositions... | 0true | src_main_java_org_apache_lucene_search_suggest_analyzing_XFuzzySuggester.java |
1,250 | public abstract class AbstractIndicesAdminClient implements InternalIndicesAdminClient {
@Override
public <Request extends ActionRequest, Response extends ActionResponse, RequestBuilder extends ActionRequestBuilder<Request, Response, RequestBuilder>> RequestBuilder prepareExecute(final IndicesAction<Request, R... | 0true | src_main_java_org_elasticsearch_client_support_AbstractIndicesAdminClient.java |
399 | public class ORecordOperation implements OSerializableStream {
private static final long serialVersionUID = 1L;
public static final byte LOADED = 0;
public static final byte UPDATED = 1;
public static final byte DELETED = 2;
public static final byte CREATED = 3;
p... | 0true | core_src_main_java_com_orientechnologies_orient_core_db_record_ORecordOperation.java |
518 | public class OFetchException extends OException {
private static final long serialVersionUID = 7247597939953323863L;
public OFetchException(String message, Throwable cause) {
super(message, cause);
}
public OFetchException(String message) {
super(message);
}
} | 0true | core_src_main_java_com_orientechnologies_orient_core_exception_OFetchException.java |
847 | return new PortableFactory() {
public Portable create(int classId) {
switch (classId) {
case GET:
return new GetRequest();
case SET:
return new SetRequest();
case GET_AND_SET:
... | 0true | hazelcast_src_main_java_com_hazelcast_concurrent_atomicreference_client_AtomicReferencePortableHook.java |
1,161 | final class NewModuleWizardPage extends NewUnitWizardPage {
private String version="1.0.0";
NewModuleWizardPage() {
super("New Ceylon Module",
"Create a runnable Ceylon module with module and package descriptors.",
CEYLON_NEW_MODULE);
setUnitName("run");
... | 1no label | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_wizard_NewModuleWizardPage.java |
610 | Runnable recreateIndexesTask = new Runnable() {
@Override
public void run() {
try {
// START IT IN BACKGROUND
newDb.setProperty(ODatabase.OPTIONS.SECURITY.toString(), Boolean.FALSE);
newDb.open("admin", "nopass");
ODatabaseRecordThreadLoca... | 1no label | core_src_main_java_com_orientechnologies_orient_core_index_OIndexManagerShared.java |
1,157 | public class SimpleTimeBenchmark {
private static boolean USE_NANO_TIME = false;
private static long NUMBER_OF_ITERATIONS = 1000000;
private static int NUMBER_OF_THREADS = 100;
public static void main(String[] args) throws Exception {
StopWatch stopWatch = new StopWatch().start();
Syst... | 0true | src_test_java_org_elasticsearch_benchmark_time_SimpleTimeBenchmark.java |
1,360 | static class ShardRoutingEntry extends TransportRequest {
private ShardRouting shardRouting;
private String indexUUID = IndexMetaData.INDEX_UUID_NA_VALUE;
private String reason;
private ShardRoutingEntry() {
}
private ShardRoutingEntry(ShardRouting shardRouting, ... | 0true | src_main_java_org_elasticsearch_cluster_action_shard_ShardStateAction.java |
3,265 | public class StringScriptDataComparator extends FieldComparator<BytesRef> {
public static IndexFieldData.XFieldComparatorSource comparatorSource(SearchScript script) {
return new InnerSource(script);
}
private static class InnerSource extends IndexFieldData.XFieldComparatorSource {
privat... | 1no label | src_main_java_org_elasticsearch_index_fielddata_fieldcomparator_StringScriptDataComparator.java |
1,490 | public class BroadleafCheckoutController extends AbstractCheckoutController {
private static final Log LOG = LogFactory.getLog(BroadleafCheckoutController.class);
protected static String cartPageRedirect = "redirect:/cart";
protected static String checkoutView = "checkout/checkout";
protected stat... | 1no label | core_broadleaf-framework-web_src_main_java_org_broadleafcommerce_core_web_controller_checkout_BroadleafCheckoutController.java |
243 | public class OCacheLevelTwoLocatorRemote implements OCacheLevelTwoLocator {
@Override
public OCache primaryCache(String storageName) {
return new OEmptyCache();
}
} | 0true | core_src_main_java_com_orientechnologies_orient_core_cache_OCacheLevelTwoLocatorRemote.java |
1,176 | public class OQueryOperatorContainsText extends OQueryTargetOperator {
private boolean ignoreCase = true;
public OQueryOperatorContainsText(final boolean iIgnoreCase) {
super("CONTAINSTEXT", 5, false);
ignoreCase = iIgnoreCase;
}
public OQueryOperatorContainsText() {
super("CONTAINSTEXT", 5, false... | 1no label | core_src_main_java_com_orientechnologies_orient_core_sql_operator_OQueryOperatorContainsText.java |
1,278 | public class ClusterChangedEvent {
private final String source;
private final ClusterState previousState;
private final ClusterState state;
private final DiscoveryNodes.Delta nodesDelta;
public ClusterChangedEvent(String source, ClusterState state, ClusterState previousState) {
this.sou... | 0true | src_main_java_org_elasticsearch_cluster_ClusterChangedEvent.java |
761 | public class ListReplicationOperation extends CollectionReplicationOperation {
public ListReplicationOperation() {
}
public ListReplicationOperation(Map<String, CollectionContainer> migrationData, int partitionId, int replicaIndex) {
super(migrationData, partitionId, replicaIndex);
}
@Ove... | 0true | hazelcast_src_main_java_com_hazelcast_collection_list_ListReplicationOperation.java |
172 | public class BroadleafProcessURLFilter extends OncePerRequestFilter {
private final Log LOG = LogFactory.getLog(BroadleafProcessURLFilter.class);
// List of URLProcessors
private List<URLProcessor> urlProcessorList = new ArrayList<URLProcessor>();
// Cache-settings
// by default, expire cache ev... | 1no label | admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_web_BroadleafProcessURLFilter.java |
593 | public class EmailStatusHandler implements StatusHandler {
@Resource(name="blEmailService")
protected EmailService emailService;
protected EmailInfo emailInfo;
protected EmailTarget emailTarget;
public void handleStatus(String serviceName, ServiceStatusType status) {
String message = serv... | 0true | common_src_main_java_org_broadleafcommerce_common_vendor_service_monitor_handler_EmailStatusHandler.java |
4,201 | public class RateLimitingInputStream extends InputStream {
private final InputStream delegate;
private final RateLimiter rateLimiter;
private final Listener listener;
public interface Listener {
void onPause(long nanos);
}
public RateLimitingInputStream(InputStream delegate, RateLim... | 1no label | src_main_java_org_elasticsearch_index_snapshots_blobstore_RateLimitingInputStream.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.