repo_id
stringclasses
875 values
size
int64
974
38.9k
file_path
stringlengths
10
308
content
stringlengths
974
38.9k
apache/incubator-brooklyn
1,109
brooklyn-server/software/base/src/main/java/org/apache/brooklyn/entity/java/JavaSoftwareProcessDriver.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.brooklyn.entity.java; import org.apache.brooklyn.entity.software.base.SoftwareProcessDriver; /** * A {@link SoftwareProcessDriver} for Java processes. */ public interface JavaSoftwareProcessDriver extends SoftwareProcessDriver { public boolean isJmxEnabled(); }
apache/incubator-crail
1,144
namenode/src/main/java/org/apache/crail/namenode/KeyValueBlocks.java
/* * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.crail.namenode; import org.apache.crail.CrailNodeType; public class KeyValueBlocks extends FileBlocks { public KeyValueBlocks(long fd, int fileComponent, CrailNodeType type, int storageClass, int locationClass, boolean enumerable) { super(fd, fileComponent, type, storageClass, locationClass, enumerable); } }
apache/incubator-datalab
1,112
services/billing-azure/src/main/java/com/epam/datalab/billing/azure/usage/UsageAggregateResponse.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package com.epam.datalab.billing.azure.usage; import com.fasterxml.jackson.annotation.JsonProperty; import lombok.Data; import java.util.List; @Data public class UsageAggregateResponse { @JsonProperty private List<UsageAggregateRecord> value; @JsonProperty private String nextLink; }
apache/incubator-kie-drools
1,116
drools-xml-support/src/main/java/org/drools/xml/support/containers/CommandsObjectContainer.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.drools.xml.support.containers; public class CommandsObjectContainer { private Object containedObject; public CommandsObjectContainer(Object object) { this.containedObject = object; } public Object getContainedObject() { return containedObject; } }
apache/incubator-kie-drools
1,125
drools-drl/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/CollectDescrBuilder.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.drools.drl.ast.dsl; import org.drools.drl.ast.descr.CollectDescr; /** * A descriptor builder for Collect */ public interface CollectDescrBuilder<P extends DescrBuilder< ?, ? >> extends PatternContainerDescrBuilder<CollectDescrBuilder<P>, CollectDescr>, DescrBuilder<P, CollectDescr> { }
apache/incubator-kie-drools
1,136
kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/FEELProfile.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.kie.dmn.feel.lang; import java.util.Collections; import java.util.List; import java.util.Map; import org.kie.dmn.feel.runtime.FEELFunction; public interface FEELProfile { List<FEELFunction> getFEELFunctions(); default Map<String,Object> getValues() { return Collections.emptyMap(); }; }
apache/incubator-kie-kogito-runtimes
1,071
kogito-codegen-modules/kogito-codegen-processes/src/main/resources/class-templates/events/ProcessCloudEventMetaFactoryJavaTemplate.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.kie.kogito.app; import org.kie.kogito.event.cloudevents.CloudEventMeta; public class ProcessCloudEventMetaFactory { public CloudEventMeta buildCloudEventMeta_$methodName$() { return new CloudEventMeta($type$, $source$, $kind$); } }
apache/incubator-kie-kogito-runtimes
1,096
api/kogito-api-incubation-rules/src/main/java/org/kie/kogito/incubation/rules/InvalidRuleUnitIdException.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.kie.kogito.incubation.rules; import org.kie.kogito.incubation.common.LocalId; public class InvalidRuleUnitIdException extends IllegalArgumentException { public InvalidRuleUnitIdException(LocalId id) { super("Not a valid rule unit ID" + id.asLocalUri()); } }
apache/incubator-kie-kogito-runtimes
1,118
jbpm/jbpm-flow-builder/src/main/resources/class-templates/TaskOutputTemplate.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.jbpm.process.codegen; import java.util.HashMap; import java.util.Map; import org.kie.kogito.MapOutput; public class XXXTaskOutput implements MapOutput { @Override public Map<String, Object> toMap() { } public static XXXTaskOutput fromMap(Map<String, Object> params) { } }
apache/incubator-kie-kogito-runtimes
1,119
api/kogito-api/src/main/java/org/kie/kogito/process/ProcessInstanceReadMode.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.kie.kogito.process; public enum ProcessInstanceReadMode { READ_ONLY(true), MUTABLE(false); private boolean isReadOnly; public boolean isReadOnly() { return isReadOnly; } ProcessInstanceReadMode(boolean isReadOnly) { this.isReadOnly = isReadOnly; } }
apache/incubator-seata-samples
1,074
at-sample/spring-dubbo-seata/spring-dubbo-seata-common/src/main/java/org/apache/seata/service/OrderService.java
package org.apache.seata.service;/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ public interface OrderService { /** * 创建订单 * * @param userId 用户ID * @param commodityCode 商品编号 * @param orderCount 订购数量 */ void create(String userId, String commodityCode, int orderCount); }
apache/incubator-wayang
1,112
wayang-commons/wayang-basic/src/main/java/org/apache/wayang/basic/model/DecisionTreeRegressionModel.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.wayang.basic.model; public interface DecisionTreeRegressionModel extends Model { /** * Predict the output value for a single feature vector. * * @param features the input features * @return the predicted value */ double predict(double[] features); }
apache/incubator-xtable
1,140
xtable-api/src/main/java/org/apache/xtable/spi/extractor/SchemaExtractor.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.xtable.spi.extractor; import org.apache.xtable.model.schema.InternalSchema; /** * Interface to implement to extract canonical schema from a table format * * @param <CLIENT> Extracts canonical schema from table client. */ public interface SchemaExtractor<CLIENT> { InternalSchema schema(CLIENT client); }
apache/inlong
1,114
inlong-tubemq/tubemq-core/src/main/java/org/apache/inlong/tubemq/corerpc/exception/ServiceStoppingException.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.inlong.tubemq.corerpc.exception; public class ServiceStoppingException extends Exception { private static final long serialVersionUID = 253790701521672986L; public ServiceStoppingException() { } public ServiceStoppingException(String message) { super(message); } }
apache/inlong
1,116
inlong-tubemq/tubemq-manager/src/main/java/org/apache/inlong/tubemq/manager/service/interfaces/TaskService.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.inlong.tubemq.manager.service.interfaces; import org.apache.inlong.tubemq.manager.controller.TubeMQResult; import org.springframework.stereotype.Service; import java.util.Set; @Service public interface TaskService { TubeMQResult addTopicCreateTask(Long clusterId, Set<String> topicNames); }
apache/inlong
1,145
inlong-sdk/sort-sdk/src/main/java/org/apache/inlong/sdk/sort/api/Seeker.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.inlong.sdk.sort.api; /** * the seeker is used to reset the offset of topic-partition of rollback task */ public interface Seeker extends Configurable { /** * do seek */ void seek(); /** * return the expected seek time of seeker * @return expected seek time */ long getSeekTime(); }
apache/jclouds
1,113
providers/google-compute-engine/src/main/java/org/jclouds/googlecomputeengine/internal/BaseArg0ToIteratorOfListPage.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.jclouds.googlecomputeengine.internal; import org.jclouds.googlecomputeengine.options.ListOptions; public abstract class BaseArg0ToIteratorOfListPage<T, I extends BaseArg0ToIteratorOfListPage<T, I>> extends org.jclouds.googlecloud.internal.BaseArg0ToIteratorOfListPage<T, ListOptions, I> { }
apache/jclouds
1,131
common/openstack/src/main/java/org/jclouds/openstack/keystone/v1_1/functions/EndpointToRegion.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.jclouds.openstack.keystone.v1_1.functions; import org.jclouds.openstack.keystone.v1_1.domain.Endpoint; import com.google.common.base.Function; import com.google.inject.ImplementedBy; @ImplementedBy(RegionFirstPartOfDNSNameOrProvider.class) public interface EndpointToRegion extends Function<Endpoint, String> { }
apache/jena
1,149
jena-core/src/test/java/org/apache/jena/vocabulary/test/TS_Vocabularies.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.jena.vocabulary.test; import org.junit.runner.RunWith; import org.junit.runners.Suite; @RunWith(Suite.class) @Suite.SuiteClasses({ TestVocabRDF.class, TestVocabRDFS.class, TestVocabVCARD.class, TestVocabRSS.class, TestVocabDC10.class, TestOWL2Vocabulary.class } ) public class TS_Vocabularies {}
apache/jena
1,156
jena-core/src/main/java/org/apache/jena/shared/WrappedIOException.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.jena.shared; import java.io.IOException; /** A wrapped IO exception. */ public class WrappedIOException extends JenaException { public WrappedIOException( IOException cause ) { super( cause ); } public WrappedIOException( String message, IOException cause ) { super( message, cause ); } }
apache/johnzon
1,151
johnzon-core/src/main/java/org/apache/johnzon/core/BufferStrategy.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.johnzon.core; import java.io.Serializable; /** * Plugable way to hold various buffers for reading and writing json */ public interface BufferStrategy { BufferProvider<char[]> newCharProvider(int size); interface BufferProvider<T> extends Serializable { T newBuffer(); void release(T value); } }
apache/kafka
1,151
tools/src/main/java/org/apache/kafka/tools/consumer/NoOpMessageFormatter.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.kafka.tools.consumer; import org.apache.kafka.clients.consumer.ConsumerRecord; import org.apache.kafka.common.MessageFormatter; import java.io.PrintStream; class NoOpMessageFormatter implements MessageFormatter { @Override public void writeTo(ConsumerRecord<byte[], byte[]> consumerRecord, PrintStream output) { } }
apache/kylin
1,118
src/spark-project/engine-spark/src/main/java/org/apache/kylin/engine/spark/job/DefaultEnviromentAdaptor.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.kylin.engine.spark.job; import java.util.Map; import org.apache.spark.sql.SparkSession; public class DefaultEnviromentAdaptor implements EnviromentAdaptor { @Override public Boolean prepareEnviroment(SparkSession spark, Map<String, String> params) { return true; } }
apache/kylin
1,132
src/core-metrics/src/main/java/org/apache/kylin/common/metrics/MetricsCategory.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.kylin.common.metrics; public enum MetricsCategory { PROJECT("project"), JVM("jvm"), HOST("host"), GLOBAL("global"), MODEL("model"); private final String value; MetricsCategory(String value) { this.value = value; } public String getVal() { return this.value; } }
apache/kylin
1,150
src/jdbc/src/main/java/org/apache/kylin/jdbc/json/PreparedQueryRequest.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.kylin.jdbc.json; import java.util.List; public class PreparedQueryRequest extends QueryRequest { private List<StatementParameter> params; public List<StatementParameter> getParams() { return params; } public void setParams(List<StatementParameter> params) { this.params = params; } }
apache/lens
1,127
lens-server-api/src/main/java/org/apache/lens/server/api/query/comparators/QueryPriorityComparator.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.lens.server.api.query.comparators; import org.apache.lens.server.api.query.QueryContext; public class QueryPriorityComparator implements QueryComparator { @Override public int compare(final QueryContext o1, final QueryContext o2) { return o1.getPriority().compareTo(o2.getPriority()); } }
apache/linkis
1,094
linkis-computation-governance/linkis-client/linkis-cli/src/main/java/org/apache/linkis/cli/application/entity/job/JobStatus.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.linkis.cli.application.entity.job; public interface JobStatus { boolean isJobSubmitted(); boolean isJobFinishedState(); boolean isJobSuccess(); boolean isJobFailure(); boolean isJobCancelled(); boolean isJobTimeout(); boolean isJobAbnormalStatus(); }
apache/lucene
1,153
lucene/sandbox/src/java/org/apache/lucene/sandbox/document/package-info.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** * This package contains several point types: * * <ul> * <li>{@link org.apache.lucene.sandbox.document.BigIntegerPoint BigIntegerPoint} for 128-bit * integers * <li>{@link org.apache.lucene.document.LatLonPoint LatLonPoint} for latitude/longitude * geospatial points * </ul> */ package org.apache.lucene.sandbox.document;
apache/maven-plugins
1,127
maven-javadoc-plugin/src/test/resources/unit/jdk5-test/jdk5/test/MyAnnotationType.java
package jdk5.test; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ import java.lang.annotation.Retention; import static java.lang.annotation.RetentionPolicy.RUNTIME; /** * Sample annotation type * * @author <a href="mailto:vincent.siveton@gmail.com">Vincent Siveton</a> */ @Retention(RUNTIME) public @interface MyAnnotationType { public String value(); }
apache/maven-surefire
1,122
surefire-its/src/test/resources/webapp/src/test/java/WebAppTest.java
import java.io.InputStream; import java.net.URL; import junit.framework.TestCase; import org.mortbay.jetty.Server; public class WebAppTest extends TestCase { private Server server = null; public void setUp() throws Exception { System.setProperty( "org.mortbay.xml.XmlParser.NotValidating", "true" ); server = new Server(); String testPort = ":18080"; server.addListener( testPort ); server.addWebApplication( "127.0.0.1", "/webapp", "target/webapp" ); server.start(); } public void testBlah() throws Exception { URL url = new URL( "http://127.0.0.1:18080/webapp/index.jsp" ); InputStream stream = url.openStream(); StringBuffer sb = new StringBuffer(); for ( int i = stream.read(); i != -1; i = stream.read() ) { sb.append( (char) i ); } String value = sb.toString(); assertTrue( value, value.contains( "Hello" ) ); } public void tearDown() throws Exception { if ( server != null ) server.stop(); } }
apache/metamodel
1,143
core/src/main/java/org/apache/metamodel/intercept/RowUpdationInterceptor.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.metamodel.intercept; import org.apache.metamodel.update.RowUpdationBuilder; /** * An {@link Interceptor} for {@link RowUpdationBuilder}, allowing for * interception of "update table" operations before they are executed. */ public interface RowUpdationInterceptor extends Interceptor<RowUpdationBuilder> { }
apache/metamodel
1,146
core/src/main/java/org/apache/metamodel/intercept/RowDeletionInterceptor.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.metamodel.intercept; import org.apache.metamodel.delete.RowDeletionBuilder; /** * An {@link Interceptor} for {@link RowDeletionBuilder}, allowing for * interception of "delete from table" operations before they are executed. */ public interface RowDeletionInterceptor extends Interceptor<RowDeletionBuilder> { }
apache/nifi
1,091
nifi-framework-bundle/nifi-framework/nifi-framework-core-api/src/main/java/org/apache/nifi/controller/repository/RepositoryStatusReport.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.nifi.controller.repository; import java.util.Map; public interface RepositoryStatusReport { void addReportEntry(FlowFileEvent entry, String componentId); Map<String, FlowFileEvent> getReportEntries(); FlowFileEvent getReportEntry(String componentId); }
apache/nifi
1,112
nifi-commons/nifi-web-client-api/src/main/java/org/apache/nifi/web/client/api/StandardHttpRequestMethod.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.nifi.web.client.api; /** * Enumeration of standard HTTP Request Methods */ public enum StandardHttpRequestMethod implements HttpRequestMethod { DELETE, GET, HEAD, PATCH, POST, PUT; @Override public String getMethod() { return name(); } }
apache/nutch
1,150
src/plugin/urlmeta/src/java/org/apache/nutch/scoring/urlmeta/package-info.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** * <p>URL Meta Tag Scoring Plugin</p> * <p>Propagates Meta Tags, injected alongside a URL * (see <a href="https://issues.apache.org/jira/browse/NUTCH-655">NUTCH-655</a>) * and specified in the "urlmeta.tags" property, along to their outlinks. * This does not actually perform scoring.</p> */ package org.apache.nutch.scoring.urlmeta;
apache/oodt
1,144
pcs/core/src/main/java/org/apache/oodt/pcs/health/WorkflowStatesMetKeys.java
/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.oodt.pcs.health; import java.io.Serializable; /** * * Met keys for the {@link WorkflowStatesFile} * * @author mattmann * @version $Revision$ */ public interface WorkflowStatesMetKeys extends Serializable { String WORKFLOW_STATES_GROUP = "WorkflowStatesGroup"; String WORKFLOW_STATES_VECTOR = "States"; }
apache/openjpa
1,112
openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jpql/version/type/ChildVersionEntity.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.openjpa.persistence.jpql.version.type; import jakarta.persistence.Entity; import jakarta.persistence.Id; @Entity public class ChildVersionEntity extends BaseEntity { @Id private int id; public int getId() { return id; } public void setId(int id) { this.id = id; } }
apache/openjpa
1,127
openjpa-persistence/src/main/java/org/apache/openjpa/persistence/query/EntryExpression.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.openjpa.persistence.query; /** * Denotes ENTRY(e) on a path. * * @author Pinaki Poddar * */ public class EntryExpression extends OperatorPath { private static final long serialVersionUID = 1L; public EntryExpression(AbstractDomainObject expr) { super(expr, PathOperator.ENTRY); } }
apache/openjpa
1,129
openjpa-persistence/src/main/java/org/apache/openjpa/persistence/query/SumExpression.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.openjpa.persistence.query; /** * Denotes SUM(e) Expression. * * @author Pinaki Poddar * */ public class SumExpression extends UnaryOperatorExpression { private static final long serialVersionUID = 1L; public SumExpression(Expression op) { super(op, UnaryFunctionalOperator.SUM); } }
apache/openjpa
1,135
openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/criteria/A.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.openjpa.persistence.criteria; import jakarta.persistence.Entity; import jakarta.persistence.FetchType; import jakarta.persistence.Id; import jakarta.persistence.OneToOne; @Entity public class A { @Id private long id; private String name; @OneToOne(fetch=FetchType.LAZY) private B b; }
apache/openwebbeans
1,115
webbeans-impl/src/test/java/org/apache/webbeans/test/component/intercept/webbeans/SecureComponent.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.webbeans.test.component.intercept.webbeans; import jakarta.enterprise.context.RequestScoped; import org.apache.webbeans.test.component.intercept.webbeans.bindings.Secure; @RequestScoped @Secure public class SecureComponent { public boolean checkout() { return true; } }
apache/openwebbeans
1,118
webbeans-impl/src/test/java/org/apache/webbeans/test/interceptors/factory/beans/PartialBeanClass.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.webbeans.test.interceptors.factory.beans; import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped public abstract class PartialBeanClass extends PartialBeanClassSuperClass implements PartialBeanClassSuperInterface { public String willFail3() { return ""; } }
apache/openwebbeans
1,128
webbeans-impl/src/test/java/org/apache/webbeans/test/injection/typed/TypedFieldProducer.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.webbeans.test.injection.typed; import jakarta.enterprise.context.Dependent; import jakarta.enterprise.inject.Produces; import jakarta.enterprise.inject.Typed; @Dependent public class TypedFieldProducer { @Produces @Typed(Raven.class) // no boring bird private Raven raven = new Raven(); }
apache/openwebbeans
1,129
webbeans-impl/src/test/java/org/apache/webbeans/test/concepts/typeliterals/MyType.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.webbeans.test.concepts.typeliterals; import java.lang.reflect.Type; import jakarta.enterprise.util.TypeLiteral; public class MyType<F extends Cow> { public TypeLiteral<Animal<F>> ANIMAL = new TypeLiteral<Animal<F>>() { }; public Type getType() { return ANIMAL.getType(); } }
apache/ozhera
1,107
ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/TeslaAlarmHealthResult.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.ozhera.monitor.dao.model; import lombok.Data; import lombok.ToString; /** * @author gaoxihui */ @Data @ToString public class TeslaAlarmHealthResult { private String groupName; private String baseUrl; private Integer plateFormType; private Integer alarmNum; }
apache/pig
1,186
src/org/apache/pig/builtin/CBRT.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.pig.builtin; /** * CBRT implements a binding to the Java function * {@link java.lang.Math#cbrt(double) Math.cbrt(double)} for computing the * cube root of the argument. The returned value will be a double which is * cube root value of the input. */ public class CBRT extends DoubleBase{ Double compute(Double input){ return Math.cbrt(input); } }
apache/pinot
1,120
pinot-segment-spi/src/main/java/org/apache/pinot/segment/spi/index/creator/SegmentIndexCreationInfo.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.pinot.segment.spi.index.creator; import java.io.Serializable; public class SegmentIndexCreationInfo implements Serializable { private int _totalDocs; public int getTotalDocs() { return _totalDocs; } public void setTotalDocs(int totalDocs) { _totalDocs = totalDocs; } }
apache/plc4x
1,130
plc4j/drivers/bacnet/src/test/java/org/apache/plc4x/java/bacnetip/BACnetParserSerializerTest.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.plc4x.java.bacnetip; import org.apache.plc4x.test.parserserializer.ParserSerializerTestsuiteRunner; public class BACnetParserSerializerTest extends ParserSerializerTestsuiteRunner { public BACnetParserSerializerTest() { super("/protocols/bacnet/ParserSerializerTestsuite.xml"); } }
apache/plc4x
1,132
plc4j/drivers/eip/src/test/java/org/apache/plc4x/java/eip/logix/CompactLogixSimpleReadTest.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.plc4x.java.eip.logix; import org.apache.plc4x.test.parserserializer.ParserSerializerTestsuiteRunner; public class CompactLogixSimpleReadTest extends ParserSerializerTestsuiteRunner { public CompactLogixSimpleReadTest() { super("/protocols/logix/CompactLogixSimpleRead.xml", true); } }
apache/polaris
1,136
tools/config-docs/generator/src/test/java/tests/properties/MoreProps.java
/* * Copyright (C) 2024 Dremio * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package tests.properties; import org.apache.polaris.docs.ConfigDocs.ConfigItem; import org.apache.polaris.docs.ConfigDocs.ConfigPageGroup; @ConfigPageGroup(name = "more") public class MoreProps { @ConfigItem public static final String ONE = "one"; @ConfigItem public static final String TWO = "two"; @ConfigItem public static final String THREE = "three"; /** * Sum. * * @hidden hidden thingy */ @ConfigItem public static final String FOUR = "four"; @ConfigItem @Deprecated public static final String FIVE = "five"; }
apache/polaris
1,142
polaris-core/src/main/java/org/apache/polaris/core/entity/LocationBasedEntity.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.polaris.core.entity; /** * An interface for entity types that correspond to some storage location. These entities provide a * method `getBaseLocation` to retrieve that location. */ public interface LocationBasedEntity { /** * @return The base location for this entity */ String getBaseLocation(); }
apache/polygene-java
1,124
samples/forum/src/main/java/org/apache/polygene/sample/forum/domainevent/ParameterValue.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * */ package org.apache.polygene.sample.forum.domainevent; import org.apache.polygene.api.property.Property; import org.apache.polygene.api.value.ValueComposite; /** * TODO */ public interface ParameterValue extends ValueComposite { Property<String> name(); Property<Object> value(); }
apache/pulsar
1,133
pulsar-broker/src/main/java/org/apache/pulsar/broker/namespace/NamespaceBundleSplitListener.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.pulsar.broker.namespace; import java.util.function.Predicate; import org.apache.pulsar.common.naming.NamespaceBundle; /** * Listener for <code>NamespaceBundle</code> split. */ public interface NamespaceBundleSplitListener extends Predicate<NamespaceBundle> { void onSplit(NamespaceBundle bundle); }
apache/pulsar
1,143
managed-ledger/src/main/java/org/apache/bookkeeper/mledger/WaitingEntryCallBack.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.bookkeeper.mledger; /** * Contains callback that can be registered with {@link ManagedLedger} to wait for new entries to be available. */ public interface WaitingEntryCallBack { /** * The callback {@link ManagedLedger} will trigger when new entries are available. */ void entriesAvailable(); }
apache/qpid-broker-j
1,137
bdbstore/src/main/java/org/apache/qpid/server/store/berkeleydb/Committer.java
/* * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. * */ package org.apache.qpid.server.store.berkeleydb; import java.util.concurrent.CompletableFuture; import com.sleepycat.je.Transaction; public interface Committer { void start(); void commit(Transaction tx, boolean syncCommit); <X> CompletableFuture<X> commitAsync(Transaction tx, X val); void stop(); }
apache/rocketmq
1,134
filter/src/main/java/org/apache/rocketmq/filter/expression/EmptyEvaluationContext.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.rocketmq.filter.expression; import java.util.Map; /** * Empty context. */ public class EmptyEvaluationContext implements EvaluationContext { @Override public Object get(String name) { return null; } @Override public Map<String, Object> keyValues() { return null; } }
apache/seatunnel-web
1,112
seatunnel-server/seatunnel-app/src/main/java/org/apache/seatunnel/app/domain/request/user/UserLoginReq.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.seatunnel.app.domain.request.user; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; @Data @NoArgsConstructor @AllArgsConstructor public class UserLoginReq { private String username; private String password; private String workspaceName; }
apache/sentry
1,116
sentry-binding/sentry-binding-sqoop/src/test/java/org/apache/sentry/sqoop/MockAuthenticationProvider.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.sentry.sqoop; import org.apache.sqoop.security.AuthenticationProvider; public class MockAuthenticationProvider extends AuthenticationProvider { @Override public String[] getGroupNames() { return new String[]{""}; } @Override public String getUserName() { return ""; } }
apache/servicecomb-java-chassis
1,058
swagger/swagger-invocation/invocation-core/src/main/java/org/apache/servicecomb/swagger/invocation/arguments/consumer/ConsumerContextArgumentMapperFactory.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.servicecomb.swagger.invocation.arguments.consumer; import org.apache.servicecomb.swagger.invocation.arguments.ContextArgumentMapperFactory; public interface ConsumerContextArgumentMapperFactory extends ContextArgumentMapperFactory { }
apache/servicecomb-java-chassis
1,058
swagger/swagger-invocation/invocation-core/src/main/java/org/apache/servicecomb/swagger/invocation/arguments/producer/ProducerContextArgumentMapperFactory.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.servicecomb.swagger.invocation.arguments.producer; import org.apache.servicecomb.swagger.invocation.arguments.ContextArgumentMapperFactory; public interface ProducerContextArgumentMapperFactory extends ContextArgumentMapperFactory { }
apache/servicecomb-java-chassis
1,078
foundations/foundation-protobuf/src/test/java/org/apache/servicecomb/foundation/protobuf/internal/schema/scalar/TestInt32Schema.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.servicecomb.foundation.protobuf.internal.schema.scalar; public class TestInt32Schema extends TestNumberBaseSchema { public TestInt32Schema() { minValue = Integer.MIN_VALUE; maxValue = Integer.MAX_VALUE; initFields("int32", "objInt32"); } }
apache/servicecomb-java-chassis
1,121
demo/demo-etcd/provider/src/main/java/org/apache/servicecomb/samples/User.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.servicecomb.samples; public class User { private Long id; private String name; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } }
apache/servicecomb-pack
1,114
omega/omega-transaction/src/main/java/org/apache/servicecomb/pack/omega/transaction/SagaEndedEvent.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.servicecomb.pack.omega.transaction; import org.apache.servicecomb.pack.common.EventType; public class SagaEndedEvent extends TxEvent { SagaEndedEvent(String globalTxId, String localTxId) { super(EventType.SagaEndedEvent, globalTxId, localTxId, null, "", 0, "", 0, 0, 0, 0, 0); } }
apache/servicecomb-toolkit
1,094
oas-generator/oas-generator-core/src/main/java/org/apache/servicecomb/toolkit/generator/annotation/ModelInterceptor.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.servicecomb.toolkit.generator.annotation; import java.lang.reflect.Type; import io.swagger.v3.oas.models.Components; import io.swagger.v3.oas.models.media.Schema; public interface ModelInterceptor { int order(); Schema process(Type cls, Components components); }
apache/servicecomb-toolkit
1,120
toolkit-maven-plugin/src/test/projects/demo-with-contract/src/main/java/demo/Application.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package demo; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class Application { public Application() { } public static void main(String[] args) { SpringApplication.run(Application.class, args); } }
apache/servicecomb-toolkit
1,138
cli/src/main/java/org/apache/servicecomb/toolkit/cli/CheckCompatibility.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.servicecomb.toolkit.cli; import io.airlift.airline.Command; @Command(name = "checkcompatibility", description = "(Or cc for abbr). Check compatibility for two OpenAPI v3 spec yamls, right one should be semantically compatible with left one") public class CheckCompatibility extends CheckCompatibilityBase { }
apache/shardingsphere-on-cloud
1,097
wasm/wasm-sharding-java/src/main/java/org/apache/shardingsphere/infra/util/spi/lifecycle/SPIPostProcessor.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.shardingsphere.infra.util.spi.lifecycle; import java.util.Properties; /** * SPI post processor. */ public interface SPIPostProcessor { /** * Initialize SPI. * * @param props properties to be initialized */ void init(Properties props); }
apache/sis
1,112
endorsed/src/org.apache.sis.referencing.gazetteer/main/org/apache/sis/referencing/gazetteer/internal/Resources_fr.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.sis.referencing.gazetteer.internal; /** * Messages in French language. */ public class Resources_fr extends Resources { /** * Constructs a new resource bundle loading data from * the resource file of the same name as this class. */ public Resources_fr() { } }
apache/sis
1,140
optional/src/org.apache.sis.storage.gdal/main/org/apache/sis/storage/panama/package-info.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** * Base classes for any storage using native libraries through Panama. * Currently used only for <abbr>GDAL</abbr> bindings, but may move to a shared module in the future. * * @author Quentin Bialota (Geomatys) * @author Martin Desruisseaux (Geomatys) * @version 1.5 * @since 1.5 */ package org.apache.sis.storage.panama;
apache/skywalking-java
1,094
apm-sniffer/apm-sdk-plugin/pulsar-2.2-2.7-plugin/src/main/java/org/apache/skywalking/apm/plugin/pulsar/define/Constants.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ package org.apache.skywalking.apm.plugin.pulsar.define; /** * Pulsar 2.7.x plugin constants */ public class Constants { public static final String[] WITNESS_PULSAR_27X_CLASSES = new String[] { "org.apache.pulsar.common.api.proto.PulsarApi$MessageMetadata$Builder"}; }
apache/skywalking-java
1,096
test/plugin/scenarios/spring-4.3.x-scenario/src/main/java/test/apache/skywalking/apm/testcase/inherit/ChildController.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ package test.apache.skywalking.apm.testcase.inherit; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; @RestController @RequestMapping("/inherit/child") public class ChildController extends ParentController { }
apache/skywalking-java
1,108
apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/conf/ConfigNotFoundException.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ package org.apache.skywalking.apm.agent.core.conf; public class ConfigNotFoundException extends Exception { public ConfigNotFoundException(String message, Throwable cause) { super(message, cause); } public ConfigNotFoundException(String message) { super(message); } }
apache/skywalking
1,100
oap-server/server-library/library-server/src/main/java/org/apache/skywalking/oap/server/library/server/ServerException.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ package org.apache.skywalking.oap.server.library.server; public abstract class ServerException extends Exception { public ServerException(String message) { super(message); } public ServerException(String message, Throwable cause) { super(message, cause); } }
apache/solr
1,171
solr/core/src/java/org/apache/solr/servlet/PathExcluder.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.solr.servlet; import java.util.List; import java.util.regex.Pattern; /** * Denotes an object, usually a servlet that denies access to some paths based on the supplied * patterns. Typically, this would be implemented via compiled regular expressions. */ public interface PathExcluder { void setExcludePatterns(List<Pattern> excludePatterns); }
apache/stanbol
1,100
commons/solr/extras/smartcn/src/main/java/org/apache/stanbol/commons/solr/extras/smartcn/impl/SmartcnAnalyzerFactoryActivator.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.stanbol.commons.solr.extras.smartcn.impl; import org.apache.stanbol.commons.solr.utils.AbstractAnalyzerFactoryActivator; public final class SmartcnAnalyzerFactoryActivator extends AbstractAnalyzerFactoryActivator { public SmartcnAnalyzerFactoryActivator() { super(); } }
apache/stanbol
1,100
commons/solr/extras/stempel/src/main/java/org/apache/stanbol/commons/solr/extras/stempel/impl/StempelAnalyzerFoctoryActivator.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.stanbol.commons.solr.extras.stempel.impl; import org.apache.stanbol.commons.solr.utils.AbstractAnalyzerFactoryActivator; public final class StempelAnalyzerFoctoryActivator extends AbstractAnalyzerFactoryActivator { public StempelAnalyzerFoctoryActivator() { super(); } }
apache/stanbol
1,105
ontologymanager/generic/servicesapi/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/scope/OntologyScope.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.stanbol.ontologymanager.ontonet.api.scope; import org.apache.stanbol.ontologymanager.servicesapi.scope.Scope; @Deprecated public interface OntologyScope extends Scope { @Override CoreOntologySpace getCoreSpace(); @Override CustomOntologySpace getCustomSpace(); }
apache/storm
1,126
external/storm-kafka-client/src/test/java/org/apache/storm/kafka/NullRecordTranslator.java
/* * Copyright 2018 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.storm.kafka; import java.util.List; import org.apache.kafka.clients.consumer.ConsumerRecord; import org.apache.storm.kafka.spout.RecordTranslator; import org.apache.storm.tuple.Fields; public class NullRecordTranslator<K, V> implements RecordTranslator<K, V> { @Override public List<Object> apply(ConsumerRecord<K, V> record) { return null; } @Override public Fields getFieldsFor(String stream) { return new Fields("topic", "key", "value"); } }
apache/storm
1,147
storm-client/src/jvm/org/apache/storm/trident/windowing/strategy/BaseWindowStrategy.java
/** * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version * 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at * <p/> * http://www.apache.org/licenses/LICENSE-2.0 * <p/> * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package org.apache.storm.trident.windowing.strategy; import org.apache.storm.trident.windowing.config.WindowConfig; public abstract class BaseWindowStrategy<T> implements WindowStrategy<T> { protected final WindowConfig windowConfig; public BaseWindowStrategy(WindowConfig windowConfig) { this.windowConfig = windowConfig; } }
apache/stormcrawler
1,119
core/src/test/java/org/apache/stormcrawler/helper/initialisation/ClassInheritingFromAbstractAndInterface.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to you under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.stormcrawler.helper.initialisation; import org.apache.stormcrawler.helper.initialisation.base.AbstractClass; import org.apache.stormcrawler.helper.initialisation.base.ITestInterface; public class ClassInheritingFromAbstractAndInterface extends AbstractClass implements ITestInterface {}
apache/stratos
1,097
components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/domain/topology/locking/TopologyLock.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.stratos.messaging.domain.topology.locking; import org.apache.stratos.common.concurrent.locks.ReadWriteLock; /** * Represents a lock in the Topology */ public class TopologyLock extends ReadWriteLock { public TopologyLock() { super("topology"); } }
apache/streampipes
1,103
streampipes-wrapper-siddhi/src/main/java/org/apache/streampipes/wrapper/siddhi/query/expression/GreaterEqualsExpression.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ package org.apache.streampipes.wrapper.siddhi.query.expression; public class GreaterEqualsExpression extends RelationalOperatorExpression { public GreaterEqualsExpression(PropertyExpressionBase exp1, PropertyExpressionBase exp2) { super(RelationalOperator.GREATER_EQUALS, exp1, exp2); } }
apache/streams
1,135
streams-util/src/main/java/org/apache/streams/util/oauth/tokens/AbstractOauthToken.java
/* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ package org.apache.streams.util.oauth.tokens; /** * AbstractOauthToken. */ public abstract class AbstractOauthToken { /** * Must create equals method for all OauthTokens. * @param object object for comparison * @return true if equal, and false otherwise */ protected abstract boolean internalEquals(Object object); @Override public boolean equals(Object object) { return this.internalEquals(object); } }
apache/struts
1,144
plugins/tiles/src/main/java/org/apache/tiles/core/prepare/factory/package-info.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * "View preparers" are objects that allows the "preparation" of a Tiles artifact * (definition, template or attribute) before it is rendered.<br> * It is useful, for example, when a view item should be built and stored in a * particular context (e.g. a menu) and then rendered. */ package org.apache.tiles.core.prepare.factory;
apache/syncope
1,120
ext/flowable/flowable-bpmn/src/main/java/org/apache/syncope/core/flowable/support/PasswordFormType.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.syncope.core.flowable.support; import org.flowable.engine.impl.form.StringFormType; public class PasswordFormType extends StringFormType { private static final long serialVersionUID = 4657839355580978699L; @Override public String getName() { return "password"; } }
apache/syncope
1,135
common/am/lib/src/main/java/org/apache/syncope/common/lib/types/X509PolicySetting.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.syncope.common.lib.types; public enum X509PolicySetting { /** * Allow to proceed. */ ALLOW, /** * Deny and block. */ DENY, /** * Throttle the request whereby expired data is permitted up to a threshold period of time but not afterward. */ THRESHOLD; }
apache/syncope
1,138
common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/to/AttributableTO.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.syncope.common.lib.to; import java.util.Optional; import java.util.Set; import org.apache.syncope.common.lib.Attr; public interface AttributableTO { Set<Attr> getPlainAttrs(); Optional<Attr> getPlainAttr(String schema); Set<Attr> getDerAttrs(); Optional<Attr> getDerAttr(String schema); }
apache/tajo
1,144
tajo-common/src/main/java/org/apache/tajo/exception/MetadataConnectionException.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.tajo.exception; import org.apache.tajo.error.Errors.ResultCode; /** * Tajo Metadata Connector's connection error */ public class MetadataConnectionException extends TajoError { public MetadataConnectionException(String uri, Throwable t) { super(ResultCode.CAT_CANNOT_CONNECT, t, uri, t.getMessage()); } }
apache/tapestry-5
1,136
quickstart/src/main/resources/archetype-resources/src/main/java/services/DevelopmentModule.java
package ${package}.services; import org.apache.tapestry5.SymbolConstants; import org.apache.tapestry5.commons.MappedConfiguration; /** * This module is automatically included as part of the Tapestry IoC Registry if <em>tapestry.execution-mode</em> * includes <code>development</code>. */ public class DevelopmentModule { public static void contributeApplicationDefaults(MappedConfiguration<String, Object> configuration) { // The factory default is true but during the early stages of an application // overriding to false is a good idea. In addition, this is often overridden // on the command line as -Dtapestry.production-mode=false configuration.add(SymbolConstants.PRODUCTION_MODE, false); // The application version number is incorprated into URLs for some // assets. Web browsers will cache assets because of the far future expires // header. If existing assets are changed, the version number should also // change, to force the browser to download new versions. configuration.add(SymbolConstants.APPLICATION_VERSION, "${version}-dev"); } }
apache/tomee
1,083
arquillian/arquillian-tomee-tests/arquillian-tomee-webprofile-tests/src/test/java/org/apache/openejb/arquillian/tests/bmp/remote/LittleFinderHome.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.openejb.arquillian.tests.bmp.remote; import jakarta.ejb.EJBHome; import java.rmi.RemoteException; import java.util.Collection; public interface LittleFinderHome extends EJBHome { Collection<LittleFinder> findAll() throws Exception, RemoteException; }
apache/tsfile
1,146
java/tsfile/src/main/java/org/apache/tsfile/file/IMetadataIndexEntry.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.tsfile.file; import java.io.IOException; import java.io.OutputStream; public interface IMetadataIndexEntry { long getOffset(); void setOffset(long offset); int serializeTo(OutputStream outputStream) throws IOException; Comparable getCompareKey(); boolean isDeviceLevel(); int serializedSize(); }
apache/uima-uimaj
1,143
uimaj-core/src/test/java/org/apache/uima/spi/JCasClassProviderForTesting.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.uima.spi; import static java.util.Arrays.asList; import java.util.List; import org.apache.uima.jcas.cas.TOP; public class JCasClassProviderForTesting implements JCasClassProvider { @Override public List<Class<? extends TOP>> listJCasClasses() { return asList(SpiToken.class, SpiSentence.class); } }
apache/uniffle
1,140
common/src/main/java/org/apache/uniffle/common/exception/RssSendFailedException.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.uniffle.common.exception; public class RssSendFailedException extends RssException { public RssSendFailedException(String message) { super(message); } public RssSendFailedException(Throwable e) { super(e); } public RssSendFailedException(String message, Throwable e) { super(message, e); } }
apache/uniffle
1,140
common/src/main/java/org/apache/uniffle/common/exception/RssWaitFailedException.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.uniffle.common.exception; public class RssWaitFailedException extends RssException { public RssWaitFailedException(String message) { super(message); } public RssWaitFailedException(Throwable e) { super(e); } public RssWaitFailedException(String message, Throwable e) { super(message, e); } }
apache/usergrid
1,133
chop/webapp/src/main/java/org/apache/usergrid/chop/webapp/service/runner/RunnerService.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.usergrid.chop.webapp.service.runner; import org.apache.usergrid.chop.api.Runner; import org.apache.usergrid.chop.api.State; import org.apache.usergrid.chop.api.StatsSnapshot; public interface RunnerService { public State getState(Runner runner); public StatsSnapshot getStats(Runner runner); }
apache/wicket
1,098
wicket-native-websocket/wicket-native-websocket-core/src/main/java/org/apache/wicket/protocol/ws/api/registry/AbstractKey.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.wicket.protocol.ws.api.registry; public class AbstractKey implements IKey { private final String context; public AbstractKey(String context) { this.context = context; } @Override public String getContext() { return context; } }
apache/wicket
1,116
wicket-core-tests/src/test/java/org/apache/wicket/markup/html/header/testing/TestBasePanel.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.wicket.markup.html.header.testing; import org.apache.wicket.markup.html.panel.Panel; /** * * @author Juergen Donnerstag */ public class TestBasePanel extends Panel { private static final long serialVersionUID = 1L; /** * Construct. */ TestBasePanel() { super("panel"); } }
apache/wicket
1,122
wicket-core-tests/src/test/java/org/apache/wicket/markup/html/header/testing/TestPage.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.wicket.markup.html.header.testing; import org.apache.wicket.markup.html.WebPage; /** * * @author Juergen Donnerstag */ public class TestPage extends WebPage { private static final long serialVersionUID = 1L; /** * Construct. */ public TestPage() { add(new TestExtendedPanel()); } }
apache/wicket
1,130
wicket-examples/src/main/java/org/apache/wicket/examples/template/border/Page2.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.wicket.examples.template.border; import org.apache.wicket.examples.WicketExamplePage; /** * Page that adds a template border for layout. * * @author Eelco Hillenius */ public class Page2 extends WicketExamplePage { /** * Constructor */ public Page2() { add(new TemplateBorder("border")); } }
apache/zeppelin
1,134
zeppelin-server/src/main/java/org/apache/zeppelin/rest/message/GetNoteByPathRequest.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.zeppelin.rest.message; /** * GetNoteByPathRequest rest api request message. */ public class GetNoteByPathRequest { private final String notePath; public GetNoteByPathRequest(String notePath) { this.notePath = notePath; } public String getNotePath() { return notePath; } }