repo_id
stringclasses
875 values
size
int64
974
38.9k
file_path
stringlengths
10
308
content
stringlengths
974
38.9k
apache/openjpa
1,078
openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/criteria/FemaleUser_.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * Generated by OpenJPA MetaModel Generator Tool. **/ package org.apache.openjpa.persistence.criteria; @jakarta.persistence.metamodel.StaticMetamodel (value=org.apache.openjpa.persistence.criteria.FemaleUser.class) public class FemaleUser_ extends CompUser_ { }
apache/openjpa
1,092
openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/meta/Painter.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.meta; import jakarta.persistence.Entity; @Entity public class Painter extends Artist { private static final long serialVersionUID = 1L; public Painter() { super(); } public Painter(String name) { super(name); } }
apache/openwebbeans
1,061
webbeans-impl/src/test/java/org/apache/webbeans/test/component/specializes/logger/SpecializedInjector.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.component.specializes.logger; import jakarta.inject.Inject; public class SpecializedInjector { private @Inject @DefaultLogger ISomeLogger logger; public ISomeLogger logger() { return logger; } }
apache/openwebbeans
1,074
webbeans-impl/src/test/java/org/apache/webbeans/test/specalization/DefaultPenProducer.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.specalization; import jakarta.enterprise.inject.Produces; public class DefaultPenProducer { @Produces @QualifierSpecialized IPen makeMeAPen() { Pen pen = new Pen(); pen.str = "An default "; return pen; } }
apache/openwebbeans
1,078
atinject-tck/src/test/java/org/apache/webbeans/atinject/tck/OpenWebBeansAtInjectTck.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.atinject.tck; import org.apache.webbeans.atinject.tck.container.AtInjectContainer; import junit.framework.Test; public class OpenWebBeansAtInjectTck { public static Test suite() { return new AtInjectContainer().start(); } }
apache/openwebbeans
1,080
webbeans-impl/src/test/java/org/apache/webbeans/test/injection/generics/StringBean.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.injection.generics; import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped public class StringBean implements MyInterface<String> { @Override public String getValue() { return getClass().getName(); } }
apache/pig
1,136
src/org/apache/pig/builtin/LOG10.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.pig.builtin; /** * LOG10 implements a binding to the Java function * {@link java.lang.Math#log10(double) Math.log10(double)}. * Given a single data atom it returns the base 10 logarithm of a double */ public class LOG10 extends DoubleBase{ Double compute(Double input){ return Math.log10(input); } }
apache/plc4x
1,058
plc4j/transports/raw-socket/src/main/java/org/apache/plc4x/java/transport/rawsocket/RawSocketTransportConfiguration.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.plc4x.java.transport.rawsocket; import org.apache.plc4x.java.transport.pcap.PcapTransportConfiguration; public interface RawSocketTransportConfiguration extends PcapTransportConfiguration { boolean isResolveMacAccess(); }
apache/plc4x
1,098
plc4j/spi/src/main/java/org/apache/plc4x/java/spi/codegen/io/ContextReader.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.plc4x.java.spi.codegen.io; import org.apache.plc4x.java.spi.generation.WithReaderArgs; public interface ContextReader { void pullContext(String logicalName, WithReaderArgs... readerArgs); void closeContext(String logicalName, WithReaderArgs... readerArgs); }
apache/pulsar
1,083
pulsar-broker/src/main/java/org/apache/pulsar/common/naming/TopicBundleAssignmentStrategy.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.pulsar.common.naming; import org.apache.pulsar.broker.PulsarService; public interface TopicBundleAssignmentStrategy { NamespaceBundle findBundle(TopicName topicName, NamespaceBundles namespaceBundles); void init(PulsarService pulsarService); }
apache/qpid-jms
1,094
qpid-jms-client/src/main/java/org/apache/qpid/jms/JmsTransactionListener.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.jms; /** * Allows for a listener to be notified when a transaction is started, commits * or is rolled back. */ public interface JmsTransactionListener { void onTransactionStarted(); void onTransactionCommitted(); void onTransactionRolledBack(); }
apache/reef
1,073
lang/java/reef-common/src/main/java/org/apache/reef/runtime/common/driver/api/ResourceLaunchHandler.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.reef.runtime.common.driver.api; import org.apache.reef.annotations.audience.RuntimeAuthor; import org.apache.reef.wake.EventHandler; /** * */ @RuntimeAuthor public interface ResourceLaunchHandler extends EventHandler<ResourceLaunchEvent> { }
apache/royale-compiler
1,082
compiler-jx/src/main/java/org/apache/royale/compiler/clients/MXMLJSCNodeModule.java
/* * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ package org.apache.royale.compiler.clients; import org.apache.royale.compiler.internal.driver.js.node.NodeModuleBackend; public class MXMLJSCNodeModule extends MXMLJSCNode { public MXMLJSCNodeModule() { super(new NodeModuleBackend()); } }
apache/seatunnel
1,041
seatunnel-engine/seatunnel-engine-server/src/main/java/org/apache/seatunnel/engine/server/dag/physical/flow/UnknownFlowException.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.seatunnel.engine.server.dag.physical.flow; public class UnknownFlowException extends RuntimeException { public UnknownFlowException(Flow flow) { super("Unknown Flow: " + flow.getClass().getName()); } }
apache/seatunnel
1,073
seatunnel-common/src/main/java/org/apache/seatunnel/common/utils/function/ConsumerWithException.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.seatunnel.common.utils.function; @FunctionalInterface public interface ConsumerWithException<T> { /** * Performs this operation on the given argument. * * @param t the input argument */ void accept(T t) throws Exception; }
apache/servicecomb-java-chassis
1,026
swagger/swagger-generator/generator-jaxrs/src/test/java/org/apache/servicecomb/swagger/generator/jaxrs/model/enums/JdkStatusModel.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.servicecomb.swagger.generator.jaxrs.model.enums; import io.swagger.v3.oas.annotations.Parameter; public class JdkStatusModel { @Parameter(description = "jdk status model") public JdkStatus status; }
apache/servicecomb-java-chassis
1,034
foundations/foundation-protobuf/src/main/java/org/apache/servicecomb/foundation/protobuf/internal/bean/PropertyWrapper.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.servicecomb.foundation.protobuf.internal.bean; public class PropertyWrapper<T> { private T value; public T getValue() { return value; } public void setValue(T value) { this.value = value; } }
apache/servicecomb-java-chassis
1,081
foundations/foundation-protobuf/src/main/java/io/protostuff/SchemaReader.java
//======================================================================== //Copyright 2007-2009 David Yu dyuproject@gmail.com //------------------------------------------------------------------------ //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 io.protostuff; import java.io.IOException; public interface SchemaReader<T> { /** * Creates the message/object tied to this schema. */ default T newMessage() { return null; } void mergeFrom(InputEx input, T message) throws IOException; }
apache/servicecomb-toolkit
1,039
oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/HeaderValidatorFactory.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.servicecomb.toolkit.oasv.validation.factory; import org.apache.servicecomb.toolkit.oasv.validation.api.HeaderValidator; public interface HeaderValidatorFactory extends OasObjectValidatorFactory<HeaderValidator> { }
apache/servicecomb-toolkit
1,039
oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/SchemaValidatorFactory.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.servicecomb.toolkit.oasv.validation.factory; import org.apache.servicecomb.toolkit.oasv.validation.api.SchemaValidator; public interface SchemaValidatorFactory extends OasObjectValidatorFactory<SchemaValidator> { }
apache/servicecomb-toolkit
1,039
oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/ServerValidatorFactory.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.servicecomb.toolkit.oasv.validation.factory; import org.apache.servicecomb.toolkit.oasv.validation.api.ServerValidator; public interface ServerValidatorFactory extends OasObjectValidatorFactory<ServerValidator> { }
apache/shenyu
1,067
shenyu-client/shenyu-client-grpc/src/main/java/org/apache/shenyu/client/grpc/server/GrpcServerBuilder.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.shenyu.client.grpc.server; import io.grpc.ServerBuilder; /** * Grpc ServerBuilder. */ public interface GrpcServerBuilder { /** * build ServerBuilder. * @return ServerBuilder */ ServerBuilder<?> buildServerBuilder(); }
apache/shiro
1,111
core/src/main/java/org/apache/shiro/authc/credential/package-info.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * Support for validating <em>credentials</em> (such as passwords or X509 certificates) during * authentication via the {@link org.apache.shiro.authc.credential.CredentialsMatcher CredentialsMatcher} * interface and its supporting implementations. */ package org.apache.shiro.authc.credential;
apache/sirona
1,108
api/src/main/java/org/apache/sirona/configuration/ioc/Destroying.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.sirona.configuration.ioc; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.METHOD) public @interface Destroying { }
apache/sis
1,095
optional/src/org.apache.sis.gui/main/org/apache/sis/gui/internal/Resources_en.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.sis.gui.internal; /** * Resource in English language. */ public class Resources_en extends Resources { /** * Constructs a new resource bundle loading data from * the resource file of the same name as this class. */ public Resources_en() { } }
apache/skywalking-java
1,043
test/plugin/scenarios/spring-4.1.x-scenario/src/main/java/test/apache/skywalking/apm/testcase/spring3/config/RetryConfig.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ package test.apache.skywalking.apm.testcase.spring3.config; import org.springframework.context.annotation.Configuration; import org.springframework.retry.annotation.EnableRetry; @Configuration @EnableRetry public class RetryConfig { }
apache/skywalking
1,066
oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/query/type/EndpointInfo.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ package org.apache.skywalking.oap.server.core.query.type; import lombok.Getter; import lombok.Setter; @Getter @Setter public class EndpointInfo { private String id; private String name; private String serviceId; private String serviceName; }
apache/solr
1,091
solr/core/src/java/org/apache/solr/handler/component/ParallelHttpShardHandlerFactory.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.solr.handler.component; /** Creates {@link ParallelHttpShardHandler} instances */ public class ParallelHttpShardHandlerFactory extends HttpShardHandlerFactory { @Override public ShardHandler getShardHandler() { return new ParallelHttpShardHandler(this); } }
apache/solr
1,105
solr/modules/ltr/src/java/org/apache/solr/ltr/model/ModelException.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.solr.ltr.model; public class ModelException extends RuntimeException { private static final long serialVersionUID = 1L; public ModelException(String message) { super(message); } public ModelException(String message, Exception cause) { super(message, cause); } }
apache/solr
1,106
solr/api/src/java/org/apache/solr/client/api/model/LoggingResponse.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.solr.client.api.model; import com.fasterxml.jackson.annotation.JsonProperty; /** Generic logging response that includes the name of the log watcher (e.g. "Log4j2") */ public class LoggingResponse extends SolrJerseyResponse { @JsonProperty("watcher") public String watcherName; }
apache/stanbol
1,057
ontologymanager/sources/owlapi/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/io/BlankOntologySource.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.stanbol.ontologymanager.ontonet.api.io; @Deprecated public class BlankOntologySource extends org.apache.stanbol.ontologymanager.sources.owlapi.BlankOntologySource { public BlankOntologySource() { super(); } }
apache/storm
1,057
storm-server/src/main/java/org/apache/storm/scheduler/resource/normalization/NormalizedResourcesWithMemory.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.scheduler.resource.normalization; /** * Intended for {@link NormalizedResources} wrappers that handle memory. */ public interface NormalizedResourcesWithMemory { NormalizedResources getNormalizedResources(); double getTotalMemoryMb(); /** * Set all resources to 0. */ void clear(); /** * Return true if any of the resources are > 0. */ boolean areAnyOverZero(); }
apache/storm
1,118
storm-core/src/jvm/org/apache/storm/planner/TaskBundle.java
/** * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version * 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.planner; import java.io.Serializable; import org.apache.storm.task.IBolt; public class TaskBundle implements Serializable { public IBolt task; public int componentId; public TaskBundle(IBolt task, int componentId) { this.task = task; this.componentId = componentId; } }
apache/streampark
1,049
streampark-console/streampark-console-service/src/main/java/org/apache/streampark/console/core/mapper/FlinkClusterMapper.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.streampark.console.core.mapper; import org.apache.streampark.console.core.entity.FlinkCluster; import com.baomidou.mybatisplus.core.mapper.BaseMapper; public interface FlinkClusterMapper extends BaseMapper<FlinkCluster> { }
apache/streampipes
1,052
streampipes-service-core/src/main/java/org/apache/streampipes/service/core/migrations/v093/migrator/AdapterMigrator.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ package org.apache.streampipes.service.core.migrations.v093.migrator; import com.google.gson.JsonObject; import org.lightcouch.CouchDbClient; public interface AdapterMigrator { void migrate(CouchDbClient couchDbClient, JsonObject adapter); }
apache/struts
1,053
plugins/convention/src/test/java/org/apache/struts2/convention/actions/allowedmethods/ClassLevelAllowedMethodsAction.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.struts2.convention.actions.allowedmethods; import org.apache.struts2.convention.annotation.AllowedMethods; @AllowedMethods("end") public class ClassLevelAllowedMethodsAction { public String execute() { return null; } }
apache/struts
1,085
plugins/javatemplates/src/main/java/org/apache/struts2/views/java/simple/EmptyHandler.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.struts2.views.java.simple; import org.apache.struts2.views.java.TagGenerator; import java.io.IOException; //does nothing public class EmptyHandler extends AbstractTagHandler implements TagGenerator { public void generate() throws IOException { } }
apache/tajo
1,095
tajo-core/src/main/java/org/apache/tajo/ws/rs/responses/ExceptionResponse.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.tajo.ws.rs.responses; import com.google.gson.annotations.Expose; public class ExceptionResponse { @Expose private String message; public String getMessage() { return message; } public void setMessage(String message) { this.message = message; } }
apache/tapestry-5
1,067
tapestry-cdi/src/test/java/org/apache/tapestry5/cdi/test/beans/Soup.java
// Copyright 2013, 2024 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.cdi.test.beans; import jakarta.enterprise.context.RequestScoped; @RequestScoped public class Soup { private String name = "Soup of the day"; private String secondName = "Soup of Tomorrow"; public String getName() { return name; } public void changeName(){ name = secondName; } public void setName(String name) { this.name = name; } public boolean getCheckNames(){ return name.equals(secondName); } }
apache/tapestry-5
1,067
tapestry-core/src/test/java/org/apache/tapestry5/integration/app2/pages/TestPageForActionLink.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.integration.app2.pages; import org.apache.tapestry5.annotations.InjectPage; import org.apache.tapestry5.annotations.OnEvent; public class TestPageForActionLink { @InjectPage("ResultPageForActionLink") private ResultPageForActionLink resultPage; @OnEvent(component = "link1") public ResultPageForActionLink onClick(int number) { resultPage.setNumber(number); return resultPage; } }
apache/tapestry-5
1,080
tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/components/OuterAny.java
// Copyright 2008 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.integration.app1.components; import org.apache.tapestry5.annotations.Component; import org.apache.tapestry5.annotations.SupportsInformalParameters; import org.apache.tapestry5.corelib.components.Any; @SupportsInformalParameters public class OuterAny { // Also, leave a few parameters here and there in the old naming style, with a // leading underscore. @Component(inheritInformalParameters = true) private Any innerAny; }
apache/tapestry-5
1,086
tapestry-core/src/main/java/org/apache/tapestry5/internal/services/DTDData.java
// Copyright 2009, 2011 The Apache Software Foundation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. package org.apache.tapestry5.internal.services; import org.xml.sax.ext.LexicalHandler; /** * A capturing of the data from * {@link LexicalHandler#startDTD(String, String, String)}. * * @since 5.2.0 */ public class DTDData { public final String rootName, publicId, systemId; public DTDData(String rootName, String publicId, String systemId) { this.rootName = rootName; this.publicId = publicId; this.systemId = systemId; } }
apache/tapestry-5
1,094
tapestry-ioc/src/test/java/org/apache/tapestry5/ioc/test/GreenMarker.java
// Copyright 2010 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; import static java.lang.annotation.ElementType.FIELD; import static java.lang.annotation.ElementType.METHOD; import static java.lang.annotation.ElementType.PARAMETER; import static java.lang.annotation.RetentionPolicy.RUNTIME; import java.lang.annotation.Documented; import java.lang.annotation.Retention; import java.lang.annotation.Target; @Target( { PARAMETER, FIELD, METHOD }) @Retention(RUNTIME) @Documented public @interface GreenMarker { }
apache/tika
1,103
tika-example/src/main/java/org/apache/tika/example/DescribeMetadata.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.example; import org.apache.tika.cli.TikaCLI; /** * Print the supported Tika Metadata models and their fields. */ public class DescribeMetadata { public static void main(String[] args) throws Exception { TikaCLI.main(new String[]{"--list-met-models"}); } }
apache/tomcat80
1,127
java/javax/persistence/PersistenceUnits.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package javax.persistence; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; @Target(ElementType.TYPE) @Retention(RetentionPolicy.RUNTIME) public @interface PersistenceUnits { PersistenceUnit[] value(); }
apache/tomee
1,085
examples/mp-rest-jwt-principal/src/main/java/org/superbiz/store/rest/RestApplication.java
/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * <p> * http://www.apache.org/licenses/LICENSE-2.0 * <p> * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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.store.rest; import org.eclipse.microprofile.auth.LoginConfig; import jakarta.ws.rs.ApplicationPath; import jakarta.ws.rs.core.Application; @ApplicationPath("/rest") @LoginConfig(authMethod = "MP-JWT") public class RestApplication extends Application { }
apache/uima-uimaj
1,096
uimaj-core/src/main/java/org/apache/uima/internal/util/XmlAttribute.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.uima.internal.util; /** * Data structure representing an XML attribute. */ public class XmlAttribute { public final String name; public final String value; public XmlAttribute(String name, String value) { this.name = name; this.value = value; } }
apache/uima-uimaj
1,097
uimaj-core/src/main/java/org/apache/uima/cas/impl/FsGeneratorArray.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.uima.cas.impl; import org.apache.uima.jcas.cas.TOP; /** * A Functional Interface for generating Java Feature Structures NO LONGER USED */ @FunctionalInterface public interface FsGeneratorArray { TOP createFS(TypeImpl typeImpl, CASImpl casImpl, int length); }
apache/uniffle
1,071
internal-client/src/main/java/org/apache/uniffle/client/response/RssUnregisterShuffleByAppIdResponse.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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 RssUnregisterShuffleByAppIdResponse extends ClientResponse { public RssUnregisterShuffleByAppIdResponse(StatusCode statusCode) { super(statusCode); } }
apache/usergrid
1,092
chop/example/src/main/java/org/apache/usergrid/chop/example/SimpleBattery.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.chop.example; /** * A simple watch battery. */ public class SimpleBattery extends Battery { @Override public void refill( final long energyTime ) { throw new UnsupportedOperationException( "This battery is not rechargeable." ); } }
apache/wicket
1,065
wicket-core-tests/src/test/java/org/apache/wicket/markup/html/header/testing2/TestExtendedPage.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.wicket.markup.html.header.testing2; /** * * @author Juergen Donnerstag */ public class TestExtendedPage extends TestBasePage { private static final long serialVersionUID = 1L; /** * Construct. */ public TestExtendedPage() { } }
apache/wicket
1,097
wicket-core-tests/src/test/java/org/apache/wicket/MyPage3.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.wicket; import org.apache.wicket.markup.html.WebPage; /** * Dummy Page with Page parameter */ public class MyPage3 extends WebPage { private static final long serialVersionUID = 1L; /** * Construct. * * @param page */ public MyPage3(final Page page) { } }
google/adk-java
1,107
core/src/main/java/com/google/adk/utils/CollectionUtils.java
/* * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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.adk.utils; import com.google.common.collect.Iterables; /** Frequently used code snippets for collections. */ public final class CollectionUtils { /** * Checks if the given iterable is null or empty. * * @param iterable the iterable to check * @return true if the iterable is null or empty, false otherwise */ public static <T> boolean isNullOrEmpty(Iterable<T> iterable) { return iterable == null || Iterables.isEmpty(iterable); } private CollectionUtils() {} }
google/binnavi
1,066
src/main/java/com/google/security/zynamics/zylib/gui/zygraph/editmode/actions/CDefaultNodeEditEnterAction.java
// Copyright 2011-2016 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. package com.google.security.zynamics.zylib.gui.zygraph.editmode.actions; import com.google.security.zynamics.zylib.gui.zygraph.editmode.IStateAction; import com.google.security.zynamics.zylib.yfileswrap.gui.zygraph.editmode.states.CNodeEditEnterState; import java.awt.event.MouseEvent; public class CDefaultNodeEditEnterAction implements IStateAction<CNodeEditEnterState> { @Override public void execute(final CNodeEditEnterState state, final MouseEvent event) { } }
google/binnavi
1,078
src/main/java/com/google/security/zynamics/binnavi/ZyGraph/Builders/IGraphBuilderListener.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.ZyGraph.Builders; /** * Interface to be implemented by objects that want to be notified about progress during graph * building. */ public interface IGraphBuilderListener { /** * Invoked after each graph build event. * * @param event The issued event. * @param counter The index of the event. * * @return True, to continue building. False, to cancel it. */ boolean building(GraphBuilderEvents event, int counter); }
google/binnavi
1,084
src/main/java/com/google/security/zynamics/binnavi/Importers/ConfigFileException.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.Importers; /** * Exception class used to signal problems creating the temporary config file for the exporter. */ public final class ConfigFileException extends Exception { /** * Used for serialization. */ private static final long serialVersionUID = -721795673184159520L; /** * Creates a new exception object. * * @param msg The exception message. */ public ConfigFileException(final String msg) { super(msg); } }
google/binnavi
1,090
src/main/java/com/google/security/zynamics/binnavi/Settings/CGlobalSettings.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.Settings; /** * Keeps track of a few global settings. In the long run we should find a better place for these * constants. */ public final class CGlobalSettings { /** * When false, all dialogs are disabled. When true, dialogs are shown. Introducing this was * necessary for certain plugins. */ public static boolean SHOW_DIALOGS = true; /** * You are not supposed to instantiate this class. */ private CGlobalSettings() { } }
google/binnavi
1,095
src/main/java/com/google/security/zynamics/zylib/io/DirectoryChooser.java
// Copyright 2011-2016 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. package com.google.security.zynamics.zylib.io; import com.google.security.zynamics.zylib.gui.CFileChooser; import java.io.File; import javax.swing.JFileChooser; public class DirectoryChooser extends CFileChooser { private static final long serialVersionUID = 5354437749644373707L; public DirectoryChooser(final String title) { setCurrentDirectory(new File(".")); setDialogTitle(title); setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY); setAcceptAllFileFilterUsed(false); } }
google/closure-compiler
1,102
src/com/google/javascript/jscomp/graph/Annotatable.java
/* * Copyright 2008 The Closure Compiler Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.google.javascript.jscomp.graph; /** * Object that has an annotation. */ public interface Annotatable { /** * Annotates a piece of information to the object. * * @param data Information to be annotated. */ void setAnnotation(Annotation data); /** * Retrieves a piece of information that has been annotated. * * @return The annotation or <code>null</code> if the object has not been annotated. */ <A extends Annotation> A getAnnotation(); }
google/gapid
1,106
gapic/src/main/com/google/gapid/perfetto/views/TitledPanel.java
/* * Copyright (C) 2019 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.gapid.perfetto.views; import com.google.gapid.perfetto.canvas.Panel; import com.google.gapid.perfetto.canvas.RenderContext; /** * A {@link Panel} with a title and subtitle. */ public interface TitledPanel extends Panel { public String getTitle(); public default String getSubTitle() { return ""; } public default String getTooltip() { return ""; } @SuppressWarnings("unused") public default void decorateTitle(RenderContext ctx, Repainter repainter) { /* do nothing */ } }
google/gson
1,090
gson/src/main/java/com/google/gson/internal/bind/SerializationDelegatingTypeAdapter.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.gson.internal.bind; import com.google.gson.TypeAdapter; /** Type adapter which might delegate serialization to another adapter. */ public abstract class SerializationDelegatingTypeAdapter<T> extends TypeAdapter<T> { /** * Returns the adapter used for serialization, might be {@code this} or another adapter. That * other adapter might itself also be a {@code SerializationDelegatingTypeAdapter}. */ public abstract TypeAdapter<T> getSerializationDelegate(); }
google/guava
1,070
guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/LongAddables.java
/* * Copyright (C) 2012 The Guava Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.google.common.cache; /** * GWT emulation for LongAddables. * * @author Louis Wasserman */ final class LongAddables { public static LongAddable create() { return new GwtLongAddable(); } private static final class GwtLongAddable implements LongAddable { private long value; public void increment() { value++; } public void add(long x) { value += x; } public long sum() { return value; } } }
google/guava
1,077
guava-testlib/test/com/google/common/testing/anotherpackage/SomeClassThatDoesNotUseNullable.java
/* * Copyright (C) 2012 The Guava Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.google.common.testing.anotherpackage; /** Does not check null, but should not matter since it's in a different package. */ @SuppressWarnings("unused") // For use by NullPointerTester public class SomeClassThatDoesNotUseNullable { void packagePrivateButDoesNotCheckNull(String s) {} protected void protectedButDoesNotCheckNull(String s) {} public void publicButDoesNotCheckNull(String s) {} public static void staticButDoesNotCheckNull(String s) {} }
google/j2cl
1,089
transpiler/javatests/com/google/j2cl/integration/testing/super-j2cl/Platform.java
/* * Copyright 2025 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.google.j2cl.integration.testing; import jsinterop.annotations.JsProperty; final class Platform { @JsProperty // TODO(b/422007932): Remove annotation when the RTA bug is resolved. static final int RUNTIME_ENVIRONMENT = Environment.JAVASCRIPT; static final boolean IS_J2KT = isJ2kt(); @JsProperty( namespace = "com.google.j2cl.integration.testing.CompilationEnvironment", name = "IS_J2KT") private static native boolean isJ2kt(); private Platform() {} }
google/oss-fuzz
1,130
projects/hikaricp/DriverDataSourceFuzzer.java
// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // //////////////////////////////////////////////////////////////////////////////// import com.code_intelligence.jazzer.api.FuzzedDataProvider; import com.zaxxer.hikari.util.DriverDataSource; import java.util.Properties; public class DriverDataSourceFuzzer { public static void fuzzerTestOneInput(FuzzedDataProvider data) { try{ new DriverDataSource(data.consumeString(50), data.consumeString(20), new Properties(), data.consumeString(30), data.consumeString(50)); } catch (java.lang.RuntimeException e) {} } }
google/paco
1,107
Paco-Server/tests/com/google/sampling/experiential/AllTests.java
/* * Copyright 2011 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.sampling.experiential; import junit.framework.Test; import junit.framework.TestCase; import junit.framework.TestSuite; /** * Paco Server tests * @author Bob Evans */ public class AllTests extends TestCase { public static Test suite() { TestSuite testSuite = new TestSuite(); testSuite.addTestSuite(com.google.sampling.experiential.server.AllTests.class); testSuite.addTestSuite(com.google.sampling.experiential.shared.AllTests.class); return testSuite; } }
googleapis/discovery-artifact-manager
1,077
toolkit/src/main/java/com/google/api/codegen/config/VersionBound.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.config; import com.google.auto.value.AutoValue; import javax.annotation.Nullable; /** * VersionBound represents bounds on a version for a dependency specified in the * PackageMetadataConfig. */ @AutoValue public abstract class VersionBound { public abstract String lower(); @Nullable public abstract String upper(); public static VersionBound create(String lower, String upper) { return new AutoValue_VersionBound(lower, upper); } }
googleapis/gapic-generator
1,091
src/main/java/com/google/api/codegen/config/InterfaceModel.java
/* Copyright 2017 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.google.api.codegen.config; import java.util.List; /** API-source-agnostic wrapper classes for Interfaces. */ public interface InterfaceModel { /* @return the Model from which this interface came from. */ ApiModel getApiModel(); String getSimpleName(); String getFullName(); String getParentFullName(); String getFileSimpleName(); List<MethodModel> getMethods(); /* @return true if the element is reachable with the current scoper. */ boolean isReachable(); }
hibernate/hibernate-orm
1,030
hibernate-core/src/test/java/org/hibernate/orm/test/cache/Company.java
/* * SPDX-License-Identifier: Apache-2.0 * Copyright Red Hat Inc. and Hibernate Authors */ package org.hibernate.orm.test.cache; import jakarta.persistence.Entity; import jakarta.persistence.FetchType; import jakarta.persistence.Id; import jakarta.persistence.OneToMany; import java.util.ArrayList; import java.util.List; import org.hibernate.annotations.Cache; import org.hibernate.annotations.CacheConcurrencyStrategy; @Entity public class Company { @Id int id; String name; @OneToMany(fetch = FetchType.LAZY, mappedBy = "company") @Cache(usage = CacheConcurrencyStrategy.READ_WRITE) List<User> users = new ArrayList<User>(); public Company() { } public Company(int id) { this.id = id; } public int getId() { return id; } public void setId(int id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public List<User> getUsers() { return users; } public void setUsers(List<User> users) { this.users = users; } }
hibernate/hibernate-orm
1,035
hibernate-core/src/main/java/org/hibernate/boot/models/annotations/internal/LobJpaAnnotation.java
/* * SPDX-License-Identifier: Apache-2.0 * Copyright Red Hat Inc. and Hibernate Authors */ package org.hibernate.boot.models.annotations.internal; import java.lang.annotation.Annotation; import java.util.Map; import org.hibernate.models.spi.ModelsContext; import jakarta.persistence.Lob; @SuppressWarnings({ "ClassExplicitlyAnnotation", "unused" }) @jakarta.annotation.Generated("org.hibernate.orm.build.annotations.ClassGeneratorProcessor") public class LobJpaAnnotation implements Lob { /** * Used in creating dynamic annotation instances (e.g. from XML) */ public LobJpaAnnotation(ModelsContext modelContext) { } /** * Used in creating annotation instances from JDK variant */ public LobJpaAnnotation(Lob annotation, ModelsContext modelContext) { } /** * Used in creating annotation instances from Jandex variant */ public LobJpaAnnotation(Map<String, Object> attributeValues, ModelsContext modelContext) { } @Override public Class<? extends Annotation> annotationType() { return Lob.class; } }
hibernate/hibernate-orm
1,035
hibernate-core/src/main/java/org/hibernate/tool/schema/internal/DefaultSchemaFilterProvider.java
/* * SPDX-License-Identifier: Apache-2.0 * Copyright Red Hat Inc. and Hibernate Authors */ package org.hibernate.tool.schema.internal; import org.hibernate.tool.schema.spi.SchemaFilter; import org.hibernate.tool.schema.spi.SchemaFilterProvider; /** * Default implementation of the SchemaFilterProvider contract, which returns * {@link DefaultSchemaFilter} for all filters. */ public class DefaultSchemaFilterProvider implements SchemaFilterProvider { public static final DefaultSchemaFilterProvider INSTANCE = new DefaultSchemaFilterProvider(); @Override public SchemaFilter getCreateFilter() { return DefaultSchemaFilter.INSTANCE; } @Override public SchemaFilter getDropFilter() { return DefaultSchemaFilter.INSTANCE; } @Override public SchemaFilter getMigrateFilter() { return DefaultSchemaFilter.INSTANCE; } @Override public SchemaFilter getValidateFilter() { return DefaultSchemaFilter.INSTANCE; } @Override public SchemaFilter getTruncatorFilter() { return DefaultSchemaFilter.INSTANCE; } }
openjdk/jdk8
1,100
langtools/test/tools/javac/diags/examples/NotDefPublicCantAccessFragment/p/C.java
/* * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ package p; public class C { void m() { } }
openjdk/jdk8
1,114
langtools/test/tools/javac/processing/model/util/elements/Foo.java
/* * Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ /** * Dummy type to compile. */ public class Foo { }
openjdk/jdk8
1,115
langtools/test/tools/javadoc/annotations/shortcuts/pkg1/Value.java
/* * Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ package pkg1; public @interface Value { String value(); }
openjdk/jdk8
1,117
langtools/test/tools/javac/generics/inference/5044646/p1/A1.java
/* * Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ package p1; public class A1<T> { int f(T t) { return 0; } }
openjdk/jdk8
1,121
jdk/test/java/lang/reflect/Proxy/returnTypes/GetCloneable.java
/* * Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ public interface GetCloneable { Cloneable get(double[][][] x); }
openjdk/jdk8
1,121
langtools/test/tools/javac/jvm/6397652/com/test/Test.java
/* * Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ package com.test; public class Test { public Test() { } }
openjdk/jdk8
1,121
langtools/test/tools/javac/miranda/4686148/AbstractTest.java
/* * Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ package one; public abstract class AbstractTest implements Test { }
openjdk/jdk8
1,131
langtools/test/com/sun/javadoc/testThrowsHead/C.java
/* * Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ public class C { public void method() throws IllegalArgumentException {} }
openjdk/jdk8
1,138
langtools/test/tools/javac/abstract/T2.java
/* * Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ package p1; public abstract class T2 extends T1 { protected abstract void f(); }
openjdk/jdk8
1,150
jdk/test/com/sun/jdi/Exit0.java
/* * Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ public class Exit0 { public static void main(String args[]) { System.exit(0); } }
oracle-samples/oracle-db-examples
1,063
java/micronaut-jsonview-demo-app/src/main/java/com/example/micronaut/entity/Course.java
/* * Copyright © 2023, Oracle and/or its affiliates. * * Released under the Universal Permissive License v1.0 as shown at https://oss.oracle.com/licenses/upl/ * or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. */ package com.example.micronaut.entity; import io.micronaut.core.annotation.Nullable; import io.micronaut.data.annotation.GeneratedValue; import io.micronaut.data.annotation.Id; import io.micronaut.data.annotation.MappedEntity; import io.micronaut.data.annotation.Relation; import jakarta.validation.constraints.NotNull; import java.time.LocalTime; @MappedEntity public record Course( @Id @GeneratedValue(GeneratedValue.Type.AUTO) @Nullable Long id, @NotNull String name, @NotNull String room, @NotNull LocalTime time, @Nullable @Relation(Relation.Kind.MANY_TO_ONE) Teacher teacher) { public Course(String name, String room, LocalTime time, @Nullable Teacher teacher) { this(null, name, room, time, teacher); } }
oracle/coherence
1,062
prj/test/unit/coherence-tests/src/test/java/com/tangosol/net/cache/CacheMapTest.java
/* * Copyright (c) 2000, 2022, Oracle and/or its affiliates. * * Licensed under the Universal Permissive License v 1.0 as shown at * http://oss.oracle.com/licenses/upl. */ package com.tangosol.net.cache; import java.util.Arrays; import java.util.HashMap; import java.util.Map; import org.junit.Test; import static org.junit.Assert.assertEquals; /** * Unit tests for CacheMap. * * @author as 2014.08.05 */ public class CacheMapTest { protected CacheMap<String, Integer> getMap() { return new WrapperNamedCache<>(new HashMap<>(), "test"); } @Test public void testForEachWithKeySet() { CacheMap<String, Integer> map = getMap(); map.put("1", 1); map.put("2", 2); map.put("3", 3); Map<String, Integer> squares = new HashMap<>(); map.forEach(Arrays.asList("1", "3"), (k, v) -> squares.put(k, v * v)); assertEquals(2, squares.size()); assertEquals(1, (int) squares.get("1")); assertEquals(9, (int) squares.get("3")); } }
oracle/coherence
1,084
prj/coherence-core/src/main/java/com/tangosol/dev/assembler/Ifeq.java
/* * Copyright (c) 2000, 2020, Oracle and/or its affiliates. * * Licensed under the Universal Permissive License v 1.0 as shown at * http://oss.oracle.com/licenses/upl. */ package com.tangosol.dev.assembler; import java.io.IOException; import java.io.DataInput; import java.io.DataOutput; /** * The IFEQ op branches to the label if the top integer on the stack is * equal to zero. * <p><code><pre> * JASM op : IFEQ (0x99) * JVM byte code(s): IFEQ (0x99) * Details : * </pre></code> * * @version 0.50, 06/14/98, assembler/dis-assembler * @author Cameron Purdy */ public class Ifeq extends OpBranch implements Constants { // ----- constructors --------------------------------------------------- /** * Construct the op. * * @param label the label to branch to */ public Ifeq(Label label) { super(IFEQ, label); } // ----- data members --------------------------------------------------- /** * The name of this class. */ private static final String CLASS = "Ifeq"; }
apache/commons-jexl
1,108
src/main/java/org/apache/commons/jexl3/parser/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 * * 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. */ /** * <p> * Contains the Parser for JEXL script. * </p> * <p> * This internal package is not intended for public usage and there is <strong>no</strong> * guarantee that its public classes or methods will remain as is in subsequent * versions. * </p> */ package org.apache.commons.jexl3.parser;
apache/commons-ognl
1,091
src/test/java/org/apache/commons/ognl/test/objects/GenericCracker.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.commons.ognl.test.objects; /** */ public class GenericCracker implements Cracker<Integer> { Integer _param; public Integer getParam() { return _param; } public void setParam( Integer param ) { _param = param; } }
apache/commons-rng
1,101
commons-rng-examples/examples-jpms/jpms-app/src/main/java/module-info.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** * This module contains an application for testing that the library * can be used as a Java 9 Java Platform Module System (JPMS) module. */ module org.apache.commons.rng.examples.jpms.app { requires org.apache.commons.rng.examples.jpms.lib; requires org.apache.commons.rng.simple; }
apache/ctakes
1,081
ctakes-temporal/src/main/java/org/apache/ctakes/temporal/utils/TimeRelationConstants.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.ctakes.temporal.utils; /** * Author: SPF * Affiliation: CHIP-NLP * Date: 4/17/13 */ public interface TimeRelationConstants { int NO = -1; int BF = 0; int AF = 1; int CN = 2; int CB = 3; int BO = 4; int EO = 5; int OV = 6; }
apache/cxf
1,095
rt/databinding/aegis/src/test/java/org/apache/cxf/aegis/services/StaticEcho.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.aegis.services; /** * Has a static method which shouldn't be registered with the service. */ public class StaticEcho { public static String echoStatic(String echo) { return echo; } public String echo(String echo) { return echo; } }
apache/deltaspike
1,057
deltaspike/core/impl/obsolete/src/test/java/org/apache/deltaspike/test/core/api/alternative/local/BaseInterface2.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.deltaspike.test.core.api.alternative.local; /** * Simple interface - at runtime the default implementation gets activated */ //Workaround until different config files for unit tests work correctly public interface BaseInterface2 { }
apache/directory-scimple
1,053
scim-spec/scim-spec-schema/src/main/java/org/apache/directory/scim/spec/exception/InvalidExtensionException.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.scim.spec.exception; public class InvalidExtensionException extends RuntimeException { private static final long serialVersionUID = -4113730866775103565L; public InvalidExtensionException(String what) { super(what); } }
apache/directory-server
1,065
interceptors/authz/src/main/java/org/apache/directory/server/core/authz/support/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. * */ /** * <pre> * ACDF (Access Control Decision Function) and its support classes. * </pre> * * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a> */ package org.apache.directory.server.core.authz.support;
apache/distributedlog
1,077
distributedlog-core/src/main/java/org/apache/distributedlog/bk/QuorumConfigProvider.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.distributedlog.bk; /** * Provider to provide quorum config. */ public interface QuorumConfigProvider { /** * Get the quorum config for a given log stream. * * @return quorum config */ QuorumConfig getQuorumConfig(); }
apache/dolphinscheduler
1,036
dolphinscheduler-registry/dolphinscheduler-registry-api/src/main/java/org/apache/dolphinscheduler/registry/api/ConnectionState.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.dolphinscheduler.registry.api; /** * Connection state between client and registry center(Etcd, MySql, Zookeeper) */ public enum ConnectionState { CONNECTED, RECONNECTED, SUSPENDED, DISCONNECTED }
apache/dolphinscheduler
1,058
dolphinscheduler-task-executor/src/main/java/org/apache/dolphinscheduler/task/executor/ITaskExecutorFactory.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.dolphinscheduler.task.executor; import org.apache.dolphinscheduler.plugin.task.api.TaskExecutionContext; public interface ITaskExecutorFactory { ITaskExecutor createTaskExecutor(final TaskExecutionContext taskExecutionContext); }
apache/doris-manager
1,043
manager/general/src/main/java/org/apache/doris/stack/exception/HdfsUnknownHostException.java
// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use this file except in compliance // with the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. package org.apache.doris.stack.exception; public class HdfsUnknownHostException extends Exception { public static final String MESSAGE = "HDFS集群主机链接失败,请检查后重新输入"; public HdfsUnknownHostException() { super(MESSAGE); } }
apache/doris-manager
1,074
manager/manager/src/main/java/org/apache/doris/stack/model/request/construct/SqlQueryReq.java
// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use this file except in compliance // with the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. package org.apache.doris.stack.model.request.construct; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; @Data @AllArgsConstructor @NoArgsConstructor public class SqlQueryReq { private int database; private String query; }
apache/drill
1,100
exec/java-exec/src/main/java/org/apache/drill/exec/expr/DrillAggFunc.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.drill.exec.expr; /** * Aggregate function interface. * */ public interface DrillAggFunc extends DrillFunc{ /** * Initialization for the beginning of the aggregation. * */ public void setup(); public void add(); public void output(); public void reset(); }
apache/drill
1,106
exec/jdbc/src/main/java/org/apache/drill/jdbc/SQLConversionException.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.drill.jdbc; import org.apache.drill.exec.vector.accessor.InvalidAccessException; public class SQLConversionException extends InvalidAccessException { private static final long serialVersionUID = 2015_04_07L; SQLConversionException( String message ) { super( message ); } }
apache/druid
1,077
server/src/main/java/org/apache/druid/server/coordinator/balancer/RandomBalancerStrategyFactory.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.druid.server.coordinator.balancer; public class RandomBalancerStrategyFactory extends BalancerStrategyFactory { @Override public BalancerStrategy createBalancerStrategy(int numBalancerThreads) { return new RandomBalancerStrategy(); } }