repo_id stringclasses 875
values | size int64 974 38.9k | file_path stringlengths 10 308 | content stringlengths 974 38.9k |
|---|---|---|---|
apache/jclouds | 1,067 | core/src/main/java/org/jclouds/javax/annotation/concurrent/NotThreadSafe.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jclouds.javax.annotation.concurrent;
@java.lang.annotation.Documented
@java.lang.annotation.Target({java.lang.annotation.ElementType.TYPE})
@java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.CLASS)
public @interface NotThreadSafe {
}
|
apache/maven-assembly-plugin | 1,024 | src/functional-tests/java/org/apache/maven/plugin/assembly/stubs/UnArchiverWithException.java | package org.apache.maven.plugin.assembly.stubs;
import org.codehaus.plexus.archiver.ArchiverException;
import java.io.IOException;
/*
* Copyright 2001-2006 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.
*/
/**
* @author Edwin Punzalan
*/
public class UnArchiverWithException
extends UnArchiverStub
{
public void extract()
throws ArchiverException, IOException
{
throw new ArchiverException( "exception explicitly thrown for testing" );
}
}
|
apache/maven-compiler-plugin | 1,047 | src/it/automodules-transitive-module/src/main/java/org/maven/test/Main.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.maven.test;
import org.codehaus.plexus.util.StringUtils;
public class Main {
/**
* @param args
*/
public static void main(String[] args) {
System.out.println(StringUtils.concatenate(args));
}
}
|
apache/maven-plugins | 1,019 | maven-javadoc-plugin/src/it/projects/output-encoding/encoding/src/main/java/Test.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
* Sample class with non-ascii characters:
* {non-ascii chars delimiter}french: äëïöüàèìòù, greek: αβγδεζηθ, japanese: あいうえお{non-ascii chars delimiter}
*
* @author Hervé Boutemy
*/
public class Test
{
}
|
apache/metamodel | 1,064 | core/src/main/java/org/apache/metamodel/query/DefaultScalarFunction.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.metamodel.query;
public abstract class DefaultScalarFunction implements ScalarFunction {
private static final long serialVersionUID = 1L;
@Override
public String toString() {
return getFunctionName();
}
}
|
apache/nifi | 1,029 | minifi/minifi-commons/minifi-commons-api/src/main/java/org/apache/nifi/minifi/commons/api/MiNiFiConstants.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.minifi.commons.api;
public interface MiNiFiConstants {
String BOOTSTRAP_UPDATED_FILE_NAME = "bootstrap-updated.conf";
String BACKUP_EXTENSION = ".backup";
String RAW_EXTENSION = ".raw";
}
|
apache/olingo-odata4 | 1,043 | ext/client-proxy/src/main/java/org/apache/olingo/ext/proxy/api/PrimitiveCollectionInvoker.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.olingo.ext.proxy.api;
public interface PrimitiveCollectionInvoker<T extends CollectionQuery<?>>
extends CollectionQuery<PrimitiveCollectionInvoker<T>>, Invoker<T> {
//No additional methods needed for now.
}
|
apache/openjpa | 1,039 | openjpa-persistence/src/main/java/org/apache/openjpa/persistence/query/ConditionalOperator.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.openjpa.persistence.query;
/**
* Enumerates conditional operator that operates on two predicates to generate
* another predicate.
*
* @author Pinaki Poddar
*
*/
public enum ConditionalOperator {
AND,
OR
}
|
apache/openwebbeans | 1,050 | webbeans-impl/src/test/java/org/apache/webbeans/test/producer/ProducerBean2.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.webbeans.test.producer;
import jakarta.enterprise.inject.Produces;
import jakarta.inject.Named;
public class ProducerBean2 {
@Produces
@Named
public String name1() {
return "name1 of ProducerBean2";
}
}
|
apache/ozhera | 1,040 | trace-etl/trace-etl-es/src/main/java/org/apache/ozhera/trace/etl/es/queue/DiskStoreService.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.trace.etl.es.queue;
/**
* @author shanwb
* @date 2021-09-14
*/
public interface DiskStoreService {
void put(String key, byte[] value);
byte[] get(String key);
void delete(String key);
} |
apache/paimon | 1,063 | paimon-core/src/main/java/org/apache/paimon/utils/SimpleFileReader.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.utils;
import org.apache.paimon.annotation.Public;
import java.util.List;
/**
* A reader for reading file to entries.
*
* @since 0.9.0
*/
@Public
public interface SimpleFileReader<T> {
List<T> read(String fileName);
}
|
apache/plc4x | 1,043 | plc4j/drivers/canopen/src/main/java/org/apache/plc4x/java/canopen/tag/CANOpenSubscriptionTag.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.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.canopen.tag;
import org.apache.plc4x.java.canopen.readwrite.CANOpenService;
public interface CANOpenSubscriptionTag {
CANOpenService getService();
boolean isWildcard();
int getNodeId();
}
|
apache/plc4x | 1,068 | plc4j/api/src/test/java/org/apache/plc4x/java/mock/MockPlcConnection.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.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.mock;
import org.apache.plc4x.java.api.PlcConnection;
import org.apache.plc4x.java.api.authentication.PlcAuthentication;
public interface MockPlcConnection extends PlcConnection {
PlcAuthentication getAuthentication();
}
|
apache/polygene-java | 1,045 | tools/envisage/src/main/java/org/apache/polygene/envisage/print/PrintingException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.envisage.print;
public class PrintingException
extends RuntimeException
{
public PrintingException( String message, Throwable cause )
{
super( message, cause );
}
}
|
apache/pulsar | 1,035 | pulsar-broker/src/test/java/org/apache/pulsar/broker/protocol/SimpleProtocolHandlerSharedThreadPoolTest.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.broker.protocol;
public class SimpleProtocolHandlerSharedThreadPoolTest extends SimpleProtocolHandlerTestsBase {
public SimpleProtocolHandlerSharedThreadPoolTest() {
super(false);
}
}
|
apache/pulsar | 1,059 | pulsar-io/alluxio/src/test/java/org/apache/pulsar/io/alluxio/sink/Foobar.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.alluxio.sink;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Foobar {
String name;
String address;
int age;
}
|
apache/qpid-broker-j | 1,045 | broker-core/src/main/java/org/apache/qpid/server/txn/AlreadyKnownDtxException.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.txn;
public class AlreadyKnownDtxException extends DtxException
{
public AlreadyKnownDtxException(Xid id)
{
super("Xid " + id + " cannot be started as it is already known");
}
}
|
apache/rocketmq-dashboard | 1,061 | src/main/java/org/apache/rocketmq/dashboard/service/LoginService.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.dashboard.service;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
public interface LoginService {
boolean login(HttpServletRequest request, HttpServletResponse response);
}
|
apache/rocketmq-eventbridge | 1,025 | domain/src/main/java/org/apache/rocketmq/eventbridge/domain/model/data/PutEventsResponseEntry.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.domain.model.data;
import lombok.Data;
@Data
public class PutEventsResponseEntry {
private String eventId;
private String errorCode;
private String errorMessage;
}
|
apache/samza | 1,042 | samza-azure/src/main/java/org/apache/samza/coordinator/scheduler/SchedulerStateChangeListener.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.samza.coordinator.scheduler;
/**
* Listener interface for Azure Job Coordinator, to track state changes and take necessary actions.
*/
public interface SchedulerStateChangeListener {
void onStateChange();
}
|
apache/shardingsphere | 1,028 | infra/spi/src/test/java/org/apache/shardingsphere/infra/spi/fixture/multiton/impl/MultitonSPIFixtureImpl.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.infra.spi.fixture.multiton.impl;
import org.apache.shardingsphere.infra.spi.fixture.multiton.MultitonSPIFixture;
public final class MultitonSPIFixtureImpl implements MultitonSPIFixture {
}
|
apache/skywalking | 1,031 | oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/source/RequestType.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.source;
/**
* RPC request type.
*/
public enum RequestType {
DATABASE,
HTTP,
RPC,
gRPC,
/**
* Logic request only.
*/
LOGIC,
TCP,
MQ
}
|
apache/storm | 1,038 | external/storm-kafka-client/src/main/java/org/apache/storm/kafka/trident/selector/KafkaTopicSelector.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.storm.kafka.trident.selector;
import java.io.Serializable;
import org.apache.storm.trident.tuple.TridentTuple;
public interface KafkaTopicSelector extends Serializable {
String getTopic(TridentTuple tuple);
}
|
apache/storm | 1,043 | external/storm-kafka-migration/src/main/java/org/apache/storm/kafka/migration/MapUtil.java | /*
* Copyright 2018 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.storm.kafka.migration;
import java.util.Map;
public class MapUtil {
/**
* Get value for key. Error if value is null or not the expected type.
*/
public static <T> T getOrError(Map<String, Object> conf, String key) {
T ret = (T) conf.get(key);
if (ret == null) {
throw new RuntimeException(key + " cannot be null");
}
return ret;
}
}
|
apache/storm | 1,063 | integration-test/src/test/java/org/apache/storm/st/helper/AbstractTest.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.storm.st.helper;
import org.apache.storm.st.wrapper.StormCluster;
public abstract class AbstractTest {
protected final StormCluster cluster = new StormCluster();
static {
System.setProperty("user.timezone", "UTC");
}
}
|
apache/storm | 1,084 | storm-client/src/jvm/org/apache/storm/topology/IRichSpout.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version
* 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package org.apache.storm.topology;
import org.apache.storm.spout.ISpout;
/**
* When writing topologies using Java, {@link IRichBolt} and {@link IRichSpout} are the main interfaces to use to implement components of
* the topology.
*/
public interface IRichSpout extends ISpout, IComponent {
}
|
apache/stormcrawler | 1,061 | core/src/test/java/org/apache/stormcrawler/bolt/SimpleFetcherBoltTest.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to you under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.stormcrawler.bolt;
import org.junit.jupiter.api.BeforeEach;
public class SimpleFetcherBoltTest extends AbstractFetcherBoltTest {
@BeforeEach
void setUpContext() throws Exception {
bolt = new SimpleFetcherBolt();
}
}
|
apache/syncope | 1,039 | common/am/lib/src/main/java/org/apache/syncope/common/lib/types/SRARoutePredicateFactory.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.types;
public enum SRARoutePredicateFactory {
AFTER,
BEFORE,
BETWEEN,
COOKIE,
HEADER,
HOST,
METHOD,
PATH,
QUERY,
REMOTE_ADDR,
WEIGHT,
CUSTOM
}
|
apache/tapestry-5 | 1,026 | tapestry-ioc/src/test/java/org/apache/tapestry5/ioc/test/internal/NoUsableContributionParameterModule.java | // Copyright 2006, 2007 The Apache Software Foundation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package org.apache.tapestry5.ioc.test.internal;
import org.apache.tapestry5.ioc.annotations.InjectService;
import org.apache.tapestry5.ioc.internal.DefaultModuleDefImpl;
/**
* Used by {@link org.apache.tapestry5.ioc.internal.DefaultModuleDefImpl}.
*/
public class NoUsableContributionParameterModule
{
public void contributeNoParameter(@InjectService("foo.Bar")
UpcaseService service)
{
}
}
|
apache/tapestry-5 | 1,043 | tapestry-core/src/main/java/org/apache/tapestry5/internal/services/AttributeInfo.java | // Copyright 2009 The Apache Software Foundation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package org.apache.tapestry5.internal.services;
import javax.xml.namespace.QName;
/**
* Tracks the qualified name and value of an attribute within a start element
* XMLToken.
*
* @since 5.2.0
*/
public class AttributeInfo
{
final QName attributeName;
final String value;
public AttributeInfo(QName attributeName, String value)
{
this.attributeName = attributeName;
this.value = value;
}
}
|
apache/thrift | 1,080 | lib/javame/src/org/apache/thrift/protocol/TList.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.thrift.protocol;
/**
* Helper class that encapsulates list metadata.
*
*/
public class TList {
public TList() {}
public TList(byte t, int s) {
elemType = t;
size = s;
}
public byte elemType = TType.STOP;
public int size = 0;
}
|
apache/tika | 1,070 | tika-core/src/main/java/org/apache/tika/exception/TikaException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.tika.exception;
/**
* Tika exception
*/
public class TikaException extends Exception {
public TikaException(String msg) {
super(msg);
}
public TikaException(String msg, Throwable cause) {
super(msg, cause);
}
}
|
apache/tomcat80 | 1,091 | java/org/apache/jasper/el/JspELException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.jasper.el;
import javax.el.ELException;
public class JspELException extends ELException {
private static final long serialVersionUID = 1L;
public JspELException(String mark, ELException e) {
super(mark + " " + e.getMessage(), e.getCause());
}
}
|
apache/tomee | 1,040 | itests/openejb-itests-beans/src/main/java/org/apache/openejb/test/singleton/ContainerTxSingletonHome.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.openejb.test.singleton;
public interface ContainerTxSingletonHome extends jakarta.ejb.EJBHome {
public ContainerTxSingletonObject create()
throws jakarta.ejb.CreateException, java.rmi.RemoteException;
}
|
apache/tomee | 1,040 | itests/openejb-itests-beans/src/main/java/org/apache/openejb/test/stateless/ContainerTxStatelessHome.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.openejb.test.stateless;
public interface ContainerTxStatelessHome extends jakarta.ejb.EJBHome {
public ContainerTxStatelessObject create()
throws jakarta.ejb.CreateException, java.rmi.RemoteException;
}
|
apache/tomee | 1,048 | examples/webservice-handlerchain/src/main/java/org/superbiz/calculator/wsh/CalculatorWs.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR 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.calculator.wsh;
import jakarta.jws.WebService;
@WebService(targetNamespace = "http://superbiz.org/wsdl")
public interface CalculatorWs {
public int sum(int add1, int add2);
public int multiply(int mul1, int mul2);
}
|
apache/tomee | 1,059 | container/openejb-core/src/test/java/org/apache/openejb/core/cmp/jpa/Author.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.core.cmp.jpa;
import jakarta.ejb.EJBLocalObject;
import java.util.Set;
public interface Author extends EJBLocalObject {
String getName();
void setName(String name);
Set getBooks();
void setBooks(Set books);
}
|
apache/uniffle | 1,047 | internal-client/src/main/java/org/apache/uniffle/client/response/RssAppHeartBeatResponse.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.uniffle.client.response;
import org.apache.uniffle.common.rpc.StatusCode;
public class RssAppHeartBeatResponse extends ClientResponse {
public RssAppHeartBeatResponse(StatusCode statusCode) {
super(statusCode);
}
}
|
apache/usergrid | 1,065 | stack/core/src/main/java/org/apache/usergrid/persistence/RoleRef.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.usergrid.persistence;
import java.util.UUID;
public interface RoleRef extends EntityRef {
public UUID getGroupId();
public EntityRef getGroupRef();
public String getRoleName();
public String getApplicationRoleName();
}
|
apache/zookeeper | 1,048 | zookeeper-server/src/main/java/org/apache/zookeeper/cli/CommandNotFoundException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.zookeeper.cli;
@SuppressWarnings("serial")
public class CommandNotFoundException extends CliException {
public CommandNotFoundException(String command) {
super("Command not found: " + command, 127);
}
}
|
google/auto | 1,069 | factory/src/test/resources/expected/Generics_FooImplFactory.java | /*
* Copyright 2021 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 tests;
import javax.annotation.processing.Generated;
import javax.inject.Inject;
@Generated(
value = "com.google.auto.factory.processor.AutoFactoryProcessor",
comments = "https://github.com/google/auto/tree/main/factory"
)
final class Generics_FooImplFactory<M extends Generics.Bar> implements Generics.FooFactory<M> {
@Inject
Generics_FooImplFactory() {}
@Override
public Generics.FooImpl<M> create() {
return new Generics.FooImpl<M>();
}
}
|
google/binnavi | 1,068 | src/main/java/com/google/security/zynamics/binnavi/API/debug/raw/_Doc.java | // Copyright 2011-2016 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.security.zynamics.binnavi.API.debug.raw;
/**
* \namespace com.google.security.zynamics.binnavi.API.debug.raw \brief Contains classes to handling raw debugger messages
*
* The package com.google.security.zynamics.binnavi.API.debug.raw contains classes that are used to work with the debugger on a
* very low level, for example for direct debugger message processing before debugger messages are
* interpreted by com.google.security.zynamics.binnavi.
*/
|
google/copybara | 1,083 | java/com/google/copybara/onboard/core/Converter.java | /*
* Copyright (C) 2022 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.google.copybara.onboard.core;
/**
* A {@code Converter} is a function that allows converting a String to the corresponding T type.
* It should be used only in the context of {@code Data} objects.
*/
public interface Converter<T> {
/**
* Convert {@code value} to {@code T}.
*
* @throws CannotConvertException if the conversion is not possible (e.g. wrong input).
*/
T convert(String value, InputProviderResolver resolver) throws CannotConvertException;
}
|
google/jni-bind | 1,076 | javatests/com/jnibind/android/FieldTestHelper.java | /*
* Copyright 2021 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.jnibind.android;
import com.google.android.apps.common.proguard.UsedByNative;
/**
* This object is used to set mock expectations for FieldTest as inner classes do not support
* mocking and the class definition must match the filename.
*/
public class FieldTestHelper {
@UsedByNative("field_test_jni.cc")
public int intField;
@UsedByNative("field_test_jni.cc")
public float floatField;
@UsedByNative("field_test_jni.cc")
public double doubleField;
}
|
google/oss-fuzz | 1,083 | projects/apache-commons-compress/ArchiverArFuzzer.java | // Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT 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.commons.compress.archivers.ar.ArArchiveInputStream;
import java.io.ByteArrayInputStream;
import java.io.IOException;
public class ArchiverArFuzzer extends BaseTests {
public static void fuzzerTestOneInput(byte[] data) {
try {
fuzzArchiveInputStream(new ArArchiveInputStream(new ByteArrayInputStream(data)));
} catch (IOException ignored) {
}
}
}
|
google/schemaorg-java | 1,059 | src/main/java/com/google/schemaorg/core/datatype/Number.java | /*
* Copyright 2016 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.schemaorg.core.datatype;
import com.google.schemaorg.core.CoreConstants;
/**
* Represents <a href="http://schema.org/Number">http://schema.org/Number</a>.
*/
public class Number extends DataType {
Number(String value) {
super(value);
}
@Override
public String getFullTypeName() {
return CoreConstants.NAMESPACE + "Number";
}
public static Number of(String value) {
return new Number(value);
}
}
|
google/thread-weaver | 1,065 | test/com/google/testing/threadtester/SimpleClass2.java | /*
* Copyright 2009 Weaver 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.testing.threadtester;
/**
* Simple test class called by SimpleClass.
*
* @author alasdair.mackintosh@gmail.com (Alasdair Mackintosh)
*/
public class SimpleClass2 {
volatile int position = 0;
public int setPosition(SimpleClass owner, int value) {
owner.position = value;
return value;
}
public int getValue() {
position = 1;
position = 2;
return 42;
}
public int getArbitraryValue() {
return -1;
}
}
|
googleapis/discovery-artifact-manager | 1,048 | toolkit/src/main/java/com/google/api/codegen/GeneratedResult.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;
import com.google.api.tools.framework.snippet.Doc;
import com.google.auto.value.AutoValue;
/** Represents a generated document plus the filename for the document. */
@AutoValue
public abstract class GeneratedResult {
public static GeneratedResult create(Doc doc, String filename) {
return new AutoValue_GeneratedResult(doc, filename);
}
public abstract Doc getDoc();
public abstract String getFilename();
}
|
hibernate/hibernate-orm | 1,045 | hibernate-core/src/main/java/org/hibernate/engine/FetchStyle.java | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.engine;
/**
* Enumeration of values describing <em>how</em> fetching should occur.
*
* @author Steve Ebersole
* @see FetchTiming
*/
public enum FetchStyle {
/**
* Performs a separate SQL select to load the indicated data. This can either be eager (the second select is
* issued immediately) or lazy (the second select is delayed until the data is needed).
*/
SELECT,
/**
* Inherently an eager style of fetching. The data to be fetched is obtained as part of an SQL join.
*/
JOIN,
/**
* Initializes a number of indicated data items (entities or collections) in a series of grouped sql selects
* using an in-style sql restriction to define the batch size. Again, can be either eager or lazy.
*/
BATCH,
/**
* Performs fetching of associated data (currently limited to only collections) based on the sql restriction
* used to load the owner. Again, can be either eager or lazy.
*/
SUBSELECT
}
|
openjdk/jdk8 | 1,079 | langtools/test/tools/javac/warnings/AuxiliaryClass/NotAClassName.java | /*
* Copyright (c) 2012, 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.
*/
class AnAuxiliaryClass {
}
|
apache/curator | 1,032 | curator-framework/src/main/java/org/apache/curator/framework/api/ACLCreateModeStatBackgroundPathAndBytesable.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.curator.framework.api;
public interface ACLCreateModeStatBackgroundPathAndBytesable<T>
extends ACLCreateModeBackgroundPathAndBytesable<T>, Statable<ACLCreateModeBackgroundPathAndBytesable<T>> {}
|
apache/cxf | 1,046 | systests/databinding/src/test/java/org/apache/cxf/systest/jaxb/shareclasses/model/foo/FooName.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.cxf.systest.jaxb.shareclasses.model.foo;
import jakarta.xml.bind.annotation.XmlRootElement;
import org.apache.cxf.systest.jaxb.shareclasses.model.NameElement;
@XmlRootElement
public class FooName extends NameElement {
}
|
apache/cxf | 1,048 | rt/rs/extensions/search/src/main/java/org/apache/cxf/jaxrs/ext/search/ConditionType.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.ext.search;
/**
* Possisble condition types
*
*/
public enum ConditionType {
EQUALS,
NOT_EQUALS,
LESS_THAN,
GREATER_THAN,
LESS_OR_EQUALS,
GREATER_OR_EQUALS,
OR,
AND,
CUSTOM
}
|
apache/cxf | 1,074 | core/src/main/java/org/apache/cxf/management/ManagedComponent.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.management;
import javax.management.JMException;
import javax.management.ObjectName;
/**
* Basic interface for representing a Instrumented object.
*
*/
public interface ManagedComponent {
ObjectName getObjectName() throws JMException;
}
|
apache/directory-server | 1,041 | core-api/src/main/java/org/apache/directory/server/core/api/journal/JournalEvent.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.directory.server.core.api.journal;
/**
* TODO JournalEvent.
*
* @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
*/
public class JournalEvent
{
}
|
apache/dubbo | 1,033 | dubbo-remoting/dubbo-remoting-http12/src/main/java/org/apache/dubbo/remoting/http12/message/CodecMediaType.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.remoting.http12.message;
public interface CodecMediaType {
MediaType mediaType();
default boolean supports(String mediaType) {
return mediaType.startsWith(mediaType().getName());
}
}
|
apache/dubbo | 1,047 | dubbo-rpc/dubbo-rpc-dubbo/src/main/java/org/apache/dubbo/rpc/protocol/dubbo/ClientsProvider.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.protocol.dubbo;
import org.apache.dubbo.remoting.exchange.ExchangeClient;
import java.util.List;
public interface ClientsProvider {
List<? extends ExchangeClient> getClients();
void close(int timeout);
}
|
apache/dubbo | 1,056 | dubbo-cluster/src/test/java/org/apache/dubbo/rpc/cluster/filter/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.rpc.cluster.filter;
class DemoServiceImpl implements DemoService {
@Override
public String sayHello(String name) {
return name;
}
@Override
public int plus(int a, int b) {
return 0;
}
}
|
apache/eventmesh | 1,026 | eventmesh-common/src/main/java/org/apache/eventmesh/common/config/connector/mq/pulsar/SinkConnectorConfig.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.common.config.connector.mq.pulsar;
import lombok.Data;
@Data
public class SinkConnectorConfig {
private String connectorName;
private String serviceUrl;
private String topic;
}
|
apache/fineract | 1,028 | fineract-e2e-tests-core/src/test/java/org/apache/fineract/test/messaging/event/loan/LoanUndoApprovalEvent.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.fineract.test.messaging.event.loan;
public class LoanUndoApprovalEvent extends AbstractLoanEvent {
@Override
public String getEventName() {
return "LoanUndoApprovalBusinessEvent";
}
}
|
apache/geaflow | 1,025 | geaflow/geaflow-plugins/geaflow-store/geaflow-store-api/src/main/java/org/apache/geaflow/store/api/key/IKVStore.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.geaflow.store.api.key;
import org.apache.geaflow.state.key.KeyValueTrait;
import org.apache.geaflow.store.IBaseStore;
public interface IKVStore<K, V> extends KeyValueTrait<K, V>, IBaseStore {
}
|
apache/geaflow | 1,028 | geaflow/geaflow-dsl/geaflow-dsl-common/src/main/java/org/apache/geaflow/dsl/common/pushdown/PartitionFilter.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.geaflow.dsl.common.pushdown;
import java.io.Serializable;
import org.apache.geaflow.dsl.common.data.Row;
public interface PartitionFilter extends Serializable {
boolean apply(Row partition);
}
|
apache/geode | 1,081 | geode-core/src/test/java/com/company/app/Customer.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional information regarding
* copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License. You may obtain a
* copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES 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.company.app;
import org.apache.geode.cache.Declarable;
/**
* A class that is <code>Declarable</code>
*
* @since GemFire 3.2.1
*/
public class Customer implements Declarable {
public Customer() {
}
@Override
public void init(java.util.Properties props) {
}
}
|
apache/hadoop | 1,034 | hadoop-cloud-storage-project/hadoop-tos/src/main/java/org/apache/hadoop/fs/tosfs/object/ObjectConstants.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.tosfs.object;
public final class ObjectConstants {
public static final int MIN_PART_SIZE = 5 * 1024 * 1024;
public static final int MAX_PART_COUNT = 10000;
private ObjectConstants() {
}
}
|
apache/harmony | 1,063 | classlib/modules/awt/src/main/java/common/java/awt/MenuContainer.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* @author Pavel Dolgov
*/
package java.awt;
public interface MenuContainer {
public void remove(MenuComponent c);
public Font getFont();
/**
* @deprecated
*/
@Deprecated
public boolean postEvent(Event e);
}
|
apache/helix | 1,058 | helix-core/src/main/java/org/apache/helix/controller/pipeline/StageException.java | package org.apache.helix.controller.pipeline;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
public class StageException extends Exception {
public StageException(String message) {
super(message);
}
public StageException(String message, Exception e) {
super(message, e);
}
}
|
apache/hop | 1,036 | plugins/transforms/textfile/src/main/java/org/apache/hop/pipeline/transforms/csvinput/EmptyPatternMatcher.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.hop.pipeline.transforms.csvinput;
public class EmptyPatternMatcher implements IPatternMatcher {
@Override
public boolean matchesPattern(byte[] source, int location, byte[] pattern) {
return false;
}
}
|
apache/hop | 1,062 | ui/src/main/java/org/apache/hop/ui/core/gui/IGuiPluginCompositeButtonsListener.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.hop.ui.core.gui;
public interface IGuiPluginCompositeButtonsListener {
/**
* This method is called when one of the buttons is pressed
*
* @param sourceObject The source object
*/
void buttonPressed(Object sourceObject);
}
|
apache/hop | 1,065 | core/src/main/java/org/apache/hop/core/row/value/ValueMetaConversionException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.hop.core.row.value;
public class ValueMetaConversionException extends Exception {
private static final long serialVersionUID = 1L;
public ValueMetaConversionException(String errorMessage, Exception e) {
super(errorMessage, e);
}
}
|
apache/ignite-3 | 1,050 | modules/raft/src/testFixtures/java/org/apache/ignite/raft/messages/TestMessageGroup.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.ignite.raft.messages;
import org.apache.ignite.internal.network.annotations.MessageGroup;
/**
* Message group for tests.
*/
@MessageGroup(groupType = 444, groupName = "TestRaftMessages")
public interface TestMessageGroup {
}
|
apache/ignite-3 | 1,059 | modules/raft/src/main/java/org/apache/ignite/raft/jraft/rpc/InvokeCallback.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.ignite.raft.jraft.rpc;
import java.util.concurrent.Executor;
import java.util.concurrent.ForkJoinPool;
/**
*
*/
public interface InvokeCallback {
void complete(final Object result, final Throwable err);
Executor executor();
}
|
apache/ignite | 1,067 | modules/json/src/test/java/org/apache/ignite/dump/IgniteJsonSuite.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.ignite.dump;
import org.junit.runner.RunWith;
import org.junit.runners.Suite;
/**
* Json test suite.
*/
@RunWith(Suite.class)
@Suite.SuiteClasses({
JsonDumpConsumerTest.class,
JsonArrayTest.class
})
public class IgniteJsonSuite {
}
|
apache/incubator-datalab | 1,035 | services/self-service/src/main/java/com/epam/datalab/backendapi/service/ReuploadKeyService.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES 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.epam.datalab.backendapi.service;
import com.epam.datalab.dto.reuploadkey.ReuploadKeyStatusDTO;
@FunctionalInterface
public interface ReuploadKeyService {
void updateResourceData(ReuploadKeyStatusDTO dto);
}
|
apache/incubator-gluten | 1,058 | gluten-arrow/src/main/java/org/apache/gluten/runtime/RuntimeJniWrapper.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.gluten.runtime;
public class RuntimeJniWrapper {
private RuntimeJniWrapper() {}
public static native long createRuntime(String backendType, long nmm, byte[] sessionConf);
public static native void releaseRuntime(long handle);
}
|
apache/incubator-heron | 1,069 | heron/api/src/java/org/apache/heron/streamlet/KVStreamlet.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.heron.streamlet;
import org.apache.heron.classification.InterfaceStability;
/**
* A KVStreamlet is a Streamlet with KeyValue data.
*/
@InterfaceStability.Evolving
public interface KVStreamlet<K, V> extends Streamlet<KeyValue<K, V>> {
}
|
apache/incubator-kie-drools | 1,024 | drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/StoredEvent.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.drools.reliability.core;
public interface StoredEvent extends StoredObject {
@Override
default boolean isEvent() {
return true;
}
long getTimestamp();
long getDuration();
} |
apache/incubator-kie-drools | 1,037 | kie-util/kie-util-maven-integration/src/main/java/org/kie/maven/integration/PomParser.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.kie.maven.integration;
import java.util.List;
import org.kie.util.maven.support.DependencyFilter;
public interface PomParser {
List<DependencyDescriptor> getPomDirectDependencies( DependencyFilter filter );
}
|
apache/incubator-kie-drools | 1,040 | kie-internal/src/main/java/org/kie/internal/builder/conf/MultiValueRuleBuilderOption.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.kie.internal.builder.conf;
public interface MultiValueRuleBuilderOption extends MultiValueKieBuilderOption {
String TYPE = SingleValueRuleBuilderOption.TYPE;
default String type() {
return TYPE;
}
}
|
apache/incubator-kie-drools | 1,056 | drools-examples/src/main/java/org/drools/games/adventures/Counter.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.drools.games.adventures;
import java.util.concurrent.atomic.AtomicLong;
public class Counter {
private AtomicLong value = new AtomicLong(0);
public long getAndIncrement() {
return value.getAndIncrement();
}
}
|
apache/incubator-kie-kogito-runtimes | 1,040 | api/kogito-api/src/main/java/org/kie/kogito/uow/events/UnitOfWorkEndEvent.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.kie.kogito.uow.events;
import org.kie.kogito.uow.UnitOfWork;
public class UnitOfWorkEndEvent extends AbstractUnitOfWorkEvent {
public UnitOfWorkEndEvent(UnitOfWork unitOfWork) {
super(unitOfWork);
}
}
|
apache/incubator-retired-gossip | 1,051 | gossip-base/src/main/java/org/apache/gossip/manager/SystemClock.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.gossip.manager;
public class SystemClock implements Clock {
@Override
public long currentTimeMillis() {
return System.currentTimeMillis();
}
@Override
public long nanoTime() {
return System.nanoTime();
}
}
|
apache/incubator-seata-samples | 1,010 | at-sample/spring-dubbo-seata/src/main/java/org/apache/seata/account/service/AccountService.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.seata.account.service;
public interface AccountService {
/**
* 余额扣款
*
* @param userId 用户ID
* @param money 扣款金额
*/
void debit(String userId, int money);
} |
apache/incubator-seata | 1,059 | common/src/test/java/org/apache/seata/common/loader/LatinHello.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.seata.common.loader;
/**
* The type LatinHello
*
*/
@LoadLevel(name = "LatinHello", order = 3, scope = Scope.PROTOTYPE)
public class LatinHello implements Hello {
@Override
public String say() {
return "Olá.";
}
}
|
apache/incubator-seata | 1,060 | compatible/src/main/java/io/seata/core/store/db/sql/lock/LockStoreSql.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.seata.core.store.db.sql.lock;
/**
* the database lock store sql interface
*
* @since 1.2.0
* Notes: used for io.seata SPI interface
*/
@Deprecated
public interface LockStoreSql extends org.apache.seata.core.store.db.sql.lock.LockStoreSql {}
|
apache/incubator-seata | 1,072 | core/src/main/java/org/apache/seata/core/rpc/hook/RpcHook.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.seata.core.rpc.hook;
import org.apache.seata.core.protocol.RpcMessage;
public interface RpcHook {
void doBeforeRequest(String remoteAddr, RpcMessage request);
void doAfterResponse(String remoteAddr, RpcMessage request, Object response);
}
|
apache/inlong | 1,040 | inlong-audit/audit-common/src/main/java/org/apache/inlong/audit/consts/AttributeConstants.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.inlong.audit.consts;
public interface AttributeConstants {
String INLONG_GROUP_ID = "inlongGroupId";
String INLONG_STREAM_ID = "inlongStreamId";
String SEPARATOR = "&";
String KEY_VALUE_SEPARATOR = "=";
}
|
apache/inlong | 1,058 | inlong-common/src/main/java/org/apache/inlong/common/pojo/agent/CmdConfig.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.inlong.common.pojo.agent;
import lombok.Data;
/**
* The specifically command config for agent.
*/
@Data
public class CmdConfig {
private String dataTime;
private Integer id;
private Integer op;
private Integer taskId;
}
|
apache/iotdb | 1,043 | iotdb-api/external-api/src/main/java/org/apache/iotdb/external/api/thrift/ServerContextFactory.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.iotdb.external.api.thrift;
import org.apache.thrift.protocol.TProtocol;
import java.net.Socket;
public interface ServerContextFactory {
JudgableServerContext newServerContext(TProtocol out, Socket socket);
}
|
apache/jackrabbit-oak | 1,046 | oak-benchmarks/src/main/java/org/apache/jackrabbit/oak/benchmark/CSVResultGenerator.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.jackrabbit.oak.benchmark;
import java.io.PrintStream;
/**
* Interface that marks a benchmark being capable of producing a CSV output.
*/
public interface CSVResultGenerator {
void setPrintStream(PrintStream out);
} |
apache/jackrabbit-oak | 1,053 | oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/version/VersionConstants.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.jackrabbit.oak.plugins.version;
/**
* @deprecated Use {@link org.apache.jackrabbit.oak.spi.version.VersionConstants} instead
*/
public interface VersionConstants extends org.apache.jackrabbit.oak.spi.version.VersionConstants {
} |
apache/jackrabbit | 1,055 | jackrabbit-data/src/main/java/org/apache/jackrabbit/core/data/ScanEventListener.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.jackrabbit.core.data;
import org.apache.jackrabbit.api.management.MarkEventListener;
/**
* The listener interface for receiving garbage collection scan events.
*/
public interface ScanEventListener extends MarkEventListener {
}
|
apache/jclouds | 1,041 | apis/openstack-trove/src/test/java/org/jclouds/openstack/trove/v1/internal/BaseTroveApiExpectTest.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jclouds.openstack.trove.v1.internal;
import org.jclouds.openstack.trove.v1.TroveApi;
/**
* Base class for writing Trove Rest Api Expect tests
*/
public class BaseTroveApiExpectTest extends BaseTroveExpectTest<TroveApi> {
}
|
apache/jena | 1,050 | jena-arq/src/test/java/org/apache/jena/sparql/core/TestDatasetGraphBaseFindPattern_General.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.jena.sparql.core;
public class TestDatasetGraphBaseFindPattern_General extends AbstractDatasetGraphFindPatterns {
@Override
public DatasetGraph create() {
return DatasetGraphFactory.createGeneral();
}
}
|
apache/jena | 1,055 | jena-tdb1/src/main/java/org/apache/jena/tdb1/store/bulkloader/BuilderSecondaryIndexes.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.jena.tdb1.store.bulkloader;
import org.apache.jena.tdb1.store.tupletable.TupleIndex;
public interface BuilderSecondaryIndexes
{
public void createSecondaryIndexes(TupleIndex primaryIndex, TupleIndex[] secondaryIndexes) ;
}
|
apache/jena | 1,071 | jena-arq/src/test/java/org/apache/jena/riot/system/TestPrefixMap.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.jena.riot.system;
/**
* Test the standard {@link PrefixMapStd} implementation
*
*/
public class TestPrefixMap extends AbstractTestPrefixMap {
@Override
protected PrefixMap getPrefixMap() {
return new PrefixMapStd();
}
}
|
apache/jena | 1,073 | jena-arq/src/main/java/org/apache/jena/sparql/expr/E_Conditional.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.jena.sparql.expr;
/** @deprecated Use E_If */
@Deprecated(forRemoval=true)
public class E_Conditional extends E_If {
public E_Conditional(Expr condition, Expr thenExpr, Expr elseExpr) {
super(condition, thenExpr, elseExpr);
}
}
|
apache/joshua | 1,074 | src/main/java/org/apache/joshua/decoder/segment_file/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.
*/
/**
* Provides common interfaces for parsing segment files
* (aka test corpora to be translated). In order to support
* constraint annotations, we provide a general API for
* use by JoshuaDecoder and Chart.
*/
package org.apache.joshua.decoder.segment_file;
|
apache/kylin | 1,054 | src/common-service/src/main/java/org/apache/kylin/rest/service/TableSamplingSupporter.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.kylin.rest.service;
import java.util.List;
import java.util.Set;
public interface TableSamplingSupporter {
List<String> sampling(Set<String> tables, String project, int rows, int priority, String yarnQueue, Object tag);
}
|
apache/linkis | 1,053 | linkis-public-enhancements/linkis-cs-server/src/test/java/org/apache/linkis/cs/Scan.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.linkis.cs;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.mybatis.spring.annotation.MapperScan;
@EnableAutoConfiguration
@MapperScan("org.apache.linkis.cs.persistence.dao")
public class Scan {}
|
apache/logging-log4j2 | 1,050 | log4j-core/src/main/java/org/apache/logging/log4j/core/config/json/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.
*/
/**
* Classes and interfaces supporting configuration of Log4j 2 with JSON.
*/
@Export
@Version("2.20.1")
package org.apache.logging.log4j.core.config.json;
import org.osgi.annotation.bundle.Export;
import org.osgi.annotation.versioning.Version;
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.