repo_id stringclasses 875
values | size int64 974 38.9k | file_path stringlengths 10 308 | content stringlengths 974 38.9k |
|---|---|---|---|
apache/maven-javadoc-plugin | 1,020 | src/it/projects/dependencySource-2/MJAVADOC-280-2-projects/MJAVADOC-280-2-modB/src/main/java/org/apache/maven/plugins/mjavadoc/it/modb/App.java | package org.apache.maven.plugins.mjavadoc.it.modb;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
* Hello world!
*
*/
public class App
{
public static void main( final String[] args )
{
System.out.println( "Hello World!" );
}
}
|
apache/maven-plugins | 1,079 | maven-jmod-plugin/src/it/base-config-headerfiles/src/main/java/myproject/HelloWorld.java | package myproject;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
* The classic Hello World App.
*/
public class HelloWorld {
/**
* Main method.
*
* @param args Not used
*/
public static void main( String[] args )
{
System.out.println( "Hello World from JDK 9" );
}
} |
apache/maven-plugins | 1,079 | maven-jmod-plugin/src/it/non-default-config-cmds/src/main/java/myproject/HelloWorld.java | package myproject;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
* The classic Hello World App.
*/
public class HelloWorld {
/**
* Main method.
*
* @param args Not used
*/
public static void main( String[] args )
{
System.out.println( "Hello World from JDK 9" );
}
} |
apache/maven-plugins | 1,079 | maven-jmod-plugin/src/it/non-default-config-libs/src/main/java/myproject/HelloWorld.java | package myproject;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
* The classic Hello World App.
*/
public class HelloWorld {
/**
* Main method.
*
* @param args Not used
*/
public static void main( String[] args )
{
System.out.println( "Hello World from JDK 9" );
}
} |
apache/maven-shade-plugin | 1,056 | src/it/projects/component-descriptor-relocation/app/src/main/java/org/apache/maven/test/TestComponent.java | package org.apache.maven.test;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
import org.apache.maven.component.api.*;
public class TestComponent implements Component
{
private Component component;
public String getId()
{
return "test-" + component.getId();
}
}
|
apache/maven-shade-plugin | 1,076 | src/test/projects/test-project/src/main/java/org/apache/maven/plugins/shade/App.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.maven.plugins.shade;
import org.codehaus.plexus.util.*;
/**
* Hello world!
*
*/
public class App
{
public static void main( String[] args )
{
System.out.println( "Hello World!" );
StringUtils.isEmpty( "foo" );
}
}
|
apache/maven-surefire | 1,046 | surefire-providers/common-junit48/src/test/java/org/apache/maven/surefire/common/junit48/tests/group/UncategorizedTest.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.maven.surefire.common.junit48.tests.group;
import org.junit.Test;
/**
* UncategorizedTest.
*/
public class UncategorizedTest {
@Test
public void a() {
System.out.println("Uncategorized#a");
}
}
|
apache/metron | 1,076 | metron-platform/metron-writer/metron-writer-common/src/main/java/org/apache/metron/writer/AbstractWriter.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.metron.writer;
import org.apache.metron.common.configuration.writer.WriterConfiguration;
public abstract class AbstractWriter {
public AbstractWriter() {}
public abstract void configure(String sensorName, WriterConfiguration configuration);
}
|
apache/mina-sshd | 1,103 | sshd-core/src/main/java/org/apache/sshd/common/FactoryManagerHolder.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.sshd.common;
/**
* @author <a href="mailto:dev@mina.apache.org">Apache MINA SSHD Project</a>
*/
@FunctionalInterface
public interface FactoryManagerHolder {
/**
* @return The currently associated {@link FactoryManager}
*/
FactoryManager getFactoryManager();
}
|
apache/myfaces | 1,088 | impl/src/test/java/org/apache/myfaces/view/facelets/test/component/MyUIPanel2Renderer.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.myfaces.view.facelets.test.component;
import jakarta.faces.render.FacesRenderer;
import jakarta.faces.render.Renderer;
@FacesRenderer(componentFamily = "oam.my.UIPanel2", rendererType = "oam.my.UIPanel2")
public class MyUIPanel2Renderer extends Renderer
{
}
|
apache/nifi | 1,090 | nifi-toolkit/nifi-toolkit-cli/src/main/java/org/apache/nifi/toolkit/cli/api/Referenceable.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.nifi.toolkit.cli.api;
/**
* An object that is capable of producing a ReferenceResolver.
*/
public interface Referenceable {
/**
* @return a ReferenceResolver for this Referenceable
*/
ReferenceResolver createReferenceResolver(Context context);
}
|
apache/opendal | 1,111 | bindings/java/src/main/java/org/apache/opendal/ReadOptions.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.opendal;
import lombok.Builder;
@Builder
public class ReadOptions {
/**
* Sets the offset of the read operation.
*/
public final long offset;
/**
* Sets the length of the read operation.
*/
@Builder.Default
public final long length = -1;
}
|
apache/opennlp | 1,094 | opennlp-extensions/opennlp-uima/src/main/java/opennlp/uima/postag/POSModelResource.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package opennlp.uima.postag;
import opennlp.tools.postag.POSModel;
/**
* A resource encapsulating an OpenNLP {@link POSModel} which can be shared between
* <i>analysis engines</i> and loaded via the UIMA resource model.
*/
public interface POSModelResource {
POSModel getModel();
}
|
apache/ozhera | 1,066 | ozhera-operator/ozhera-operator-service/src/main/java/org/apache/ozhera/operator/dto/OperatorStateDTO.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.ozhera.operator.dto;
import lombok.Data;
import java.util.List;
/**
* @date 2023-03-02
*/
@Data
public class OperatorStateDTO {
// 0: success、1:In progress
private Integer status;
List<DeployStateDTO> deployStateList;
}
|
apache/ozone | 1,100 | hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/fs/ozone/TestO3FS.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.fs.ozone;
import org.apache.hadoop.ozone.om.helpers.BucketLayout;
import org.junit.jupiter.api.TestInstance;
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
class TestO3FS extends AbstractOzoneFileSystemTest {
TestO3FS() {
super(false, BucketLayout.LEGACY);
}
}
|
apache/paimon | 1,109 | paimon-core/src/main/java/org/apache/paimon/table/source/ScanMode.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.paimon.table.source;
/** Scan which part of the snapshot. */
public enum ScanMode {
/** Scan complete data files of a snapshot. */
ALL,
/** Only scan newly changed files of a snapshot. */
DELTA,
/** Only scan changelog files of a snapshot. */
CHANGELOG
}
|
apache/pig | 1,117 | test/org/apache/pig/test/utils/MyUDFWithoutParameter.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.pig.test.utils;
import java.io.IOException;
import org.apache.pig.EvalFunc;
import org.apache.pig.data.Tuple;
public class MyUDFWithoutParameter extends EvalFunc<Integer> {
private int count = 0;
@Override
public Integer exec(Tuple input) throws IOException {
return ++count;
}
}
|
apache/plc4x | 1,097 | plc4j/spi/src/main/java/org/apache/plc4x/java/spi/messages/utils/PlcTagValueItem.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.plc4x.java.spi.messages.utils;
import org.apache.plc4x.java.api.model.PlcTag;
import org.apache.plc4x.java.api.value.PlcValue;
public interface PlcTagValueItem<T extends PlcTag> extends PlcTagItem<T> {
default PlcValue getValue() {
return null;
}
}
|
apache/plc4x | 1,102 | plc4j/api/src/main/java/org/apache/plc4x/java/api/messages/PlcPingRequest.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.plc4x.java.api.messages;
import java.util.concurrent.CompletableFuture;
/**
* Simple request type, to check the connection with a plc.
*/
public interface PlcPingRequest extends PlcRequest {
@Override
CompletableFuture<? extends PlcPingResponse> execute();
}
|
apache/polygene-java | 1,088 | core/api/src/main/java/org/apache/polygene/api/query/grammar/ExpressionPredicate.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*
*/
package org.apache.polygene.api.query.grammar;
import java.util.function.Predicate;
import org.apache.polygene.api.composite.Composite;
/**
* Base expression Specification.
*/
public abstract class ExpressionPredicate
implements Predicate<Composite>
{
}
|
apache/pulsar | 1,077 | pulsar-io/elastic-search/src/test/java/org/apache/pulsar/io/elasticsearch/v7/ElasticSearch7ClientTest.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.pulsar.io.elasticsearch.v7;
import org.apache.pulsar.io.elasticsearch.ElasticSearchClientTest;
public class ElasticSearch7ClientTest extends ElasticSearchClientTest {
public ElasticSearch7ClientTest() {
super(ELASTICSEARCH_7);
}
}
|
apache/pulsar | 1,077 | pulsar-io/elastic-search/src/test/java/org/apache/pulsar/io/elasticsearch/v8/ElasticSearch8ClientTest.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.pulsar.io.elasticsearch.v8;
import org.apache.pulsar.io.elasticsearch.ElasticSearchClientTest;
public class ElasticSearch8ClientTest extends ElasticSearchClientTest {
public ElasticSearch8ClientTest() {
super(ELASTICSEARCH_8);
}
}
|
apache/pulsar | 1,090 | pulsar-common/src/main/java/org/apache/pulsar/common/policies/data/TenantOperation.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.pulsar.common.policies.data;
/**
* Tenant authorization operations.
*/
public enum TenantOperation {
CREATE_NAMESPACE,
DELETE_NAMESPACE,
LIST_NAMESPACES,
LIST_TENANTS,
GET_TENANT,
CREATE_TENANT,
UPDATE_TENANT,
DELETE_TENANT,
}
|
apache/qpid-broker-j | 1,058 | broker-plugins/graylog-logging-logback/src/main/java/org/apache/qpid/server/logging/logback/validator/Validator.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.qpid.server.logging.logback.validator;
import org.apache.qpid.server.model.ConfiguredObject;
@FunctionalInterface
public interface Validator<T>
{
void validate(T value, ConfiguredObject<?> object, String attribute);
}
|
apache/qpid-broker-j | 1,062 | broker-plugins/access-control/src/main/java/org/apache/qpid/server/security/access/config/LegacyAccessControl.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.qpid.server.security.access.config;
import org.apache.qpid.server.security.Result;
interface LegacyAccessControl
{
Result authorise(LegacyOperation authoriseOperation, ObjectType objectType, ObjectProperties properties);
}
|
apache/qpid-broker-j | 1,082 | broker-core/src/main/java/org/apache/qpid/server/store/preferences/PreferenceStoreUpdater.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.qpid.server.store.preferences;
import java.util.Collection;
public interface PreferenceStoreUpdater
{
Collection<PreferenceRecord> updatePreferences(String currentVersion, Collection<PreferenceRecord> preferences);
String getLatestVersion();
}
|
apache/rocketmq-eventbridge | 1,082 | common/src/main/java/org/apache/rocketmq/eventbridge/config/EventBridgeConstants.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.rocketmq.eventbridge.config;
public class EventBridgeConstants {
public static final String EVENT_BUS_NAME_KEY = "eventBusName";
public static final String ACCOUNT_ID_KEY = "accountId";
public static final String REQUEST_TRACE_ID = "requestId";
}
|
apache/royale-compiler | 1,069 | compiler/src/test/java/org/apache/royale/compiler/internal/tree/mxml/MXMLClassReferenceNodeTests.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package org.apache.royale.compiler.internal.tree.mxml;
import org.junit.Ignore;
/**
* JUnit tests for {@link MXMLClassReferenceNode}.
*
* @author Gordon Smith
*/
@Ignore
public class MXMLClassReferenceNodeTests extends MXMLNodeBaseTests
{
}
|
apache/royale-compiler | 1,116 | swfutils/src/main/java/flash/swf/types/BlurFilter.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package flash.swf.types;
/**
* A value object for blur filter data.
*/
public class BlurFilter extends Filter
{
public final static int ID = 1;
public int getID() { return ID; }
public int blurX;
public int blurY;
public int passes; // really UB[5] with UB[3] reserved
}
|
apache/seatunnel-web | 1,059 | seatunnel-server/seatunnel-app/src/main/java/org/apache/seatunnel/app/domain/dto/script/UpdateScriptContentDto.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.seatunnel.app.domain.dto.script;
import lombok.Builder;
import lombok.Data;
@Builder
@Data
public class UpdateScriptContentDto {
private int id;
private String content;
private String contentMd5;
private int menderId;
}
|
apache/seatunnel | 1,072 | seatunnel-transforms-v2/src/main/java/org/apache/seatunnel/transform/dynamiccompile/parse/ScalaClassParse.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.seatunnel.transform.dynamiccompile.parse;
public class ScalaClassParse extends AbstractParse {
@Override
public Class<?> parseClassSourceCode(String sourceCode) {
return ScalaClassParser.parseSourceCodeWithCache(sourceCode);
}
}
|
apache/sentry | 1,070 | sentry-core/sentry-core-common/src/main/java/org/apache/sentry/core/common/exception/SentryGrantDeniedException.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.sentry.core.common.exception;
public class SentryGrantDeniedException extends SentryAccessDeniedException {
private static final long serialVersionUID = 1962330785835L;
public SentryGrantDeniedException(String msg) {
super(msg);
}
}
|
apache/servicecomb-java-chassis | 1,026 | swagger/swagger-generator/generator-core/src/test/java/org/apache/servicecomb/swagger/generator/core/utils/methodUtilsModel/HelloEndpoint.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.servicecomb.swagger.generator.core.utils.methodUtilsModel;
public class HelloEndpoint extends AbstractBaseClass<HelloBean> {
@Override
public HelloBean get(HelloBean param) {
return param;
}
}
|
apache/shardingsphere | 1,044 | kernel/data-pipeline/core/src/main/java/org/apache/shardingsphere/data/pipeline/core/ingest/dumper/incremental/IncrementalDumper.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.shardingsphere.data.pipeline.core.ingest.dumper.incremental;
import org.apache.shardingsphere.data.pipeline.core.ingest.dumper.Dumper;
/**
* Incremental dumper.
*/
public interface IncrementalDumper extends Dumper {
}
|
apache/shindig | 1,098 | java/common/src/main/java/org/apache/shindig/protocol/model/ExtendableBean.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.shindig.protocol.model;
import java.util.Map;
import com.google.inject.ImplementedBy;
/**
* A generic bucket to store arbitrary extensions.
*/
@ImplementedBy(ExtendableBeanImpl.class)
@Exportablebean
public interface ExtendableBean extends Map<String, Object> {
}
|
apache/sis | 1,091 | endorsed/src/org.apache.sis.feature/main/org/apache/sis/pending/geoapi/filter/MatchAction.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.sis.pending.geoapi.filter;
/**
* Placeholder for GeoAPI 3.1 interfaces (not yet released).
* Shall not be visible in public API, as it will be deleted after next GeoAPI release.
*/
@SuppressWarnings("doclint:missing")
public enum MatchAction {
ANY, ALL, ONE;
}
|
apache/sis | 1,099 | endorsed/src/org.apache.sis.portrayal/main/org/apache/sis/map/coverage/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.
*/
/**
* Helper classes for the rendering of grid coverages.
*
* This package is for internal use by SIS only. Classes in this package
* may change in incompatible ways in any future version without notice.
*
* @author Martin Desruisseaux (Geomatys)
*/
package org.apache.sis.map.coverage;
|
apache/skywalking | 1,075 | oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/query/type/LayerLevel.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package org.apache.skywalking.oap.server.core.query.type;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class LayerLevel {
private String layer;
private int level;
}
|
apache/streampipes | 1,066 | streampipes-integration-tests/src/test/java/org/apache/streampipes/integration/client/ClientLiveDataTest.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package org.apache.streampipes.integration.client;
import org.junit.jupiter.api.Test;
public class ClientLiveDataTest {
@Test
public void testNatsClient() throws Exception {
try (var tester = new ClientNatsTester()) {
tester.run();
}
}
}
|
apache/struts | 1,097 | core/src/main/java/org/apache/struts2/validator/annotations/ValidatorType.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.struts2.validator.annotations;
/**
* <code>ValidatorType</code>
*
* @author Rainer Hermanns
* @version $Id$
*/
public enum ValidatorType {
FIELD, SIMPLE;
@Override
public String toString() {
return super.toString().toUpperCase();
}
}
|
apache/syncope | 1,087 | common/am/lib/src/main/java/org/apache/syncope/common/lib/auth/LDAPDependantAuthModuleConf.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.syncope.common.lib.auth;
import com.fasterxml.jackson.annotation.JsonIgnore;
import org.apache.syncope.common.lib.AbstractLDAPConf;
public interface LDAPDependantAuthModuleConf extends AuthModuleConf {
@JsonIgnore
AbstractLDAPConf ldapInstance();
}
|
apache/systemds | 1,093 | src/main/java/org/apache/sysds/runtime/matrix/operators/CountDistinctOperatorTypes.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.sysds.runtime.matrix.operators;
public enum CountDistinctOperatorTypes { // The different supported types of counting.
COUNT, // Baseline naive implementation, iterate through, add to hashMap.
KMV, // K-Minimum Values algorithm.
HLL // HyperLogLog algorithm.
}
|
apache/tajo | 1,110 | tajo-algebra/src/main/java/org/apache/tajo/algebra/NullLiteral.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.tajo.algebra;
public class NullLiteral extends Expr {
public NullLiteral() {
super(OpType.NullLiteral);
}
@Override
public int hashCode() {
return getType().hashCode();
}
@Override
boolean equalsTo(Expr expr) {
return expr instanceof NullLiteral;
}
}
|
apache/tapestry-5 | 1,097 | tapestry-ioc/src/main/java/org/apache/tapestry5/ioc/services/UpdateListener.java | // Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package org.apache.tapestry5.ioc.services;
/**
* Interface for objects which can periodically check for updates.
*
* Note that this interface has moved from module tapestry-core to tapestry-ioc, but has kept the same package (for
* backwards compatibility reasons).
*
* @see org.apache.tapestry5.ioc.services.UpdateListenerHub
* @since 5.1.0.0
*/
public interface UpdateListener
{
/**
* Invoked to force the receiver to check for updates to whatever underlying resources it makes use of.
*/
void checkForUpdates();
}
|
apache/tomcat80 | 1,132 | test/org/apache/naming/TesterEnvEntry.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.naming;
public class TesterEnvEntry {
private static final String VALID = "valid";
public TesterEnvEntry(String value) {
if (!VALID.equals(value)) {
throw new IllegalArgumentException();
}
}
@Override
public String toString() {
return VALID;
}
}
|
apache/tomee | 1,044 | arquillian/arquillian-tomee-tests/arquillian-tomee-webprofile-tests/src/test/java/org/apache/openejb/arquillian/tests/bmp/local/FinderTest.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.openejb.arquillian.tests.bmp.local;
import java.rmi.RemoteException;
import jakarta.ejb.EJBLocalObject;
public interface FinderTest extends EJBLocalObject {
String runTest() throws Exception, RemoteException;
}
|
apache/tomee | 1,084 | examples/rest-applicationcomposer/src/main/java/org/superbiz/composed/rest/GreetingService.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.superbiz.composed.rest;
import jakarta.ws.rs.GET;
import jakarta.ws.rs.Path;
@Path("/greeting")
public class GreetingService {
@GET
public String message() {
throw new IllegalArgumentException("this exception is handled by an exception mapper");
}
}
|
apache/tomee | 1,102 | container/openejb-core/src/main/java/org/apache/openejb/testing/Configuration.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.testing;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface Configuration {
}
|
apache/tomee | 1,106 | container/openejb-core/src/main/java/org/apache/openejb/config/sys/Tomee.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.openejb.config.sys;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlRootElement;
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "tomee")
public class Tomee extends Openejb {
}
|
apache/wicket | 1,071 | wicket-core-tests/src/test/java/org/apache/wicket/markup/html/header/testing2/TestExtendedPage2.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.wicket.markup.html.header.testing2;
/**
*
* @author Juergen Donnerstag
*/
public class TestExtendedPage2 extends TestExtendedPage
{
private static final long serialVersionUID = 1L;
/**
* Construct.
*/
public TestExtendedPage2()
{
}
}
|
apache/xmlbeans | 1,098 | samples/XQueryXPath/src/org/apache/xmlbeans/samples/xquery/XQueryXPathTest.java | /* Copyright 2004 The Apache Software Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.xmlbeans.samples.xquery;
/**
* A class with which to test the XQueryXPath sample.
*/
public class XQueryXPathTest
{
/**
* Tests the XQueryXPath sample.
*/
public static void main(String[] args)
throws org.apache.xmlbeans.XmlException, java.io.IOException
{
XQueryXPath sample = new XQueryXPath();
boolean queriesSuccessful = sample.executeQueries(args);
assert queriesSuccessful;
}
}
|
apache/xmlbeans | 1,110 | src/main/java/org/apache/xmlbeans/xml/stream/EndPrefixMapping.java | /* Copyright 2004 The Apache Software Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.xmlbeans.xml.stream;
/**
* This event signals that a prefix mapping has gone out of scope
*
* @since Weblogic XML Input Stream 1.0
* @version 1.0
* @see org.apache.xmlbeans.xml.stream.StartPrefixMapping
* @see org.apache.xmlbeans.xml.stream.ChangePrefixMapping
*/
public interface EndPrefixMapping extends XMLEvent {
/*
* Returns the prefix that has gone out of scope
* @return String value of the prefix
*/
public String getPrefix();
}
|
apache/xmlgraphics-batik | 1,092 | batik-gvt/src/main/java/org/apache/batik/gvt/renderer/RendererFactory.java | /*
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package org.apache.batik.gvt.renderer;
/**
* Interface for GVT renderer factory.
*
* @author <a href="mailto:stephane@hillion.org">Stephane Hillion</a>
* @version $Id$
*/
public interface RendererFactory {
/**
* Creates a new renderer.
*/
Renderer createRenderer();
}
|
google/binnavi | 1,071 | src/main/java/com/google/security/zynamics/zylib/gui/zygraph/editmode/actions/CDefaultEdgeLabelHoverAction.java | // Copyright 2011-2016 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.security.zynamics.zylib.gui.zygraph.editmode.actions;
import com.google.security.zynamics.zylib.gui.zygraph.editmode.IStateAction;
import com.google.security.zynamics.zylib.yfileswrap.gui.zygraph.editmode.states.CEdgeLabelHoverState;
import java.awt.event.MouseEvent;
public class CDefaultEdgeLabelHoverAction implements IStateAction<CEdgeLabelHoverState> {
@Override
public void execute(final CEdgeLabelHoverState state, final MouseEvent event) {
}
}
|
google/binnavi | 1,087 | src/test/java/com/google/security/zynamics/reil/algorithms/mono2/registertracking/AllTests.java | /*
Copyright 2014 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package com.google.security.zynamics.reil.algorithms.mono2.registertracking;
import org.junit.runner.RunWith;
import org.junit.runners.Suite;
import org.junit.runners.Suite.SuiteClasses;
@RunWith(Suite.class)
@SuiteClasses({BackwardRegisterTrackingTransformationProviderTest.class,
ForwardRegisterTrackingTransformationProviderTest.class, RegisterSetLatticeElementTest.class,
RegisterSetLatticeTest.class, RegisterTrackerTest.class, TestFollowZFIncomingBackwards.class})
public class AllTests {
}
|
google/conscrypt | 1,112 | android/src/main/java/org/conscrypt/NativeCryptoJni.java | /*
* Copyright 2015 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;
/**
* Helper to initialize the JNI libraries. This version runs when compiled
* as part of an app distribution (or GmsCore).
*/
class NativeCryptoJni {
public static void init() {
if ("com.google.android.gms.org.conscrypt".equals(NativeCrypto.class.getPackage().getName())) {
System.loadLibrary("conscrypt_gmscore_jni");
} else {
System.loadLibrary("conscrypt_jni");
}
}
private NativeCryptoJni() {
}
}
|
google/graphicsfuzz | 1,101 | gles-worker/core/src/com/graphicsfuzz/glesworker/WorkerState.java | /*
* Copyright 2018 The GraphicsFuzz 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
*
* 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.graphicsfuzz.glesworker;
enum WorkerState {
NO_CONNECTION,
GET_JOB,
COHERENCE_INIT_PREPARE,
COHERENCE_INIT_RENDER,
PREPARE_COHERENCE,
RENDER_COHERENCE,
IMAGE_PREPARE,
IMAGE_VALIDATE_PROGRAM,
IMAGE_RENDER,
IMAGE_REPLY_JOB,
IMAGE_STANDALONE_PREPARE,
IMAGE_STANDALONE_RENDER,
IMAGE_STANDALONE_IDLE,
COMPUTE_PREPARE,
COMPUTE_EXECUTE,
COMPUTE_REPLY_JOB,
COMPUTE_STANDALONE_PREPARE,
COMPUTE_STANDALONE_EXECUTE,
COMPUTE_STANDALONE_IDLE,
}
|
google/guava | 1,104 | android/guava-tests/test/com/google/common/collect/PackageSanityTests.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.collect;
import com.google.common.testing.AbstractPackageSanityTests;
import org.jspecify.annotations.NullUnmarked;
/**
* Covers basic sanity checks for the entire package.
*
* @author Ben Yu
*/
@NullUnmarked
public class PackageSanityTests extends AbstractPackageSanityTests {
public PackageSanityTests() {
publicApiOnly(); // Many package-private classes are tested through the public API.
setDefault(DiscreteDomain.class, DiscreteDomain.integers());
}
}
|
google/j2cl | 1,078 | transpiler/javatests/com/google/j2cl/readable/java/packageprivatemethods/package1/SuperParent.java | /*
* Copyright 2017 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package packageprivatemethods.package1;
public class SuperParent {
// This is not directly exposed by any sub class.
int overrideInParentExposedInChild(int a) {
return a - 1;
}
// This is directly exposed by Child
int exposedInChild(int a, int b) {
return a + b;
}
int exposedInChildWithInterface(int a, int b) {
return a + b;
}
// This is directly exposed by Parent
int exposedAbstractInParent(int a, int b, int c) {
return a + b + c;
}
}
|
google/j2cl | 1,089 | transpiler/javatests/com/google/j2cl/integration/java/subclassgenericclass/Main.java | /*
* Copyright 2017 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package subclassgenericclass;
import static com.google.j2cl.integration.testing.Asserts.assertTrue;
class Parent<T> {
public T foo(T t) {
return t;
}
}
class Child extends Parent<Child> {}
class GenericChild<T> extends Parent<T> {}
public class Main {
public static void main(String... args) {
Child c = new Child();
Child b = c.foo(c);
assertTrue(b == c);
GenericChild<Child> gc = new GenericChild<>();
Child cc = gc.foo(c);
assertTrue(cc == c);
}
}
|
google/j2cl | 1,111 | transpiler/java/com/google/j2cl/transpiler/passes/RemoveNativeTypes.java | /*
* Copyright 2023 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
package com.google.j2cl.transpiler.passes;
import com.google.j2cl.transpiler.ast.CompilationUnit;
/**
* Removes native types. In Closure, Native types and JsFunction interfaces only contribute code for
* the overlay class. Once the overlay class is in place they can be removed.
*/
public class RemoveNativeTypes extends NormalizationPass {
@Override
public void applyTo(CompilationUnit compilationUnit) {
compilationUnit.getTypes().removeIf(type -> type.isNative() || type.isJsFunctionInterface());
}
}
|
google/j2objc | 1,073 | jre_emul/android/platform/libcore/luni/src/test/java/libcore/java/util/zip/OldZipExceptionTest.java | /*
* Copyright (C) 2008 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 libcore.java.util.zip;
import junit.framework.TestCase;
import java.util.zip.ZipException;
public class OldZipExceptionTest extends TestCase {
public void testZipException() {
ZipException zz = new ZipException();
assertEquals(zz.getMessage(), null);
}
public void testZipExceptionLjava_lang_String() {
ZipException zz = new ZipException("Test");
assertEquals(zz.getMessage(), "Test");
}
}
|
google/oss-fuzz | 1,133 | projects/java-example/ExampleFuzzTest.java | // Copyright 2024 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
////////////////////////////////////////////////////////////////////////////////
import com.code_intelligence.jazzer.api.FuzzedDataProvider;
import com.code_intelligence.jazzer.junit.FuzzTest;
public class ExampleFuzzTest {
@FuzzTest
void exampleTest (FuzzedDataProvider data) {
String input = data.consumeRemainingAsString();
long random = 123123132;
if (input.startsWith("magicstring" + random) && input.length() > 30
&& input.charAt(25) == 'C') {
throw new IllegalStateException("Not reached");
}
}
}
|
google/thread-weaver | 1,142 | examples/UniqueList.java | /*
* Copyright 2009 Weaver authors
*
* This code is part of the Weaver tutorial and may be freely used.
*/
import java.util.ArrayList;
/**
* Implementation of {@link java.util.ArrayList} that allows
* an element to be added only if it is not already in the list.
* <p>
* This class is designed to demonstrate the testing of race conditions,
* and is not intended to be complete or correct.
*
* @param <E> the list element
*
* @author alasdair.mackintosh@gmail.com (Alasdair Mackintosh)
*/
public class UniqueList<E> extends ArrayList<E> {
/**
* Adds an element iff it is not already present in this list. Returns true
* if the element was added, and false if it was already found.
*/
public boolean putIfAbsent(E elem) {
return putIfAbsentInternal(elem);
}
// The actual method that we want to test is a private one. To make this work, we
// specify the name of this method in the test setup. See
// UniqueListTest.testPutIfAbsent()
private boolean putIfAbsentInternal(E elem) {
boolean absent = !super.contains(elem);
if (absent) {
super.add(elem);
}
return absent;
}
}
|
googleads/google-ads-java | 1,062 | google-ads-stubs-v21/src/main/java/com/google/ads/googleads/v21/common/PlacementListInfoOrBuilder.java | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v21/common/criteria.proto
// Protobuf Java Version: 3.25.7
package com.google.ads.googleads.v21.common;
public interface PlacementListInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v21.common.PlacementListInfo)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
* The PlacementListInfo shared set resource name.
* </pre>
*
* <code>optional string shared_set = 1;</code>
* @return Whether the sharedSet field is set.
*/
boolean hasSharedSet();
/**
* <pre>
* The PlacementListInfo shared set resource name.
* </pre>
*
* <code>optional string shared_set = 1;</code>
* @return The sharedSet.
*/
java.lang.String getSharedSet();
/**
* <pre>
* The PlacementListInfo shared set resource name.
* </pre>
*
* <code>optional string shared_set = 1;</code>
* @return The bytes for sharedSet.
*/
com.google.protobuf.ByteString
getSharedSetBytes();
}
|
googleapis/discovery-artifact-manager | 1,073 | toolkit/src/main/java/com/google/api/codegen/discovery/DiscoveryProviderFactory.java | /* Copyright 2016 Google Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.google.api.codegen.discovery;
import com.fasterxml.jackson.databind.JsonNode;
import com.google.api.Service;
import com.google.api.codegen.ApiaryConfig;
import java.util.List;
/** A factory for DiscoveryProviders which perform code generation. */
public interface DiscoveryProviderFactory {
DiscoveryProvider create(
Service service,
ApiaryConfig apiaryConfig,
List<JsonNode> sampleConfigOverrides,
String rubyNamesFile,
String id);
}
|
googleapis/google-cloud-java | 1,026 | java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportFeatureValuesResponseOrBuilder.java | /*
* Copyright 2025 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/aiplatform/v1beta1/featurestore_service.proto
// Protobuf Java Version: 3.25.8
package com.google.cloud.aiplatform.v1beta1;
public interface ExportFeatureValuesResponseOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse)
com.google.protobuf.MessageOrBuilder {}
|
googlearchive/android-DownloadableFonts | 1,080 | app/src/main/java/com/example/android/downloadablefonts/Constants.java | /*
* Copyright (C) 2017 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.example.android.downloadablefonts;
/**
* Constants class
*/
class Constants {
static final int WIDTH_DEFAULT = 100;
static final int WIDTH_MAX = 1000;
static final int WIDTH_MIN = 0;
static final int WEIGHT_DEFAULT = 400;
static final int WEIGHT_MAX = 1000;
static final int WEIGHT_MIN = 0;
static final float ITALIC_DEFAULT = 0f;
static final float ITALIC_MAX = 1f;
static final float ITALIC_MIN = 0f;
}
|
hibernate/hibernate-orm | 1,046 | hibernate-envers/src/main/java/org/hibernate/envers/internal/entities/mapper/relation/query/RelationQueryGenerator.java | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.envers.internal.entities.mapper.relation.query;
import org.hibernate.engine.spi.SharedSessionContractImplementor;
import org.hibernate.query.Query;
/**
* Implementations of this interface provide a method to generate queries on a
* relation table (a table used for mapping relations). The query can select,
* apart from selecting the content of the relation table, also data of other
* "related" entities.
*
* @author Adam Warski (adam at warski dot org)
* @author Chris Cranford
*/
public interface RelationQueryGenerator {
/**
* Return the query to fetch the relation.
*
* @param session The session.
* @param primaryKey The primary key of the owning object.
* @param revision The revision to be fetched.
* @param removed Whether to return a query that includes the removed audit rows.
*/
Query getQuery(SharedSessionContractImplementor session, Object primaryKey, Number revision, boolean removed);
}
|
hibernate/hibernate-orm | 1,075 | hibernate-envers/src/main/java/org/hibernate/envers/EntityTrackingRevisionListener.java | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.envers;
/**
* Extension of standard {@link RevisionListener} that notifies whenever an entity instance has been
* added, modified or removed within current revision boundaries.
*
* @author Lukasz Antoniak (lukasz dot antoniak at gmail dot com)
* @see RevisionListener
*/
public interface EntityTrackingRevisionListener extends RevisionListener {
/**
* Called after audited entity data has been persisted.
* @param entityClass Audited entity class.
* @param entityName Name of the audited entity. May be useful when Java class is mapped multiple times,
* potentially to different tables.
* @param entityId Identifier of modified entity.
* @param revisionType Modification type (addition, update or removal).
* @param revisionEntity An instance of the entity annotated with {@link RevisionEntity}.
*/
void entityChanged(
Class entityClass, String entityName, Object entityId, RevisionType revisionType,
Object revisionEntity);
}
|
hibernate/hibernate-search | 1,041 | engine/src/main/java/org/hibernate/search/engine/search/projection/dsl/impl/DocumentReferenceProjectionOptionsStepImpl.java | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.search.engine.search.projection.dsl.impl;
import org.hibernate.search.engine.backend.common.DocumentReference;
import org.hibernate.search.engine.search.projection.SearchProjection;
import org.hibernate.search.engine.search.projection.dsl.DocumentReferenceProjectionOptionsStep;
import org.hibernate.search.engine.search.projection.dsl.spi.SearchProjectionDslContext;
public final class DocumentReferenceProjectionOptionsStepImpl
implements DocumentReferenceProjectionOptionsStep<DocumentReferenceProjectionOptionsStepImpl> {
private final SearchProjection<DocumentReference> documentReferenceProjection;
public DocumentReferenceProjectionOptionsStepImpl(SearchProjectionDslContext<?> dslContext) {
this.documentReferenceProjection = dslContext.scope().projectionBuilders().documentReference();
}
@Override
public SearchProjection<DocumentReference> toProjection() {
return documentReferenceProjection;
}
}
|
hibernate/hibernate-search | 1,045 | engine/src/main/java/org/hibernate/search/engine/search/aggregation/dsl/impl/CountDocumentsAggregationFinalStepImpl.java | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.search.engine.search.aggregation.dsl.impl;
import org.hibernate.search.engine.search.aggregation.SearchAggregation;
import org.hibernate.search.engine.search.aggregation.dsl.CountDocumentsAggregationFinalStep;
import org.hibernate.search.engine.search.aggregation.dsl.spi.SearchAggregationDslContext;
import org.hibernate.search.engine.search.aggregation.spi.AggregationTypeKeys;
import org.hibernate.search.engine.search.aggregation.spi.CountDocumentAggregationBuilder;
public class CountDocumentsAggregationFinalStepImpl
implements CountDocumentsAggregationFinalStep {
private final CountDocumentAggregationBuilder builder;
public CountDocumentsAggregationFinalStepImpl(SearchAggregationDslContext<?, ?, ?> dslContext) {
this.builder = dslContext.scope().rootQueryElement( AggregationTypeKeys.COUNT_DOCUMENTS ).builder();
}
@Override
public SearchAggregation<Long> toAggregation() {
return builder.build();
}
}
|
hibernate/hibernate-search | 1,049 | mapper/pojo-base/src/main/java/org/hibernate/search/mapper/pojo/bridge/mapping/programmatic/ValueBinder.java | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.search.mapper.pojo.bridge.mapping.programmatic;
import org.hibernate.search.mapper.pojo.bridge.ValueBridge;
import org.hibernate.search.mapper.pojo.bridge.binding.ValueBindingContext;
/**
* A binder from a value to a single index field.
* <p>
* This binder takes advantage of provided metadata
* to pick, configure and create a {@link ValueBridge}.
*
* @see ValueBridge
*/
public interface ValueBinder {
/**
* Binds a value to an index field.
* <p>
* The context passed in parameter provides various information about the value being bound.
* Implementations are expected to take advantage of that information
* and to call one of the {@code bridge(...)} methods on the context
* to set the bridge.
*
* @param context A context object providing information about the value being bound,
* and expecting a call to one of its {@code bridge(...)} methods.
*/
void bind(ValueBindingContext<?> context);
}
|
hibernate/hibernate-search | 1,053 | engine/src/main/java/org/hibernate/search/engine/search/projection/dsl/CompositeProjectionFrom2AsStep.java | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.search.engine.search.projection.dsl;
import java.util.function.BiFunction;
/**
* The step in a "multi-step" composite projection definition
* where 2 inner projections have been defined
* and the result of the composite projection can be defined.
*
* @param <V1> The type of values returned by the first inner projection.
* @param <V2> The type of values returned by the second inner projection.
*/
public interface CompositeProjectionFrom2AsStep<V1, V2>
extends CompositeProjectionFromAsStep {
/**
* Defines the result of the composite projection
* as the result of applying the given function to the two inner projections defined so far.
*
* @param transformer A function to transform the values of inner projections defined so far.
* @return The next DSL step.
* @param <V> The type of values returned by the transformer.
*/
<V> CompositeProjectionValueStep<?, V> as(BiFunction<V1, V2, V> transformer);
}
|
hibernate2011/RosClient | 1,116 | app/src/main/java/com/jilk/ros/message/MessageType.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;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
public @interface MessageType {
String string() default "";
}
|
openjdk/jdk8 | 1,086 | jdk/src/share/classes/com/sun/org/apache/xml/internal/security/keys/content/KeyInfoContent.java | /*
* reserved comment block
* DO NOT REMOVE OR ALTER!
*/
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES 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.sun.org.apache.xml.internal.security.keys.content;
/**
* Empty interface just to identify Elements that can be children of ds:KeyInfo.
*
* @author $Author: coheigea $
*/
public interface KeyInfoContent {
}
|
openjdk/jdk8 | 1,108 | langtools/test/tools/javac/diags/examples/PackageInfoAlreadySeen/package-info.java | /*
* Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
// key: compiler.warn.pkg-info.already.seen
package p;
|
openjdk/jdk8 | 1,118 | langtools/test/tools/javac/ImportPackagePrivateInner/foo/Accessee.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 class Accessee {
class Inside {}
}
|
openjdk/jdk8 | 1,130 | langtools/test/tools/javac/diags/examples/IllegalChar.java | /*
* Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
// key: compiler.err.illegal.char
class IllegalChar {
int i = `;
}
|
oracle/coherence | 1,095 | prj/coherence-core/src/main/java/com/oracle/coherence/common/base/Pollable.java | /*
* Copyright (c) 2000, 2020, 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.oracle.coherence.common.base;
import java.util.concurrent.TimeUnit;
/**
* The Pollable interface describes a component which supports element removal.
*
* @author mf 2013.02.19
*/
public interface Pollable<E>
{
/**
* Removes and returns the next element, or returns <tt>null</tt> if none is present.
*
* @return the next element or null
*/
E poll();
/**
* Removes and returns the next element, or returns <tt>null</tt> upon timeout.
*
* @param timeout how long to wait before giving up, in units of
* <tt>unit</tt>
* @param unit a <tt>TimeUnit</tt> determining how to interpret the
* <tt>timeout</tt> parameter
*
* @return the next element or null
* @throws InterruptedException if interrupted while waiting
*/
E poll(long timeout, TimeUnit unit)
throws InterruptedException;
}
|
oracle/fastr | 1,104 | com.oracle.truffle.r.ffi.impl/src/com/oracle/truffle/r/ffi/impl/altrep/package-info.java | /*
* Copyright (c) 2023, 2023, 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 3 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 3 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
* 3 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.oracle.truffle.r.ffi.impl.altrep;
|
apache/cxf | 1,105 | rt/frontend/jaxrs/src/test/java/org/apache/cxf/jaxrs/CustomerGender.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.cxf.jaxrs;
public enum CustomerGender {
MALE,
FEMALE;
public static CustomerGender fromString(String s) {
if ("1".equals(s)) {
return FEMALE;
} else if ("2".equals(s)) {
return MALE;
}
return valueOf(s);
}
}
|
apache/daffodil | 1,100 | daffodil-core/src/main/java/org/apache/daffodil/api/infoset/InfosetItem.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.daffodil.api.infoset;
import org.apache.daffodil.api.metadata.Metadata;
/**
* Methods common to all infoset items
*/
public interface InfosetItem {
/**
* All infoset items have access to metadata.
*
* @return metadata of the item
*/
Metadata metadata();
}
|
apache/derby | 1,101 | java/org.apache.derby.optionaltools/org/apache/derby/optional/info/DerbyModule.java | /*
Derby - Class org.apache.derby.optional.info.DerbyModule
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to you under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package org.apache.derby.optional.info;
import org.apache.derby.shared.api.DerbyModuleAPI;
/**
* The vacuous provider class which lets
* the shared module find all Derby modules.
*/
public class DerbyModule implements DerbyModuleAPI {}
|
apache/directory-kerby | 1,095 | kerby-pkix/src/main/java/org/apache/kerby/x509/type/CertificatePolicies.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.x509.type;
import org.apache.kerby.asn1.type.Asn1SequenceOf;
/**
*
* <pre>
* CertificatePolicies ::= SEQUENCE SIZE {1..MAX} OF PolicyInformation
* </pre>
*/
public class CertificatePolicies extends Asn1SequenceOf<PolicyInformation> {
}
|
apache/dolphinscheduler | 1,043 | dolphinscheduler-e2e/dolphinscheduler-e2e-case/src/test/java/org/apache/dolphinscheduler/e2e/models/environment/IEnvironment.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.e2e.models.environment;
public interface IEnvironment {
String getEnvironmentName();
String getEnvironmentConfig();
String getEnvironmentDesc();
String getEnvironmentWorkerGroup();
}
|
apache/dolphinscheduler | 1,074 | dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/model/MasterHeartBeat.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.common.model;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
@SuperBuilder
@NoArgsConstructor
public class MasterHeartBeat extends BaseHeartBeat implements HeartBeat {
private boolean isCoordinator;
}
|
apache/doris-manager | 1,082 | manager/manager/src/main/java/org/apache/doris/stack/service/construct/DataDescription.java | // Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.
package org.apache.doris.stack.service.construct;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@NoArgsConstructor
@AllArgsConstructor
public class DataDescription {
private String description;
private String userName;
}
|
apache/druid | 1,098 | processing/src/main/java/org/apache/druid/query/aggregation/LongAggregateCombiner.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.query.aggregation;
import org.apache.druid.segment.LongColumnSelector;
/**
* Specialization of {@link AggregateCombiner} for primitive long aggregations.
*/
public abstract class LongAggregateCombiner implements AggregateCombiner<Long>, LongColumnSelector
{
}
|
apache/dubbo-samples | 1,060 | 3-extensions/registry/dubbo-samples-consul/src/main/java/org/apache/dubbo/samples/consul/impl/DemoServiceImpl.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.samples.consul.impl;
import org.apache.dubbo.samples.consul.api.DemoService;
public class DemoServiceImpl implements DemoService {
@Override
public String sayHello(String name) {
return "hello, " + name;
}
}
|
apache/dubbo | 1,099 | dubbo-rpc/dubbo-rpc-api/src/main/java/org/apache/dubbo/rpc/CancellationListener.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.rpc;
/**
* A listener notified on context cancellation.
*/
public interface CancellationListener {
/**
* Notifies that a context was cancelled.
*
* @param context the newly cancelled context.
*/
void cancelled(RpcServiceContext context);
}
|
apache/eagle | 1,069 | eagle-core/eagle-query/eagle-client-base/src/test/java/org/apache/eagle/service/client/ClassB.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.eagle.service.client;
import com.fasterxml.jackson.annotation.JsonTypeName;
@JsonTypeName("ClassB")
public class ClassB extends Base {
private String b;
public String getB() {
return b;
}
public void setB(String b) {
this.b = b;
}
}
|
apache/eventmesh | 1,057 | eventmesh-openconnect/eventmesh-openconnect-java/src/main/java/org/apache/eventmesh/openconnect/ConnectorWorker.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.eventmesh.openconnect;
/**
* Connector worker interface
*/
public interface ConnectorWorker {
void init();
/**
* Starts the worker
*/
void start();
/**
* Stops the worker
*/
void stop();
}
|
apache/eventmesh | 1,073 | eventmesh-registry/eventmesh-registry-api/src/main/java/org/apache/eventmesh/registry/QueryInstances.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.eventmesh.registry;
import java.util.HashMap;
import java.util.Map;
import lombok.Data;
@Data
public class QueryInstances {
private String serviceName;
private boolean health;
private Map<String, String> extFields = new HashMap<>();
}
|
apache/felix-dev | 1,037 | ipojo/runtime/core-it/ipojo-core-lifecycle-controller-test/src/main/java/org/apache/felix/ipojo/runtime/core/services/CheckService.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.felix.ipojo.runtime.core.services;
import java.util.Properties;
public interface CheckService {
public static final String foo = "foo";
public boolean check();
public Properties getProps();
}
|
apache/felix-dev | 1,041 | ipojo/runtime/core-it/ipojo-core-annotations-test/src/main/java/org/apache/felix/ipojo/runtime/core/test/components/InstantiateSimple.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.felix.ipojo.runtime.core.test.components;
import org.apache.felix.ipojo.annotations.Component;
import org.apache.felix.ipojo.annotations.Instantiate;
@Instantiate
@Component
public class InstantiateSimple {
}
|
apache/felix-dev | 1,085 | scr/src/test/java/org/apache/felix/scr/integration/components/felix3680/A.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.felix.scr.integration.components.felix3680;
public class A
{
void bindB(B b)
{
}
void bindC(C c)
{
}
void bindD(D d)
{
}
void bindE(E e)
{
}
void bindF(F f)
{
}
void start()
{
}
}
|
apache/fineract | 1,092 | fineract-cob/src/main/java/org/apache/fineract/cob/exceptions/BusinessStepException.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.fineract.cob.exceptions;
public class BusinessStepException extends RuntimeException {
public BusinessStepException(String message) {
super(message);
}
public BusinessStepException(String message, Throwable t) {
super(message, t);
}
}
|
apache/flink-benchmarks | 1,114 | src/main/java/org/apache/flink/benchmark/full/package-info.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* This package contains an extended benchmark set which is not used for regression tests but rather
* for performance overview of certain parts of the code.
*
* <p>Please consider moving benchmarks here to keep the amount of regression benchmarks small.
*/
package org.apache.flink.benchmark.full;
|
apache/flink | 1,086 | flink-metrics/flink-metrics-datadog/src/main/java/org/apache/flink/metrics/datadog/MetricType.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.flink.metrics.datadog;
/** Metric types supported by Datadog. */
public enum MetricType {
/**
* Names of 'gauge' and 'count' must not be changed since they are mapped to json objects in a
* Datadog-defined format.
*/
gauge,
count
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.