repo_id
stringclasses
875 values
size
int64
974
38.9k
file_path
stringlengths
10
308
content
stringlengths
974
38.9k
apache/incubator-xtable
1,101
xtable-api/src/main/java/org/apache/xtable/spi/extractor/DataFileIterator.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 java.util.Iterator; import org.apache.xtable.model.storage.InternalDataFile; /** DataFileIterator lets the consumer iterate over the files of a table. */ public interface DataFileIterator extends Iterator<InternalDataFile>, AutoCloseable {}
apache/inlong
1,075
inlong-manager/manager-plugins/base/src/main/java/org/apache/inlong/manager/plugin/flink/dto/Jars.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.manager.plugin.flink.dto; import lombok.Data; /** * Jars info, including filename and status. */ @Data public class Jars { /** * jar id */ private String filename; /** * jar status */ private String status; }
apache/inlong
1,077
inlong-audit/audit-service/src/main/java/org/apache/inlong/audit/service/metric/MetricDimension.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.audit.service.metric; public enum MetricDimension { COUNT("count"), DURATION("duration"); private final String key; MetricDimension(String key) { this.key = key; } public String getKey() { return key; } }
apache/inlong
1,088
inlong-sdk/sort-sdk/src/main/java/org/apache/inlong/sdk/sort/api/InlongTopicTypeEnum.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; public enum InlongTopicTypeEnum { PULSAR("pulsar"), KAFKA("kafka"), TUBE("tube"); private final String name; InlongTopicTypeEnum(String name) { this.name = name; } public String getName() { return name; } }
apache/iotdb-extras
1,073
connectors/spark-tsfile/src/main/java/org/apache/iotdb/spark/tsfile/qp/exception/QueryOperatorException.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.iotdb.spark.tsfile.qp.exception; public class QueryOperatorException extends LogicalOptimizeException { private static final long serialVersionUID = 8581594261924961899L; public QueryOperatorException(String msg) { super(msg); } }
apache/iotdb-extras
1,080
iotdb-collector/collector-core/src/main/java/org/apache/iotdb/collector/service/IService.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.iotdb.collector.service; public interface IService { /** Start the service. */ void start(); /** Stop the service. */ void stop(); /** * Get the name of the service. * * @return the name of the service */ String name(); }
apache/iotdb
1,078
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/exception/metadata/cache/MNodeNotPinnedException.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.iotdb.db.exception.metadata.cache; import org.apache.iotdb.commons.exception.MetadataException; public class MNodeNotPinnedException extends MetadataException { public MNodeNotPinnedException() { super("MNode has not been pinned."); } }
apache/iotdb
1,078
iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/client/exception/ClientManagerException.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.iotdb.commons.client.exception; public class ClientManagerException extends Exception { public ClientManagerException(Exception exception) { super(exception); } public ClientManagerException(String message) { super(message); } }
apache/jackrabbit-oak
1,077
oak-segment-tar/src/main/java/org/apache/jackrabbit/oak/segment/spi/monitor/RemoteStoreMonitor.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.jackrabbit.oak.segment.spi.monitor; import java.util.concurrent.TimeUnit; public interface RemoteStoreMonitor { public void requestCount(); public void requestError(); public void requestDuration(long duration, TimeUnit timeUnit); }
apache/jackrabbit
1,076
jackrabbit-standalone-components/src/main/java/org/apache/jackrabbit/standalone/cli/query/SQLQuery.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.jackrabbit.standalone.cli.query; import javax.jcr.query.Query; /** * SQL <code>Query</code> */ public class SQLQuery extends AbstractQuery { /** * {@inheritDoc} */ protected String getLanguage() { return Query.SQL; } }
apache/jena
1,109
jena-arq/src/main/java/org/apache/jena/riot/lang/rdfxml/RDFXMLParseException.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.riot.lang.rdfxml; import org.apache.jena.riot.RiotException; public class RDFXMLParseException extends RiotException { public RDFXMLParseException(String message) { super(message); } public RDFXMLParseException(String message, Throwable th) { super(message, th); } }
apache/jena
1,116
jena-core/src/main/java/org/apache/jena/shared/CannotReifyException.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 org.apache.jena.graph.Node ; /** The exception thrown by reifyAs if a node is bound to bits and pieces of (an)other triple(s). */ public class CannotReifyException extends JenaException { public CannotReifyException( Node n ) { super( n.toString() ); } }
apache/jena
1,121
jena-tdb1/src/test/java/org/apache/jena/tdb1/TestMiscTDB1.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.tdb1; import org.apache.jena.query.Dataset; import org.apache.jena.sparql.AbstractTestAdditional; @SuppressWarnings("removal") public class TestMiscTDB1 extends AbstractTestAdditional { @Override protected Dataset dataset() { return TDB1Factory.createDataset(); } }
apache/jena
1,123
jena-cmds/src/main/java/org/apache/jena/cmd/InitCmds.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.cmd; import org.apache.jena.sys.JenaSubsystemLifecycle; public class InitCmds implements JenaSubsystemLifecycle { @Override public void start() { Cmds.init(); } @Override public void stop() {} @Override public int level() { return 15; } }
apache/jena
1,124
jena-shacl/src/main/java/org/apache/jena/shacl/ShaclException.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.shacl; import org.apache.jena.shared.JenaException; /** Runtime exception generated by the SHACL subsystem. */ public class ShaclException extends JenaException { public ShaclException(String msg) { super(msg); } public ShaclException(String msg, Throwable th) { super(msg, th); } }
apache/kafka
1,094
clients/src/test/java/org/apache/kafka/clients/admin/internals/DeleteShareGroupsHandlerTest.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.clients.admin.internals; import org.apache.kafka.common.utils.LogContext; public class DeleteShareGroupsHandlerTest extends DeleteGroupsHandlerTest { protected DeleteGroupsHandler handler() { return new DeleteShareGroupsHandler(new LogContext()); } }
apache/kafka
1,106
clients/src/main/java/org/apache/kafka/common/serialization/BytesDeserializer.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.common.serialization; import org.apache.kafka.common.utils.Bytes; public class BytesDeserializer implements Deserializer<Bytes> { public Bytes deserialize(String topic, byte[] data) { if (data == null) return null; return new Bytes(data); } }
apache/karaf
1,103
shell/console/src/main/java/org/apache/felix/gogo/commands/CommandWithAction.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.felix.gogo.commands; import org.apache.felix.service.command.Function; @Deprecated public interface CommandWithAction extends Function { Class<? extends Action> getActionClass(); Action createNewAction(); void releaseAction(Action action) throws Exception; }
apache/kylin
1,086
src/modeling-service/src/main/java/org/apache/kylin/rest/response/MergeSegmentCheckResponse.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.rest.response; import lombok.Data; @Data public class MergeSegmentCheckResponse { private long start; private long end; public MergeSegmentCheckResponse(long start, long end) { this.start = start; this.end = end; } }
apache/kylin
1,088
src/common-service/src/main/java/org/apache/kylin/rest/request/ProjectKerberosInfoRequest.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.rest.request; import com.fasterxml.jackson.annotation.JsonProperty; import lombok.Data; @Data public class ProjectKerberosInfoRequest { @JsonProperty("principal") private String principal; @JsonProperty("keytab") private String keytab; }
apache/linkis
1,057
linkis-public-enhancements/linkis-pes-common/src/main/java/org/apache/linkis/cs/common/entity/listener/ContextIDListenerDomain.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.cs.common.entity.listener; import org.apache.linkis.cs.common.entity.source.ContextID; public interface ContextIDListenerDomain extends ListenerDomain { ContextID getContextID(); void setContextID(ContextID contextID); }
apache/linkis
1,059
linkis-engineconn-plugins/nebula/src/main/java/org/apache/linkis/engineplugin/nebula/builder/NebulaProcessEngineConnLaunchBuilder.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.engineplugin.nebula.builder; import org.apache.linkis.manager.engineplugin.common.launch.process.JavaProcessEngineConnLaunchBuilder; public class NebulaProcessEngineConnLaunchBuilder extends JavaProcessEngineConnLaunchBuilder {}
apache/linkis
1,067
linkis-engineconn-plugins/flink/flink-core/src/test/java/org/apache/linkis/engineplugin/flink/LinkisFlinkUdfExample.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.engineplugin.flink; import org.apache.flink.table.functions.ScalarFunction; public class LinkisFlinkUdfExample extends ScalarFunction { public String eval(String str) { return String.format("linkis flink udf test: %s", str); } }
apache/linkis
1,067
linkis-public-enhancements/linkis-cs-server/src/main/java/org/apache/linkis/cs/exception/ContextSearchFailedException.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.cs.exception; import org.apache.linkis.common.exception.ErrorException; public class ContextSearchFailedException extends ErrorException { public ContextSearchFailedException(int errCode, String desc) { super(errCode, desc); } }
apache/logging-log4j2
1,101
log4j-core-test/src/test/java/org/apache/logging/log4j/core/GcHelperTest.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.logging.log4j.core; import static org.apache.logging.log4j.core.GcHelper.awaitGarbageCollection; import org.junit.jupiter.api.Test; class GcHelperTest { @Test void await_should_work() throws InterruptedException { awaitGarbageCollection(Object::new); } }
apache/lucene
1,100
lucene/analysis/common/src/java/org/apache/lucene/analysis/payloads/AbstractEncoder.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.lucene.analysis.payloads; import org.apache.lucene.util.BytesRef; /** Base class for payload encoders. */ public abstract class AbstractEncoder implements PayloadEncoder { @Override public BytesRef encode(char[] buffer) { return encode(buffer, 0, buffer.length); } }
apache/lucene
1,108
lucene/analysis/common/src/java/org/apache/lucene/analysis/morph/TokenType.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.lucene.analysis.morph; /** Token type reflecting the original source of this token */ public enum TokenType { /** Known words from the system dictionary. */ KNOWN, /** Unknown words (heuristically segmented). */ UNKNOWN, /** Known words from the user dictionary. */ USER }
apache/maven-plugins
1,079
maven-javadoc-plugin/src/it/projects/MJAVADOC-498_modulepath/src/test/java/com/foo/MyTest.java
package com.foo; /* * 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 static org.junit.Assert.assertNotNull; import org.junit.Test; public class MyTest { private MyClass myClass = new MyClass(); @Test public void testClass() throws Exception { assertNotNull( myClass ); } }
apache/maven
1,090
impl/maven-core/src/main/java/org/apache/maven/project/artifact/ArtifactWithDependencies.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.maven.project.artifact; import java.util.List; import org.apache.maven.model.Dependency; /** * ArtifactWithDependencies */ public interface ArtifactWithDependencies { List<Dependency> getDependencies(); List<Dependency> getManagedDependencies(); }
apache/mina
1,113
benchmarks/common/src/test/java/org/apache/mina/core/CounterFilter.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.mina.core; import java.util.concurrent.atomic.AtomicLong; /** * A counter used for the benchmarks * * @author <a href="http://mina.apache.org">Apache MINA Project</a> */ public class CounterFilter { public static AtomicLong messageSent = new AtomicLong(0); }
apache/myfaces
1,109
api/src/main/java/jakarta/faces/el/CompositeComponentExpressionHolder.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 jakarta.faces.el; import jakarta.el.ValueExpression; /** * see Javadoc of <a href="http://java.sun.com/javaee/javaserverfaces/1.2/docs/api/index.html">Faces Specification</a> */ public interface CompositeComponentExpressionHolder { public ValueExpression getExpression(String name); }
apache/openjpa
1,110
openjpa-lib/src/main/java/org/apache/openjpa/lib/conf/ValueListener.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.lib.conf; /** * Components can listen on {@link Value} objects for changes directly. * * @author Abe White */ public interface ValueListener { /** * Callback used by {@link Value} objects to notify listener of change. */ void valueChanged(Value val); }
apache/paimon
1,100
paimon-core/src/main/java/org/apache/paimon/table/source/splitread/SplitReadConfig.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.paimon.table.source.splitread; import org.apache.paimon.data.InternalRow; import org.apache.paimon.operation.SplitRead; /** Config {@link SplitRead} with projection, filter and others. */ public interface SplitReadConfig { void config(SplitRead<InternalRow> read); }
apache/parquet-java
1,098
parquet-column/src/main/java/org/apache/parquet/io/InvalidFileOffsetException.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.parquet.io; import org.apache.parquet.ParquetRuntimeException; public class InvalidFileOffsetException extends ParquetRuntimeException { private static final long serialVersionUID = 1L; public InvalidFileOffsetException(String message) { super(message); } }
apache/pdfbox
1,122
fontbox/src/main/java/org/apache/fontbox/ttf/OTLTable.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.fontbox.ttf; /** * OpenType Layout (OTL) table. Uses the OpenType Layout Common Table Format. */ public class OTLTable extends TTFTable { public static final String TAG = "JSTF"; // todo: this is a stub, a full implementation is needed OTLTable() { super(); } }
apache/pinot
1,088
pinot-segment-spi/src/main/java/org/apache/pinot/segment/spi/index/reader/ValidDocIndexReader.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.reader; import org.roaringbitmap.buffer.ImmutableRoaringBitmap; public interface ValidDocIndexReader { /** * Return the underlying validDoc bitmap (used in query execution) */ ImmutableRoaringBitmap getValidDocBitmap(); }
apache/pinot
1,099
pinot-core/src/main/java/org/apache/pinot/core/query/utils/rewriter/ResultRewriter.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.core.query.utils.rewriter; import java.util.List; import org.apache.pinot.common.utils.DataSchema; /** * Interface for rewriting the result of a query */ public interface ResultRewriter { RewriterResult rewrite(DataSchema dataSchema, List<Object[]> rows); }
apache/plc4x
1,077
plc4j/drivers/open-protocol/src/main/java/org/apache/plc4x/java/openprotocol/readwrite/utils/StaticHelper.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.openprotocol.readwrite.utils; import java.math.BigInteger; public class StaticHelper { public static boolean isBitSet(String numericString, int bitNumber) { return new BigInteger(numericString).testBit(bitNumber); } }
apache/polygene-java
1,068
extensions/entitystore-cassandra/src/main/java/org/apache/polygene/entitystore/cassandra/CassandraMigration.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.entitystore.cassandra; import com.datastax.driver.core.Row; import com.datastax.driver.core.Session; public interface CassandraMigration { Row migrate( Row existingRow, String toVersion, Session session ); }
apache/polygene-java
1,085
libraries/rdf/src/main/java/org/apache/polygene/library/rdf/serializer/TurtleSerializer.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.library.rdf.serializer; import org.openrdf.rio.turtle.TurtleWriterFactory; public final class TurtleSerializer extends AbstractSerializer { public TurtleSerializer() { super( TurtleWriterFactory.class ); } }
apache/polygene-java
1,093
core/api/src/main/java/org/apache/polygene/api/query/QueryExpressionException.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.api.query; /** * Throw this exception if a QueryExpression is invalid. */ public class QueryExpressionException extends QueryException { public QueryExpressionException( String message ) { super( message ); } }
apache/rocketmq-connect
1,072
connectors/rocketmq-replicator/src/main/java/org/apache/rocketmq/replicator/schema/FieldName.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.replicator.schema; public enum FieldName { COMMON_MESSAGE("MessageExt"), OFFSET("Offset"); private String key; FieldName(String key) { this.key = key; } public String getKey() { return key; } }
apache/rocketmq-connect
1,073
rocketmq-connect-runtime/src/main/java/org/apache/rocketmq/connect/runtime/serialization/ListSerde.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.connect.runtime.serialization; import java.util.List; /** * list serde */ public class ListSerde extends WrapperSerde<List> { public ListSerde(Class clazz) { super(new ListSerializer(clazz), new ListDeserializer(clazz)); } }
apache/rocketmq
1,105
broker/src/main/java/org/apache/rocketmq/broker/config/v2/RecordPrefix.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.broker.config.v2; public enum RecordPrefix { UNSPECIFIED((byte)0), DATA_VERSION((byte)1), DATA((byte)2); private final byte value; RecordPrefix(byte value) { this.value = value; } public byte getValue() { return value; } }
apache/servicecomb-java-chassis
1,037
transports/transport-rest/transport-rest-vertx/src/main/java/org/apache/servicecomb/transport/rest/vertx/HttpServerExceptionHandler.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.transport.rest.vertx; import io.vertx.core.Handler; import org.apache.servicecomb.foundation.common.utils.SPIOrder; public interface HttpServerExceptionHandler extends Handler<Throwable>, SPIOrder { }
apache/servicecomb-java-chassis
1,050
clients/service-center-client/src/main/java/org/apache/servicecomb/service/center/client/model/GetSchemaResponse.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.service.center.client.model; public class GetSchemaResponse { private String schema; public String getSchema() { return schema; } public void setSchema(String schema) { this.schema = schema; } }
apache/servicecomb-java-chassis
1,080
governance/src/main/java/org/apache/servicecomb/governance/utils/GovernanceUtils.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.governance.utils; public final class GovernanceUtils { public static final String DIGIT_REGEX = "-{0,1}[0-9]{1,10}"; public static final String DIGIT_PREFIX = "PT"; public static final String STRATEGY_RANDOM_BACKOFF = "RandomBackoff"; }
apache/servicecomb-java-chassis
1,081
demo/demo-schema/src/main/java/org/apache/servicecomb/demo/controller/Person.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.demo.controller; public class Person { private String name; public void setName(String name) { this.name = name; } public String getName() { return this.name; } @Override public String toString() { return name; } }
apache/shardingsphere
1,056
proxy/backend/core/src/test/java/org/apache/shardingsphere/proxy/backend/handler/distsql/fixture/CreateFixtureRuleStatement.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.proxy.backend.handler.distsql.fixture; import org.apache.shardingsphere.distsql.statement.type.rdl.rule.database.type.CreateRuleStatement; public final class CreateFixtureRuleStatement extends CreateRuleStatement { }
apache/shardingsphere
1,063
proxy/backend/core/src/main/java/org/apache/shardingsphere/proxy/backend/handler/data/DatabaseProxyBackendHandler.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.proxy.backend.handler.data; import org.apache.shardingsphere.proxy.backend.handler.ProxyBackendHandler; /** * Database proxy backend handler. */ public interface DatabaseProxyBackendHandler extends ProxyBackendHandler { }
apache/shenyu
1,101
shenyu-common/src/main/java/org/apache/shenyu/common/concurrent/DiscardPolicy.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.shenyu.common.concurrent; import java.util.Queue; /** * A handler for rejected element that silently discards the * rejected element. */ public class DiscardPolicy<E> implements Rejector<E> { @Override public void reject(final E e, final Queue<E> queue) { } }
apache/sis
1,098
endorsed/src/org.apache.sis.feature/main/org/apache/sis/feature/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.feature.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,098
endorsed/src/org.apache.sis.storage/main/org/apache/sis/storage/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.storage.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/skywalking-java
1,032
apm-sniffer/apm-sdk-plugin/cassandra-java-driver-3.x-plugin/src/main/java/org/apache/skywalking/apm/plugin/cassandra/java/driver/v3/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.cassandra.java.driver.v3; public class Constants { public static final String CASSANDRA_OP_PREFIX = "Cassandra/"; public static final String CASSANDRA_DB_TYPE = "cassandra"; }
apache/skywalking-java
1,035
apm-sniffer/apm-sdk-plugin/jetty-plugin/jetty-client-9.0-plugin/src/main/java/org/apache/skywalking/apm/plugin/jetty/v90/client/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.jetty.v90.client; public class Constants { public final static String SW_JETTY_EXIT_SPAN_KEY = "SW_JETTY_EXIT_SPAN"; public final static String PLUGIN_NAME = "JettyClient9.0"; }
apache/storm
1,124
storm-client/src/jvm/org/apache/storm/streams/StreamsEdgeFactory.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.storm.streams; import java.io.Serializable; import org.apache.storm.shade.org.jgrapht.EdgeFactory; class StreamsEdgeFactory implements EdgeFactory<Node, Edge>, Serializable { @Override public Edge createEdge(Node sourceVertex, Node targetVertex) { return new Edge(sourceVertex, targetVertex); } }
apache/stratos
1,050
components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/event/initializer/CompleteApplicationsRequestEvent.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.event.initializer; import java.io.Serializable; public class CompleteApplicationsRequestEvent extends InitializerEvent implements Serializable { public CompleteApplicationsRequestEvent() { } }
apache/stratos
1,068
components/org.apache.stratos.manager/src/main/java/org/apache/stratos/manager/exception/DomainMappingException.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.manager.exception; /** * Domain mapping exception. */ public class DomainMappingException extends Exception { public DomainMappingException(String message, Throwable throwable) { super(message, throwable); } }
apache/struts
1,064
plugins/convention/src/test/java/org/apache/struts2/convention/actions/result/OverrideInheritedResultTestBase.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.struts2.convention.actions.result; import org.apache.struts2.convention.annotation.Result; @Result(name="error", location="error.jsp", params={"key", "value", "key1", "value1"}) public abstract class OverrideInheritedResultTestBase { }
apache/syncope
1,067
ext/saml2sp4ui/provisioning-api/src/main/java/org/apache/syncope/core/provisioning/api/RequestedAuthnContextProvider.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.provisioning.api; import java.util.function.Supplier; import org.opensaml.saml.saml2.core.RequestedAuthnContext; @FunctionalInterface public interface RequestedAuthnContextProvider extends Supplier<RequestedAuthnContext> { }
apache/tajo
1,098
tajo-plan/src/main/java/org/apache/tajo/plan/function/stream/TextLineParsingError.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.plan.function.stream; public class TextLineParsingError extends Exception { public TextLineParsingError(Throwable t) { super(t); } public TextLineParsingError(String message, Throwable t) { super(t.getMessage() + ", Error line: " + message); } }
apache/tapestry-5
1,078
tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/data/DateHolder.java
// Copyright 2008 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.tapestry5.integration.app1.data; import org.apache.tapestry5.beaneditor.NonVisual; import java.util.Date; public class DateHolder { @NonVisual private int id; private Date date; public int getId() { return id; } public void setId(int id) { this.id = id; } public Date getDate() { return date; } public void setDate(Date date) { this.date = date; } }
apache/tapestry-5
1,087
tapestry-core/src/main/java/org/apache/tapestry5/services/pageload/PreloaderMode.java
// 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.tapestry5.services.pageload; /** * Identifies when the {@link org.apache.tapestry5.services.pageload.PagePreloader} * should perform its loading. * * @since 5.4 */ public enum PreloaderMode { NEVER, ALWAYS, DEVELOPMENT, PRODUCTION; public boolean isEnabledFor(boolean productionMode) { if (this == NEVER) { return false; } if (this == ALWAYS) { return true; } return (this == PRODUCTION) == productionMode; } }
apache/tez
1,084
tez-runtime-library/src/main/java/org/apache/tez/runtime/library/common/shuffle/FetchedInputCallback.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.tez.runtime.library.common.shuffle; public interface FetchedInputCallback { public void fetchComplete(FetchedInput fetchedInput); public void fetchFailed(FetchedInput fetchedInput); public void freeResources(FetchedInput fetchedInput); }
apache/tez
1,113
hadoop-shim/src/test/java/org/apache/tez/hadoop/shim/DummyShimProvider.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.tez.hadoop.shim; public class DummyShimProvider extends HadoopShimProvider { public static class DummyShim extends HadoopShim { } @Override public HadoopShim createHadoopShim(String hadoopVersion, int majorVersion, int minorVersion) { return new DummyShim(); } }
apache/tomee
1,086
itests/openejb-itests-client/src/main/java/org/apache/openejb/test/entity/cmp/UnknownCmpTestClient.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.test.entity.cmp; public abstract class UnknownCmpTestClient extends CmpTestClient { protected UnknownCmpHome ejbHome; protected UnknownCmpObject ejbObject; public UnknownCmpTestClient(final String name) { super(name); } }
apache/uima-uimaj
1,107
uimaj-core/src/main/java/org/apache/uima/spi/TypePrioritiesProvider.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 java.util.List; import org.apache.uima.resource.metadata.TypePriorities; /** * @deprecated Use {@link TypeSystemProvider} instead. * @forRemoval 4.0.0 */ @Deprecated public interface TypePrioritiesProvider { List<TypePriorities> listTypePriorities(); }
apache/usergrid
1,087
stack/core/src/main/java/org/apache/usergrid/corepersistence/service/AggregationServiceFactory.java
/* * * * Licensed to the Apache Software Foundation (ASF) under one or more * * contributor license agreements. 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. For additional information regarding * * copyright in this work, please see the NOTICE file in the top level * * directory of this distribution. * */ package org.apache.usergrid.corepersistence.service; /** * Generate AggregationService instances */ public interface AggregationServiceFactory { AggregationService getAggregationService(); }
apache/velocity-engine
1,105
velocity-engine-core/src/main/java/org/apache/velocity/io/Filter.java
package org.apache.velocity.io; /* * 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.io.IOException; /** * Velocity will call the writeReference method on any Writer that * implements this interface when rendering references within a template. */ public interface Filter { void writeReference(String ref) throws IOException; }
apache/wicket
1,083
wicket-core-tests/src/test/java/org/apache/wicket/core/util/tester/apps_1/SuccessPage.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.core.util.tester.apps_1; import org.apache.wicket.markup.html.WebPage; /** * * @author Juergen Donnerstag */ public class SuccessPage extends WebPage { private static final long serialVersionUID = 1L; /** * */ public SuccessPage() { } }
apache/wicket
1,086
wicket-core-tests/src/test/java/org/apache/wicket/markup/html/link/AutolinkPage_5.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.link; import org.apache.wicket.markup.html.WebPage; /** * Mock page for testing. */ public class AutolinkPage_5 extends WebPage { private static final long serialVersionUID = 1L; /** * Construct. */ public AutolinkPage_5() { } }
apache/xmlgraphics-batik
1,079
batik-svgbrowser/src/main/java/org/apache/batik/apps/svgbrowser/ElementOverlayController.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.batik.apps.svgbrowser; /** * Provides the information to control the ElementOverlay. * * @version $Id$ */ public interface ElementOverlayController { /** * Returns whether the ElementOverlay is enabled. */ boolean isOverlayEnabled(); }
apache/xmlgraphics-fop
1,089
fop-core/src/main/java/org/apache/fop/render/pdf/extensions/PDFActionExtension.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. */ /* $Id$ */ package org.apache.fop.render.pdf.extensions; // CSOFF: LineLengthCheck public class PDFActionExtension extends PDFDictionaryExtension { public static final String PROPERTY_TYPE = "type"; PDFActionExtension() { super(PDFDictionaryType.Action); } }
apache/zeppelin
1,097
zeppelin-jupyter/src/main/java/org/apache/zeppelin/jupyter/nbformat/CodeCell.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.jupyter.nbformat; import com.google.gson.annotations.SerializedName; import java.util.List; /** * */ public class CodeCell extends Cell { @SerializedName("outputs") private List<Output> outputs; public List<Output> getOutputs() { return outputs; } }
google/CallBuilder
1,096
third_party/jsr-305/src/main/java/javax/annotation/ParametersAreNullableByDefault.java
package javax.annotation; import java.lang.annotation.Documented; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import javax.annotation.meta.TypeQualifierDefault; /** * This annotation can be applied to a package, class or method to indicate that * the method parameters in that element are nullable by default unless there is: * <ul> * <li>An explicit nullness annotation * <li>The method overrides a method in a superclass (in which case the * annotation of the corresponding parameter in the superclass applies) * <li> there is a default parameter annotation applied to a more tightly nested * element. * </ul> * <p>This annotation implies the same "nullness" as no annotation. However, it is different * than having no annotation, as it is inherited and it can override a ParametersAreNonnullByDefault * annotation at an outer scope. * */ @Documented @Nullable @TypeQualifierDefault(ElementType.PARAMETER) @Retention(RetentionPolicy.RUNTIME) public @interface ParametersAreNullableByDefault { }
google/closure-compiler
1,094
src/com/google/javascript/jscomp/parsing/parser/trees/CommaExpressionTree.java
/* * Copyright 2011 The Closure Compiler Authors. * * 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 com.google.javascript.jscomp.parsing.parser.trees; import com.google.common.collect.ImmutableList; import com.google.javascript.jscomp.parsing.parser.util.SourceRange; public class CommaExpressionTree extends ParseTree { public final ImmutableList<ParseTree> expressions; public CommaExpressionTree(SourceRange location, ImmutableList<ParseTree> expressions) { super(ParseTreeType.COMMA_EXPRESSION, location); this.expressions = expressions; } }
google/closure-compiler
1,107
src/com/google/javascript/jscomp/DummyCompileMetricsRecorder.java
/* * Copyright 2021 The Closure Compiler Authors. * * 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 com.google.javascript.jscomp; /** A do-nothing metrics recorder that `AbstractCompilerRunner` uses by default. */ public class DummyCompileMetricsRecorder implements CompileMetricsRecorderInterface { @Override public void recordActionStart() {} @Override public void recordActionName(String actionName) {} @Override public void recordStartState(AbstractCompiler compiler) {} @Override public void recordResultMetrics(AbstractCompiler compiler, Result result) {} }
google/copybara
1,123
java/com/google/copybara/git/gerritapi/SubmitInput.java
/* * Copyright (C) 2020 Google Inc. * * 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 com.google.copybara.git.gerritapi; import com.google.api.client.util.Key; import javax.annotation.Nullable; /** see https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#submit-change * request json * <p>NotifyInfo (notify_details) not included for now * <p>on_behalf_of not included for now until we have a use case. */ public class SubmitInput { @Key String notify; public SubmitInput(@Nullable NotifyType notify) { this.notify = notify == null ? null : notify.toString(); } }
google/guava
1,100
android/guava-tests/test/com/google/common/escape/CharEscaperBuilderTest.java
/* * Copyright (C) 2012 The Guava Authors * * 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 com.google.common.escape; import static com.google.common.truth.Truth.assertThat; import junit.framework.TestCase; import org.jspecify.annotations.NullUnmarked; @NullUnmarked public class CharEscaperBuilderTest extends TestCase { public void testAddEscapes() { char[] cs = {'a', 'b', 'c'}; CharEscaperBuilder builder = new CharEscaperBuilder().addEscapes(cs, "Z"); Escaper escaper = builder.toEscaper(); assertThat(escaper.escape("abcdef")).isEqualTo("ZZZdef"); } }
googleads/google-ads-java
1,062
google-ads-stubs-v19/src/main/java/com/google/ads/googleads/v19/common/CustomAudienceSegmentOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/ads/googleads/v19/common/audiences.proto // Protobuf Java Version: 3.25.7 package com.google.ads.googleads.v19.common; public interface CustomAudienceSegmentOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v19.common.CustomAudienceSegment) com.google.protobuf.MessageOrBuilder { /** * <pre> * The custom audience resource. * </pre> * * <code>optional string custom_audience = 1;</code> * @return Whether the customAudience field is set. */ boolean hasCustomAudience(); /** * <pre> * The custom audience resource. * </pre> * * <code>optional string custom_audience = 1;</code> * @return The customAudience. */ java.lang.String getCustomAudience(); /** * <pre> * The custom audience resource. * </pre> * * <code>optional string custom_audience = 1;</code> * @return The bytes for customAudience. */ com.google.protobuf.ByteString getCustomAudienceBytes(); }
googleads/google-ads-java
1,062
google-ads-stubs-v20/src/main/java/com/google/ads/googleads/v20/common/CustomAudienceSegmentOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/ads/googleads/v20/common/audiences.proto // Protobuf Java Version: 3.25.7 package com.google.ads.googleads.v20.common; public interface CustomAudienceSegmentOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v20.common.CustomAudienceSegment) com.google.protobuf.MessageOrBuilder { /** * <pre> * The custom audience resource. * </pre> * * <code>optional string custom_audience = 1;</code> * @return Whether the customAudience field is set. */ boolean hasCustomAudience(); /** * <pre> * The custom audience resource. * </pre> * * <code>optional string custom_audience = 1;</code> * @return The customAudience. */ java.lang.String getCustomAudience(); /** * <pre> * The custom audience resource. * </pre> * * <code>optional string custom_audience = 1;</code> * @return The bytes for customAudience. */ com.google.protobuf.ByteString getCustomAudienceBytes(); }
googleads/google-ads-java
1,062
google-ads-stubs-v21/src/main/java/com/google/ads/googleads/v21/common/CustomAudienceSegmentOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/ads/googleads/v21/common/audiences.proto // Protobuf Java Version: 3.25.7 package com.google.ads.googleads.v21.common; public interface CustomAudienceSegmentOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v21.common.CustomAudienceSegment) com.google.protobuf.MessageOrBuilder { /** * <pre> * The custom audience resource. * </pre> * * <code>optional string custom_audience = 1;</code> * @return Whether the customAudience field is set. */ boolean hasCustomAudience(); /** * <pre> * The custom audience resource. * </pre> * * <code>optional string custom_audience = 1;</code> * @return The customAudience. */ java.lang.String getCustomAudience(); /** * <pre> * The custom audience resource. * </pre> * * <code>optional string custom_audience = 1;</code> * @return The bytes for customAudience. */ com.google.protobuf.ByteString getCustomAudienceBytes(); }
googleapis/google-cloud-java
1,031
java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/WriteFeatureValuesResponseOrBuilder.java
/* * Copyright 2025 Google LLC * * 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 * * 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. */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/aiplatform/v1beta1/featurestore_online_service.proto // Protobuf Java Version: 3.25.8 package com.google.cloud.aiplatform.v1beta1; public interface WriteFeatureValuesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.WriteFeatureValuesResponse) com.google.protobuf.MessageOrBuilder {}
googleapis/google-cloud-java
1,031
java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/SetDefaultProcessorVersionResponseOrBuilder.java
/* * Copyright 2025 Google LLC * * 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 * * 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. */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/documentai/v1/document_processor_service.proto // Protobuf Java Version: 3.25.8 package com.google.cloud.documentai.v1; public interface SetDefaultProcessorVersionResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.documentai.v1.SetDefaultProcessorVersionResponse) com.google.protobuf.MessageOrBuilder {}
googleapis/sdk-platform-java
1,072
gapic-generator-java/src/test/java/com/google/api/generator/engine/ast/NullObjectValueTest.java
// Copyright 2020 Google LLC // // 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 com.google.api.generator.engine.ast; import static com.google.common.truth.Truth.assertThat; import static org.junit.Assert.assertEquals; import org.junit.jupiter.api.Test; class NullObjectValueTest { private static final String NULL_VALUE = "null"; @Test void createNullObjectValue_valid() { NullObjectValue nullValue = NullObjectValue.create(); assertEquals(NULL_VALUE, nullValue.value()); assertThat(nullValue.type()).isEqualTo(TypeNode.NULL); } }
googlearchive/leanback-assistant
1,092
app/src/main/java/com/example/android/assistantplayback/MainActivity.java
/* * Copyright (c) 2017 The Android Open Source Project * * 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 com.example.android.assistantplayback; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v4.app.FragmentActivity; /** Main entrance into the app, loads {@link MainFragment}. */ public final class MainActivity extends FragmentActivity { @Override protected void onCreate(@Nullable Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); } }
hibernate/hibernate-orm
1,063
hibernate-core/src/main/java/org/hibernate/metamodel/internal/PluralAttributeMetadata.java
/* * SPDX-License-Identifier: Apache-2.0 * Copyright Red Hat Inc. and Hibernate Authors */ package org.hibernate.metamodel.internal; import org.hibernate.metamodel.CollectionClassification; /** * Attribute metadata contract for a plural attribute. * * @param <O> The owner type * @param <C> The attribute type (the collection type) * @param <E> The collection element type */ @SuppressWarnings("unused") public interface PluralAttributeMetadata<O, C, E> extends AttributeMetadata<O, C> { /** * The classification of the collection, indicating the collection semantics * to be used. */ CollectionClassification getCollectionClassification(); /** * Retrieve the value context for the collection's elements. * * @return The value context for the collection's elements. */ ValueContext getElementValueContext(); /** * Retrieve the value context for the collection's keys (if a map, null otherwise). * * @return The value context for the collection's keys (if a map, null otherwise). */ ValueContext getMapKeyValueContext(); }
openjdk/jdk8
1,131
langtools/test/tools/javac/diags/examples/IllegalSelfRef.java
/* * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ // key: compiler.err.illegal.self.ref class IllegalSelfRef { int i = i; }
openjdk/jdk8
1,133
langtools/test/tools/javac/staticQualifiedNew/p2/X.java
/* * Copyright (c) 2000, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ package p2; public class X { static public class M { public M(){} } }
openjdk/jdk8
1,142
jdk/test/java/io/Serializable/class/SerialA_1.java
/* * Copyright (c) 1998, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ import java.io.Serializable; public class A implements Serializable { int field1; };
openjdk/jdk8
1,142
langtools/test/tools/javadoc/6942366/p/Base.java
/* * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ package p; public class Base { /** javadoc-for-Base.m. */ public void m() { } }
openjdk/jdk8
1,144
langtools/test/tools/javac/miranda/4711056/T4.java
/* * Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ abstract class clss01004_a extends clss01004_b implements iclss01004_2 { // conflict! }
openjdk/jtreg
1,148
test/modlibs/buildAction/BuildLibPatch.java
/* * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ /* * @test * @library /libs/patchmods * @build java.base/java.util.streams.StreamsHelper */
oracle/coherence
1,046
prj/coherence-grpc/src/main/java/com/oracle/coherence/grpc/internal/extend/message/response/MapOfChannelAndPositionResponse.java
/* * Copyright (c) 2000, 2025, Oracle and/or its affiliates. * * Licensed under the Universal Permissive License v 1.0 as shown at * https://oss.oracle.com/licenses/upl. */ package com.oracle.coherence.grpc.internal.extend.message.response; import com.google.protobuf.Message; import com.oracle.coherence.grpc.TopicHelper; import com.tangosol.coherence.component.net.extend.message.response.GrpcResponse; import com.tangosol.net.topic.Position; import java.util.Map; /** * A {@link GrpcResponse} that produces a * {@link com.oracle.coherence.grpc.messages.topic.v1.MapOfChannelAndPosition}. * * @author Jonathan Knight 2025.01.25 */ public class MapOfChannelAndPositionResponse extends BaseProxyResponse { public MapOfChannelAndPositionResponse() { } @Override @SuppressWarnings("unchecked") public Message getMessage() { Map<Integer, Position> map = (Map<Integer, Position>) getResult(); return TopicHelper.toProtobufChannelAndPosition(map); } }
apache/commons-imaging
1,096
src/test/java/org/apache/commons/imaging/formats/jpeg/decoder/PrintShallowSizes.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.commons.imaging.formats.jpeg.decoder; import org.apache.commons.imaging.test.PrintShallowObjectSizes; public class PrintShallowSizes { public static void main(final String[] args) { PrintShallowObjectSizes.print(Block.class, JpegInputStream.class); } }
apache/commons-rdf
1,087
commons-rdf-jsonld-java/src/test/java/org/apache/commons/rdf/jsonldjava/JsonLdDatasetTest.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.commons.rdf.jsonldjava; import org.apache.commons.rdf.api.AbstractDatasetTest; import org.apache.commons.rdf.api.RDF; class JsonLdDatasetTest extends AbstractDatasetTest { @Override public RDF createFactory() { return new JsonLdRDF(); } }
apache/cxf
1,079
rt/rs/microprofile-client/src/test/java/org/apache/cxf/microprofile/client/mock/ExceptionMappingClient.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.cxf.microprofile.client.mock; import jakarta.ws.rs.GET; import jakarta.ws.rs.Path; import jakarta.ws.rs.core.Response; public interface ExceptionMappingClient { @GET @Path("/wontBeFound") Response getEntity() throws NoSuchEntityException; }
apache/cxf
1,084
systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/validation/AbstractBookStoreWithValidation.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.cxf.systest.jaxrs.validation; import jakarta.validation.Valid; import jakarta.validation.constraints.Pattern; public abstract class AbstractBookStoreWithValidation { @Valid public abstract BookWithValidation getBook(@Pattern(regexp = "\\d+") String id); }
apache/cxf
1,107
rt/frontend/jaxrs/src/test/java/org/apache/cxf/jaxrs/resources/TagVO2.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.cxf.jaxrs.resources; import jakarta.xml.bind.annotation.XmlRootElement; @XmlRootElement(name = "thetag", namespace = "http://tags") public class TagVO2 extends TagVO { public TagVO2() { } public TagVO2(String name, String group) { super(name, group); } }
apache/dolphinscheduler
1,078
dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/ServiceConfiguration.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.dolphinscheduler.service; import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.Configuration; @ComponentScan("org.apache.dolphinscheduler.service") @Configuration public class ServiceConfiguration { }