repo_id stringclasses 875
values | size int64 974 38.9k | file_path stringlengths 10 308 | content stringlengths 974 38.9k |
|---|---|---|---|
google/guice | 1,148 | core/src/com/google/inject/spi/ExposedBinding.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.inject.spi;
import com.google.inject.Binder;
import com.google.inject.Binding;
/**
* A binding to a key exposed from an enclosed private environment.
*
* @author jessewilson@google.com (Jesse Wilson)
* @since 2.0
*/
public interface ExposedBinding<T> extends Binding<T>, HasDependencies {
/** Returns the enclosed environment that holds the original binding. */
PrivateElements getPrivateElements();
/** Unsupported. Always throws {@link UnsupportedOperationException}. */
@Override
void applyTo(Binder binder);
}
|
google/j2cl | 1,099 | transpiler/javatests/com/google/j2cl/integration/java/allsimplebridges/Tester369.java | /*
* Copyright 2017 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
*
* 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 allsimplebridges;
import static com.google.j2cl.integration.testing.Asserts.assertTrue;
import jsinterop.annotations.JsType;
public class Tester369 {
@JsType
static class C1<T> {
C1() {}
public String get(T value) {
return "C1.get";
}
}
@SuppressWarnings("unchecked")
static class C2 extends C1<String> {
C2() {}
}
@SuppressWarnings("unchecked")
public static void test() {
C2 s = new C2();
assertTrue(((C1) s).get("").equals("C1.get"));
}
}
|
google/j2cl | 1,122 | jre/javatests/com/google/j2cl/jre/java/nio/charset/StandardCharsetsTest.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 com.google.j2cl.jre.java.nio.charset;
import com.google.j2cl.jre.java.util.EmulTestBase;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;
/** Unit test for the {@link java.nio.charset.StandardCharsets} emulated class. */
public class StandardCharsetsTest extends EmulTestBase {
public void testIso88591() {
assertEquals(Charset.forName("ISO-8859-1"), StandardCharsets.ISO_8859_1);
}
public void testUtf8() {
assertEquals(Charset.forName("UTF-8"), StandardCharsets.UTF_8);
}
}
|
google/java-photoslibrary | 1,082 | photoslibraryapi/src/main/java/com/google/photos/library/v1/proto/LocationEnrichmentOrBuilder.java | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/photos/library/v1/photos_library.proto
package com.google.photos.library.v1.proto;
public interface LocationEnrichmentOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.photos.library.v1.LocationEnrichment)
com.google.protobuf.MessageOrBuilder {
/**
*
*
* <pre>
* Location for this enrichment item.
* </pre>
*
* <code>.google.photos.library.v1.Location location = 1;</code>
*
* @return Whether the location field is set.
*/
boolean hasLocation();
/**
*
*
* <pre>
* Location for this enrichment item.
* </pre>
*
* <code>.google.photos.library.v1.Location location = 1;</code>
*
* @return The location.
*/
com.google.photos.library.v1.proto.Location getLocation();
/**
*
*
* <pre>
* Location for this enrichment item.
* </pre>
*
* <code>.google.photos.library.v1.Location location = 1;</code>
*/
com.google.photos.library.v1.proto.LocationOrBuilder getLocationOrBuilder();
}
|
google/rejoiner | 1,129 | rejoiner/src/main/java/com/google/api/graphql/rejoiner/Mutation.java | // Copyright 2017 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.api.graphql.rejoiner;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
/** Annotation that marks mutation fields to be included in the root mutation object. */
@Retention(RetentionPolicy.RUNTIME)
public @interface Mutation {
/** Name of the Mutation, only used when annotating a method. */
String value() default "";
/**
* Full service name (including package) to be able to find appropriate metadata in generated
* descriptor set.
*/
String fullName() default "";
}
|
googleapis/google-cloud-java | 1,040 | java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RubricBasedInstructionFollowingSpecOrBuilder.java | /*
* Copyright 2025 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto
// Protobuf Java Version: 3.25.8
package com.google.cloud.aiplatform.v1beta1;
public interface RubricBasedInstructionFollowingSpecOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.RubricBasedInstructionFollowingSpec)
com.google.protobuf.MessageOrBuilder {}
|
hibernate/hibernate-demos | 1,094 | java9/spec-modularity-patterns/fieldreader-spec/src/main/java/fieldreader/spec/FieldReaderApi.java | package fieldreader.spec;
import java.util.ServiceLoader;
import fieldreader.spec.bootstrap.FieldReaderProvider;
import fieldreader.spec.bootstrap.FieldReaderProvider.PackageOpener;
public class FieldReaderApi {
private static final PackageOpener PACKAGE_OPENER = new PackageOpenerImpl();
public static FieldValueReader getFieldValueReader() {
ServiceLoader<FieldReaderProvider> loader = ServiceLoader.load( FieldReaderProvider.class );
return loader.findFirst()
.orElseThrow( () -> new IllegalStateException( "No provider of " + FieldReaderProvider.class.getName() + " available" ) )
.provideFieldValueReader( PACKAGE_OPENER );
}
private static class PackageOpenerImpl implements FieldReaderProvider.PackageOpener {
@Override
public void openPackageIfNeeded(Module targetModule, String targetPackage, Module specImplModule) {
if ( !targetModule.isOpen( targetPackage, specImplModule ) ) {
targetModule.addOpens( targetPackage, specImplModule );
}
}
}
}
|
hibernate/hibernate-orm | 1,043 | hibernate-community-dialects/src/test/java/org/hibernate/community/dialect/unit/sequence/DB2390SequenceInformationExtractorTest.java | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.community.dialect.unit.sequence;
import org.hibernate.community.dialect.DB2zLegacyDialect;
import org.hibernate.dialect.Dialect;
import org.hibernate.orm.test.dialect.unit.sequence.AbstractSequenceInformationExtractorTest;
import org.hibernate.tool.schema.extract.internal.SequenceInformationExtractorNoOpImpl;
import org.hibernate.tool.schema.extract.spi.SequenceInformationExtractor;
import org.hibernate.testing.orm.junit.JiraKey;
/**
* @author Andrea Boriero
*/
@JiraKey(value = "HHH-11470")
public class DB2390SequenceInformationExtractorTest extends AbstractSequenceInformationExtractorTest {
@Override
public Dialect getDialect() {
return new DB2zLegacyDialect();
}
@Override
public String expectedQuerySequencesString() {
return null;
}
@Override
public Class<? extends SequenceInformationExtractor> expectedSequenceInformationExtractor() {
return SequenceInformationExtractorNoOpImpl.class;
}
}
|
hibernate/hibernate-orm | 1,053 | hibernate-core/src/test/java/org/hibernate/orm/test/generatedkeys/selectannotated/MyEntity.java | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.orm.test.generatedkeys.selectannotated;
import jakarta.persistence.Entity;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
import org.hibernate.annotations.ColumnDefault;
import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.NaturalId;
import org.hibernate.id.SelectGenerator;
/**
* @author Steve Ebersole
*/
@Entity @Table(name="my_entity")
@GenericGenerator(name = "triggered", type = SelectGenerator.class)
public class MyEntity {
@Id @GeneratedValue(generator = "triggered")
@ColumnDefault("-666") //workaround for h2 'before insert' triggers being crap
private Long id;
@NaturalId
private String name;
public MyEntity() {
}
public MyEntity(String name) {
this.name = name;
}
public Long getId() {
return id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}
|
hibernate/hibernate-orm | 1,078 | hibernate-community-dialects/src/main/java/org/hibernate/community/dialect/GaussDBOrdinalEnumJdbcType.java | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.community.dialect;
import jakarta.persistence.EnumType;
import static org.hibernate.type.SqlTypes.NAMED_ORDINAL_ENUM;
/**
* Represents a named {@code enum} type on GaussDB.
* <p>
* Hibernate does <em>not</em> automatically use this for enums
* mapped as {@link EnumType#ORDINAL}, and
* instead this type must be explicitly requested using:
* <pre>
* @JdbcTypeCode(SqlTypes.NAMED_ORDINAL_ENUM)
* </pre>
*
* @see org.hibernate.type.SqlTypes#NAMED_ORDINAL_ENUM
* @see GaussDBDialect#getEnumTypeDeclaration(String, String[])
* @see GaussDBDialect#getCreateEnumTypeCommand(String, String[])
*
* @author liubao
*
* Notes: Original code of this class is based on PostgreSQLOrdinalEnumJdbcType.
*/
public class GaussDBOrdinalEnumJdbcType extends GaussDBEnumJdbcType {
public static final GaussDBOrdinalEnumJdbcType INSTANCE = new GaussDBOrdinalEnumJdbcType();
@Override
public int getDefaultSqlTypeCode() {
return NAMED_ORDINAL_ENUM;
}
}
|
hibernate/hibernate-orm | 1,090 | hibernate-core/src/test/java/org/hibernate/orm/test/annotations/lob/SerializableToImageType.java | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.orm.test.annotations.lob;
import java.io.Serializable;
import org.hibernate.type.AbstractSingleColumnStandardBasicType;
import org.hibernate.type.descriptor.java.SerializableJavaType;
import org.hibernate.type.descriptor.jdbc.LongVarbinaryJdbcType;
/**
* A type that maps JDBC {@link java.sql.Types#LONGVARBINARY LONGVARBINARY} and {@link Serializable}.
* </p>
* TODO : this should really have access to the actual Serializable class so we have access to the proper classloader
*
* @author Strong Liu
*/
public class SerializableToImageType extends AbstractSingleColumnStandardBasicType<Serializable> {
public static final PrimitiveCharacterArrayTextType INSTANCE = new PrimitiveCharacterArrayTextType();
public SerializableToImageType() {
super( LongVarbinaryJdbcType.INSTANCE, new SerializableJavaType<Serializable>( Serializable.class ) );
}
public String getName() {
// todo name these annotation types for addition to the registry
return null;
}
}
|
hibernate/hibernate-orm | 1,107 | hibernate-core/src/main/java/org/hibernate/annotations/NaturalIdCache.java | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.annotations;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
/**
* Specifies that mappings from the natural id values of the annotated
* entity to the corresponding entity id values should be cached in the
* shared second-level cache. This allows Hibernate to sometimes avoid
* round trip to the database when a cached entity is retrieved by its
* natural id.
* <p>
* This annotation is usually used in combination with {@link Cache},
* since a round trip may only be avoided if the entity itself is
* also available in the cache.
*
* @author Eric Dalquist
* @author Steve Ebersole
*
* @see NaturalId
*/
@Target(TYPE)
@Retention(RUNTIME)
public @interface NaturalIdCache {
/**
* Specifies an explicit cache region name.
* <p>
* By default, the region name is {@code EntityName##NaturalId}.
*/
String region() default "";
}
|
hibernate/hibernate-search | 1,052 | lucene-next/backend/lucene/src/main/java/org/hibernate/search/backend/lucene/lowlevel/reader/impl/IndexReaderProvider.java | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.search.backend.lucene.lowlevel.reader.impl;
import java.io.IOException;
import org.apache.lucene.index.DirectoryReader;
public interface IndexReaderProvider {
/**
* Closes and drops any cached resources (index readers in particular).
* <p>
* Should be used when stopping the index, to clean up upon error,
* or simply to force the creation of a new reader (refresh) on the next call to {@link #getOrCreate()}.
*/
void clear() throws IOException;
/**
* @return A ready-to-use index reader, with its reference count already increased.
* Callers are responsible for calling {@link DirectoryReader#decRef()} when they are done with the index reader.
* Callers <strong>must not</strong> call {@link DirectoryReader#close()},
* as the index reader may be shared.
*/
DirectoryReader getOrCreate() throws IOException;
default DirectoryReader getCurrentForTests() throws IOException {
return getOrCreate();
}
}
|
openjdk/apidiff | 1,171 | test/junit/toolbox/package-info.java | /*
* Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/**
* Utilities to assist in writing tests that generate and compile code,
* and related tasks.
*/
package toolbox;
|
openjdk/jdk8 | 1,116 | langtools/test/com/sun/javadoc/testRecurseSubPackages/pkg1/pkg2/packageToExclude/DummyClass.java | /*
* Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package pkg1.pkg2.packageToExclude;
public class DummyClass {}
|
openjdk/jdk8 | 1,138 | langtools/test/tools/javac/warnings/suppress/T6480588.java | /**
* @test /nodynamiccopyright/
* @bug 6470588
* @summary Verify that \\@SuppressWarnings("deprecation") works OK for all parts
* of class/method/field "header", including (declaration) annotations
* @build VerifySuppressWarnings
* @compile/ref=T6480588.out -XDrawDiagnostics -Xlint:unchecked,deprecation,cast T6480588.java
* @run main VerifySuppressWarnings T6480588.java
*/
@DeprecatedAnnotation
class T6480588 extends DeprecatedClass implements DeprecatedInterface {
@DeprecatedAnnotation
public DeprecatedClass method(DeprecatedClass param) throws DeprecatedClass {
DeprecatedClass lv = new DeprecatedClass();
@Deprecated
DeprecatedClass lvd = new DeprecatedClass();
return null;
}
@Deprecated
public void methodD() {
}
@DeprecatedAnnotation
DeprecatedClass field = new DeprecatedClass();
@DeprecatedAnnotation
class Inner extends DeprecatedClass implements DeprecatedInterface {
}
}
@Deprecated class DeprecatedClass extends Throwable { }
@Deprecated interface DeprecatedInterface { }
@Deprecated @interface DeprecatedAnnotation { }
|
openjdk/jdk8 | 1,155 | langtools/test/com/sun/javadoc/testTaglets/Child.java | /*
* Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
public class Child extends Parent {
/**
* {@inheritDoc}
*/
public void method(){}
}
|
openjdk/jdk8 | 1,160 | langtools/test/tools/javac/generics/6192945/Neg2.java | /*
* Copyright (c) 2006, 2007, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
public class Neg2<A extends D, D extends E, E extends B, B extends C, C extends C1, C1 extends B> {
}
|
openjdk/skara | 1,149 | webrev/src/main/java/org/openjdk/skara/webrev/FileView.java | /*
* Copyright (c) 2018, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package org.openjdk.skara.webrev;
interface FileView extends View {
Stats stats();
}
|
oracle/coherence | 1,088 | prj/test/functional/transformer/src/main/java/transformer/DistMapEventTransformerTests.java | /*
* Copyright (c) 2000, 2022, Oracle and/or its affiliates.
*
* Licensed under the Universal Permissive License v 1.0 as shown at
* https://oss.oracle.com/licenses/upl.
*/
package transformer;
import org.junit.BeforeClass;
/**
* A collection of functional tests for the MapEventTransformer functionality
* that use the "dist-std-test1" cache.
*
* @author gg 2008.03.14
*/
public class DistMapEventTransformerTests
extends AbstractMapEventTransformerTests
{
// ----- constructors ---------------------------------------------------
/**
* Default constructor.
*/
public DistMapEventTransformerTests()
{
super("dist-std-test1");
}
// ----- test lifecycle -------------------------------------------------
/**
* Initialize the test class.
*/
@BeforeClass
public static void _startup()
{
// this test requires local storage to be enabled
System.setProperty("coherence.distributed.localstorage", "true");
AbstractMapEventTransformerTests._startup();
}
}
|
oracle/coherence | 1,088 | prj/test/functional/transformer/src/main/java/transformer/NearMapEventTransformerTests.java | /*
* Copyright (c) 2000, 2022, Oracle and/or its affiliates.
*
* Licensed under the Universal Permissive License v 1.0 as shown at
* https://oss.oracle.com/licenses/upl.
*/
package transformer;
import org.junit.BeforeClass;
/**
* A collection of functional tests for the MapEventTransformer functionality
* that use the "near-std-test1" cache.
*
* @author gg 2008.03.14
*/
public class NearMapEventTransformerTests
extends AbstractMapEventTransformerTests
{
// ----- constructors ---------------------------------------------------
/**
* Default constructor.
*/
public NearMapEventTransformerTests()
{
super("near-std-test1");
}
// ----- test lifecycle -------------------------------------------------
/**
* Initialize the test class.
*/
@BeforeClass
public static void _startup()
{
// this test requires local storage to be enabled
System.setProperty("coherence.distributed.localstorage", "true");
AbstractMapEventTransformerTests._startup();
}
}
|
oracle/coherence | 1,109 | prj/test/functional/repository/src/main/java/repository/PeopleRepository.java | /*
* Copyright (c) 2000, 2022, Oracle and/or its affiliates.
*
* Licensed under the Universal Permissive License v 1.0 as shown at
* https://oss.oracle.com/licenses/upl.
*/
package repository;
import com.oracle.coherence.repository.AbstractRepository;
import com.oracle.coherence.repository.Accelerated;
import com.tangosol.net.NamedMap;
import data.repository.Person;
/**
* Simple test repository implementation.
*
* @author Aleks Seovic 2021.02.12
*/
@Accelerated
// tag::doc[]
public class PeopleRepository
extends AbstractRepository<String, Person>
{
private final NamedMap<String, Person> people;
public PeopleRepository(NamedMap<String, Person> people)
{
this.people = people;
}
protected NamedMap<String, Person> getMap() // <1>
{
return people;
}
protected String getId(Person person) // <2>
{
return person.getSsn();
}
protected Class<? extends Person> getEntityType() // <3>
{
return Person.class;
}
}
// end::doc[]
|
oracle/fastr | 1,114 | com.oracle.truffle.r.runtime/src/com/oracle/truffle/r/runtime/gnur/SA_TYPE.java | /*
* Copyright (c) 1995-2015, The R Core Team
* Copyright (c) 2003, The R Foundation
* Copyright (c) 2016, 2018, Oracle and/or its affiliates
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, a copy is available at
* https://www.R-project.org/Licenses/
*/
package com.oracle.truffle.r.runtime.gnur;
public enum SA_TYPE {
DEFAULT("default"),
NOSAVE("no"),
SAVE("yes"),
SAVEASK("ask");
private String name;
SA_TYPE(String name) {
this.name = name;
}
public String getName() {
return name;
}
}
|
oracle/oci-java-sdk | 1,113 | bmc-common/src/main/java/com/oracle/bmc/responses/internal/ForwardingAsyncHandler.java | /**
* Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved.
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
*/
package com.oracle.bmc.responses.internal;
import com.oracle.bmc.responses.AsyncHandler;
public class ForwardingAsyncHandler<REQUEST, RESPONSE> implements AsyncHandler<REQUEST, RESPONSE> {
private final AsyncHandler<REQUEST, RESPONSE> delegate;
@Override
public void onSuccess(REQUEST request, RESPONSE response) {
if (delegate != null) {
delegate.onSuccess(request, response);
}
}
@Override
public void onError(REQUEST request, Throwable error) {
if (delegate != null) {
delegate.onError(request, error);
}
}
@java.beans.ConstructorProperties({"delegate"})
public ForwardingAsyncHandler(final AsyncHandler<REQUEST, RESPONSE> delegate) {
this.delegate = delegate;
}
}
|
apache/commons-rdf | 1,127 | commons-rdf-jena/src/main/java/org/apache/commons/rdf/jena/JenaTriple.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.commons.rdf.jena;
/**
* A Jena-backed {@link org.apache.commons.rdf.api.Triple}.
* <p>
* The underlying Jena {@link org.apache.jena.graph.Triple} can be accessed with
* {@link #asJenaTriple()}.
* </p>
*/
public interface JenaTriple extends org.apache.commons.rdf.api.Triple, JenaTripleLike {
}
|
apache/cxf | 1,118 | systests/uncategorized/src/test/java/org/apache/cxf/systest/exception/GenericsEcho.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.cxf.systest.exception;
import jakarta.jws.WebService;
import org.apache.cxf.ext.logging.Logging;
@WebService(targetNamespace = "http://cxf.apache.org/test/HelloService", name = "HelloService")
@Logging
public interface GenericsEcho {
String echo(String request) throws GenericsException;
}
|
apache/cxf | 1,122 | rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/DatatypeFactoryTest.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.cxf.jaxb;
import org.junit.Assert;
import org.junit.Test;
public class DatatypeFactoryTest {
@Test
public void testNewFactory() throws Exception {
Class.forName("org.apache.cxf.jaxb.DatatypeFactory");
Assert.assertEquals("PT0S", DatatypeFactory.PT0S.toString());
}
}
|
apache/datafu | 1,128 | datafu-hourglass/src/test/java/datafu/hourglass/demo/NamedTool.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 datafu.hourglass.demo;
import org.apache.hadoop.util.Tool;
public interface NamedTool extends Tool
{
/**
* Get the name of the tool.
*
* @return tool name
*/
String getName();
/**
* Get description of what tool does.
*
* @return description
*/
String getDescription();
}
|
apache/directory-kerby | 1,091 | kerby-kerb/kerb-admin/src/main/java/org/apache/kerby/kerberos/kerb/admin/message/DeletePrincipalReq.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.kerby.kerberos.kerb.admin.message;
/**
* Delete principal request, to general admin message
*/
public class DeletePrincipalReq extends AdminReq {
public DeletePrincipalReq() {
super(AdminMessageType.DELETE_PRINCIPAL_REQ);
}
}
|
apache/directory-kerby | 1,108 | kerby-kerb/kerb-core/src/main/java/org/apache/kerby/kerberos/kerb/type/kdc/TgsRep.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.kerby.kerberos.kerb.type.kdc;
import org.apache.kerby.kerberos.kerb.type.base.KrbMessageType;
/**
TGS-REP ::= [APPLICATION 13] KDC-REP
*/
public class TgsRep extends KdcRep {
public TgsRep() {
super(KrbMessageType.TGS_REP);
}
}
|
apache/doris-manager | 1,096 | manager/manager/src/main/java/org/apache/doris/stack/model/request/construct/FileImportReq.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.doris.stack.model.request.construct;
import lombok.Data;
import java.util.List;
@Data
public class FileImportReq {
private String orginFileName;
private String name;
private List<String> columnNames;
private int fileId;
private String fileUuid;
}
|
apache/drill | 1,116 | contrib/storage-hive/core/src/test/java/org/apache/drill/exec/hive/HiveClusterTest.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.drill.exec.hive;
import org.apache.drill.test.ClusterTest;
import org.junit.BeforeClass;
/**
* Base class for Hive cluster tests.
*/
public class HiveClusterTest extends ClusterTest {
@BeforeClass
public static void checkJavaVersion() {
HiveTestUtilities.assumeJavaVersion();
}
}
|
apache/druid | 1,112 | processing/src/main/java/org/apache/druid/data/input/impl/prefetch/ObjectOpenFunction.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.druid.data.input.impl.prefetch;
import java.io.IOException;
import java.io.InputStream;
public interface ObjectOpenFunction<T>
{
InputStream open(T object) throws IOException;
default InputStream open(T object, long start) throws IOException
{
return open(object);
}
}
|
apache/druid | 1,126 | server/src/main/java/org/apache/druid/segment/loading/CacheEntryIdentifier.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.druid.segment.loading;
import org.apache.druid.annotations.SubclassesMustOverrideEqualsAndHashCode;
/**
* Common interface to specify a unique identifier of a {@link CacheEntry} for a {@link StorageLocation}
*/
@SubclassesMustOverrideEqualsAndHashCode
public interface CacheEntryIdentifier
{
}
|
apache/dubbo-hessian-lite | 1,098 | hessian-lite/src/main/java/com/alibaba/com/caucho/hessian/io/java8/ZonedDateTimeSerializer.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.alibaba.com.caucho.hessian.io.java8;
import com.alibaba.com.caucho.hessian.io.AbstractSerializer;
public class ZonedDateTimeSerializer<T> extends AbstractSerializer {
@Override
public Object writeReplace(Object obj) {
return new ZonedDateTimeHandle(obj);
}
}
|
apache/dubbo-samples | 1,083 | online_bontique_demo/common/src/main/java/org/apache/dubbo/shop/common/dto/request/CurrencyConversionRequest.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.dubbo.shop.common.dto.request;
import org.apache.dubbo.shop.common.pojo.Money;
import lombok.Data;
import java.io.Serializable;
@Data
public class CurrencyConversionRequest implements Serializable {
private Money from;
private String toCode;
}
|
apache/dubbo | 1,120 | dubbo-common/src/test/java/org/apache/dubbo/common/extension/ext4/NoUrlParamExt.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.dubbo.common.extension.ext4;
import org.apache.dubbo.common.extension.Adaptive;
import org.apache.dubbo.common.extension.SPI;
import java.util.List;
@SPI("impl1")
public interface NoUrlParamExt {
// method has no URL parameter
@Adaptive
String bark(String name, List<Object> list);
}
|
apache/eventmesh | 1,085 | eventmesh-trace-plugin/eventmesh-trace-api/src/main/java/org/apache/eventmesh/trace/api/exception/TraceException.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.eventmesh.trace.api.exception;
public class TraceException extends RuntimeException {
public TraceException(String message) {
super(message);
}
public TraceException(String message, Throwable cause) {
super(message, cause);
}
}
|
apache/eventmesh | 1,088 | eventmesh-metrics-plugin/eventmesh-metrics-api/src/main/java/org/apache/eventmesh/metrics/api/model/SyncMetric.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.eventmesh.metrics.api.model;
/**
* synchronization metric, all synchronization metrics should implement this interface.
*/
public interface SyncMetric<Instrument> extends Metric {
Instrument getInstrument();
void setInstrument(Instrument instrument);
}
|
apache/felix-dev | 1,041 | ipojo/handler/temporal/temporal-dependency-handler-it/src/it/temporal-it/src/main/java/org/apache/felix/ipojo/handler/temporal/services/CheckService.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.felix.ipojo.handler.temporal.services;
import java.util.Properties;
public interface CheckService {
public static final String foo = "foo";
public boolean check();
public Properties getProps();
}
|
apache/felix-dev | 1,043 | ipojo/runtime/core-it/ipojo-core-service-dependency-interceptor-test/src/main/java/org/apache/felix/ipojo/runtime/core/test/services/CheckService.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.felix.ipojo.runtime.core.test.services;
import java.util.Dictionary;
public interface CheckService {
public static final String foo = "foo";
public boolean check();
public Dictionary getProps();
}
|
apache/felix-dev | 1,061 | dependencymanager/org.apache.felix.dependencymanager.samples/src/org/apache/felix/dependencymanager/samples/hello/annot/ServiceProvider.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.felix.dependencymanager.samples.hello.annot;
/**
* The interface for our service provider.
*
* @author <a href="mailto:dev@felix.apache.org">Felix Project Team</a>
*/
public interface ServiceProvider {
public void hello();
}
|
apache/felix-dev | 1,082 | ipojo/runtime/core-it/ipojo-api-test/src/main/java/org/apache/felix/ipojo/runtime/core/api/components/MyServiceImpl.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.felix.ipojo.runtime.core.api.components;
import org.apache.felix.ipojo.runtime.core.api.services.MyService;
public class MyServiceImpl implements MyService {
public double compute(double value) {
return Math.exp(value * Math.cosh(value));
}
}
|
apache/felix-dev | 1,106 | systemready/src/test/java/org/apache/felix/systemready/osgi/examples/CompWithoutService.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.felix.systemready.osgi.examples;
import org.osgi.service.component.annotations.Component;
import org.osgi.service.component.annotations.Reference;
@Component(
name = "CompWithoutService"
)
public class CompWithoutService {
@Reference
Runnable dummy;
}
|
apache/felix-dev | 1,122 | framework/src/main/java/org/osgi/framework/BundleReference.java | /*
* Copyright (c) OSGi Alliance (2009, 2013). 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 org.osgi.framework;
import org.osgi.annotation.versioning.ProviderType;
/**
* A reference to a Bundle.
*
* @since 1.5
* @ThreadSafe
* @author $Id: ad4e0b99177540205a1a8f37f9075989434cc59f $
*/
@ProviderType
public interface BundleReference {
/**
* Returns the {@code Bundle} object associated with this
* {@code BundleReference}.
*
* @return The {@code Bundle} object associated with this
* {@code BundleReference}.
*/
public Bundle getBundle();
}
|
apache/fesod | 1,118 | fesod/src/test/java/org/apache/fesod/excel/repetition/RepetitionData.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.fesod.excel.repetition;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import org.apache.fesod.excel.annotation.ExcelProperty;
/**
*
*/
@Getter
@Setter
@EqualsAndHashCode
public class RepetitionData {
@ExcelProperty("字符串")
private String string;
}
|
apache/fineract | 1,104 | fineract-e2e-tests-runner/src/test/java/org/apache/fineract/test/config/TestCucumberConfiguration.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.fineract.test.config;
import io.cucumber.spring.CucumberContextConfiguration;
import org.springframework.test.context.ContextConfiguration;
@CucumberContextConfiguration
@ContextConfiguration(classes = TestApplicationConfiguration.class)
public class TestCucumberConfiguration {}
|
apache/flex-utilities | 1,087 | FlexPMD/flex-pmd-java/flex-pmd-command-line-api/src/test/java/com/adobe/ac/pmd/CommandLineOptionsTest.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.adobe.ac.pmd;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
public class CommandLineOptionsTest
{
@Test
public void testToString()
{
assertEquals( "outputDirectory",
CommandLineOptions.OUTPUT.toString() );
}
}
|
apache/flink-ml | 1,125 | flink-ml-lib/src/main/java/org/apache/flink/ml/feature/idf/IDFModelParams.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.flink.ml.feature.idf;
import org.apache.flink.ml.common.param.HasInputCol;
import org.apache.flink.ml.common.param.HasOutputCol;
/**
* Params for {@link IDFModel}.
*
* @param <T> The class type of this instance.
*/
public interface IDFModelParams<T> extends HasInputCol<T>, HasOutputCol<T> {}
|
apache/flink-ml | 1,125 | flink-ml-lib/src/main/java/org/apache/flink/ml/feature/lsh/LSHModelParams.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.flink.ml.feature.lsh;
import org.apache.flink.ml.common.param.HasInputCol;
import org.apache.flink.ml.common.param.HasOutputCol;
/**
* Params for {@link LSHModel}.
*
* @param <T> The class type of this instance.
*/
public interface LSHModelParams<T> extends HasInputCol<T>, HasOutputCol<T> {}
|
apache/geaflow | 1,092 | geaflow-console/app/common/dal/src/main/java/org/apache/geaflow/console/common/dal/entity/GraphEntity.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.geaflow.console.common.dal.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
@TableName("geaflow_graph")
public class GraphEntity extends DataEntity {
private String pluginConfigId;
}
|
apache/geaflow | 1,092 | geaflow-console/app/common/dal/src/main/java/org/apache/geaflow/console/common/dal/entity/TableEntity.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.geaflow.console.common.dal.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
@TableName("geaflow_table")
public class TableEntity extends DataEntity {
private String pluginConfigId;
}
|
apache/geode | 1,117 | geode-core/src/main/java/org/apache/geode/internal/cache/tier/sockets/MessageStats.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.geode.internal.cache.tier.sockets;
/**
* Statistics supported by cache/server Message.
*
* @since GemFire 5.0.2
*/
public interface MessageStats {
void incReceivedBytes(long v);
void incSentBytes(long v);
void incMessagesBeingReceived(int bytes);
void decMessagesBeingReceived(int bytes);
}
|
apache/geode | 1,119 | geode-junit/src/main/java/org/apache/geode/test/junit/rules/gfsh/DebuggableCommand.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.geode.test.junit.rules.gfsh;
public class DebuggableCommand {
final int debugPort;
final String command;
public DebuggableCommand(String command) {
this(command, -1);
}
public DebuggableCommand(String command, int debugPort) {
this.command = command;
this.debugPort = debugPort;
}
}
|
apache/geode | 1,122 | geode-core/src/main/java/org/apache/geode/distributed/internal/ConfigAttributeDesc.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.geode.distributed.internal;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
public @interface ConfigAttributeDesc {
String name();
}
|
apache/hadoop | 1,092 | hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/metrics/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.
*/
/**
* Report metrics for Router-based Federation.
*/
@InterfaceAudience.Private
@InterfaceStability.Evolving
package org.apache.hadoop.hdfs.server.federation.metrics;
import org.apache.hadoop.classification.InterfaceAudience;
import org.apache.hadoop.classification.InterfaceStability; |
apache/hadoop | 1,114 | hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/oncrpc/package-info.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* This package provides ONC RPC implementation with simple UDP/TCP
* Servers and clients.
*/
@InterfaceAudience.Private
@InterfaceStability.Evolving
package org.apache.hadoop.oncrpc;
import org.apache.hadoop.classification.InterfaceAudience;
import org.apache.hadoop.classification.InterfaceStability;
|
apache/hadoop | 1,126 | hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/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.
*/
/**
* S3A Filesystem. Except for the exceptions, it should
* all be hidden as implementation details.
*/
@InterfaceAudience.Private
@InterfaceStability.Evolving
package org.apache.hadoop.fs.s3a;
import org.apache.hadoop.classification.InterfaceAudience;
import org.apache.hadoop.classification.InterfaceStability;
|
apache/hama | 1,137 | core/src/main/java/org/apache/hama/bsp/sync/SyncException.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.hama.bsp.sync;
public class SyncException extends Exception {
/**
*
*/
private static final long serialVersionUID = 1L;
String info;
public SyncException(String info) {
super(); // call superclass constructor
this.info = info;
}
public String getError() {
return info;
}
}
|
apache/harmony | 1,111 | classlib/modules/jndi/src/main/java/org/apache/harmony/jndi/internal/parser/LdapParser.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.harmony.jndi.internal.parser;
import java.util.List;
import javax.naming.InvalidNameException;
/**
* Should be used when implementing a new Distinguished Name Parser
*/
public interface LdapParser {
public List getList() throws InvalidNameException;
}
|
apache/harmony | 1,111 | classlib/modules/pack200/src/main/java/org/apache/harmony/pack200/ConstantPoolEntry.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.harmony.pack200;
/**
* Abstract superclass for constant pool entries
*/
public abstract class ConstantPoolEntry {
private int index = -1;
public int getIndex() {
return index;
}
public void setIndex(int index) {
this.index = index;
}
}
|
apache/harmony | 1,132 | classlib/modules/awt/src/main/java/common/java/awt/print/Printable.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.
*/
/**
* @author Igor A. Pyankov
*/
package java.awt.print;
import java.awt.Graphics;
public interface Printable {
public static final int NO_SUCH_PAGE = 1;
public static final int PAGE_EXISTS = 0;
public abstract int print(Graphics g, PageFormat pageformat, int i)
throws PrinterException;
} |
apache/harmony | 1,132 | classlib/modules/rmi/src/main/java/java/rmi/StubNotFoundException.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 java.rmi;
public class StubNotFoundException extends RemoteException {
private static final long serialVersionUID = -7088199405468872373L;
public StubNotFoundException(String msg, Exception cause) {
super(msg, cause);
}
public StubNotFoundException(String msg) {
super(msg);
}
}
|
apache/hive | 1,147 | common/src/java/org/apache/hive/common/util/Ref.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.hive.common.util;
/** Reference to T. */
@SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD", justification = "Intentional exposure")
public final class Ref<T> {
public T value;
public Ref(T value) {
this.value = value;
}
public static <T> Ref<T> from(T t) {
return new Ref<T>(t);
}
}
|
apache/iggy | 1,137 | foreign/java/java-sdk/src/main/java/org/apache/iggy/NonNullApi.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.iggy;
import javax.annotation.Nonnull;
import javax.annotation.meta.TypeQualifierDefault;
import java.lang.annotation.*;
@Target(ElementType.PACKAGE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Nonnull
@TypeQualifierDefault({ElementType.METHOD, ElementType.PARAMETER})
public @interface NonNullApi {
}
|
apache/ignite-3 | 1,104 | modules/client-common/src/main/java/org/apache/ignite/internal/client/proto/TuplePart.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.ignite.internal.client.proto;
/**
* Defines tuple part to write or read - key, value, or both.
*/
public enum TuplePart {
/**
* Key columns.
*/
KEY,
/**
* Value columns.
*/
VAL,
/**
* Key and value columns.
*/
KEY_AND_VAL
}
|
apache/ignite-extensions | 1,103 | modules/ml-ext/ml/src/main/java/org/apache/ignite/ml/util/genetic/SelectionStrategy.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.ignite.ml.util.genetic;
/**
* Please, have a look at https://en.wikipedia.org/wiki/Selection_(genetic_algorithm).
*/
public enum SelectionStrategy {
/** Roulette wheel. */
ROULETTE_WHEEL,
/** Truncation. */
TRUNCATION,
/** Tournament. */
TOURNAMENT
}
|
apache/ignite | 1,079 | modules/core/src/test/java/org/apache/ignite/internal/processors/cache/distributed/dht/GridCacheDhtClientRemoveFailureTest.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.ignite.internal.processors.cache.distributed.dht;
/**
*
*/
public class GridCacheDhtClientRemoveFailureTest extends GridCacheDhtRemoveFailureTest {
/** {@inheritDoc} */
@Override protected boolean testClientNode() {
return true;
}
}
|
apache/incubator-brooklyn | 1,076 | brooklyn-library/software/messaging/src/main/java/org/apache/brooklyn/entity/messaging/kafka/KafkaZooKeeperDriver.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.brooklyn.entity.messaging.kafka;
import org.apache.brooklyn.entity.java.JavaSoftwareProcessDriver;
public interface KafkaZooKeeperDriver extends JavaSoftwareProcessDriver {
Integer getZookeeperPort();
void createTopic(String topic);
}
|
apache/incubator-gluten | 1,109 | backends-velox/src-iceberg-spark34/test/java/org/apache/gluten/sql/TestGlutenSelect.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.gluten.sql;
import org.apache.iceberg.spark.sql.TestSelect;
import java.util.Map;
public class TestGlutenSelect extends TestSelect {
public TestGlutenSelect(String catalogName, String implementation, Map<String, String> config) {
super(catalogName, implementation, config);
}
}
|
apache/incubator-hugegraph | 1,084 | hugegraph-server/hugegraph-test/src/main/java/org/apache/hugegraph/tinkerpop/ProcessTestGraphProvider.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.hugegraph.tinkerpop;
import java.io.IOException;
public class ProcessTestGraphProvider extends TestGraphProvider {
public static final String PROCESS = "process";
public ProcessTestGraphProvider() throws IOException {
super(PROCESS);
}
}
|
apache/incubator-kie-drools | 1,087 | drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/domain/SimpleFact.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.drools.ruleunits.impl.domain;
public class SimpleFact {
private final String stringValue;
public SimpleFact(final String stringValue) {
this.stringValue = stringValue;
}
public String getStringValue() {
return stringValue;
}
}
|
apache/incubator-kie-drools | 1,090 | drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/EventB.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.drools.testcoverage.common.model;
public class EventB extends EventA {
@Override
public String toString() {
return "EventB{" +
"timeValue=" + getTimeValue() +
", duration=" + getDuration() +
'}';
}
}
|
apache/incubator-kie-drools | 1,114 | drools-model/drools-canonical-model/src/main/java/org/drools/model/From5.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.drools.model;
import org.drools.model.functions.Function5;
public interface From5<A, B, C, D, E> extends From<A> {
Variable<B> getVariable2();
Variable<C> getVariable3();
Variable<D> getVariable4();
Variable<E> getVariable5();
Function5<A, B, C, D, E, ?> getProvider();
} |
apache/incubator-kie-kogito-apps | 1,076 | jobs-service/jobs-service-common/src/test/java/org/kie/kogito/jobs/service/resource/KeycloakJobServiceTest.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.kie.kogito.jobs.service.resource;
import io.quarkus.test.junit.QuarkusTest;
import io.quarkus.test.junit.TestProfile;
@QuarkusTest
@TestProfile(KeycloakQuarkusTestProfile.class)
public class KeycloakJobServiceTest extends BaseKeycloakJobServiceTest {
}
|
apache/incubator-kie-kogito-runtimes | 1,071 | kogito-workitems/kogito-rest-workitem/src/main/java/org/kogito/workitem/rest/auth/PasswordOAuth2AuthDecorator.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.kogito.workitem.rest.auth;
public class PasswordOAuth2AuthDecorator extends OAuth2AuthDecorator {
public PasswordOAuth2AuthDecorator(String tokenUrl, String refreshUrl) {
super(new PasswordOAuth2AuthToken(tokenUrl, refreshUrl));
}
}
|
apache/incubator-retired-wave | 1,095 | wave/src/main/java/org/waveprotocol/wave/client/wavepanel/view/ContinuationIndicatorView.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.client.wavepanel.view;
/**
* Represents an reply indicator associated with an inline thread.
*
*/
public interface ContinuationIndicatorView extends ThreadReplyIndicatorView,
IntrinsicContinuationIndicatorView {
InlineThreadView getParent();
}
|
apache/incubator-seata | 1,116 | server/src/main/java/org/apache/seata/server/store/SessionStorable.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.seata.server.store;
/**
* The interface Session storable.
*
*/
public interface SessionStorable {
/**
* Encode byte [ ].
*
* @return the byte [ ]
*/
byte[] encode();
/**
* Decode.
*
* @param src the src
*/
void decode(byte[] src);
}
|
apache/inlong | 1,086 | inlong-manager/manager-plugins/base/src/main/java/org/apache/inlong/manager/plugin/flink/dto/JarEntryInfo.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.inlong.manager.plugin.flink.dto;
import lombok.Data;
/**
* Jar entry info, including name, description.
*/
@Data
public class JarEntryInfo {
/**
* description
*/
private String description;
/**
* name
*/
private String name;
}
|
apache/inlong | 1,102 | inlong-sdk/transform-sdk/src/main/java/org/apache/inlong/sdk/transform/process/parser/ValueParser.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.inlong.sdk.transform.process.parser;
import org.apache.inlong.sdk.transform.decode.SourceData;
import org.apache.inlong.sdk.transform.process.Context;
/**
* ValueParser
*
*/
public interface ValueParser {
Object parse(SourceData sourceData, int rowIndex, Context context);
}
|
apache/iotdb | 1,058 | iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/compaction/execute/exception/CompactionTableSchemaNotMatchException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.iotdb.db.storageengine.dataregion.compaction.execute.exception;
public class CompactionTableSchemaNotMatchException extends RuntimeException {
public CompactionTableSchemaNotMatchException(String msg) {
super(msg);
}
}
|
apache/iotdb | 1,058 | iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/compaction/execute/exception/IllegalCompactionTaskSummaryException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.iotdb.db.storageengine.dataregion.compaction.execute.exception;
public class IllegalCompactionTaskSummaryException extends RuntimeException {
public IllegalCompactionTaskSummaryException(String msg) {
super(msg);
}
}
|
apache/iotdb | 1,089 | iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/expression/UnknownExpressionTypeException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.iotdb.db.queryengine.plan.expression;
public class UnknownExpressionTypeException extends IllegalArgumentException {
public UnknownExpressionTypeException(ExpressionType expressionType) {
super("Unsupported expression type: " + expressionType);
}
}
|
apache/iotdb | 1,097 | iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/exception/NoAvailableAINodeException.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.confignode.exception;
public class NoAvailableAINodeException extends ConfigNodeException {
public NoAvailableAINodeException() {
super(
"There are no available AINodes currently, please use \"show cluster\" to check the cluster status.");
}
}
|
apache/jclouds | 1,132 | apis/s3/src/main/java/org/jclouds/s3/functions/ObjectMetadataKey.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jclouds.s3.functions;
import jakarta.inject.Singleton;
import org.jclouds.s3.domain.ObjectMetadata;
import com.google.common.base.Function;
@Singleton
public class ObjectMetadataKey implements Function<Object, String> {
public String apply(Object from) {
return ((ObjectMetadata) from).getKey();
}
}
|
apache/jena | 1,139 | jena-core/src/main/java/org/apache/jena/rdf/model/ModelReader.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.rdf.model;
/**
A component interface used by ModelGetter for reading models.
*/
public interface ModelReader
{
/**
Read the contents of <code>URL</code> into <code>toRead</code> and
answer <code>toRead</code>,
*/
public Model readModel( Model toRead, String URL );
}
|
apache/jena | 1,141 | jena-arq/src/main/java/org/apache/jena/sparql/algebra/op/Op0.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.sparql.algebra.op;
import org.apache.jena.sparql.algebra.Op;
import org.apache.jena.sparql.algebra.Transform;
/** Super class for operators that do not combine other operators */
public abstract class Op0 extends OpBase
{
public abstract Op apply(Transform transform);
public abstract Op0 copy();
}
|
apache/kafka | 1,110 | clients/src/main/java/org/apache/kafka/clients/consumer/internals/NoAvailableBrokersException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.kafka.clients.consumer.internals;
import org.apache.kafka.common.errors.InvalidMetadataException;
/**
* No brokers were available to complete a request.
*/
public class NoAvailableBrokersException extends InvalidMetadataException {
private static final long serialVersionUID = 1L;
}
|
apache/karaf | 1,115 | shell/console/src/main/java/org/apache/karaf/shell/commands/ansi/SimpleAnsi.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.karaf.shell.commands.ansi;
@Deprecated
public class SimpleAnsi {
public static String COLOR_RED = "\u001b[31m";
public static String COLOR_DEFAULT = "\u001b[39m";
public static String INTENSITY_BOLD = "\u001b[1m";
public static String INTENSITY_NORMAL = "\u001b[22m";
}
|
apache/kylin | 1,120 | src/common-service/src/main/java/org/apache/kylin/rest/service/QuerySmartSupporter.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.kylin.rest.service;
import java.util.List;
import org.apache.kylin.common.extension.KylinExtension;
import org.apache.kylin.metadata.query.QueryHistory;
public interface QuerySmartSupporter extends KylinExtension {
void onMatchQueryHistory(String project, List<QueryHistory> queries);
}
|
apache/logging-log4j2 | 1,076 | log4j-core-test/src/test/java/org/apache/logging/log4j/core/appender/ConsoleAppenderJira1002ShortThrowableLayoutMain.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.appender;
/**
* Tests LOG4J2-1002.
*/
public class ConsoleAppenderJira1002ShortThrowableLayoutMain {
public static void main() {
ConsoleAppenderNoAnsiStyleLayoutMain.test("target/test-classes/log4j2-1002.xml");
}
}
|
apache/logging-log4j2 | 1,114 | log4j-core/src/main/java/org/apache/logging/log4j/core/appender/db/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.
*/
/**
* The classes in this package and sub packages provide appenders for various types of databases and methods for
* accessing databases.
*/
@Export
@Version("2.21.0")
package org.apache.logging.log4j.core.appender.db;
import org.osgi.annotation.bundle.Export;
import org.osgi.annotation.versioning.Version;
|
apache/manifoldcf | 1,089 | framework/connector-common/src/main/java/org/apache/manifoldcf/connectorcommon/jsongen/JSONDoubleReader.java | /* $Id$ */
/**
* 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.manifoldcf.connectorcommon.jsongen;
import java.io.*;
/** This class describes a JSON double reader. */
public class JSONDoubleReader extends JSONValueReader
{
public JSONDoubleReader(double value)
{
super(new StringReader(new Double(value).toString()));
}
}
|
apache/manifoldcf | 1,097 | framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/interfaces/JobDeleteRecord.java | /* $Id$ */
/**
* 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.manifoldcf.crawler.interfaces;
/** This class is a paper object which contains a job ID.
*/
public class JobDeleteRecord extends JobRecord
{
public static final String _rcsid = "@(#)$Id$";
/** Constructor.
*/
public JobDeleteRecord(Long jobID)
{
super(jobID);
}
}
|
apache/manifoldcf | 1,114 | connectors/filenet/build-stub/src/main/java/com/filenet/api/admin/ClassDefinition.java | /* $Id$ */
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.filenet.api.admin;
import com.filenet.api.collection.ClassDefinitionSet;
/** Stub interface to allow the connector to build fully.
*/
public interface ClassDefinition
{
public String get_SymbolicName();
public String get_DisplayName();
public ClassDefinitionSet get_ImmediateSubclassDefinitions();
}
|
apache/maven-plugins | 1,089 | maven-javadoc-plugin/src/it/projects/MJAVADOC-180/module1/src/main/java/edu/jhu/library/HelloWorld.java | package edu.jhu.library;
/*
* 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.
*/
/**
* Created by IntelliJ IDEA.
* User: esm
* Date: May 17, 2008
* Time: 11:26:25 AM
* To change this template use File | Settings | File Templates.
*/
public class HelloWorld
{
public String hello( String s )
{
return s;
}
}
|
apache/maven-plugins | 1,118 | maven-dependency-plugin/src/it/projects/analyze-report/src/main/java/Main.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.
*/
import org.apache.maven.artifact.Artifact;
import org.apache.maven.artifact.repository.metadata.Metadata;
import org.apache.maven.model.Model;
public class Main
{
public static final String SCOPE_COMPILE = Artifact.SCOPE_COMPILE;
public Model model = null;
public Metadata metadata = null;
}
|
apache/maven-surefire | 1,056 | surefire-its/src/test/resources/surefire-803-multiFailsafeExec-failureInFirst/src/main/java/org/apache/maven/surefire/test/App.java | package org.apache.maven.surefire.test;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
public class App
{
private String test = "value";
public String getTest()
{
return test;
}
public void setTest( final String test )
{
this.test = test;
}
}
|
apache/myfaces | 1,121 | impl/src/main/java/org/apache/myfaces/config/element/ClientBehaviorRenderer.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;
/**
* Config holder for <client-behavior-renderer> element.
*/
public abstract class ClientBehaviorRenderer implements Serializable
{
public abstract String getRendererClass();
public abstract String getRendererType();
} |
apache/nifi | 1,063 | nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-security/src/main/java/org/apache/nifi/web/security/jwt/revocation/JwtLogoutListener.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.nifi.web.security.jwt.revocation;
/**
* JSON Web Token Logout Listener
*/
public interface JwtLogoutListener {
/**
* Logout Bearer Token
*
* @param bearerToken Bearer Token
*/
void logout(String bearerToken);
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.