repo_id
stringclasses
875 values
size
int64
974
38.9k
file_path
stringlengths
10
308
content
stringlengths
974
38.9k
apache/jmeter
1,102
src/core/src/main/java/org/apache/jmeter/gui/UnsharedComponent.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to you under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.jmeter.gui; /** * Marker interface indicating that an instance of a component cannot be shared. * The GUI instance will be shared among all test elements of a given type if * the GUI component class does not implement this interface. * */ public interface UnsharedComponent { }
apache/kafka
1,086
clients/src/main/java/org/apache/kafka/common/errors/TelemetryTooLargeException.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.kafka.common.errors; /** * This exception indicates that the size of the telemetry metrics data is too large. */ public class TelemetryTooLargeException extends ApiException { public TelemetryTooLargeException(String message) { super(message); } }
apache/karaf
1,069
features/core/src/main/java/org/apache/karaf/features/internal/model/processing/ObjectFactory.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.karaf.features.internal.model.processing; import javax.xml.bind.annotation.XmlRegistry; @XmlRegistry public class ObjectFactory { public FeaturesProcessing createFeaturesProcessing() { return new FeaturesProcessing(); } }
apache/karaf
1,090
main/src/main/java/org/apache/karaf/main/lock/NoLock.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.karaf.main.lock; public class NoLock implements Lock { @Override public boolean lock() throws Exception { return true; } @Override public void release() throws Exception { } @Override public boolean isAlive() throws Exception { return true; } }
apache/linkis
1,024
linkis-computation-governance/linkis-manager/linkis-label-common/src/main/java/org/apache/linkis/manager/label/entity/node/NodeInstanceLabel.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.linkis.manager.label.entity.node; import org.apache.linkis.manager.label.entity.NodeLabel; public interface NodeInstanceLabel extends NodeLabel { String getServiceName(); String getInstance(); }
apache/linkis
1,051
linkis-public-enhancements/linkis-cs-server/src/main/java/org/apache/linkis/cs/execution/ruler/ContextSearchRuler.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.linkis.cs.execution.ruler; import org.apache.linkis.cs.common.entity.source.ContextKeyValue; import java.util.List; public interface ContextSearchRuler { List<ContextKeyValue> rule(List<ContextKeyValue> contextKeyValues); }
apache/logging-log4j2
1,048
log4j-core/src/main/java/org/apache/logging/log4j/core/config/plugins/validation/constraints/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. */ /** * Validation annotations. * * @since 2.1 */ @Export @Version("2.20.1") package org.apache.logging.log4j.core.config.plugins.validation.constraints; import org.osgi.annotation.bundle.Export; import org.osgi.annotation.versioning.Version;
apache/lucene
1,088
lucene/luke/src/java/org/apache/lucene/luke/models/overview/OverviewFactory.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.lucene.luke.models.overview; import org.apache.lucene.index.IndexReader; /** Factory of {@link Overview} */ public class OverviewFactory { public Overview newInstance(IndexReader reader, String indexPath) { return new OverviewImpl(reader, indexPath); } }
apache/maven-compiler-plugin
1,061
src/it/multirelease-patterns/singleproject-separate-moduleinfo/src/main/java/mr/A.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package mr; import base.Base; public class A implements I { public static String getString() { return Base.get() + " -> 8"; } @Override public Class<?> introducedClass() { return java.time.LocalDateTime.class; } }
apache/maven-plugins
1,065
maven-compiler-plugin/src/it/mcompiler-179/src/main/java/org/maven/test/MyClass.java
package org.maven.test; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ import java.util.ArrayList; import java.util.List; public class MyClass { public void foo() { List blah = new ArrayList(); blah.add("hello"); } public void bar() { int a = "error"; } }
apache/maven-plugins
1,067
maven-javadoc-plugin/src/test/resources/unit/javaHome-test/def/configuration/App.java
package def.configuration; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ public class App { public static void main( String[] args ) { System.out.println( "Sample Application." ); } protected void sampleMethod( String str ) { System.out.println( str ); } }
apache/maven-surefire
1,042
surefire-providers/common-junit48/src/test/java/org/apache/maven/surefire/common/junit48/tests/group/BCTest.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.maven.surefire.common.junit48.tests.group; import org.junit.Test; /** * BCTest. */ public class BCTest extends AbstractBCTest { @Test public void bc() { System.out.println("BCTest#bc"); } }
apache/myfaces
1,065
impl/src/test/java/org/apache/myfaces/view/facelets/pss/acid/component/UIRDComponent.java
/* * Copyright 2012 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.myfaces.view.facelets.pss.acid.component; import jakarta.faces.application.ResourceDependency; import jakarta.faces.component.FacesComponent; import jakarta.faces.component.UIOutput; /** * * @author lu4242 */ @FacesComponent(value = "com.myapp.UIRDComponent") @ResourceDependency(name = "custom.css", target="head") public class UIRDComponent extends UIOutput { public UIRDComponent() { super(); } }
apache/nifi
1,029
nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/diagnostics/bootstrap/shell/result/ShellCommandResult.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.nifi.diagnostics.bootstrap.shell.result; import java.io.InputStream; import java.util.Collection; public interface ShellCommandResult { Collection<String> createResult(final InputStream inputStream); }
apache/olingo-odata4
1,083
lib/commons-api/src/main/java/org/apache/olingo/commons/api/edm/EdmElement.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.olingo.commons.api.edm; /** * An {@link EdmElement} can either be an {@link EdmNavigationProperty}, an {@link EdmProperty} or an * {@link EdmParameter}. */ public interface EdmElement extends EdmNamed, EdmTyped { // No additional methods needed for now. }
apache/openwebbeans
1,034
webbeans-impl/src/test/java/org/apache/webbeans/test/component/exception/PostContructMethodHasCheckedExceptionComponent.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.exception; import jakarta.annotation.PostConstruct; public class PostContructMethodHasCheckedExceptionComponent { @PostConstruct public void p() throws Exception { } }
apache/paimon
1,083
paimon-api/src/main/java/org/apache/paimon/rest/exceptions/NotAuthorizedException.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.paimon.rest.exceptions; /** Exception thrown on HTTP 401 Unauthorized. */ public class NotAuthorizedException extends RESTException { public NotAuthorizedException(String message, Object... args) { super(String.format(message, args)); } }
apache/phoenix
1,080
phoenix-core-server/src/main/java/org/apache/phoenix/coprocessor/PhoenixCoprocessor.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.phoenix.coprocessor; import java.util.Optional; import org.apache.hadoop.hbase.Coprocessor; public interface PhoenixCoprocessor extends Coprocessor { default Optional<MetaDataEndpointObserver> getPhoenixObserver() { return Optional.empty(); } }
apache/qpid-broker-j
1,046
broker-plugins/management-http/src/main/java/org/apache/qpid/server/management/plugin/ManagementResponse.java
/* * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. * */ package org.apache.qpid.server.management.plugin; import java.util.Map; public interface ManagementResponse { ResponseType getType(); Object getBody(); Map<String, String> getHeaders(); int getResponseCode(); }
apache/qpid-jms
1,081
qpid-jms-client/src/main/java/org/apache/qpid/jms/sasl/AnonymousMechanismFactory.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.sasl; /** * Create the Anonymous SASL Authentication Mechanism types. */ public class AnonymousMechanismFactory implements MechanismFactory { @Override public Mechanism createMechanism() { return new AnonymousMechanism(); } }
apache/qpid-jms
1,081
qpid-jms-client/src/main/java/org/apache/qpid/jms/sasl/ScramSHA1MechanismFactory.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.sasl; /** * Create the Scram SHA1 SASL Authentication Mechanism type. */ public class ScramSHA1MechanismFactory implements MechanismFactory { @Override public Mechanism createMechanism() { return new ScramSHA1Mechanism(); } }
apache/ratis
1,082
ratis-test/src/test/java/org/apache/ratis/grpc/TestRaftStateMachineExceptionWithGrpc.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.ratis.grpc; import org.apache.ratis.server.impl.RaftStateMachineExceptionTests; public class TestRaftStateMachineExceptionWithGrpc extends RaftStateMachineExceptionTests<MiniRaftClusterWithGrpc> implements MiniRaftClusterWithGrpc.FactoryGet { }
apache/rocketmq-clients
1,064
java/client-apis/src/main/java/org/apache/rocketmq/client/apis/consumer/ConsumeResult.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.rocketmq.client.apis.consumer; /** * Designed for push consumer specifically. */ public enum ConsumeResult { /** * Consume message successfully. */ SUCCESS, /** * Failed to consume message. */ FAILURE }
apache/seatunnel
1,075
seatunnel-api/src/main/java/org/apache/seatunnel/api/sink/MultiTableResourceManager.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.api.sink; import java.util.Optional; /** The multi table resource manager */ public interface MultiTableResourceManager<T> { default Optional<T> getSharedResource() { return Optional.empty(); } default void close() {} }
apache/servicecomb-java-chassis
1,059
providers/provider-pojo/src/test/java/org/apache/servicecomb/provider/pojo/Person.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.provider.pojo; @RpcSchema(schemaId = "test") public class Person implements IPerson { public String name; public String getName() { return name; } public void setName(String name) { this.name = name; } }
apache/servicecomb-toolkit
1,033
oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/InfoValidatorFactory.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.InfoValidator; public interface InfoValidatorFactory extends OasObjectValidatorFactory<InfoValidator> { }
apache/servicecomb-toolkit
1,033
oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/LinkValidatorFactory.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.LinkValidator; public interface LinkValidatorFactory extends OasObjectValidatorFactory<LinkValidator> { }
apache/shardingsphere
1,064
parser/sql/spi/src/main/java/org/apache/shardingsphere/sql/parser/api/parser/SQLParser.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.shardingsphere.sql.parser.api.parser; import org.apache.shardingsphere.sql.parser.api.ASTNode; /** * SQL parser. */ public interface SQLParser { /** * Parse SQL. * * @return AST node */ ASTNode parse(); }
apache/shiro
1,090
core/src/test/java/org/apache/shiro/authz/UnauthenticatedExceptionTest.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.shiro.authz; import org.apache.shiro.ExceptionTest; /** * @since Jun 10, 2008 4:06:15 PM */ public class UnauthenticatedExceptionTest extends ExceptionTest { protected Class getExceptionClass() { return UnauthenticatedException.class; } }
apache/shiro
1,102
web/src/main/java/org/apache/shiro/web/session/mgt/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. */ /** * Concepts used to represent Shiro's aggregate state in an application. * An {@link org.apache.shiro.env.Environment} instance represents * everything Shiro needs to function in an application. * * @see org.apache.shiro.env.Environment */ package org.apache.shiro.web.session.mgt;
apache/sirona
1,103
api/src/main/java/org/apache/sirona/configuration/ioc/AutoSet.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.TYPE) public @interface AutoSet { }
apache/skywalking-showcase
1,042
services/gateway-service/src/test/java/org/apache/skywalking/showcase/gateway/GatewayApplicationTests.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.showcase.gateway; import org.junit.jupiter.api.Test; import org.springframework.boot.test.context.SpringBootTest; @SpringBootTest class GatewayApplicationTests { @Test void contextLoads() { } }
apache/skywalking
1,067
oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/query/type/Ref.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ package org.apache.skywalking.oap.server.core.query.type; import lombok.Getter; import lombok.Setter; @Setter @Getter public class Ref { private String traceId; private String parentSegmentId; private int parentSpanId; private RefType type; }
apache/solr
1,104
solr/core/src/java/org/apache/solr/servlet/cache/Method.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.servlet.cache; import java.util.Locale; public enum Method { GET, POST, HEAD, OTHER; public static Method getMethod(String method) { try { return Method.valueOf(method.toUpperCase(Locale.ROOT)); } catch (Exception e) { return OTHER; } } }
apache/storm
1,106
storm-client/src/jvm/org/apache/storm/trident/state/map/MapState.java
/** * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version * 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.trident.state.map; import java.util.List; import org.apache.storm.trident.state.ValueUpdater; public interface MapState<T> extends ReadOnlyMapState<T> { List<T> multiUpdate(List<List<Object>> keys, List<ValueUpdater> updaters); void multiPut(List<List<Object>> keys, List<T> vals); }
apache/struts
1,052
plugins/convention/src/test/java/org/apache/struts2/convention/actions/resultpath/PackageLevelResultPathAction.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.resultpath; /** * <p> * This class is a test action with the default result path. * </p> */ public class PackageLevelResultPathAction { public String execute() { return null; } }
apache/tajo
1,086
tajo-core/src/main/java/org/apache/tajo/ws/rs/requests/SubmitQueryRequest.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.requests; import com.google.gson.annotations.Expose; public class SubmitQueryRequest { @Expose private String query; public String getQuery() { return query; } public void setQuery(String query) { this.query = query; } }
apache/tajo
1,093
tajo-algebra/src/main/java/org/apache/tajo/algebra/SimpleTableSubquery.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.tajo.algebra; public class SimpleTableSubquery extends CommonSubquery { public final static String TEMP_RELATION_NAME = "TempSubqueryName"; public SimpleTableSubquery(Expr subquery) { super(OpType.SimpleTableSubquery, TEMP_RELATION_NAME, subquery); } }
apache/tapestry-5
1,050
tapestry-ioc-jcache/src/test/java/org/apache/tapestry5/jcache/internal/InterceptionUsingCacheConfigTest.java
/** * Copyright 2011-2013 Terracotta, Inc. * Copyright 2011-2013 Oracle, 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 org.apache.tapestry5.jcache.internal; import manager.BlogManager; import manager.ClassLevelCacheConfigBlogManagerImpl; /** * @author Rick Hightower */ public class InterceptionUsingCacheConfigTest extends AbstractBlogManagerInterceptionTest { /** * */ @Override protected BlogManager getBlogManager() { return getBeanByType(ClassLevelCacheConfigBlogManagerImpl.class); } }
apache/tapestry-5
1,060
tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/pages/BooleanDemo.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.pages; import org.apache.tapestry5.annotations.Persist; public class BooleanDemo { @Persist private boolean flag; public boolean getFlagUsingGet() { return flag; } public boolean isFlagUsingIs() { return flag; } public void onActionFromSet() { flag = true; } public void onActionFromClear() { flag = false; } }
apache/tapestry-5
1,089
tapestry-spring/src/test/java/org/example/testapp1/services/AppModule.java
// Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. package org.example.testapp1.services; import org.apache.tapestry5.commons.MappedConfiguration; import org.apache.tapestry5.http.TapestryHttpSymbolConstants; import org.apache.tapestry5.ioc.annotations.ImportModule; import org.apache.tapestry5.spring.modules.SpringModule; @ImportModule(SpringModule.class) public class AppModule { public static void contributeApplicationDefaults(MappedConfiguration<String, String> configuration) { configuration.add(TapestryHttpSymbolConstants.PRODUCTION_MODE, "false"); } }
apache/tomcat-maven-plugin
1,054
tomcat7-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat7/run/ExtraDependency.java
package org.apache.tomcat.maven.plugin.tomcat7.run; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ import org.apache.maven.model.Dependency; /** * @author Olivier Lamy * @since 2.0 */ public class ExtraDependency extends Dependency { // no op just here to support for maven 2.x }
apache/tomcat-maven-plugin
1,054
tomcat8-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat8/run/ExtraDependency.java
package org.apache.tomcat.maven.plugin.tomcat8.run; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ import org.apache.maven.model.Dependency; /** * @author Olivier Lamy * @since 2.0 */ public class ExtraDependency extends Dependency { // no op just here to support for maven 2.x }
apache/tomcat
1,107
java/jakarta/security/auth/message/config/AuthConfig.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package jakarta.security.auth.message.config; import jakarta.security.auth.message.MessageInfo; public interface AuthConfig { String getMessageLayer(); String getAppContext(); String getAuthContextID(MessageInfo messageInfo); void refresh(); boolean isProtected(); }
apache/tomcat80
1,126
java/javax/xml/ws/WebServiceRefs.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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.xml.ws; 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 WebServiceRefs { public WebServiceRef[] value(); }
apache/tomee
1,070
container/openejb-core/src/test/java/org/apache/openejb/interceptors/FullyInterceptedSuperClass.java
/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.openejb.interceptors; import jakarta.interceptor.Interceptors; /** * @version $Rev$ $Date$ */ @Interceptors({ClassLevelInterceptorSuperClassOne.class, ClassLevelInterceptorSuperClassTwo.class}) public class FullyInterceptedSuperClass { }
apache/tomee
1,088
container/openejb-loader/src/main/java/org/apache/openejb/loader/TrueFilter.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.openejb.loader; import java.io.File; import java.io.FileFilter; public class TrueFilter implements FileFilter { public static final FileFilter INSTANCE = new TrueFilter(); @Override public boolean accept(final File file) { return true; } }
apache/tomee
1,094
container/openejb-api/src/main/java/org/apache/openejb/api/RemoteClient.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.openejb.api; import java.lang.annotation.Target; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; @Target(ElementType.TYPE) @Retention(RetentionPolicy.RUNTIME) public @interface RemoteClient { }
apache/tomee
1,094
container/openejb-core/src/main/java/org/apache/openejb/util/Geronimo.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.openejb.util; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; @Target(ElementType.METHOD) @Retention(RetentionPolicy.SOURCE) public @interface Geronimo { }
apache/trafodion
1,048
core/sqf/src/seatrans/hbase-trx/src/main/java/org/apache/hadoop/hbase/regionserver/transactional/IdTmId.java
/** * @@@ START COPYRIGHT @@@ * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. * * @@@ END COPYRIGHT @@@ **/ package org.apache.hadoop.hbase.regionserver.transactional; /** * IdTmId * * id info returned here */ public class IdTmId { /** * value returned by id method */ public long val; }
apache/tsfile
1,055
java/tsfile/src/main/java/org/apache/tsfile/exception/TsFileSequenceReaderTimeseriesMetadataIteratorException.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.tsfile.exception; public class TsFileSequenceReaderTimeseriesMetadataIteratorException extends RuntimeException { public TsFileSequenceReaderTimeseriesMetadataIteratorException(String message) { super(message); } }
apache/tsfile
1,090
java/tsfile/src/main/java/org/apache/tsfile/read/reader/IBatchReader.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.tsfile.read.reader; import org.apache.tsfile.read.common.BatchData; import java.io.IOException; public interface IBatchReader { boolean hasNextBatch() throws IOException; BatchData nextBatch() throws IOException; void close() throws IOException; }
apache/uniffle
1,093
common/src/main/java/org/apache/uniffle/common/rpc/ServerInterface.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.common.rpc; import java.io.IOException; public interface ServerInterface { int start() throws IOException; void startOnPort(int port) throws Exception; void stop() throws InterruptedException; void blockUntilShutdown() throws InterruptedException; }
apache/wicket
1,062
wicket-core-tests/src/test/java/org/apache/wicket/markup/MarkupInheritanceExtension_1.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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; /** */ public class MarkupInheritanceExtension_1 extends MarkupInheritanceBase_1 { private static final long serialVersionUID = 1L; /** * Construct. * */ public MarkupInheritanceExtension_1() { super(); } }
apache/wicket
1,128
wicket-jmx/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. */ module org.apache.wicket.jmx { requires java.management; requires org.apache.wicket.util; requires org.apache.wicket.core; requires org.slf4j; provides org.apache.wicket.IInitializer with org.apache.wicket.jmx.Initializer; exports org.apache.wicket.jmx; exports org.apache.wicket.jmx.wrapper; }
apache/xmlgraphics-batik
1,081
batik-bridge/src/main/java/org/apache/batik/bridge/NoRepaintRunnable.java
/* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ package org.apache.batik.bridge; /** * A tagging interface to prevent a repaint at the end of the * execution of this runnable. * * @author <a href="mailto:stephane@hillion.org">Stephane Hillion</a> * @version $Id$ */ public interface NoRepaintRunnable extends Runnable { }
google-checks/checks-jenkins-plugin
1,095
src/test/java/hudson/util/SecretFactory.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 // // 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 hudson.util; /** * Utility class to work around testing limitations in Jenkins in regards to Secret. */ public class SecretFactory { private SecretFactory() { } /** * Return a new {@link Secret} with the provided string as the <em>unencrypted</em> value. The * returned secret will <em>not</em> have the encrypted bytes set. * * @param secret * @return */ public static Secret getSecret(String secret) { return new Secret(secret); } }
google/android-classyshark
1,071
ClassySharkWS/src/com/google/classyshark/updater/networking/GitHubApi.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.classyshark.updater.networking; import com.google.classyshark.updater.models.Release; import retrofit2.Call; import retrofit2.http.GET; /** * This class is the one taking care of representing the API needed * in order to retrieve the latest release data from GitHub. */ public interface GitHubApi { String ENDPOINT = "https://api.github.com/"; @GET("repos/google/android-classyshark/releases/latest") Call<Release> getLatestRelease(); }
google/closure-compiler
1,078
src/com/google/javascript/jscomp/parsing/parser/trees/DefaultClauseTree.java
/* * Copyright 2011 The Closure Compiler Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.google.javascript.jscomp.parsing.parser.trees; import com.google.common.collect.ImmutableList; import com.google.javascript.jscomp.parsing.parser.util.SourceRange; public class DefaultClauseTree extends ParseTree { public final ImmutableList<ParseTree> statements; public DefaultClauseTree(SourceRange location, ImmutableList<ParseTree> statements) { super(ParseTreeType.DEFAULT_CLAUSE, location); this.statements = statements; } }
google/depan
1,051
DepanNodeUI/prod/src/com/google/devtools/depan/nodes/filters/eclipse/ui/plugins/ContextualFilterWizard.java
/* * Copyright 2016 The Depan Project Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.google.devtools.depan.nodes.filters.eclipse.ui.plugins; import org.eclipse.core.resources.IFile; import org.eclipse.jface.wizard.Wizard; /** * @author <a href="leeca@pnambic.com">Lee Carver</a> */ public abstract class ContextualFilterWizard extends Wizard { private IFile graphFile; public void init(IFile graphFile) { this.graphFile = graphFile; } public IFile getGraphFile() { return graphFile; } }
google/error-prone
1,066
core/src/test/java/com/google/errorprone/refaster/testdata/template/EmitCommentTemplate.java
/* * Copyright 2016 The Error Prone 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.errorprone.refaster.testdata.template; import com.google.errorprone.refaster.Refaster; import com.google.errorprone.refaster.annotation.AfterTemplate; import com.google.errorprone.refaster.annotation.BeforeTemplate; public class EmitCommentTemplate { @BeforeTemplate void before(String str) { System.out.println(str); } @AfterTemplate void after(String str) { Refaster.emitComment("comment"); System.out.println(str); } }
google/gson
1,087
test-shrinker/src/main/java/com/example/ClassWithAdapter.java
package com.example; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; @JsonAdapter(ClassWithAdapter.Adapter.class) public class ClassWithAdapter { static class Adapter extends TypeAdapter<ClassWithAdapter> { @Override public ClassWithAdapter read(JsonReader in) throws IOException { in.beginObject(); String name = in.nextName(); if (!name.equals("custom")) { throw new IllegalArgumentException("Unexpected name: " + name); } int i = in.nextInt(); in.endObject(); return new ClassWithAdapter(i); } @Override public void write(JsonWriter out, ClassWithAdapter value) throws IOException { out.beginObject(); out.name("custom"); out.value(value.i); out.endObject(); } } public Integer i; public ClassWithAdapter(int i) { this.i = i; } @Override public String toString() { return "ClassWithAdapter[" + i + "]"; } }
google/j2cl
1,072
junit/generator/javatests/com/google/j2cl/junit/integration/testing/testlogger/TestCaseLogger.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.j2cl.junit.integration.testing.testlogger; /** Calling stub for writing into the log. */ public class TestCaseLogger { public static void log(String message) { // We are using the prefix here so that we can clearly identify messages coming from our tests // vs. messages that just happened to be in the output of a test (e.g. coming from the // testing infrastructure itself). System.out.println(" [java_message_from_test] " + message); } }
google/j2cl
1,099
tools/javatests/com/google/j2cl/tools/rta/multipleinheritance/IFooBar.java
/* * Copyright 2018 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.tools.rta.multipleinheritance; /** * This interface inherits 2 times the same method fooBar(). RTA uses the topological depth to * choose which method IFooBar inherits. In this case IBar:fooBar(). If it's not the case (RTA finds * that IFooBar inherits from IFoo:fooBar()), the algorithm will find that IFoo:fooBar() is * overridden in IBar and IBar:fooBar() is overridden in IFoo through IFooBar and that introduces a * circle. */ interface IFooBar extends IFoo, IBar {}
google/j2cl
1,123
junit/emul/java/org/junit/BeforeClass.java
package org.junit; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** * Sometimes several tests need to share computationally expensive setup * (like logging into a database). While this can compromise the independence of * tests, sometimes it is a necessary optimization. Annotating a <code>public static void</code> no-arg method * with <code>@BeforeClass</code> causes it to be run once before any of * the test methods in the class. The <code>@BeforeClass</code> methods of superclasses * will be run before those of the current class, unless they are shadowed in the current class. * <p> * For example: * <pre> * public class Example { * &#064;BeforeClass public static void onlyOnce() { * ... * } * &#064;Test public void one() { * ... * } * &#064;Test public void two() { * ... * } * } * </pre> * * @see org.junit.AfterClass * @since 4.0 */ @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.METHOD) public @interface BeforeClass { }
google/j2objc
1,073
jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/text/Transform.java
/* GENERATED SOURCE. DO NOT MODIFY. */ // © 2016 and later: Unicode, Inc. and others. // License & terms of use: http://www.unicode.org/copyright.html#License /* ******************************************************************************** * Copyright (C) 2009-2010, Google, International Business Machines Corporation * * and others. All Rights Reserved. * ******************************************************************************** */ package android.icu.text; /** * Provide an interface for Transforms that focuses just on the transformation of the text. * APIs that take Transliterator or StringTransform, but only depend on the transformation should use this interface in the API instead. * * @author markdavis * @hide Only a subset of ICU is exposed in Android */ public interface Transform<S,D> { /** * Transform the input in some way, to be determined by the subclass. * @param source to be transformed (eg lowercased) * @return result */ public D transform(S source); }
google/java-photoslibrary
1,040
photoslibraryapi/src/main/java/com/google/photos/library/v1/proto/JoinSharedAlbumResponseOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/photos/library/v1/photos_library.proto package com.google.photos.library.v1.proto; public interface JoinSharedAlbumResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.photos.library.v1.JoinSharedAlbumResponse) com.google.protobuf.MessageOrBuilder { /** * * * <pre> * Shared album that the user has joined. * </pre> * * <code>.google.photos.types.Album album = 1;</code> * * @return Whether the album field is set. */ boolean hasAlbum(); /** * * * <pre> * Shared album that the user has joined. * </pre> * * <code>.google.photos.types.Album album = 1;</code> * * @return The album. */ com.google.photos.types.proto.Album getAlbum(); /** * * * <pre> * Shared album that the user has joined. * </pre> * * <code>.google.photos.types.Album album = 1;</code> */ com.google.photos.types.proto.AlbumOrBuilder getAlbumOrBuilder(); }
google/MOE
1,089
client/src/main/java/com/google/devtools/moe/client/codebase/ExpressionModule.java
package com.google.devtools.moe.client.codebase; import com.google.devtools.moe.client.codebase.expressions.EditExpression; import com.google.devtools.moe.client.codebase.expressions.Expression; import com.google.devtools.moe.client.codebase.expressions.RepositoryExpression; import com.google.devtools.moe.client.codebase.expressions.TranslateExpression; import dagger.Binds; import dagger.Module; import dagger.multibindings.ClassKey; import dagger.multibindings.IntoMap; /** Bindings for Expression processing types. */ @Module public interface ExpressionModule { @Binds @IntoMap @ClassKey(RepositoryExpression.class) CodebaseProcessor<? extends Expression> bindsRepositoryCodebaseProcessor( RepositoryCodebaseProcessor impl); @Binds @IntoMap @ClassKey(EditExpression.class) CodebaseProcessor<? extends Expression> bindsEditedCodebaseProcessor( EditedCodebaseProcessor impl); @Binds @IntoMap @ClassKey(TranslateExpression.class) CodebaseProcessor<? extends Expression> bindsTranslatedCodebaseProcessor( TranslatedCodebaseProcessor impl); }
google/santa-tracker-android
1,049
doodles-lib/src/main/java/com/google/android/apps/santatracker/doodles/shared/CallbackProcess.java
/* * Copyright 2019. 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.android.apps.santatracker.doodles.shared; /** A process which should be run once and then be finished. */ public abstract class CallbackProcess extends Process { private boolean didRun = false; @Override public void update(float deltaMs) { if (!didRun) { updateLogic(deltaMs); didRun = true; } } @Override public boolean isFinished() { return didRun; } }
googleads/google-ads-java
1,045
google-ads-stubs-v19/src/main/java/com/google/ads/googleads/v19/common/AdCallToActionAssetOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/ads/googleads/v19/common/ad_asset.proto // Protobuf Java Version: 3.25.7 package com.google.ads.googleads.v19.common; public interface AdCallToActionAssetOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v19.common.AdCallToActionAsset) com.google.protobuf.MessageOrBuilder { /** * <pre> * The Asset resource name of this call to action asset. * </pre> * * <code>optional string asset = 1;</code> * @return Whether the asset field is set. */ boolean hasAsset(); /** * <pre> * The Asset resource name of this call to action asset. * </pre> * * <code>optional string asset = 1;</code> * @return The asset. */ java.lang.String getAsset(); /** * <pre> * The Asset resource name of this call to action asset. * </pre> * * <code>optional string asset = 1;</code> * @return The bytes for asset. */ com.google.protobuf.ByteString getAssetBytes(); }
googleads/google-ads-java
1,045
google-ads-stubs-v20/src/main/java/com/google/ads/googleads/v20/common/AdCallToActionAssetOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/ads/googleads/v20/common/ad_asset.proto // Protobuf Java Version: 3.25.7 package com.google.ads.googleads.v20.common; public interface AdCallToActionAssetOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v20.common.AdCallToActionAsset) com.google.protobuf.MessageOrBuilder { /** * <pre> * The Asset resource name of this call to action asset. * </pre> * * <code>optional string asset = 1;</code> * @return Whether the asset field is set. */ boolean hasAsset(); /** * <pre> * The Asset resource name of this call to action asset. * </pre> * * <code>optional string asset = 1;</code> * @return The asset. */ java.lang.String getAsset(); /** * <pre> * The Asset resource name of this call to action asset. * </pre> * * <code>optional string asset = 1;</code> * @return The bytes for asset. */ com.google.protobuf.ByteString getAssetBytes(); }
googleads/google-ads-java
1,045
google-ads-stubs-v21/src/main/java/com/google/ads/googleads/v21/common/AdCallToActionAssetOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/ads/googleads/v21/common/ad_asset.proto // Protobuf Java Version: 3.25.7 package com.google.ads.googleads.v21.common; public interface AdCallToActionAssetOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v21.common.AdCallToActionAsset) com.google.protobuf.MessageOrBuilder { /** * <pre> * The Asset resource name of this call to action asset. * </pre> * * <code>optional string asset = 1;</code> * @return Whether the asset field is set. */ boolean hasAsset(); /** * <pre> * The Asset resource name of this call to action asset. * </pre> * * <code>optional string asset = 1;</code> * @return The asset. */ java.lang.String getAsset(); /** * <pre> * The Asset resource name of this call to action asset. * </pre> * * <code>optional string asset = 1;</code> * @return The bytes for asset. */ com.google.protobuf.ByteString getAssetBytes(); }
googleads/googleads-shopping-samples
1,060
java/src/main/java/shopping/content/v2_1/samples/datafeeds/DatafeedInsertSample.java
package shopping.content.v2_1.samples.datafeeds; import com.google.api.client.googleapis.json.GoogleJsonResponseException; import com.google.api.services.content.model.Datafeed; import java.io.IOException; import shopping.content.v2_1.samples.ContentSample; /** Sample that inserts a datafeed. The datafeed created here is used in other samples. */ public class DatafeedInsertSample extends ContentSample { public DatafeedInsertSample(String[] args) throws IOException { super(args); } @Override public void execute() throws IOException { checkNonMCA(); try { Datafeed datafeed = ExampleDatafeedFactory.create(config); Datafeed result = content.datafeeds().insert(this.config.getMerchantId(), datafeed).execute(); System.out.printf("Datafeed %s inserted with ID %d\n", result.getName(), result.getId()); } catch (GoogleJsonResponseException e) { checkGoogleJsonResponseException(e); } } public static void main(String[] args) throws IOException { new DatafeedInsertSample(args).execute(); } }
hibernate/hibernate-ogm
1,046
mongodb/src/main/java/org/hibernate/ogm/datastore/mongodb/type/impl/GeoPolygonGridType.java
/* * Hibernate OGM, Domain model persistence for NoSQL datastores * * License: GNU Lesser General Public License (LGPL), version 2.1 or later * See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>. */ package org.hibernate.ogm.datastore.mongodb.type.impl; import org.hibernate.MappingException; import org.hibernate.engine.spi.Mapping; import org.hibernate.ogm.datastore.mongodb.type.GeoPolygon; import org.hibernate.ogm.type.impl.AbstractGenericBasicType; /** * Persists {@link GeoPolygon} in the format expected by MongoDB. * * @author Guillaume Smet */ public class GeoPolygonGridType extends AbstractGenericBasicType<GeoPolygon> { public static final GeoPolygonGridType INSTANCE = new GeoPolygonGridType(); public GeoPolygonGridType() { super( GeoPolygonGridTypeDescriptor.INSTANCE, GeoPolygonTypeDescriptor.INSTANCE ); } @Override public String getName() { return "geopolygon"; } @Override public int getColumnSpan(Mapping mapping) throws MappingException { return 1; } }
hibernate/hibernate-orm
1,028
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/attributebinder/FooBinder.java
/* * SPDX-License-Identifier: Apache-2.0 * Copyright Red Hat Inc. and Hibernate Authors */ package org.hibernate.orm.test.mapping.attributebinder; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import org.hibernate.binder.AttributeBinder; import org.hibernate.boot.spi.MetadataBuildingContext; import org.hibernate.mapping.PersistentClass; import org.hibernate.mapping.Property; /** * The binder to verify binders are called only once. * * @author Yanming Zhou */ public class FooBinder implements AttributeBinder<Foo> { private static final Map<String, Foo> map = new ConcurrentHashMap<>(); @Override public void bind( Foo annotation, MetadataBuildingContext buildingContext, PersistentClass persistentClass, Property property) { String key = persistentClass.getClassName() + "." + property.getName(); Foo existing = map.putIfAbsent( key, annotation ); if ( existing == annotation ) { throw new IllegalStateException( "AttributeBinder is called twice" ); } } }
hibernate/hibernate-orm
1,029
hibernate-jfr/src/main/java/org/hibernate/event/jfr/internal/EntityLockEvent.java
/* * SPDX-License-Identifier: Apache-2.0 * Copyright Red Hat Inc. and Hibernate Authors */ package org.hibernate.event.jfr.internal; import jdk.jfr.Category; import jdk.jfr.Description; import jdk.jfr.Event; import jdk.jfr.Label; import jdk.jfr.Name; import jdk.jfr.StackTrace; import org.hibernate.LockMode; import org.hibernate.event.monitor.spi.DiagnosticEvent; import org.hibernate.internal.build.AllowNonPortable; @Name(EntityLockEvent.NAME) @Label("Entity Delete") @Category("Hibernate ORM") @Description("Entity Delete") @StackTrace @AllowNonPortable public class EntityLockEvent extends Event implements DiagnosticEvent { public static final String NAME = "org.hibernate.orm.EntityDeleteEvent"; @Label("Session Identifier") public String sessionIdentifier; @Label("Entity Identifier") public String id; @Label("Entity Name") public String entityName; @Label("Lock Mode") public LockMode lockMode; @Label("Success") public boolean success; @Override public String toString() { return NAME; } }
openjdk/jdk8
1,081
jaxp/src/com/sun/org/apache/xerces/internal/xni/grammars/XMLDTDDescription.java
/* * reserved comment block * DO NOT REMOVE OR ALTER! */ /* * Copyright 2002,2004 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.sun.org.apache.xerces.internal.xni.grammars; /** * All information specific to DTD grammars. * * @author Sandy Gao, IBM */ public interface XMLDTDDescription extends XMLGrammarDescription { /** * Return the root name of this DTD. * * @return the root name. null if the name is unknown. */ public String getRootName(); } // interface XMLDTDDescription
openjdk/jdk8
1,112
langtools/test/tools/javac/NonAmbiguousField/one/Parent2.java
/* * Copyright (c) 1998, 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 class Parent2 { protected int i; }
openjdk/jdk8
1,123
langtools/test/tools/javac/generics/6192945/Neg3.java
/* * Copyright (c) 2006, 2007, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ public class Neg3<A extends B & C, B extends A, C extends A> { }
openjdk/jtreg
1,139
test/verifyexclude/p/g/Pass3.java
/* * Copyright (c) 2024, 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. */ /* @test */ public class Pass3 { public static void main(String... args) { } }
openjdk/jtreg
1,141
test/statusFilter/p1/T1.java
/* * Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ /* * @test */ public class T1 { public static void main(String... args) { } }
openjdk/jtreg
1,141
test/statusFilter/p1/T2.java
/* * Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ /* * @test */ public class T2 { public static void main(String... args) { } }
openjdk/jtreg
1,141
test/statusFilter/p1/T4.java
/* * Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ /* * @test */ public class T4 { public static void main(String... args) { } }
openjdk/jtreg
1,141
test/statusFilter/p1/T5.java
/* * Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ /* * @test */ public class T5 { public static void main(String... args) { } }
openjdk/jtreg
1,141
test/statusFilter/p2/T1.java
/* * Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ /* * @test */ public class T1 { public static void main(String... args) { } }
openjdk/jtreg
1,141
test/statusFilter/p2/T4.java
/* * Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ /* * @test */ public class T4 { public static void main(String... args) { } }
openjdk/jtreg
1,141
test/statusFilter/p2/T5.java
/* * Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ /* * @test */ public class T5 { public static void main(String... args) { } }
oracle-samples/genai-langgraph-graalpy
1,072
src/main/java/com/oracle/ateam/examples/langgraph/PythonLogger.java
/** ***************************************************************************** * Embedding Python-based AI Agents into Java Applications version 1.0. * * Copyright (c) 2024, Oracle and/or its affiliates. * Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. ***************************************************************************** */ package com.oracle.ateam.examples.langgraph; import java.util.logging.Logger; /** * The PythonLogger class is the utility class to be invoked by the Python code * to log message in the Java log. * */ public final class PythonLogger { private static final Logger LOGGER = Logger.getLogger(PythonLogger.class.getName()); public static void info(String message) { LOGGER.info(message); } public static void debug(String message) { LOGGER.fine(message); } public static void warn(String message) { LOGGER.warning(message); } public static void error(String message) { LOGGER.severe(message); } }
apache/commons-io
1,106
src/test/java/org/apache/commons/io/FileCleanerTest.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.commons.io; /** * Tests {@link FileCleaner}. */ @SuppressWarnings("deprecation") // testing deprecated class class FileCleanerTest extends FileCleaningTrackerTest { @Override protected FileCleaningTracker newInstance() { return FileCleaner.getInstance(); } }
apache/commons-ognl
1,080
src/test/java/org/apache/commons/ognl/test/objects/ComponentSubclass.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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 ComponentSubclass extends ComponentImpl { int _count = 0; public int getCount() { return _count; } public void setCount( int count ) { _count = count; } }
apache/curator
1,085
curator-x-discovery/src/main/java/org/apache/curator/x/discovery/LocalIpFilter.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.curator.x.discovery; import java.net.InetAddress; import java.net.NetworkInterface; import java.net.SocketException; public interface LocalIpFilter { public boolean use(NetworkInterface networkInterface, InetAddress address) throws SocketException; }
apache/curator
1,086
curator-x-async/src/main/java/org/apache/curator/x/async/details/BackgroundProc.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.curator.x.async.details; import java.util.concurrent.CompletableFuture; import java.util.function.BiFunction; import org.apache.curator.framework.api.CuratorEvent; interface BackgroundProc<T> extends BiFunction<CuratorEvent, CompletableFuture<T>, Void> {}
apache/cxf
1,082
rt/databinding/aegis/src/test/java/org/apache/cxf/aegis/type/missing/MissingType.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.type.missing; import jakarta.jws.WebMethod; import jakarta.jws.WebService; @WebService(name = "MissingType", targetNamespace = "urn:org:apache:cxf:aegis:type:missing") public interface MissingType { @WebMethod void addName(Outer outer); }
apache/cxf
1,087
tools/corba/src/main/java/org/apache/cxf/tools/corba/common/PrimitiveMapBase.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.tools.corba.common; import java.util.Map; import javax.xml.namespace.QName; public abstract class PrimitiveMapBase { protected Map<String, QName> corbaPrimitiveMap; public Object get(Object key) { return corbaPrimitiveMap.get(key); } }
apache/cxf
1,092
core/src/main/java/org/apache/cxf/databinding/stax/XMLStreamWriterCallback.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.databinding.stax; import javax.xml.stream.XMLStreamException; import javax.xml.stream.XMLStreamWriter; import org.apache.cxf.interceptor.Fault; public interface XMLStreamWriterCallback { void write(XMLStreamWriter writer) throws Fault, XMLStreamException; }
apache/cxf
1,113
core/src/main/java/org/apache/cxf/io/Transferable.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.io; import java.io.File; import java.io.IOException; /** * Implementing classes support transfer of their data to a file. This * is typically implemented as a stream copy, or a file move. * */ public interface Transferable { void transferTo(File file) throws IOException; }
apache/datafu
1,103
datafu-hourglass/src/main/java/datafu/hourglass/avro/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. */ /** * Input and output formats for using Avro in incremental Hadoop jobs. * These are used internally by {@link datafu.hourglass.jobs.AbstractPartitionPreservingIncrementalJob} * and {@link datafu.hourglass.jobs.AbstractPartitionCollapsingIncrementalJob}. */ package datafu.hourglass.avro;
apache/doris-manager
1,033
manager/general/src/main/java/org/apache/doris/stack/exception/StudioInitException.java
// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use this file except in compliance // with the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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 StudioInitException extends Exception { public static final String MESSAGE = "初始化已完成,请刷新后重试或联系技术人员"; public StudioInitException() { super(MESSAGE); } }
apache/doris-manager
1,034
manager/general/src/main/java/org/apache/doris/stack/exception/InvalidDataException.java
// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use this file except in compliance // with the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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 InvalidDataException extends Exception { public static final String MESSAGE = "不合法数据实体,请重试或者联系技术人员"; public InvalidDataException() { super(MESSAGE); } }
apache/drill
1,084
exec/java-exec/src/main/java/org/apache/drill/exec/store/sys/BasePersistentStore.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.store.sys; import java.util.Iterator; import java.util.Map; public abstract class BasePersistentStore<V> implements PersistentStore<V> { @Override public Iterator<Map.Entry<String, V>> getAll() { return getRange(0, Integer.MAX_VALUE); } }