repo_id
stringclasses
875 values
size
int64
974
38.9k
file_path
stringlengths
10
308
content
stringlengths
974
38.9k
apache/incubator-retired-wave
1,103
wave/src/test/java/org/waveprotocol/wave/model/operation/testing/RandomOpGenerator.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.waveprotocol.wave.model.operation.testing; import java.util.Random; public interface RandomOpGenerator<D, O> { /** * Validity * * @param state * @param random * @return A random operation for the given state */ O randomOperation(D state, Random random); }
apache/incubator-samoa
1,106
samoa-apex/src/main/java/org/apache/samoa/apex/topology/impl/DefaultOutputPortSerializable.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.samoa.apex.topology.impl; import java.io.Serializable; import com.datatorrent.api.DefaultOutputPort; public class DefaultOutputPortSerializable<T> extends DefaultOutputPort<T> implements Serializable { private static final long serialVersionUID = 8661276624406533785L; }
apache/incubator-toree
1,129
plugins/src/main/java/org/apache/toree/plugins/annotations/Priority.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.toree.plugins.annotations; import java.lang.annotation.*; /** * Represents an indicator of priority for plugins and plugin methods. */ @Documented @Inherited @Retention(RetentionPolicy.RUNTIME) @Target({ ElementType.TYPE, ElementType.METHOD }) public @interface Priority { long level(); }
apache/inlong
1,101
inlong-tubemq/tubemq-server/src/main/java/org/apache/inlong/tubemq/server/master/web/action/layout/Default.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.inlong.tubemq.server.master.web.action.layout; import org.apache.inlong.tubemq.server.master.TMaster; import org.apache.inlong.tubemq.server.master.web.action.screen.Tubeweb; public class Default extends Tubeweb { public Default(TMaster master) { super(master); } }
apache/inlong
1,124
inlong-common/src/main/java/org/apache/inlong/common/constant/DataNodeType.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.common.constant; public class DataNodeType { public static final String KAFKA = "KAFKA"; public static final String PULSAR = "PULSAR"; public static final String CLS = "CLS"; public static final String ELASTICSEARCH = "ELASTICSEARCH"; public static final String HTTP = "HTTP"; }
apache/iotdb
1,124
iotdb-client/isession/src/main/java/org/apache/iotdb/isession/ISessionDataSet.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.isession; import org.apache.tsfile.read.common.RowRecord; import java.util.List; public interface ISessionDataSet extends AutoCloseable { List<String> getColumnNames(); List<String> getColumnTypes(); boolean hasNext() throws Exception; RowRecord next() throws Exception; }
apache/jackrabbit-oak
1,112
oak-core/src/main/java/org/apache/jackrabbit/oak/security/user/PasswordHistoryException.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.security.user; import org.jetbrains.annotations.NotNull; import javax.jcr.nodetype.ConstraintViolationException; class PasswordHistoryException extends ConstraintViolationException { PasswordHistoryException(@NotNull String message) { super(message); } }
apache/jackrabbit-oak
1,121
oak-store-spi/src/main/java/org/apache/jackrabbit/oak/json/BlobSerializer.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.json; import org.apache.jackrabbit.oak.api.Blob; /** * Customizable mechanism for mapping {@link Blob} instances to corresponding * serialization identifiers. */ public class BlobSerializer { public String serialize(Blob blob) { return "Blob{" + blob + '}'; } }
apache/jackrabbit-oak
1,122
oak-benchmarks/src/main/java/org/apache/jackrabbit/oak/run/BenchmarkCommand.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.run; import org.apache.jackrabbit.oak.benchmark.BenchmarkRunner; import org.apache.jackrabbit.oak.run.commons.Command; class BenchmarkCommand implements Command { @Override public void execute(String... args) throws Exception { BenchmarkRunner.main(args); } }
apache/jena
1,128
jena-permissions/src/main/java/org/apache/jena/permissions/model/SecuredLiteral.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.permissions.model; import org.apache.jena.rdf.model.Literal; /** * The interface for secured Literal instances. * * Use the SecuredLiteral.Factory to create instances * @deprecated To be removed. */ @Deprecated(forRemoval = true) public interface SecuredLiteral extends Literal, SecuredRDFNode { }
apache/jena
1,137
jena-core/src/main/java/org/apache/jena/ext/xerces/xs/XSTypeDefinition.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.ext.xerces.xs; /** * This interface represents a complex or simple type definition. */ public interface XSTypeDefinition extends XSObject { /** * {base type definition}: either a simple type definition or a complex * type definition. */ public XSTypeDefinition getBaseType(); }
apache/jmeter
1,143
src/protocol/junit-sample/src/main/java/test/RerunTest.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to you under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package test; import org.junit.Test; import junit.framework.TestCase; /** * Test to demonstrate whether a test instance can be re-run */ @SuppressWarnings("JUnitAmbiguousTestClass") public class RerunTest extends TestCase { private int i = 123; @Test public void testRerun(){ assertEquals(123,i); i++; } }
apache/kafka
1,124
clients/src/main/java/org/apache/kafka/common/errors/BrokerIdNotRegisteredException.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.errors; public class BrokerIdNotRegisteredException extends ApiException { public BrokerIdNotRegisteredException(String message) { super(message); } public BrokerIdNotRegisteredException(String message, Throwable throwable) { super(message, throwable); } }
apache/kafka
1,131
metadata/src/main/java/org/apache/kafka/metadata/placement/TopicAssignment.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.metadata.placement; import java.util.List; /** * The topic assignment. * <p> * This class is immutable. It's internal state does not change. */ public record TopicAssignment(List<PartitionAssignment> assignments) { public TopicAssignment { assignments = List.copyOf(assignments); } }
apache/kafka
1,141
clients/src/test/java/org/apache/kafka/common/utils/Crc32CTest.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.utils; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.assertEquals; public class Crc32CTest { @Test public void testValue() { final byte[] bytes = "Some String".getBytes(); assertEquals(608512271, Crc32C.compute(bytes, 0, bytes.length)); } }
apache/kylin
1,111
src/core-metadata/src/main/java/org/apache/kylin/metadata/model/exception/ModelBrokenException.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.metadata.model.exception; public class ModelBrokenException extends RuntimeException { private static final long serialVersionUID = -2288922690296134341L; public ModelBrokenException() { } public ModelBrokenException(String msg) { super(msg); } }
apache/linkis
1,091
linkis-public-enhancements/linkis-pes-common/src/main/java/org/apache/linkis/cs/common/entity/data/CSResultData.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.data; import org.apache.linkis.common.io.FsPath; public class CSResultData implements Data { private FsPath fsPath; @Override public FsPath getLocation() { return null; } @Override public void setLocation(FsPath fsPath) {} }
apache/logging-log4j2
1,104
log4j-core-its/src/test/java/org/apache/logging/log4j/core/async/perftest/YieldIdleStrategy.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.async.perftest; /** * Idle strategy that yields the thread. */ class YieldIdleStrategy implements IdleStrategy { /** * yields the current thread. * @see IdleStrategy */ @Override public void idle() { Thread.yield(); } }
apache/logging-log4j2
1,121
log4j-api-test/src/main/java/org/apache/logging/log4j/test/junit/Mutable.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.test.junit; /** * Helper class for JUnit tests. */ public class Mutable { private String value; public Mutable set(final String value) { this.value = value; return this; } @Override public String toString() { return this.value; } }
apache/logging-log4j2
1,125
log4j-api/src/main/java/org/apache/logging/log4j/message/TimestampMessage.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.message; /** * Messages that use this interface will cause the timestamp in the message to be used instead of the timestamp in * the LogEvent. */ public interface TimestampMessage { /** * Returns the timestamp. * @return The timestamp. */ long getTimestamp(); }
apache/maven-compiler-plugin
1,102
src/it/MCOMPILER-481-requires-static-included/app/src/test/java/org/test/app/MainTest.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.test.app; import org.eclipse.jetty.util.ajax.JSON; import org.junit.jupiter.api.Test; import org.test.service.JSONService; public class MainTest { @Test public void test() { JSON json = new JSONService().json; System.err.println("json = " + json); } }
apache/maven-javadoc-plugin
1,112
src/it/projects/detectLinks/module1/src/main/java/com/mycompany/app/App.java
package com.mycompany.app; /* * 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. */ /** * Hello world! */ public class App { /** * Test an offline link to module2: {@link com.mycompany.app2.App2} * * @param args could be null */ public static void main( String[] args ) { System.out.println( "Hello World!" ); } }
apache/maven
1,109
compat/maven-compat/src/main/java/org/apache/maven/artifact/repository/metadata/MetadataUtils.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.artifact.repository.metadata; /** * Assists in handling repository metadata. * */ @Deprecated class MetadataUtils { public static Metadata cloneMetadata(Metadata src) { if (src == null) { return null; } return src.clone(); } }
apache/metron
1,083
metron-platform/metron-data-management/src/main/java/org/apache/metron/dataloads/nonbulk/flatfile/writer/InvalidWriterOutput.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.metron.dataloads.nonbulk.flatfile.writer; public class InvalidWriterOutput extends Exception { public InvalidWriterOutput(String message) { super(message); } public InvalidWriterOutput(String message, Throwable t) { super(message, t); } }
apache/myfaces
1,122
impl/src/main/java/org/apache/myfaces/view/facelets/tag/ComponentContainerHandler.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.myfaces.view.facelets.tag; /** * This interface identify tag handlers that does not generate components, but * it has components inside them and by that reason it should be considered * into cc:insertChildren logic. * * @author lu4242 */ public interface ComponentContainerHandler { }
apache/myfaces
1,127
impl/src/main/java/org/apache/myfaces/config/element/AbsoluteOrdering.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.myfaces.config.element; import java.io.Serializable; import java.util.List; /** * * @author Leonardo Uribe * @since 2.0.3 */ public abstract class AbsoluteOrdering implements Serializable { /** * * @return */ public abstract List<OrderSlot> getOrderList(); }
apache/nutch
1,125
src/plugin/protocol-ftp/src/java/org/apache/nutch/protocol/ftp/FtpError.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.nutch.protocol.ftp; /** * Thrown for Ftp error codes. */ public class FtpError extends FtpException { @SuppressWarnings("unused") private int code; public int getCode(int code) { return code; } public FtpError(int code) { super("Ftp Error: " + code); this.code = code; } }
apache/olingo-odata4
1,112
lib/client-api/src/main/java/org/apache/olingo/client/api/domain/ClientDeltaLink.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.olingo.client.api.domain; import java.net.URI; public interface ClientDeltaLink extends ClientAnnotatable { URI getSource(); void setSource(URI source); String getRelationship(); void setRelationship(String relationship); URI getTarget(); void setTarget(URI target); }
apache/openjpa
1,096
openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/managedinterface/ManagedInterfaceEmbed.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.openjpa.persistence.managedinterface; import jakarta.persistence.Embeddable; import org.apache.openjpa.persistence.ManagedInterface; @ManagedInterface @Embeddable public interface ManagedInterfaceEmbed { int getEmbedIntField(); void setEmbedIntField(int i); }
apache/openjpa
1,132
openjpa-kernel/src/main/java/org/apache/openjpa/event/LifecycleListener.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.event; /** * Interface for listening to all {@link LifecycleEvent}s. * * @author Steve Kim * @author Abe White */ public interface LifecycleListener extends PersistListener, LoadListener, StoreListener, ClearListener, DeleteListener, DirtyListener, DetachListener, AttachListener { }
apache/ozone
1,127
hadoop-hdds/common/src/main/java/org/apache/hadoop/hdds/utils/BackgroundTask.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.hadoop.hdds.utils; import java.util.concurrent.Callable; /** * A task thread to run by {@link BackgroundService}. */ public interface BackgroundTask extends Callable<BackgroundTaskResult> { @Override BackgroundTaskResult call() throws Exception; default int getPriority() { return 0; } }
apache/paimon
1,131
paimon-api/src/main/java/org/apache/paimon/rest/requests/ForwardBranchRequest.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.rest.requests; import org.apache.paimon.rest.RESTRequest; import org.apache.paimon.shade.jackson2.com.fasterxml.jackson.annotation.JsonIgnoreProperties; /** Request for forwarding branch. */ @JsonIgnoreProperties(ignoreUnknown = true) public class ForwardBranchRequest implements RESTRequest {}
apache/pdfbox
1,126
pdfbox/src/main/java/org/apache/pdfbox/pdmodel/common/function/type4/Operator.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.pdfbox.pdmodel.common.function.type4; /** * Interface for PostScript operators. * */ public interface Operator { /** * Executes the operator. The method can inspect and manipulate the stack. * @param context the execution context */ void execute(ExecutionContext context); }
apache/phoenix-omid
1,138
metrics/src/main/java/org/apache/omid/metrics/Histogram.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.omid.metrics; public interface Histogram extends Metric { /** * Adds a recorded value. * * @param value the length of the value */ void update(int value); /** * Adds a recorded value. * * @param value the length of the value */ void update(long value); }
apache/pig
1,177
src/org/apache/pig/PigCounters.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.pig; /** * The following enum will contain the general counters that pig uses. * */ public enum PigCounters { SPILLABLE_MEMORY_MANAGER_SPILL_COUNT, // total number of bags that have spilled proactively PROACTIVE_SPILL_COUNT_BAGS, //total number of records that have been spilled to disk PROACTIVE_SPILL_COUNT_RECS; }
apache/pinot
1,099
pinot-clients/pinot-jdbc-client/src/main/java/org/apache/pinot/client/controller/request/SchemaRequest.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.client.controller.request; public class SchemaRequest { private String _table; public SchemaRequest(String table) { _table = table; } public String getTable() { return _table; } public void setTable(String table) { _table = table; } }
apache/plc4x
1,120
plc4j/drivers/ads/src/test/java/org/apache/plc4x/protocol/ads/AdsSerializerParserTest.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.protocol.ads; import org.apache.plc4x.test.parserserializer.ParserSerializerTestsuiteRunner; public class AdsSerializerParserTest extends ParserSerializerTestsuiteRunner { public AdsSerializerParserTest() { super("/protocols/ads/ParserSerializerTestsuite.xml"); } }
apache/plc4x
1,124
plc4j/transports/can/src/main/java/org/apache/plc4x/java/transport/can/FrameData.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.transport.can; import org.apache.plc4x.java.spi.generation.Message; import org.apache.plc4x.java.spi.generation.MessageInput; public interface FrameData { int getNodeId(); <T extends Message> T read(MessageInput<T> input); int getDataLength(); byte[] getData(); }
apache/polaris
1,127
runtime/service/src/main/java/org/apache/polaris/service/events/PolarisEvent.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.polaris.service.events; import java.util.UUID; /** * Represents an event emitted by Polaris. Currently, there's no common data across events so this * is just a marker interface. */ public interface PolarisEvent { static String createEventId() { return UUID.randomUUID().toString(); } }
apache/polygene-java
1,081
libraries/sql-generator/src/main/java/org/apache/polygene/library/sql/generator/grammar/query/joins/UnionJoinedTable.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.sql.generator.grammar.query.joins; /** * This syntax element represents the {@code UNION JOIN} between two tables. * * @author Stanislav Muhametsin */ public interface UnionJoinedTable extends JoinedTable { }
apache/polygene-java
1,082
libraries/sql-generator/src/main/java/org/apache/polygene/library/sql/generator/grammar/common/NonBooleanExpression.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.sql.generator.grammar.common; /** * A common interface for all expressions, which return non-boolean value. * * @author Stanislav Muhametsin */ public interface NonBooleanExpression extends ValueExpression { }
apache/polygene-java
1,102
libraries/rest-client/src/main/java/org/apache/polygene/library/rest/client/spi/ResponseReader.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.rest.client.spi; import org.restlet.Response; import org.restlet.resource.ResourceException; /** * JAVADOC */ public interface ResponseReader { Object readResponse(Response response, Class<?> resultType) throws ResourceException; }
apache/pulsar-client-reactive
1,086
pulsar-client-reactive-api/src/main/java/org/apache/pulsar/reactive/client/api/ReactiveMessageSenderCache.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.pulsar.reactive.client.api; /** * Marker interface for a cache that combines multiple sent messages to share the same * Pulsar producer in the Pulsar client implementation level. */ public interface ReactiveMessageSenderCache extends AutoCloseable { }
apache/pulsar-client-reactive
1,087
pulsar-client-reactive-api/src/main/java/org/apache/pulsar/reactive/client/api/EndOfStreamAction.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.pulsar.reactive.client.api; /** * Action to perform once the end of the stream is reached. */ public enum EndOfStreamAction { /** Complete at end of stream. */ COMPLETE, /** Continue polling for new messages when end of stream is reached. */ POLL }
apache/pulsar
1,128
pulsar-metadata/src/main/java/org/apache/pulsar/metadata/api/Notification.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.pulsar.metadata.api; import lombok.Data; @Data public final class Notification { /** * The type of the event being notified. */ private final NotificationType type; /** * Path of the kev/value pair interested by the notification. */ private final String path; }
apache/qpid-broker-j
1,122
broker-core/src/main/java/org/apache/qpid/server/message/EnqueueableMessage.java
/* * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. * */ package org.apache.qpid.server.message; import org.apache.qpid.server.store.StorableMessageMetaData; import org.apache.qpid.server.store.StoredMessage; public interface EnqueueableMessage<T extends StorableMessageMetaData> { long getMessageNumber(); boolean isPersistent(); StoredMessage<T> getStoredMessage(); }
apache/rocketmq-clients
1,106
java/client-apis/src/main/java/org/apache/rocketmq/client/apis/SessionCredentialsProvider.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.client.apis; /** * Abstract provider to provide {@link SessionCredentials}. */ public interface SessionCredentialsProvider { /** * Get the provided credentials. * * @return provided credentials. */ SessionCredentials getSessionCredentials(); }
apache/royale-compiler
1,119
compiler/src/main/java/org/apache/royale/abc/visitors/NilDiagnosticsVisitor.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.royale.abc.visitors; import org.apache.royale.abc.diagnostics.AbstractDiagnosticVisitor; /** * Nil implementation of {@link IDiagnosticsVisitor}. */ public final class NilDiagnosticsVisitor extends AbstractDiagnosticVisitor { public NilDiagnosticsVisitor() { } }
apache/royale-compiler
1,122
compiler-common/src/main/java/org/apache/royale/swf/tags/ICharacterTag.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.royale.swf.tags; /** * A character tag has Character ID. SWF tags can refer to other tags by their * character ID. */ public interface ICharacterTag extends ITag { /** * Get the UI16 character ID. * * @return character ID */ int getCharacterID(); }
apache/seatunnel
1,040
seatunnel-engine/seatunnel-engine-storage/imap-storage-plugins/imap-storage-file/src/main/java/org/apache/seatunnel/engine/imap/storage/file/wal/writer/S3Writer.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. * */ package org.apache.seatunnel.engine.imap.storage.file.wal.writer; import lombok.extern.slf4j.Slf4j; @Slf4j public class S3Writer extends CloudWriter { @Override public String identifier() { return "s3"; } }
apache/seatunnel
1,092
seatunnel-core/seatunnel-core-starter/src/main/java/org/apache/seatunnel/core/starter/exception/CommandException.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.seatunnel.core.starter.exception; public class CommandException extends RuntimeException { public CommandException(String message) { super(message); } public CommandException(String message, Throwable cause) { super(message, cause); } }
apache/seatunnel
1,128
seatunnel-api/src/main/java/org/apache/seatunnel/api/table/type/Record.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.seatunnel.api.table.type; import java.io.Serializable; /** Contain {@link SeaTunnelRow} or Checkpoint Barrier */ public class Record<T> implements Serializable { private final T data; public Record(T data) { this.data = data; } public T getData() { return data; } }
apache/servicecomb-toolkit
1,066
oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/factory/OpenApiDiffValidatorFactory.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.servicecomb.toolkit.oasv.diffvalidation.factory; import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OpenApiDiffValidator; public interface OpenApiDiffValidatorFactory extends OasObjectDiffValidatorFactory<OpenApiDiffValidator> { }
apache/shardingsphere
1,057
examples/shardingsphere-jdbc-example-generator/src/main/java/org/apache/shardingsphere/example/generator/scenario/feature/FeatureExampleScenario.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.example.generator.scenario.feature; import org.apache.shardingsphere.example.generator.scenario.ExampleScenario; /** * Example feature scenario. */ public interface FeatureExampleScenario extends ExampleScenario { }
apache/shardingsphere
1,090
mode/core/src/test/java/org/apache/shardingsphere/mode/metadata/persist/version/MetaDataVersionNodePathFixture.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.mode.metadata.persist.version; import org.apache.shardingsphere.mode.node.path.NodePath; import org.apache.shardingsphere.mode.node.path.NodePathEntity; @NodePathEntity("/foo") public final class MetaDataVersionNodePathFixture implements NodePath { }
apache/shenyu
1,128
shenyu-admin/src/test/java/org/apache/shenyu/admin/model/vo/ShenyuDictVOTest.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.admin.model.vo; import org.apache.shenyu.admin.AbstractReflectGetterSetterTest; /** * Test case for ShenyuDictVO. */ public final class ShenyuDictVOTest extends AbstractReflectGetterSetterTest { @Override protected Class<?> getTargetClass() { return ShenyuDictVO.class; } }
apache/skywalking
1,069
oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/type/BatchMetricConditions.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ package org.apache.skywalking.oap.query.graphql.type; import java.util.ArrayList; import java.util.List; import lombok.Getter; @Deprecated @Getter public class BatchMetricConditions { private String name; private List<String> ids = new ArrayList<>(); }
apache/skywalking
1,094
oap-server/server-library/library-module/src/main/java/org/apache/skywalking/oap/server/library/module/Service.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ package org.apache.skywalking.oap.server.library.module; /** * The <code>Service</code> implementation is a service provided by its own modules. * <p> * And every {@link ModuleProvider} must provide all the given services of the {@link ModuleDefine}. */ public interface Service { }
apache/solr
1,134
solr/core/src/java/org/apache/solr/cluster/events/CollectionsRemovedEvent.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.solr.cluster.events; import java.util.Iterator; /** Event generated when some collections have been removed. */ public interface CollectionsRemovedEvent extends ClusterEvent { @Override default EventType getType() { return EventType.COLLECTIONS_REMOVED; } Iterator<String> getCollectionNames(); }
apache/solr
1,143
solr/solrj/src/java/org/apache/solr/common/params/StatsParams.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.solr.common.params; /** Stats Parameters */ public interface StatsParams { public static final String STATS = "stats"; public static final String STATS_FIELD = STATS + ".field"; public static final String STATS_FACET = STATS + ".facet"; public static final String STATS_CALC_DISTINCT = STATS + ".calcdistinct"; }
apache/stratos
1,072
components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/listener/application/ApplicationUpdatedEventListener.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.listener.application; import org.apache.stratos.messaging.listener.EventListener; /** * This will get triggered when application update happens */ abstract class ApplicationUpdatedEventListener extends EventListener { }
apache/streampipes
1,094
streampipes-maven-plugin/src/main/java/org/apache/streampipes/smp/generator/MarkdownTitleRemover.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ package org.apache.streampipes.smp.generator; public class MarkdownTitleRemover { private String markdown; public MarkdownTitleRemover(String markdown) { this.markdown = markdown; } public String removeTitle() { return markdown.replaceFirst("(?m)^\\#\\#.*", ""); } }
apache/streampipes
1,095
streampipes-commons/src/main/java/org/apache/streampipes/commons/exceptions/ElementNotFoundException.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ package org.apache.streampipes.commons.exceptions; public class ElementNotFoundException extends Exception { /** * */ private static final long serialVersionUID = 1L; public ElementNotFoundException() { } public ElementNotFoundException(String s) { super(s); } }
apache/struts
1,129
plugins/junit/src/test/java/org/apache/struts2/junit/StrutsSpringTestCaseTest.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.junit; public class StrutsSpringTestCaseTest extends StrutsSpringTestCase { public void testApplicationContext() { assertNotNull(applicationContext); JUnitTestAction action = (JUnitTestAction) applicationContext.getBean("testAction"); assertNotNull(action); } }
apache/systemds
1,120
src/test/java/org/apache/sysds/test/component/compress/lib/CLALibLLMCustomTest.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.sysds.test.component.compress.lib; import org.apache.sysds.runtime.compress.lib.CLALibLeftMultBy; import org.junit.Test; public class CLALibLLMCustomTest { @Test(expected = Exception.class) public void failCase() { CLALibLeftMultBy.leftMultByMatrixTransposed(null, null, null, 0); } }
apache/systemds
1,139
src/test/java/org/apache/sysds/test/functions/lineage/LineageBase.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.sysds.test.functions.lineage; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.apache.sysds.test.AutomatedTestBase; public abstract class LineageBase extends AutomatedTestBase { protected static final Log LOG = LogFactory.getLog(LineageBase.class.getName()); }
apache/tapestry-5
1,096
tapestry-ioc/src/test/java/org/apache/tapestry5/ioc/test/internal/MutlipleAutobuildServiceConstructorsModule.java
// Copyright 2007, 2010, 2011 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.ioc.test.internal; import org.apache.tapestry5.ioc.ServiceBinder; import org.apache.tapestry5.ioc.test.StringHolder; public class MutlipleAutobuildServiceConstructorsModule { public static void bind(ServiceBinder binder) { binder.bind(StringHolder.class, ToUpperCaseStringHolder.class).withSimpleId().preventReloading(); binder.bind(StringHolder.class, MultipleConstructorsAutobuildService.class).preventReloading(); } }
apache/tapestry-5
1,114
commons/src/main/java/org/apache/tapestry5/commons/internal/NullAnnotationProvider.java
// Copyright 2007 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.commons.internal; import java.lang.annotation.Annotation; import org.apache.tapestry5.commons.AnnotationProvider; /** * A null implementation of {@link AnnotationProvider}, used when there is not appropriate source of annotations. */ public class NullAnnotationProvider implements AnnotationProvider { /** * Always returns null. */ @Override public <T extends Annotation> T getAnnotation(Class<T> annotationClass) { return null; } }
apache/tomcat80
1,151
java/org/apache/jasper/el/JspMethodNotFoundException.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.jasper.el; import javax.el.MethodNotFoundException; public class JspMethodNotFoundException extends MethodNotFoundException { private static final long serialVersionUID = 1L; public JspMethodNotFoundException(String mark, MethodNotFoundException e) { super(mark + " " + e.getMessage(), e.getCause()); } }
apache/tomee
1,109
itests/openejb-itests-beans/src/main/java/org/apache/openejb/test/stateful/BasicStatefulLocalHome.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.stateful; /** * The local home interface for BasicStatefulPojoBean. * * @version $Rev$ $Date$ */ public interface BasicStatefulLocalHome extends jakarta.ejb.EJBLocalHome { public BasicStatefulLocalObject create(String name) throws jakarta.ejb.CreateException; }
apache/tomee
1,120
examples/testing-security-meta/src/main/java/org/superbiz/injection/secure/api/Metatype.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.superbiz.injection.secure.api; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; @Metatype @Target(ElementType.ANNOTATION_TYPE) @Retention(RetentionPolicy.RUNTIME) public @interface Metatype { }
apache/tomee
1,124
container/openejb-core/src/main/java/org/apache/openejb/config/PojoConfiguration.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.config; import java.util.Properties; public class PojoConfiguration { private final Properties properties; public PojoConfiguration(final Properties properties) { this.properties = properties; } public Properties getProperties() { return properties; } }
apache/tomee
1,137
container/openejb-jee/src/main/java/org/apache/openejb/jee/jba/cmp/package-info.java
/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ @jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter(value = jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter.class, type = String.class) @jakarta.xml.bind.annotation.XmlSchema(namespace = "http://jboss.org", elementFormDefault = jakarta.xml.bind.annotation.XmlNsForm.QUALIFIED) package org.apache.openejb.jee.jba.cmp;
apache/tomee
1,140
mp-jwt/src/main/java/org/apache/tomee/microprofile/jwt/cdi/DefaultLiteral.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.tomee.microprofile.jwt.cdi; import jakarta.enterprise.inject.Default; import jakarta.enterprise.util.AnnotationLiteral; public class DefaultLiteral extends AnnotationLiteral<Default> implements Default { public static final Default INSTANCE = new DefaultLiteral(); }
apache/uniffle
1,108
coordinator/src/main/java/org/apache/uniffle/coordinator/web/request/CancelDecommissionRequest.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.uniffle.coordinator.web.request; import java.util.Set; public class CancelDecommissionRequest { private Set<String> serverIds; public Set<String> getServerIds() { return serverIds; } public void setServerIds(Set<String> serverIds) { this.serverIds = serverIds; } }
apache/wicket
1,101
wicket-core-tests/src/test/java/org/apache/wicket/core/util/tester/apps_5/MockPageWithLink.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_5; import org.apache.wicket.markup.html.WebPage; /** * * * @author Frank Bille */ public class MockPageWithLink extends WebPage { private static final long serialVersionUID = 1L; /** * Construct. */ public MockPageWithLink() { } }
apache/wicket
1,105
wicket-core-tests/src/test/java/org/apache/wicket/markup/resolver/border/BaseBorder.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.resolver.border; import org.apache.wicket.markup.html.border.Border; /** * */ public class BaseBorder extends Border { private static final long serialVersionUID = 1L; /** * Construct. * * @param id */ public BaseBorder(String id) { super(id); } }
apache/zeppelin
1,112
zeppelin-server/src/main/java/org/apache/zeppelin/rest/message/RestartInterpreterRequest.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.zeppelin.rest.message; /** * RestartInterpreter rest api request message. */ public class RestartInterpreterRequest { private final String noteId; public RestartInterpreterRequest(String noteId) { this.noteId = noteId; } public String getNoteId() { return noteId; } }
apache/zookeeper
1,119
zookeeper-jute/src/main/java/org/apache/jute/compiler/JByte.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.jute.compiler; /** * */ public class JByte extends JType { /** * Creates a new instance of JByte. */ public JByte() { super("char", "int8_t", "byte", "byte", "Byte", "Byte", "byte", "toByte"); } public String getSignature() { return "b"; } }
google-research/project-guideline
1,091
project_guideline/android/java/com/google/research/guideline/classic/GuidelineClassicModule.java
// Copyright 2023 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. package com.google.research.guideline.classic; import androidx.fragment.app.Fragment; import com.google.research.guideline.inject.Qualifiers.GuidanceFragment; import dagger.Module; import dagger.Provides; import dagger.hilt.InstallIn; import dagger.hilt.components.SingletonComponent; @Module @InstallIn(SingletonComponent.class) interface GuidelineClassicModule { @Provides @GuidanceFragment static Fragment provideGuidelineClassicFragment() { return new GuidelineClassicFragment(); } }
google/binnavi
1,112
src/main/java/com/google/security/zynamics/binnavi/Gui/Database/IDatabaseSettingsPanelListener.java
// Copyright 2011-2016 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.security.zynamics.binnavi.Gui.Database; /** * Interface for classes that want to be notified about changes in the input panel. */ public interface IDatabaseSettingsPanelListener { /** * Invoked after the input to the panel changed. * * @param databaseSettingsPanel The panel whose input changed. * @param changed True, to signal that connection settings changed. False, otherwise. */ void changedConnectionSettings(CDatabaseSettingsPanel databaseSettingsPanel, boolean changed); }
google/binnavi
1,113
src/test/java/com/google/security/zynamics/binnavi/API/disassembly/MockTagListener.java
/* Copyright 2014 Google Inc. All Rights Reserved. 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.security.zynamics.binnavi.API.disassembly; import com.google.security.zynamics.binnavi.API.disassembly.ITagListener; import com.google.security.zynamics.binnavi.API.disassembly.Tag; public final class MockTagListener implements ITagListener { public String events = ""; @Override public void changedDescription(final Tag tag, final String description) { events += "changedDescription;"; } @Override public void changedName(final Tag tag, final String name) { events += "changedName;"; } }
google/binnavi
1,121
src/main/java/com/google/security/zynamics/binnavi/API/reil/mono/IInfluencingNode.java
// Copyright 2011-2016 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.security.zynamics.binnavi.API.reil.mono; // / @cond INTERNAL /** * Interface for influencing nodes. * * @param <GraphNode> Type of the nodes in the processed graph. * @param <ObjectType> Type of the additional objects that are passed around. */ // / @endcond public interface IInfluencingNode<GraphNode, ObjectType> extends com.google.security.zynamics.reil.algorithms.mono.interfaces.IInfluencingNode<GraphNode, ObjectType> { @Override GraphNode getNode(); @Override ObjectType getObject(); }
google/binnavi
1,143
src/main/java/com/google/security/zynamics/binnavi/API/debug/_Doc.java
// Copyright 2011-2016 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.security.zynamics.binnavi.API.debug; /** * \namespace com.google.security.zynamics.binnavi.API.debug \brief Contains classes to access the debugger * * The package com.google.security.zynamics.binnavi.API.debug contains classes that are used to access the available com.google.security.zynamics.binnavi * debuggers in a platform-independent way. Using the classes of this package scripts and plugins * can monitor and manipulate all aspects of target processes that are currently running in one of * the BinNavi debuggers. */
google/copybara
1,146
java/com/google/copybara/util/RepositoryUtil.java
/* * Copyright (C) 2018 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.util; import static com.google.copybara.exception.ValidationException.checkCondition; import com.google.copybara.exception.ValidationException; /** * Utilities for Repositories. */ public class RepositoryUtil { /** * Verify that a repo URL is not plain HTTP */ public static String validateNotHttp(String url) throws ValidationException { checkCondition(!url.startsWith("http://"), "URL '%s' is not valid - should be using https.", url); return url; } private RepositoryUtil() { } }
google/gdata-java-client
1,136
java/src/com/google/gdata/data/media/IMediaContent.java
/* Copyright (c) 2008 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.gdata.data.media; import com.google.gdata.data.IOutOfLineContent; /** * The IMediaContent interface defines the common interface for media content. * * */ public interface IMediaContent extends IOutOfLineContent { /** * Returns the media source associated with the content or {@code null}. */ public MediaSource getMediaSource(); /** * Sets the media source associated with the content (may be {@code null} * if no supplied content). */ public void setMediaSource(MediaSource v); }
google/j2cl
1,129
transpiler/javatests/com/google/j2cl/integration/java/multipleroottypes/Main.java
/* * Copyright 2015 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 multipleroottypes; /** * A class in the same package that refers to NonMainRootType. * <p> * The existence of this reference should cause an import for compilation unit *MainRootType*. */ public class Main extends NonMainRootType { public static void main(String... args) { @SuppressWarnings("unused") // If the type is not imported properly or is not imported at all then Closure compilation will // fail, causing the test definition to fail. NonMainRootType nonMainRootType = new NonMainRootType(); } }
google/j2objc
1,131
jre_emul/android/platform/libcore/json/src/main/java/org/json/Nullable.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.json; import static java.lang.annotation.ElementType.TYPE_USE; import static java.lang.annotation.RetentionPolicy.SOURCE; import java.lang.annotation.Retention; import java.lang.annotation.Target; // J2ObjC: stub version of the annotation used by org.json, so that package // can be built separately from jre_emul without changing how its doc pages // are generated. /** * Denotes that a type use can be a null. * * <p>This is a marker annotation and it has no specific attributes. */ @Retention(SOURCE) @Target({TYPE_USE}) @interface Nullable {}
google/walt
1,123
android/WALT/app/src/main/java/org/chromium/latency/walt/WaltConnection.java
/* * Copyright (C) 2016 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 org.chromium.latency.walt; import java.io.IOException; public interface WaltConnection { void connect(); boolean isConnected(); void sendByte(char c) throws IOException; int blockingRead(byte[] buffer); RemoteClockInfo syncClock() throws IOException; void updateLag(); void setConnectionStateListener(ConnectionStateListener connectionStateListener); interface ConnectionStateListener { void onConnect(); void onDisconnect(); } }
googleads/google-ads-java
1,077
google-ads-stubs-v19/src/main/java/com/google/ads/googleads/v19/services/GenerateInsightsFinderReportResponseOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/ads/googleads/v19/services/audience_insights_service.proto // Protobuf Java Version: 3.25.7 package com.google.ads.googleads.v19.services; public interface GenerateInsightsFinderReportResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v19.services.GenerateInsightsFinderReportResponse) com.google.protobuf.MessageOrBuilder { /** * <pre> * An HTTPS URL providing a deep link into the Insights Finder UI with the * report inputs filled in according to the request. * </pre> * * <code>string saved_report_url = 1;</code> * @return The savedReportUrl. */ java.lang.String getSavedReportUrl(); /** * <pre> * An HTTPS URL providing a deep link into the Insights Finder UI with the * report inputs filled in according to the request. * </pre> * * <code>string saved_report_url = 1;</code> * @return The bytes for savedReportUrl. */ com.google.protobuf.ByteString getSavedReportUrlBytes(); }
googleads/google-ads-java
1,077
google-ads-stubs-v20/src/main/java/com/google/ads/googleads/v20/services/GenerateInsightsFinderReportResponseOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/ads/googleads/v20/services/audience_insights_service.proto // Protobuf Java Version: 3.25.7 package com.google.ads.googleads.v20.services; public interface GenerateInsightsFinderReportResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v20.services.GenerateInsightsFinderReportResponse) com.google.protobuf.MessageOrBuilder { /** * <pre> * An HTTPS URL providing a deep link into the Insights Finder UI with the * report inputs filled in according to the request. * </pre> * * <code>string saved_report_url = 1;</code> * @return The savedReportUrl. */ java.lang.String getSavedReportUrl(); /** * <pre> * An HTTPS URL providing a deep link into the Insights Finder UI with the * report inputs filled in according to the request. * </pre> * * <code>string saved_report_url = 1;</code> * @return The bytes for savedReportUrl. */ com.google.protobuf.ByteString getSavedReportUrlBytes(); }
googleads/google-ads-java
1,077
google-ads-stubs-v21/src/main/java/com/google/ads/googleads/v21/services/GenerateInsightsFinderReportResponseOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/ads/googleads/v21/services/audience_insights_service.proto // Protobuf Java Version: 3.25.7 package com.google.ads.googleads.v21.services; public interface GenerateInsightsFinderReportResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v21.services.GenerateInsightsFinderReportResponse) com.google.protobuf.MessageOrBuilder { /** * <pre> * An HTTPS URL providing a deep link into the Insights Finder UI with the * report inputs filled in according to the request. * </pre> * * <code>string saved_report_url = 1;</code> * @return The savedReportUrl. */ java.lang.String getSavedReportUrl(); /** * <pre> * An HTTPS URL providing a deep link into the Insights Finder UI with the * report inputs filled in according to the request. * </pre> * * <code>string saved_report_url = 1;</code> * @return The bytes for savedReportUrl. */ com.google.protobuf.ByteString getSavedReportUrlBytes(); }
googleads/googleads-mobile-android-mediation
1,070
Example/snippets/src/main/java/com/google/ads/mediation/snippets/java/IronSourceMediationSnippets.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. */ package com.google.ads.mediation.snippets.java; import com.unity3d.mediation.LevelPlay; /** * Java code snippets for https://developers.google.com/admob/android/mediation/ironsource and * https://developers.google.com/ad-manager/mobile-ads-sdk/android/mediation/ironsource */ public class IronSourceMediationSnippets { private void setUserConsent() { // [START set_user_consent] LevelPlay.setMetaData("do_not_sell", "true"); // [END set_user_consent] } }
googleapis/google-cloud-java
1,030
java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/AccountAggregationOrBuilder.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/shopping/merchant/accounts/v1beta/accountservices.proto // Protobuf Java Version: 3.25.8 package com.google.shopping.merchant.accounts.v1beta; public interface AccountAggregationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.shopping.merchant.accounts.v1beta.AccountAggregation) com.google.protobuf.MessageOrBuilder {}
googleapis/google-cloud-java
1,044
java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DisableAdvancedSiteSearchResponseOrBuilder.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/discoveryengine/v1/site_search_engine_service.proto // Protobuf Java Version: 3.25.8 package com.google.cloud.discoveryengine.v1; public interface DisableAdvancedSiteSearchResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.DisableAdvancedSiteSearchResponse) com.google.protobuf.MessageOrBuilder {}
googleapis/google-cloud-java
1,046
java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/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/v1beta3/document_processor_service.proto // Protobuf Java Version: 3.25.8 package com.google.cloud.documentai.v1beta3; public interface SetDefaultProcessorVersionResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.documentai.v1beta3.SetDefaultProcessorVersionResponse) com.google.protobuf.MessageOrBuilder {}
googleapis/google-cloud-java
1,086
java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/testing/package-info.java
/* * Copyright 2016 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. */ /** * A testing helper for Google Translation. * * <p>A simple usage example: * * <p>Before the test: * * <pre>{@code * RemoteTranslateHelper helper = RemoteTranslateHelper.create(); * Translate translate = helper.getOptions().getService(); * }</pre> * * @see <a * href="https://github.com/googleapis/google-cloud-java/blob/master/TESTING.md#testing-code-that-uses-translate"> * Google Cloud Java tools for testing</a> */ package com.google.cloud.translate.testing;
googleapis/google-http-java-client
1,086
google-http-client-jackson2/src/test/java/com/google/api/client/json/jackson2/JacksonGeneratorTest.java
/* * Copyright (c) 2018 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.api.client.json.jackson2; import com.google.api.client.json.JsonGenerator; import com.google.api.client.test.json.AbstractJsonGeneratorTest; import java.io.IOException; import java.io.Writer; public class JacksonGeneratorTest extends AbstractJsonGeneratorTest { private static final JacksonFactory FACTORY = new JacksonFactory(); @Override protected JsonGenerator newGenerator(Writer writer) throws IOException { return FACTORY.createJsonGenerator(writer); } }
googlearchive/gwt-google-apis
1,104
gadgets/gadgets/src/com/google/gwt/gadgets/client/impl/DynamicHeightFeatureImpl.java
/* * Copyright 2010 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.gwt.gadgets.client.impl; import com.google.gwt.gadgets.client.DynamicHeightFeature; import com.google.gwt.user.client.ui.RootPanel; /** * Provides access to the dynamic height feature. */ public class DynamicHeightFeatureImpl implements DynamicHeightFeature { private DynamicHeightFeatureImpl() { } public native void adjustHeight() /*-{ $wnd.gadgets.window.adjustHeight(); }-*/; public RootPanel getContentDiv() { return RootPanel.get("__gwt_gadget_content_div"); } }
googlearchive/gwt-google-apis
1,121
gadgets/gadgets/src/com/google/gwt/gadgets/client/SetPrefsFeature.java
/* * Copyright 2010 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.gwt.gadgets.client; import com.google.gwt.gadgets.client.UserPreferences.Preference; /** * Provides access to the preference-saving API. */ public interface SetPrefsFeature { /** * Assign a new value to the specified preference. * * @param <T> the type of data encapsulated by the preference * @param pref a Preference object obtained from a subtype of * {@link UserPreferences} * @param value the new value to assign */ public <T> void set(Preference<T> pref, T value); }