repo_id stringclasses 875
values | size int64 974 38.9k | file_path stringlengths 10 308 | content stringlengths 974 38.9k |
|---|---|---|---|
apache/tomee | 1,079 | container/openejb-jee/src/main/java/org/apache/openejb/jee/sun/LockWhenModified.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.openejb.jee.sun;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlType;
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "")
public class LockWhenModified {
}
|
apache/usergrid | 1,054 | stack/corepersistence/queryindex/src/main/java/org/apache/usergrid/persistence/index/IndexAlias.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.usergrid.persistence.index;
import java.io.Serializable;
/**
* Abstraction for Index alias names
*/
public interface IndexAlias extends Serializable{
public String getReadAlias();
public String getWriteAlias();
}
|
google/cel-java | 1,099 | parser/src/main/java/dev/cel/parser/CelParserFactory.java | // Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package dev.cel.parser;
import dev.cel.common.CelOptions;
/** Factory class for producing {@link CelParser} instances and builders. */
public final class CelParserFactory {
/**
* Configure a builder to construct a current {@code CelParser} instance.
*
* <p>Note, the {@link CelOptions#current} are enabled by default.
*/
public static CelParserBuilder standardCelParserBuilder() {
return CelParserImpl.newBuilder().setOptions(CelOptions.DEFAULT);
}
private CelParserFactory() {}
}
|
google/closure-compiler | 1,069 | src/com/google/javascript/jscomp/parsing/parser/trees/LiteralExpressionTree.java | /*
* Copyright 2011 The Closure Compiler Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.google.javascript.jscomp.parsing.parser.trees;
import com.google.javascript.jscomp.parsing.parser.Token;
import com.google.javascript.jscomp.parsing.parser.util.SourceRange;
public class LiteralExpressionTree extends ParseTree {
public final Token literalToken;
public LiteralExpressionTree(SourceRange location, Token literalToken) {
super(ParseTreeType.LITERAL_EXPRESSION, location);
this.literalToken = literalToken;
}
}
|
google/conscrypt | 1,066 | common/src/test/java/org/conscrypt/java/security/AlgorithmParameterGeneratorTestDSA.java | /*
* Copyright (C) 2009 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.conscrypt.java.security;
import java.security.spec.DSAParameterSpec;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
@RunWith(JUnit4.class)
public class AlgorithmParameterGeneratorTestDSA extends
AbstractAlgorithmParameterGeneratorTest {
public AlgorithmParameterGeneratorTestDSA() {
super("DSA", new AlgorithmParameterSignatureHelper<DSAParameterSpec>("DSA", DSAParameterSpec.class));
}
}
|
google/depan | 1,071 | DepanPlatformUI/prod/src/com/google/devtools/depan/platform/ViewerObjectToString.java | /*
* Copyright 2007 The Depan Project Authors
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
package com.google.devtools.depan.platform;
/**
* An interface to get a String from a given Object. Used to compare different
* objects with their String representation.
*
* @author ycoppel@google.com (Yohann Coppel)
*
*/
public interface ViewerObjectToString {
/**
* get a String for <code>object</code>
*
* @param object the object
* @return a String representation for <code>object</code>.
*/
public String getString(Object object);
}
|
google/guava | 1,106 | guava/src/com/google/common/cache/LongAddables.java | /*
* Copyright (C) 2012 The Guava Authors
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
package com.google.common.cache;
import com.google.common.annotations.GwtCompatible;
import java.util.concurrent.atomic.LongAdder;
/**
* Source of {@link LongAddable} objects that deals with GWT and all that.
*
* @author Louis Wasserman
*/
@GwtCompatible
final class LongAddables {
public static LongAddable create() {
return new JavaUtilConcurrentLongAdder();
}
private static final class JavaUtilConcurrentLongAdder extends LongAdder implements LongAddable {}
private LongAddables() {}
}
|
google/j2objc | 1,068 | translator/src/test/java/com/google/devtools/j2objc/gen/LiteralGeneratorTest.java | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.google.devtools.j2objc.gen;
import junit.framework.TestCase;
/**
* Tests for {@link LiteralGenerator}.
*
* @author Tom Ball, Keith Stanger
*/
public class LiteralGeneratorTest extends TestCase {
public void testBuildStringFromChars() {
String s = "a\uffffz";
String result = LiteralGenerator.buildStringFromChars(s);
assertEquals(
"[NSString stringWithCharacters:(unichar[]) "
+ "{ (int) 0x61, (int) 0xffff, (int) 0x7a } length:3]",
result);
}
}
|
google/j2objc | 1,096 | jre_emul/misc_tests/com/google/j2objc/java8/SmallTests.java | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.google.j2objc.java8;
import junit.framework.Test;
import junit.framework.TestSuite;
/**
* Returns a suite of all small tests in this package.
*/
public class SmallTests {
private static final Class<?>[] smallTestClasses = new Class[] {
CreationReferenceTest.class,
DefaultMethodsTest.class,
ExpressionMethodReferenceTest.class,
LambdaTest.class,
SuperMethodReferenceTest.class,
TypeMethodReferenceTest.class,
};
public static Test suite() {
return new TestSuite(smallTestClasses);
}
}
|
google/TestParameterInjector | 1,053 | junit4/src/main/java/com/google/testing/junit/testparameterinjector/TestParameterInjector.java | /*
* Copyright 2021 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.testing.junit.testparameterinjector;
import org.junit.runners.model.InitializationError;
/**
* A JUnit4 test runner which knows how to instantiate and run test classes where each test case may
* be parameterized with its own unique set of test parameters.
*/
public final class TestParameterInjector extends PluggableTestRunner {
public TestParameterInjector(Class<?> testClass) throws InitializationError {
super(testClass);
}
}
|
google/u2f-ref-code | 1,050 | u2f-ref-code/java/src/com/google/u2f/server/impl/attestation/android/Algorithm.java | package com.google.u2f.server.impl.attestation.android;
import java.security.cert.CertificateParsingException;
/**
* Keysmaster algorithm values as taken from: keymaster_defs.h / KeymasterDefs.java
*/
public enum Algorithm {
/* Asymmetric algorithms. */
KM_ALGORITHM_RSA(1, "rsa"),
KM_ALGORITHM_EC(3, "ec"),
/* Block ciphers algorithms */
KM_ALGORITHM_AES(32, "aes"),
/* MAC algorithms */
KM_ALGORITHM_HMAC(128, "hmac");
private final int value;
private final String description;
public static Algorithm fromValue(int value) throws CertificateParsingException {
for (Algorithm algorithm : Algorithm.values()) {
if (algorithm.getValue() == value) {
return algorithm;
}
}
throw new CertificateParsingException("Invalid algorithm value: " + value);
}
private Algorithm(int value, String description) {
this.value = value;
this.description = description;
}
public int getValue() {
return value;
}
@Override
public String toString() {
return description;
}
}
|
googleads/google-ads-java | 1,040 | google-ads-stubs-v19/src/main/java/com/google/ads/googleads/v19/common/AdAppDeepLinkAssetOrBuilder.java | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v19/common/ad_asset.proto
// Protobuf Java Version: 3.25.7
package com.google.ads.googleads.v19.common;
public interface AdAppDeepLinkAssetOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v19.common.AdAppDeepLinkAsset)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
* The Asset resource name of this app deep link asset.
* </pre>
*
* <code>optional string asset = 1;</code>
* @return Whether the asset field is set.
*/
boolean hasAsset();
/**
* <pre>
* The Asset resource name of this app deep link asset.
* </pre>
*
* <code>optional string asset = 1;</code>
* @return The asset.
*/
java.lang.String getAsset();
/**
* <pre>
* The Asset resource name of this app deep link asset.
* </pre>
*
* <code>optional string asset = 1;</code>
* @return The bytes for asset.
*/
com.google.protobuf.ByteString
getAssetBytes();
}
|
googleads/google-ads-java | 1,040 | google-ads-stubs-v20/src/main/java/com/google/ads/googleads/v20/common/AdAppDeepLinkAssetOrBuilder.java | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v20/common/ad_asset.proto
// Protobuf Java Version: 3.25.7
package com.google.ads.googleads.v20.common;
public interface AdAppDeepLinkAssetOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v20.common.AdAppDeepLinkAsset)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
* The Asset resource name of this app deep link asset.
* </pre>
*
* <code>optional string asset = 1;</code>
* @return Whether the asset field is set.
*/
boolean hasAsset();
/**
* <pre>
* The Asset resource name of this app deep link asset.
* </pre>
*
* <code>optional string asset = 1;</code>
* @return The asset.
*/
java.lang.String getAsset();
/**
* <pre>
* The Asset resource name of this app deep link asset.
* </pre>
*
* <code>optional string asset = 1;</code>
* @return The bytes for asset.
*/
com.google.protobuf.ByteString
getAssetBytes();
}
|
googleads/google-ads-java | 1,040 | google-ads-stubs-v21/src/main/java/com/google/ads/googleads/v21/common/AdAppDeepLinkAssetOrBuilder.java | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v21/common/ad_asset.proto
// Protobuf Java Version: 3.25.7
package com.google.ads.googleads.v21.common;
public interface AdAppDeepLinkAssetOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v21.common.AdAppDeepLinkAsset)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
* The Asset resource name of this app deep link asset.
* </pre>
*
* <code>optional string asset = 1;</code>
* @return Whether the asset field is set.
*/
boolean hasAsset();
/**
* <pre>
* The Asset resource name of this app deep link asset.
* </pre>
*
* <code>optional string asset = 1;</code>
* @return The asset.
*/
java.lang.String getAsset();
/**
* <pre>
* The Asset resource name of this app deep link asset.
* </pre>
*
* <code>optional string asset = 1;</code>
* @return The bytes for asset.
*/
com.google.protobuf.ByteString
getAssetBytes();
}
|
googlearchive/gwt-google-apis | 1,061 | gears/gears/src/com/google/gwt/gears/client/desktop/OpenFilesHandler.java | /*
* Copyright 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.gwt.gears.client.desktop;
/**
* A callback that asynchronously returns a list of open files.
*/
public interface OpenFilesHandler {
/**
* Encapsulates the parameters to the openFiles event.
*
*/
static class OpenFilesEvent {
private File[] files;
OpenFilesEvent(File[] files) {
this.files = files;
}
public File[] getFiles() {
return this.files;
}
}
void onOpenFiles(OpenFilesEvent event);
}
|
googleworkspace/java-samples | 1,090 | classroom/snippets/src/test/java/TestListCourses.java | // Copyright 2022 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.
import com.google.api.services.classroom.model.Course;
import java.io.IOException;
import java.security.GeneralSecurityException;
import java.util.List;
import org.junit.Assert;
import org.junit.Test;
// Unit test class for List Course classroom snippet
public class TestListCourses {
@Test
public void testListCourses() throws GeneralSecurityException, IOException {
List<Course> courses = ListCourses.listCourses();
Assert.assertTrue("No courses returned.", courses.size() > 0);
}
}
|
hibernate/hibernate-ogm | 1,058 | core/src/main/java/org/hibernate/ogm/jpa/impl/OgmPersisterClassResolverInitiator.java | /*
* Hibernate OGM, Domain model persistence for NoSQL datastores
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
package org.hibernate.ogm.jpa.impl;
import java.util.Map;
import org.hibernate.boot.registry.StandardServiceInitiator;
import org.hibernate.persister.spi.PersisterClassResolver;
import org.hibernate.service.spi.ServiceRegistryImplementor;
/**
* @author Emmanuel Bernard <emmanuel@hibernate.org>
*/
public class OgmPersisterClassResolverInitiator implements StandardServiceInitiator<PersisterClassResolver> {
public static final OgmPersisterClassResolverInitiator INSTANCE = new OgmPersisterClassResolverInitiator();
@Override
public Class<PersisterClassResolver> getServiceInitiated() {
return PersisterClassResolver.class;
}
@Override
public PersisterClassResolver initiateService(Map configurationValues, ServiceRegistryImplementor registry) {
return new OgmPersisterClassResolver();
}
}
|
hibernate/hibernate-ogm | 1,076 | core/src/main/java/org/hibernate/ogm/id/impl/OgmIdentityGenerator.java | /*
* Hibernate OGM, Domain model persistence for NoSQL datastores
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
package org.hibernate.ogm.id.impl;
import java.io.Serializable;
import org.hibernate.HibernateException;
import org.hibernate.engine.spi.SharedSessionContractImplementor;
import org.hibernate.id.IdentifierGenerator;
import org.hibernate.id.IdentifierGeneratorHelper;
/**
* An identifier generator which obtains ids assigned by the store implicitly during insertion.
*
* @author Gunnar Morling
*/
public class OgmIdentityGenerator implements IdentifierGenerator {
@Override
public Serializable generate(SharedSessionContractImplementor session, Object object) throws HibernateException {
// By returning this marker, the logic in ORM is advised to invoke the insert() method of the persister which
// does not expect an id to be present prior to insertion
return IdentifierGeneratorHelper.POST_INSERT_INDICATOR;
}
}
|
hibernate/hibernate-orm | 1,044 | hibernate-envers/src/test/java/org/hibernate/testing/envers/Strategy.java | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.testing.envers;
import org.hibernate.envers.strategy.internal.DefaultAuditStrategy;
import org.hibernate.envers.strategy.internal.ValidityAuditStrategy;
/**
* @author Chris Cranford
*/
public enum Strategy {
DEFAULT( "<strategy:default>", null, DefaultAuditStrategy.class ),
VALIDITY( "<strategy:validity>", ValidityAuditStrategy.class.getName(), ValidityAuditStrategy.class );
private final String displayName;
private final String settingValue;
private final Class<?> strategyClass;
Strategy(String displayName, String settingValue, Class<?> strategyClass) {
this.displayName = displayName;
this.settingValue = settingValue;
this.strategyClass = strategyClass;
}
public String getDisplayName() {
return displayName;
}
public String getSettingValue() {
return settingValue;
}
public boolean isStrategy(Class<?> strategyClass) {
return strategyClass.isAssignableFrom( this.strategyClass );
}
}
|
hibernate/hibernate-search | 1,033 | engine/src/main/java/org/hibernate/search/engine/search/predicate/dsl/impl/WildcardPredicateFieldStepImpl.java | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.search.engine.search.predicate.dsl.impl;
import java.util.Arrays;
import org.hibernate.search.engine.search.predicate.dsl.WildcardPredicateFieldMoreStep;
import org.hibernate.search.engine.search.predicate.dsl.WildcardPredicateFieldStep;
import org.hibernate.search.engine.search.predicate.dsl.spi.SearchPredicateDslContext;
public final class WildcardPredicateFieldStepImpl<SR>
implements WildcardPredicateFieldStep<SR, WildcardPredicateFieldMoreStep<SR, ?, ?>> {
private final WildcardPredicateFieldMoreStepImpl.CommonState<SR> commonState;
public WildcardPredicateFieldStepImpl(SearchPredicateDslContext<?> dslContext) {
this.commonState = new WildcardPredicateFieldMoreStepImpl.CommonState<>( dslContext );
}
@Override
public WildcardPredicateFieldMoreStep<SR, ?, ?> fields(String... fieldPaths) {
return new WildcardPredicateFieldMoreStepImpl<>( commonState, Arrays.asList( fieldPaths ) );
}
}
|
hibernate/hibernate-search | 1,037 | engine/src/main/java/org/hibernate/search/engine/common/schema/management/SchemaExport.java | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.search.engine.common.schema.management;
import java.nio.file.Path;
import org.hibernate.search.util.common.SearchException;
import org.hibernate.search.util.common.annotation.Incubating;
@Incubating
public interface SchemaExport {
/**
* Writes the content of this export to a directory on the filesystem.
*
* @param targetDirectory The target directory to generate the output into.
*/
void toFiles(Path targetDirectory);
/**
* Extends the export with the given extension,
* resulting in an extended export exposing more information.
*
* @param extension The extension to the export interface.
* @param <T> The type of export provided by the extension.
* @return The extended export.
* @throws SearchException If the extension cannot be applied (wrong underlying backend, ...).
*/
default <T> T extension(SchemaExportExtension<T> extension) {
return extension.extendOrFail( this );
}
}
|
hibernate/hibernate-search | 1,055 | v5migrationhelper/engine/src/main/java/org/hibernate/search/annotations/Index.java | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.search.annotations;
import org.hibernate.search.mapper.pojo.mapping.definition.annotation.FullTextField;
import org.hibernate.search.mapper.pojo.mapping.definition.annotation.GenericField;
import org.hibernate.search.mapper.pojo.mapping.definition.annotation.KeywordField;
/**
* Defines how an {@link org.apache.lucene.document.Field} should be indexed.
*
* @author Emmanuel Bernard
* @author Hardy Ferentschik
* @deprecated Use Hibernate Search 6's field annotations ({@link GenericField}, {@link KeywordField},
* {@link FullTextField}, ...)
* and enable/disable indexing with <code>{@link GenericField#searchable() @GenericField(searchable = Searchable.YES)}</code>
* instead.
*/
@Deprecated
public enum Index {
/**
* Index the field value.
*/
YES,
/**
* Do not index the field value. This field can thus not be searched,
* but one can still access its contents provided it is
* {@link Store stored}.
*/
NO
}
|
hibernate/hibernate-validator | 1,032 | engine/src/main/java/org/hibernate/validator/internal/util/actions/ConstructorInstance.java | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.validator.internal.util.actions;
import java.lang.invoke.MethodHandles;
import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
import org.hibernate.validator.internal.util.logging.Log;
import org.hibernate.validator.internal.util.logging.LoggerFactory;
/**
* Execute instance creation as privileged action.
*
* @author Emmanuel Bernard
* @author Hardy Ferentschik
*/
public final class ConstructorInstance {
private ConstructorInstance() {
}
private static final Log LOG = LoggerFactory.make( MethodHandles.lookup() );
public static <T> T action(Constructor<T> constructor, Object... initArgs) {
try {
return constructor.newInstance( initArgs );
}
catch (InstantiationException | IllegalAccessException | IllegalArgumentException | InvocationTargetException e) {
throw LOG.getUnableToInstantiateException( constructor.getDeclaringClass(), e );
}
}
}
|
hibernate2011/RosClient | 1,103 | app/src/main/java/com/jilk/ros/message/Log.java | /**
* Copyright (c) 2014 Jilk Systems, Inc.
*
* This file is part of the Java ROSBridge Client.
*
* The Java ROSBridge Client 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 3 of the License, or
* (at your option) any later version.
*
* The Java ROSBridge Client 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 the Java ROSBridge Client. If not, see http://www.gnu.org/licenses/.
*
*/
package com.jilk.ros.message;
@MessageType(string = "rosgraph_msgs/Log")
public class Log extends Message {
public Header header;
public byte level;
public String name;
public String msg;
public String file;
public String function;
public long line;
public String[] topics;
}
|
openjdk/jdk8 | 1,086 | langtools/test/tools/javac/generics/6711619/T6711619a.java | /*
* @test /nodynamiccopyright/
* @bug 6711619
*
* @summary javac doesn't allow access to protected members in intersection types
* @author Maurizio Cimadamore
*
* @compile/fail/ref=T6711619a.out -XDrawDiagnostics T6711619a.java
*/
class T6711619a {
static class A {
private void a() {}
private A a;
}
static class B extends A {
private B b() {}
private B b;
}
static interface I{
void i();
}
static interface I1{
void i1();
}
static class E extends B implements I, I1{
public void i() {}
public void i1() {}
}
static class C<W extends B & I1, T extends W>{
T t;
W w;
C(W w, T t) {
this.w = w;
this.t = t;
}
}
static void testMemberMethods(C<? extends A, ? extends I> arg) {
arg.t.a();
arg.t.b();
}
static void testMemberFields(C<? extends A, ? extends I> arg) {
A ta; B tb;
ta = arg.t.a;
tb = arg.t.b;
ta = arg.w.a;
tb = arg.w.b;
}
}
|
openjdk/jdk8 | 1,097 | jdk/test/java/net/URLClassLoader/closetest/test1/com/foo/TestClass1.java | /*
* Copyright (c) 2009, 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 com.foo;
public class TestClass1 {}
|
openjdk/jdk8 | 1,097 | jdk/test/java/net/URLClassLoader/closetest/test2/com/foo/TestClass1.java | /*
* Copyright (c) 2009, 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 com.foo;
public class TestClass1 {}
|
openjdk/jdk8 | 1,106 | langtools/test/tools/javac/generics/6372782/AdditionDefined.java | /*
* Copyright (c) 2006, 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 interface AdditionDefined<E extends Value> {
}
|
openjdk/jdk8 | 1,115 | langtools/test/tools/javac/ImportCycle/foo/Middle.java | /*
* Copyright (c) 1997, 2000, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package foo;
public interface Middle extends Bottom { }
|
openjdk/jdk8 | 1,124 | langtools/test/tools/javac/6948381/npe/B.java | /*
* Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package npe;
public interface B<T extends A & java.io.Serializable> {}
|
openjdk/jdk8 | 1,132 | langtools/test/tools/jdeps/e/E.java | /*
* Copyright (c) 2013, 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 e;
// use compact2
public class E extends java.rmi.RemoteException {
}
|
openjdk/jtreg | 1,112 | test/modlibs/testngAction/usermods/um1/module-info.java | /*
* Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
module um1 {
requires org.testng;
exports um1_p1;
}
|
openjdk/jtreg | 1,112 | test/modlibs/testngAction/usermods/um2/module-info.java | /*
* Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
module um2 {
requires org.testng;
exports um2_p1;
}
|
oracle-samples/oracle-db-examples | 1,047 | java/odsa-spring/src/main/java/com/oracle/dev/jdbc/odsa/spring/EmployeeNotFoundException.java | /*
Copyright (c) 2024, Oracle and/or its affiliates.
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.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package com.oracle.dev.jdbc.odsa.spring;
class EmployeeNotFoundException extends RuntimeException {
EmployeeNotFoundException(Long id) {
super("Could not find employee " + id);
}
} |
oracle/ai-optimizer | 1,046 | src/client/spring_ai/src/main/java/org/springframework/ai/openai/samples/helloworld/WebCorsConfig.java | /*
Copyright (c) 2024, 2025, Oracle and/or its affiliates.
Licensed under the Universal Permissive License v1.0 as shown at http://oss.oracle.com/licenses/upl.
*/
package org.springframework.ai.openai.samples.helloworld;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.CorsRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
@Configuration
public class WebCorsConfig {
@Bean
public WebMvcConfigurer corsConfigurer() {
return new WebMvcConfigurer() {
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**") // apply to all endpoints
.allowedOriginPatterns("*") // allow specific domain
.allowedMethods("GET", "POST", "PUT")
.allowedHeaders("*")
.allowCredentials(true);
}
};
}
}
|
oracle/coherence | 1,059 | prj/test/unit/coherence-tests/src/test/java/com/tangosol/net/ssl/AbstractKeyAndCertTest.java | /*
* Copyright (c) 2000, 2022, Oracle and/or its affiliates.
*
* Licensed under the Universal Permissive License v 1.0 as shown at
* http://oss.oracle.com/licenses/upl.
*/
package com.tangosol.net.ssl;
import com.oracle.bedrock.testsupport.MavenProjectFileUtils;
import org.junit.BeforeClass;
import com.oracle.coherence.testing.util.KeyTool;
import java.io.File;
/**
* A base class for tests requiring a simple self-signed key and cert.
*/
public class AbstractKeyAndCertTest
{
@BeforeClass
public static void setup() throws Exception
{
KeyTool.assertCanCreateKeys();
File fileBuild = MavenProjectFileUtils.locateBuildFolder(AbstractKeyAndCertTest.class);
s_caCert = KeyTool.createCACert(fileBuild,"test-ca", "PKCS12");
s_keyAndCert = KeyTool.createKeyCertPair(fileBuild, s_caCert, "test");
}
// ----- data members ---------------------------------------------------
protected static KeyTool.KeyAndCert s_caCert;
protected static KeyTool.KeyAndCert s_keyAndCert;
}
|
oracle/nosql | 1,095 | kvmain/src/main/java/oracle/kv/impl/sna/SNAFaultException.java | /*-
* Copyright (C) 2011, 2025 Oracle and/or its affiliates. All rights reserved.
*
* This file was distributed by Oracle as part of a version of Oracle NoSQL
* Database made available at:
*
* http://www.oracle.com/technetwork/database/database-technologies/nosqldb/downloads/index.html
*
* Please see the LICENSE file included in the top-level directory of the
* appropriate version of Oracle NoSQL Database for a copy of the license and
* additional information.
*/
package oracle.kv.impl.sna;
import java.io.DataInput;
import java.io.IOException;
import oracle.kv.impl.fault.InternalFaultException;
/**
* Subclass of InternalFaultException used to indicate that the fault
* originated in the SNA when satisfying an SNA service request.
*/
public class SNAFaultException extends InternalFaultException {
private static final long serialVersionUID = 1L;
public SNAFaultException(Throwable cause) {
super(cause);
}
public SNAFaultException(DataInput in, short serialVersion)
throws IOException
{
super(in, serialVersion);
}
}
|
apache/commons-io | 1,097 | src/main/java/org/apache/commons/io/file/DeleteOption.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.commons.io.file;
/**
* An object that configures how to delete a file.
*
* <p>
* The {@link StandardDeleteOption} enumeration type defines our standard options.
* </p>
*
* @see StandardDeleteOption
* @since 2.8.0
*/
public interface DeleteOption {
// empty
}
|
apache/ctakes | 1,057 | ctakes-dictionary-lookup/src/main/java/org/apache/ctakes/dictionary/lookup/filter/PostLookupFilter.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.ctakes.dictionary.lookup.filter;
import org.apache.ctakes.dictionary.lookup.MetaDataHit;
/**
*
* @author Mayo Clinic
*/
public interface PostLookupFilter
{
public boolean contains(MetaDataHit mdh) throws FilterException;
}
|
apache/cxf | 1,077 | services/wsn/wsn-api/src/main/java/org/apache/cxf/wsn/wsdl/WSNWSDLLocator.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.wsn.wsdl;
import java.net.URL;
/**
*
*/
public final class WSNWSDLLocator {
private WSNWSDLLocator() {
//utility class
}
public static URL getWSDLUrl() {
return WSNWSDLLocator.class.getResource("wsn.wsdl");
}
}
|
apache/cxf | 1,088 | rt/ws/policy/src/main/java/org/apache/cxf/ws/policy/PolicyBean.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.ws.policy;
import org.w3c.dom.Element;
/**
*
*/
public class PolicyBean {
private Element element;
public Element getElement() {
return element;
}
public void setElement(Element element) {
this.element = element;
}
}
|
apache/deltaspike | 1,033 | deltaspike/core/impl/obsolete/src/test/java/org/apache/deltaspike/test/core/api/alternative/global/qualifier/BaseBeanB2.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.deltaspike.test.core.api.alternative.global.qualifier;
import jakarta.enterprise.context.Dependent;
/**
*
*/
@Dependent
@QualifierB(QualifierValue2.class)
public class BaseBeanB2 implements BaseInterface
{
}
|
apache/directory-kerby | 1,072 | kerby-pkix/src/main/java/org/apache/kerby/cms/type/DigestAlgorithmIdentifiers.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.cms.type;
import org.apache.kerby.asn1.type.Asn1SetOf;
/**
* DigestAlgorithmIdentifiers ::= SET OF DigestAlgorithmIdentifier
*/
public class DigestAlgorithmIdentifiers extends Asn1SetOf<DigestAlgorithmIdentifier> {
}
|
apache/dolphinscheduler | 1,051 | dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/dto/resources/filter/IFilter.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.dolphinscheduler.api.dto.resources.filter;
import org.apache.dolphinscheduler.plugin.storage.api.StorageEntity;
import java.util.List;
/**
* interface filter
*/
public interface IFilter {
List<StorageEntity> filter();
}
|
apache/drill | 1,085 | exec/vector/src/main/java/org/apache/drill/exec/vector/accessor/ObjectType.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.vector.accessor;
/**
* Type of writer. Follows the JSON-style model, with the
* most abstract object types being a scalar (primitive),
* tuple (map or row) or an array (repeated type.)
*/
public enum ObjectType {
SCALAR, TUPLE, ARRAY, VARIANT
}
|
apache/druid | 1,070 | processing/src/main/java/org/apache/druid/segment/writeout/HeapByteBufferWriteOutBytes.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.writeout;
import java.nio.ByteBuffer;
public final class HeapByteBufferWriteOutBytes extends ByteBufferWriteOutBytes
{
@Override
protected ByteBuffer allocateBuffer()
{
return ByteBuffer.allocate(BUFFER_SIZE);
}
}
|
apache/druid | 1,076 | server/src/main/java/org/apache/druid/server/coordinator/loading/LoadPeonCallback.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.server.coordinator.loading;
/**
* Callback executed when the load or drop of a segment completes on a server
* either with success or failure.
*/
@FunctionalInterface
public interface LoadPeonCallback
{
void execute(boolean success);
}
|
apache/druid | 1,089 | processing/src/main/java/org/apache/druid/guice/KeyHolder.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.guice;
import com.google.inject.Key;
/**
*/
public class KeyHolder<T>
{
private final Key<? extends T> key;
public KeyHolder(
Key<? extends T> key
)
{
this.key = key;
}
public Key<? extends T> getKey()
{
return key;
}
}
|
apache/dubbo-go-hessian2 | 1,093 | test_hessian/src/test/java/unit/GoStringTest.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package unit;
import junit.framework.Assert;
import org.junit.Test;
/**
* @author wongoo
*/
public class GoStringTest {
@Test
public void testHelloWordString() {
Assert.assertEquals("hello world"
, GoTestUtil.readGoObject("HelloWorldString"));
}
}
|
apache/dubbo | 1,058 | dubbo-config/dubbo-config-spring6/src/test/java/org/apache/dubbo/config/spring6/utils/SexEnum.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.config.spring6.utils;
public enum SexEnum {
BOY("boy"),
GIRL("girl");
private final String desc;
SexEnum(String desc) {
this.desc = desc;
}
public String getDesc() {
return desc;
}
}
|
apache/dubbo | 1,061 | dubbo-metadata/dubbo-metadata-processor/src/test/java/org/apache/dubbo/metadata/tools/Ancestor.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.metadata.tools;
import java.io.Serializable;
public class Ancestor implements Serializable {
private boolean z;
public boolean isZ() {
return z;
}
public void setZ(boolean z) {
this.z = z;
}
}
|
apache/dubbo | 1,070 | dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/mock/MockStatusChecker.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.config.mock;
import org.apache.dubbo.common.status.Status;
import org.apache.dubbo.common.status.StatusChecker;
public class MockStatusChecker implements StatusChecker {
@Override
public Status check() {
return null;
}
}
|
apache/dubbo | 1,072 | dubbo-common/src/test/java/org/apache/dubbo/common/extension/director/impl/TestAppProvider.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.director.impl;
import org.apache.dubbo.common.URL;
import org.apache.dubbo.common.extension.director.FooAppProvider;
public class TestAppProvider implements FooAppProvider {
@Override
public void process(URL url) {}
}
|
apache/flex-blazeds | 1,093 | core/src/main/java/flex/messaging/cluster/ClusterException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package flex.messaging.cluster;
import flex.messaging.MessageException;
/**
* Exception type for cluster errors.
*/
public class ClusterException extends MessageException {
/**
* Serializable version uid.
*/
static final long serialVersionUID = 1948590697997522770L;
}
|
apache/fluss | 1,084 | fluss-common/src/main/java/org/apache/fluss/row/columnar/DecimalColumnVector.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.fluss.row.columnar;
import org.apache.fluss.annotation.Internal;
import org.apache.fluss.row.Decimal;
/** Decimal column vector. */
@Internal
public interface DecimalColumnVector extends ColumnVector {
Decimal getDecimal(int i, int precision, int scale);
}
|
apache/geaflow | 1,046 | geaflow/geaflow-dsl/geaflow-dsl-common/src/main/java/org/apache/geaflow/dsl/common/descriptor/NodeDescriptor.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.dsl.common.descriptor;
public class NodeDescriptor {
public String id;
public String type;
public NodeDescriptor(String id, String type) {
this.id = id;
this.type = type;
}
}
|
apache/geaflow | 1,053 | geaflow-console/app/common/dal/src/main/java/org/apache/geaflow/console/common/dal/mapper/IdEntityMapper.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.mapper;
import org.apache.geaflow.console.common.dal.entity.IdEntity;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface IdEntityMapper extends GeaflowBaseMapper<IdEntity> {
}
|
apache/geaflow | 1,054 | geaflow/geaflow-state/geaflow-state-strategy/src/main/java/org/apache/geaflow/state/action/BaseAction.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.state.action;
public abstract class BaseAction implements IAction {
protected StateActionContext context;
@Override
public void init(StateActionContext context) {
this.context = context;
}
}
|
apache/geaflow | 1,056 | geaflow-console/app/common/dal/src/main/java/org/apache/geaflow/console/common/dal/mapper/AuditMapper.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.mapper;
import org.apache.geaflow.console.common.dal.entity.AuditEntity;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface AuditMapper extends GeaflowBaseMapper<AuditEntity> {
}
|
apache/geaflow | 1,056 | geaflow-console/app/common/dal/src/main/java/org/apache/geaflow/console/common/dal/mapper/FieldMapper.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.mapper;
import org.apache.geaflow.console.common.dal.entity.FieldEntity;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface FieldMapper extends GeaflowBaseMapper<FieldEntity> {
}
|
apache/geaflow | 1,056 | geaflow-console/app/common/dal/src/main/java/org/apache/geaflow/console/common/dal/mapper/GraphMapper.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.mapper;
import org.apache.geaflow.console.common.dal.entity.GraphEntity;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface GraphMapper extends GeaflowBaseMapper<GraphEntity> {
}
|
apache/geaflow | 1,056 | geaflow-console/app/common/dal/src/main/java/org/apache/geaflow/console/common/dal/mapper/TableMapper.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.mapper;
import org.apache.geaflow.console.common.dal.entity.TableEntity;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface TableMapper extends GeaflowBaseMapper<TableEntity> {
}
|
apache/geode | 1,062 | geode-core/src/main/java/org/apache/geode/internal/monitoring/executor/ServerConnectionExecutorGroup.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional information regarding
* copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License. You may obtain a
* copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.monitoring.executor;
public class ServerConnectionExecutorGroup extends SuspendableExecutor {
public static final String GROUP_NAME = "ServerConnectionExecutor";
public ServerConnectionExecutorGroup() {
super(GROUP_NAME);
}
}
|
apache/gobblin | 1,084 | gobblin-test-utils/src/main/java/org/apache/gobblin/test/TestRecord.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.gobblin.test;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;
/**
* A Test record
*/
@Getter
@ToString
@AllArgsConstructor
public class TestRecord {
private int partition;
private long sequence;
private String payload;
}
|
apache/hadoop-common | 1,047 | hadoop-mapreduce-project/hadoop-mapreduce-examples/src/main/java/org/apache/hadoop/examples/pi/Container.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.hadoop.examples.pi;
/**
* A class is a Container if it contains an element.
* @param <T> The generic type
*/
public interface Container<T> {
/**
* @return The contained element.
*/
public T getElement();
} |
apache/hadoop | 1,065 | hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/token/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.
*/
/**
* Support for delegation tokens.
*/
@InterfaceAudience.Public
@InterfaceStability.Evolving
package org.apache.hadoop.security.token;
import org.apache.hadoop.classification.InterfaceAudience;
import org.apache.hadoop.classification.InterfaceStability;
|
apache/hadoop | 1,066 | hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/metrics2/impl/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.
*/
/**
* A metrics system implementation
*/
@InterfaceAudience.Private
@InterfaceStability.Evolving
package org.apache.hadoop.metrics2.impl;
import org.apache.hadoop.classification.InterfaceAudience;
import org.apache.hadoop.classification.InterfaceStability; |
apache/hadoop | 1,067 | hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/http/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.
*/
/**
* Filters for HTTP service security.
*/
@InterfaceAudience.Public
@InterfaceStability.Evolving
package org.apache.hadoop.security.http;
import org.apache.hadoop.classification.InterfaceAudience;
import org.apache.hadoop.classification.InterfaceStability; |
apache/harmony | 1,070 | classlib/modules/accessibility/src/main/java/javax/accessibility/AccessibleStreamable.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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 Dennis Ushakov
*/
package javax.accessibility;
import java.awt.datatransfer.DataFlavor;
import java.io.InputStream;
public interface AccessibleStreamable {
DataFlavor[] getMimeTypes();
InputStream getStream(DataFlavor flavor);
}
|
apache/hbase | 1,094 | hbase-common/src/test/java/org/apache/hadoop/hbase/util/TestBytes.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.hadoop.hbase.util;
import org.apache.hadoop.hbase.testclassification.MiscTests;
import org.apache.hadoop.hbase.testclassification.SmallTests;
import org.junit.jupiter.api.Tag;
@Tag(MiscTests.TAG)
@Tag(SmallTests.TAG)
public class TestBytes extends BytesTestBase {
}
|
apache/hive | 1,100 | jdbc/src/java/org/apache/hive/jdbc/HttpResponseInterceptorBase.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.jdbc;
import org.apache.http.HttpResponseInterceptor;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public abstract class HttpResponseInterceptorBase implements HttpResponseInterceptor {
protected final Logger LOG = LoggerFactory.getLogger(getClass());
}
|
apache/hudi | 1,059 | hudi-flink-datasource/hudi-flink1.17.x/src/main/java/org/apache/hudi/adapter/RichSourceFunctionAdapter.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.hudi.adapter;
import org.apache.flink.streaming.api.functions.source.RichSourceFunction;
/**
* Adapter clazz for {@link RichSourceFunction}.
*/
public abstract class RichSourceFunctionAdapter<OUT> extends RichSourceFunction<OUT> {
}
|
apache/hudi | 1,059 | hudi-flink-datasource/hudi-flink1.18.x/src/main/java/org/apache/hudi/adapter/RichSourceFunctionAdapter.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.hudi.adapter;
import org.apache.flink.streaming.api.functions.source.RichSourceFunction;
/**
* Adapter clazz for {@link RichSourceFunction}.
*/
public abstract class RichSourceFunctionAdapter<OUT> extends RichSourceFunction<OUT> {
}
|
apache/hudi | 1,059 | hudi-flink-datasource/hudi-flink1.19.x/src/main/java/org/apache/hudi/adapter/RichSourceFunctionAdapter.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.hudi.adapter;
import org.apache.flink.streaming.api.functions.source.RichSourceFunction;
/**
* Adapter clazz for {@link RichSourceFunction}.
*/
public abstract class RichSourceFunctionAdapter<OUT> extends RichSourceFunction<OUT> {
}
|
apache/hudi | 1,059 | hudi-flink-datasource/hudi-flink1.20.x/src/main/java/org/apache/hudi/adapter/RichSourceFunctionAdapter.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.hudi.adapter;
import org.apache.flink.streaming.api.functions.source.RichSourceFunction;
/**
* Adapter clazz for {@link RichSourceFunction}.
*/
public abstract class RichSourceFunctionAdapter<OUT> extends RichSourceFunction<OUT> {
}
|
apache/hudi | 1,074 | hudi-sync/hudi-hive-sync/src/main/java/org/apache/hudi/hive/HoodieHiveSyncException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.hudi.hive;
public class HoodieHiveSyncException extends RuntimeException {
public HoodieHiveSyncException(String message) {
super(message);
}
public HoodieHiveSyncException(String message, Throwable t) {
super(message, t);
}
}
|
apache/ignite-3 | 1,055 | modules/sql-engine/src/integrationTest/java/org/apache/ignite/internal/sql/sqllogic/ItSqlLogic2Test.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.sql.sqllogic;
/**
* Test suite to run SQL test scripts.
*
* @see ItSqlLogicTest
*/
@SqlLogicTestEnvironment(scriptsRoot = "src/integrationTest/sql/group2")
public class ItSqlLogic2Test extends ItSqlLogicTest {
}
|
apache/ignite-3 | 1,055 | modules/sql-engine/src/integrationTest/java/org/apache/ignite/internal/sql/sqllogic/ItSqlLogic3Test.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.sql.sqllogic;
/**
* Test suite to run SQL test scripts.
*
* @see ItSqlLogicTest
*/
@SqlLogicTestEnvironment(scriptsRoot = "src/integrationTest/sql/group3")
public class ItSqlLogic3Test extends ItSqlLogicTest {
}
|
apache/ignite | 1,068 | modules/core/src/main/java/org/apache/ignite/internal/processors/rest/IgniteRestProcessor.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.rest;
import org.apache.ignite.internal.processors.GridProcessor;
/**
* REST processor marker interface.
*
* @see GridRestProcessor
*/
public interface IgniteRestProcessor extends GridProcessor {
// No-op.
}
|
apache/ignite | 1,071 | modules/core/src/main/java/org/apache/ignite/internal/util/lang/IgniteThrowableRunner.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.util.lang;
import org.apache.ignite.IgniteCheckedException;
/**
* Represents a throwable runner.
*/
public interface IgniteThrowableRunner {
/**
* Execute a body.
*/
void run() throws IgniteCheckedException;
}
|
apache/incubator-hugegraph-toolchain | 1,039 | hugegraph-hubble/hubble-be/src/main/java/org/apache/hugegraph/entity/schema/ConflictStatus.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with this
* work for additional information regarding copyright ownership. The ASF
* licenses this file to You under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS 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.entity.schema;
public enum ConflictStatus {
PASSED,
EXISTED,
DEP_CONFLICT,
DUPNAME;
public boolean isConflicted() {
return this == DEP_CONFLICT || this == DUPNAME;
}
}
|
apache/incubator-kie-drools | 1,024 | drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/domainsecond/Pojo.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR 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.compiler.integrationtests.domainsecond;
public class Pojo {
private int id;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
}
|
apache/incubator-kie-drools | 1,065 | kie-drl/kie-drl-api/src/main/java/org/kie/drl/api/identifiers/DrlSessionIdFactory.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR 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.drl.api.identifiers;
public class DrlSessionIdFactory implements DrlComponentRoot {
public LocalComponentIdDrlSession get(String basePath, long identifier) {
return new LocalComponentIdDrlSession(basePath, identifier);
}
}
|
apache/incubator-kie-drools | 1,072 | drools-model/drools-canonical-model/src/main/java/org/drools/model/From4.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR 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.Function4;
public interface From4<A, B, C, D> extends From<A> {
Variable<B> getVariable2();
Variable<C> getVariable3();
Variable<D> getVariable4();
Function4<A,B,C,D,?> getProvider();
}
|
apache/incubator-kie-kogito-runtimes | 1,057 | jbpm/jbpm-flow/src/main/java/org/jbpm/process/core/constants/CalendarConstants.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.jbpm.process.core.constants;
public class CalendarConstants {
public static final String BUSINESS_CALENDAR_PATH = "calendar.properties";
public static final String BUSINESS_CALENDAR_ENVIRONMENT_KEY = "jbpm.business.calendar";
}
|
apache/incubator-kie-kogito-runtimes | 1,071 | api/kogito-timer/src/main/java/org/kie/kogito/timer/JobContext.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR 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.timer;
import java.io.Serializable;
public interface JobContext extends Serializable {
/**
* This method should only be called by the scheduler
*/
void setJobHandle(JobHandle jobHandle);
JobHandle getJobHandle();
}
|
apache/incubator-seata | 1,070 | metrics/seata-metrics-api/src/main/java/org/apache/seata/metrics/Summary.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.metrics;
/**
* Summary interface for metrics
*
*/
public interface Summary extends Meter {
default void increase() {
increase(1);
}
void increase(long value);
long total();
long count();
double tps();
}
|
apache/incubator-weex | 1,087 | android/sdk/src/main/java/org/apache/weex/bridge/ModuleFactory.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.weex.bridge;
import org.apache.weex.common.WXModule;
/**
* Created by sospartan on 6/17/16.
*/
public interface ModuleFactory<T extends WXModule> extends JavascriptInvokable {
T buildInstance() throws IllegalAccessException, InstantiationException;
}
|
apache/inlong | 1,068 | inlong-common/src/main/java/org/apache/inlong/common/pojo/sort/dataflow/sink/EsSinkConfig.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.inlong.common.pojo.sort.dataflow.sink;
import lombok.Data;
@Data
public class EsSinkConfig extends SinkConfig {
private String indexNamePattern;
private Integer contentOffset;
private Integer fieldOffset;
private String separator;
}
|
apache/inlong | 1,075 | inlong-agent/agent-common/src/main/java/org/apache/inlong/agent/state/State.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.agent.state;
/**
* job/task state
*/
public enum State {
// accepted state
ACCEPTED,
// running
RUNNING,
// succeeded
SUCCEEDED,
// failed
FAILED,
// killed
KILLED,
// fatal after retry failed
FATAL
}
|
apache/iotdb | 1,036 | iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/transformation/datastructure/iterator/ListForwardIterator.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.transformation.datastructure.iterator;
import java.io.IOException;
public interface ListForwardIterator {
boolean hasNext() throws IOException;
void next() throws IOException;
}
|
apache/jackrabbit-oak | 1,063 | oak-commons/src/main/java/org/apache/jackrabbit/oak/commons/conditions/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.
*/
/**
* Utilities for argument checking.
*/
@Internal(since = "1.0.0")
@Version("1.0.0")
package org.apache.jackrabbit.oak.commons.conditions;
import org.apache.jackrabbit.oak.commons.annotations.Internal;
import org.osgi.annotation.versioning.Version;
|
apache/jmeter | 1,093 | src/core/src/main/java/org/apache/jmeter/engine/util/NoThreadClone.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to you under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.jmeter.engine.util;
/**
* Implement this method-less interface to indicate your test element should not
* be cloned for each thread in a test run. Otherwise, the default behavior is
* to clone every test element for each thread.
*
*/
public interface NoThreadClone {
}
|
apache/kafka | 1,086 | streams/src/main/java/org/apache/kafka/streams/state/TimestampedKeyValueStore.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.streams.state;
/**
* A key-(value/timestamp) store that supports put/get/delete and range queries.
*
* @param <K> The key type
* @param <V> The value type
*/
public interface TimestampedKeyValueStore<K, V> extends KeyValueStore<K, ValueAndTimestamp<V>> { } |
apache/kylin | 1,077 | src/rec-service/src/main/java/org/apache/kylin/rec/query/advisor/SqlSyntaxAdvisor.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.rec.query.advisor;
import org.apache.kylin.rec.query.SQLResult;
public class SqlSyntaxAdvisor extends AbstractSqlAdvisor {
@Override
public SQLAdvice propose(SQLResult sqlResult) {
return adviseSyntaxError(sqlResult);
}
}
|
apache/logging-log4j2 | 1,070 | log4j-core/src/main/java/org/apache/logging/log4j/core/util/AuthorizationProvider.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to you under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.util;
import java.net.URLConnection;
/**
* Interface to be implemented to add an Authorization header to an HTTP request.
*/
public interface AuthorizationProvider {
void addAuthorization(URLConnection urlConnection);
}
|
apache/maven-plugins | 1,053 | maven-jdeprscan-plugin/src/it/projects/jdeprscan-release7/src/main/java/o/a/m/p/j/its/Deprecations.java | package o.a.m.p.j.its;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
import java.rmi.RMISecurityManager;
public class Deprecations {
SecurityManager sm = new RMISecurityManager(); // deprecated in 8
Boolean b2 = new Boolean(true); // deprecated in 9
} |
apache/maven-plugins | 1,053 | maven-jdeprscan-plugin/src/it/projects/jdeprscan-release8/src/main/java/o/a/m/p/j/its/Deprecations.java | package o.a.m.p.j.its;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
import java.rmi.RMISecurityManager;
public class Deprecations {
SecurityManager sm = new RMISecurityManager(); // deprecated in 8
Boolean b2 = new Boolean(true); // deprecated in 9
} |
apache/maven-plugins | 1,053 | maven-jdeprscan-plugin/src/it/projects/jdeprscan-release9/src/main/java/o/a/m/p/j/its/Deprecations.java | package o.a.m.p.j.its;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
import java.rmi.RMISecurityManager;
public class Deprecations {
SecurityManager sm = new RMISecurityManager(); // deprecated in 8
Boolean b2 = new Boolean(true); // deprecated in 9
} |
apache/maven-plugins | 1,063 | maven-invoker-plugin/src/it/script-accessibility/src/main/java/org/MyClass.java | package org;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT 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 MyClass
{
public static final String PUBLIC = "public";
protected static final String PROTECTED = "protected";
static final String PACKAGE = "package";
private static final String PRIVATE = "private";
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.