repo_id
stringclasses
875 values
size
int64
974
38.9k
file_path
stringlengths
10
308
content
stringlengths
974
38.9k
apache/qpid-broker-j
1,061
broker-core/src/main/java/org/apache/qpid/server/model/LifetimePolicy.java
/* * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.model; public enum LifetimePolicy { PERMANENT, DELETE_ON_CONNECTION_CLOSE, DELETE_ON_SESSION_END, DELETE_ON_NO_OUTBOUND_LINKS, DELETE_ON_NO_LINKS, DELETE_ON_CREATING_LINK_CLOSE, IN_USE }
apache/rocketmq-eventbridge
1,027
domain/src/main/java/org/apache/rocketmq/eventbridge/domain/model/connection/parameter/BodyParameter.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.rocketmq.eventbridge.domain.model.connection.parameter; import lombok.Getter; import lombok.Setter; import lombok.ToString; @Getter @Setter @ToString public class BodyParameter extends BaseParameter { }
apache/rocketmq-eventbridge
1,052
domain/src/main/java/org/apache/rocketmq/eventbridge/domain/model/Component.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.rocketmq.eventbridge.domain.model; import java.util.Map; import lombok.AllArgsConstructor; import lombok.Data; @AllArgsConstructor @Data public class Component { private String name; private Map<String, Object> config; }
apache/rocketmq
1,048
client/src/main/java/org/apache/rocketmq/client/consumer/listener/ConsumeConcurrentlyStatus.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.consumer.listener; public enum ConsumeConcurrentlyStatus { /** * Success consumption */ CONSUME_SUCCESS, /** * Failure consumption,later try to consume */ RECONSUME_LATER; }
apache/samza
1,067
samza-api/src/main/java/org/apache/samza/system/StreamValidationException.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.samza.system; import org.apache.samza.SamzaException; public class StreamValidationException extends SamzaException { private static final long serialVersionUID = 1L; public StreamValidationException(String s) { super(s); } }
apache/servicecomb-java-chassis
1,051
governance/src/main/java/org/apache/servicecomb/governance/utils/CustomMatch.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.governance.utils; import org.apache.servicecomb.governance.marker.GovernanceRequestExtractor; public interface CustomMatch { boolean matchRequest(GovernanceRequestExtractor requestExtractor, String parameters); }
apache/shenyu
1,025
shenyu-register-center/shenyu-register-common/src/main/java/org/apache/shenyu/register/common/type/DataTypeParent.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.shenyu.register.common.type; /** * The interface Data type parent. */ public interface DataTypeParent { /** * Gets type. * * @return the type */ DataType getType(); }
apache/shenyu
1,058
shenyu-e2e/shenyu-e2e-common/src/main/java/org/apache/shenyu/e2e/constant/Constants.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.shenyu.e2e.constant; public final class Constants { /** * The constant SYS_DEFAULT_NAMESPACE_NAMESPACE_ID. */ public static final String SYS_DEFAULT_NAMESPACE_NAMESPACE_ID = "649330b6-c2d7-4edc-be8e-8a54df9eb385"; }
apache/sirona
1,061
core/src/main/java/org/apache/sirona/store/tracking/DefaultPathTrackingDataStore.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.store.tracking; import org.apache.sirona.store.memory.tracking.InMemoryPathTrackingDataStore; /** * */ public class DefaultPathTrackingDataStore extends InMemoryPathTrackingDataStore { // no op just to ease users life }
apache/sis
1,055
endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/crs/ParametricCRS.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.sis.referencing.crs; import org.opengis.referencing.crs.SingleCRS; /** * Place-holder for an interface not yet present in GeoAPI 3.0. * * @author Martin Desruisseaux (Geomatys) */ interface ParametricCRS extends SingleCRS { }
apache/storm
1,045
external/storm-kafka-client/src/main/java/org/apache/storm/kafka/spout/internal/ClientFactory.java
/* * Copyright 2016 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.storm.kafka.spout.internal; import java.io.Serializable; import java.util.Map; import org.apache.kafka.clients.admin.Admin; import org.apache.kafka.clients.consumer.Consumer; /** * This is here to enable testing. */ public interface ClientFactory<K, V> extends Serializable { Consumer<K, V> createConsumer(Map<String, Object> consumerProps); Admin createAdmin(Map<String, Object> adminProps); }
apache/struts
1,077
core/src/main/java/org/apache/struts2/util/ClearableValueStack.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.util; /** * ValueStacks implementing this interface provide a way to remove values from * their contexts. */ public interface ClearableValueStack { /** * Remove all values from the context */ void clearContextValues(); }
apache/syncope
1,048
ext/scimv2/scim-rest-api/src/main/java/org/apache/syncope/ext/scimv2/api/type/ErrorType.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.syncope.ext.scimv2.api.type; public enum ErrorType { invalidFilter, tooMany, uniqueness, mutability, invalidSyntax, invalidPath, noTarget, invalidValue, invalidVers, sensitive; }
apache/tomcat80
1,044
modules/tomcat-lite/test/org/apache/tomcat/lite/io/UEncoderTest.java
/* */ package org.apache.tomcat.lite.io; import junit.framework.TestCase; public class UEncoderTest extends TestCase { IOWriter enc=new IOWriter(null); UrlEncoding dec = new UrlEncoding(); CBuffer cc = CBuffer.newInstance(); /* * * Test method for 'org.apache.tomcat.util.buf.UEncoder.encodeURL(String)' * TODO: find the relevant rfc and apache tests and add more */ public void testEncodeURL() { String eurl1=encodeURL("test"); Assert.assertEquals("test", eurl1); eurl1=encodeURL("/test"); Assert.assertEquals("/test", eurl1); // safe ranges eurl1=encodeURL("test$-_."); Assert.assertEquals("test$-_.", eurl1); eurl1=encodeURL("test$-_.!*'(),"); Assert.assertEquals("test$-_.!*'(),", eurl1); eurl1=encodeURL("//test"); Assert.assertEquals("//test", eurl1); } public String encodeURL(String uri) { cc.recycle(); dec.urlEncode(uri, cc, enc); return cc.toString(); } }
apache/tomcat80
1,090
java/org/apache/tomcat/websocket/pojo/Constants.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.tomcat.websocket.pojo; /** * Internal implementation constants. */ public class Constants { protected static final String PACKAGE_NAME = Constants.class.getPackage().getName(); private Constants() { // Hide default constructor } }
apache/tomee
1,029
examples/resources-jmx-example/resources-jmx-ejb/src/main/java/org/superbiz/resource/jmx/resources/HelloMBean.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.superbiz.resource.jmx.resources; public interface HelloMBean { public String greet(final String name); public int getCount(); public void setCount(int count); public void increment(); }
apache/tomee
1,032
arquillian/arquillian-tomee-embedded/src/test/java/org/apache/openejb/arquillian/embedded/ARestService.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.openejb.arquillian.embedded; import jakarta.ws.rs.GET; import jakarta.ws.rs.Path; @Path("/rest") public class ARestService { @Path("/foo") @GET public String foo() { return "foo"; } }
apache/tomee
1,055
examples/interceptors/src/main/java/org/superbiz/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.superbiz.interceptors; import jakarta.interceptor.Interceptors; /** * @version $Rev$ $Date$ */ @Interceptors({ClassLevelInterceptorSuperClassOne.class, ClassLevelInterceptorSuperClassTwo.class}) public class FullyInterceptedSuperClass { }
apache/tomee
1,064
server/openejb-client/src/main/java/org/apache/openejb/client/InterfaceType.java
/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.client; /** * @version $Rev$ $Date$ */ public enum InterfaceType { EJB_HOME, EJB_OBJECT, EJB_LOCAL_HOME, EJB_LOCAL, BUSINESS_LOCAL, BUSINESS_LOCAL_HOME, BUSINESS_REMOTE, BUSINESS_REMOTE_HOME, }
apache/tomee
1,071
container/openejb-jee/src/main/java/org/apache/openejb/jee/sun/ReadOnly.java
/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.openejb.jee.sun; import jakarta.xml.bind.annotation.XmlAccessType; import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlType; @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "") public class ReadOnly { }
apache/tsfile
1,052
java/tsfile/src/main/java/org/apache/tsfile/fileSystem/fileInputFactory/FileInputFactory.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.fileSystem.fileInputFactory; import org.apache.tsfile.read.reader.TsFileInput; import java.io.IOException; public interface FileInputFactory { TsFileInput getTsFileInput(String filePath) throws IOException; }
apache/uima-uimaj
1,054
uimaj-core/src/main/java/org/apache/uima/collection/metadata/CpeDescriptorException.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.uima.collection.metadata; public class CpeDescriptorException extends Exception { private static final long serialVersionUID = -5008821641810813512L; public CpeDescriptorException(String aMsg) { super(aMsg); } }
apache/uniffle
1,051
internal-client/src/main/java/org/apache/uniffle/client/response/RssStartSortMergeResponse.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.uniffle.client.response; import org.apache.uniffle.common.rpc.StatusCode; public class RssStartSortMergeResponse extends ClientResponse { public RssStartSortMergeResponse(StatusCode statusCode) { super(statusCode); } }
apache/zeppelin
1,054
zeppelin-jupyter/src/main/java/org/apache/zeppelin/jupyter/nbformat/Kernelspec.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.zeppelin.jupyter.nbformat; import com.google.gson.annotations.SerializedName; /** * */ public class Kernelspec { @SerializedName("name") private String name; @SerializedName("display_name") private String displayName; }
google/closure-compiler
1,068
test/com/google/javascript/jscomp/ant/AntClassesExistTest.java
/* * Copyright 2020 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.ant; import static com.google.common.truth.Truth.assertThat; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; @RunWith(JUnit4.class) public final class AntClassesExistTest { @Test public void antClassesExist() { assertThat(new AntErrorManager(null, null)).isNotNull(); assertThat(new CompileTask()).isNotNull(); assertThat(new Warning()).isNotNull(); } }
google/copybara
1,079
java/com/google/copybara/authoring/InvalidAuthorException.java
/* * Copyright (C) 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.copybara.authoring; /** * Indicates that the author does not conform to the expected format. * * <p>This exception does not extend other exceptions {@code ValidationException} or * {@code RepoException} because a bad parsed author could come from a configuration or a repo, and * it's wrapped into the proper one by the caller. */ public class InvalidAuthorException extends Exception { InvalidAuthorException(String message) { super(message); } }
google/graphicsfuzz
1,064
ast/src/test/java/com/graphicsfuzz/common/ast/type/VoidTypeTest.java
/* * Copyright 2018 The GraphicsFuzz Project Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.graphicsfuzz.common.ast.type; import static org.junit.Assert.assertFalse; import com.graphicsfuzz.common.typing.Scope; import org.junit.Test; public class VoidTypeTest { @Test public void hasCanonicalConstant() { assertFalse(VoidType.VOID.hasCanonicalConstant(new Scope())); } @Test(expected = RuntimeException.class) public void getCanonicalConstant() { VoidType.VOID.getCanonicalConstant(new Scope()); } }
google/java-photoslibrary
1,030
photoslibraryapi/src/main/java/com/google/photos/library/v1/proto/UnshareAlbumRequestOrBuilder.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 UnshareAlbumRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.photos.library.v1.UnshareAlbumRequest) com.google.protobuf.MessageOrBuilder { /** * * * <pre> * Required. Identifier of the album to be unshared. This album id must belong * to an album created by the developer. * </pre> * * <code>string album_id = 1 [(.google.api.field_behavior) = REQUIRED];</code> * * @return The albumId. */ java.lang.String getAlbumId(); /** * * * <pre> * Required. Identifier of the album to be unshared. This album id must belong * to an album created by the developer. * </pre> * * <code>string album_id = 1 [(.google.api.field_behavior) = REQUIRED];</code> * * @return The bytes for albumId. */ com.google.protobuf.ByteString getAlbumIdBytes(); }
google/nomulus
1,086
util/src/main/java/google/registry/util/ListNamingUtils.java
// Copyright 2017 The Nomulus Authors. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. package google.registry.util; import com.google.common.io.Files; import java.nio.file.Path; /** A utility class for conversion of input file paths into names for entities in the database. */ public final class ListNamingUtils { /** Turns a file path into a name suitable for use as the name of a premium or reserved list. */ public static String convertFilePathToName(Path file) { return Files.getNameWithoutExtension(file.getFileName().toString()); } }
google/oss-fuzz
1,094
projects/apache-commons-net/TelnetOptionFuzzer.java
// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // //////////////////////////////////////////////////////////////////////////////// import com.code_intelligence.jazzer.api.FuzzedDataProvider; import org.apache.commons.net.telnet.TelnetOption; public class TelnetOptionFuzzer { public static void fuzzerTestOneInput(FuzzedDataProvider data) { try{ TelnetOption.getOption(data.consumeInt()); TelnetOption.isValidOption(data.consumeInt()); } catch (java.lang.ArrayIndexOutOfBoundsException e) {} } }
google/startup-os
1,091
examples/android/activities/MainActivity.java
/* * Copyright 2018 The StartupOS Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.google.startupos.examples.android.activities; import android.app.Activity; import android.os.Bundle; import com.google.startupos.examples.android.R; import com.google.firebase.firestore.FirebaseFirestore; public class MainActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); FirebaseFirestore db = FirebaseFirestore.getInstance(); } }
hibernate/hibernate-ogm
1,026
mongodb/src/main/java/org/hibernate/ogm/datastore/mongodb/type/impl/GeoPointGridType.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.GeoPoint; import org.hibernate.ogm.type.impl.AbstractGenericBasicType; /** * Persists {@link GeoPoint} in the format expected by MongoDB. * * @author Guillaume Smet */ public class GeoPointGridType extends AbstractGenericBasicType<GeoPoint> { public static final GeoPointGridType INSTANCE = new GeoPointGridType(); public GeoPointGridType() { super( GeoPointGridTypeDescriptor.INSTANCE, GeoPointTypeDescriptor.INSTANCE ); } @Override public String getName() { return "geopoint"; } @Override public int getColumnSpan(Mapping mapping) throws MappingException { return 1; } }
hibernate/hibernate-ogm
1,044
core/src/main/java/org/hibernate/ogm/type/impl/PrimitiveByteArrayType.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.type.impl; import org.hibernate.MappingException; import org.hibernate.engine.spi.Mapping; import org.hibernate.ogm.type.descriptor.impl.PassThroughGridTypeDescriptor; import org.hibernate.type.descriptor.java.PrimitiveByteArrayTypeDescriptor; /** * @author Emmanuel Bernard &lt;emmanuel@hibernate.org&gt; */ public class PrimitiveByteArrayType extends AbstractGenericBasicType<byte[]> { public static PrimitiveByteArrayType INSTANCE = new PrimitiveByteArrayType(); public PrimitiveByteArrayType() { super( PassThroughGridTypeDescriptor.INSTANCE, PrimitiveByteArrayTypeDescriptor.INSTANCE ); } @Override public int getColumnSpan(Mapping mapping) throws MappingException { return 1; } @Override public String getName() { return "materialized_blob"; } }
hibernate/hibernate-orm
1,037
hibernate-core/src/main/java/org/hibernate/engine/jdbc/mutation/OperationResultChecker.java
/* * SPDX-License-Identifier: Apache-2.0 * Copyright Red Hat Inc. and Hibernate Authors */ package org.hibernate.engine.jdbc.mutation; import java.sql.SQLException; import org.hibernate.Incubating; import org.hibernate.engine.jdbc.mutation.group.PreparedStatementDetails; /** * Used to check the results of a statement execution * * @author Steve Ebersole */ @Incubating @FunctionalInterface public interface OperationResultChecker { /** * Check the result of a JDBC operation * * @param statementDetails Details for the SQL statement executed * @param affectedRowCount The number of rows affected by the operation, as reported by the JDBC driver * @param batchPosition The execution's position within the active batch, if one; if not batching, -1 will be passed * * @return {@code true} indicates an execution that is considered successful; {@code false} indicates unsuccessful */ boolean checkResult(PreparedStatementDetails statementDetails, int affectedRowCount, int batchPosition) throws SQLException; }
hibernate/hibernate-tools
1,043
jbt/src/main/java/org/hibernate/tool/orm/jbt/internal/wrp/AbstractWrapper.java
/* * Hibernate Tools, Tooling for your Hibernate Projects * * Copyright 2024-2025 Red Hat, 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.hibernate.tool.orm.jbt.internal.wrp; import org.hibernate.tool.orm.jbt.api.wrp.Wrapper; public abstract class AbstractWrapper implements Wrapper { @Override public boolean equals(Object o) { if (o == null) return false; if (!Wrapper.class.isAssignableFrom(o.getClass())) return false; return getWrappedObject().equals(((Wrapper)o).getWrappedObject()); } }
openjdk/jdk8
1,095
langtools/test/com/sun/javadoc/testDocFiles/pkg/Test.java
/* * Copyright (c) 2002, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ package pkg; public class Test { }
openjdk/jdk8
1,097
langtools/test/tools/javac/sourcePath/SourcePathA.java
/* * Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ class SourcePathA { } class SourcePathB { }
openjdk/jdk8
1,101
langtools/test/tools/javac/scope/6225935/a/Star.java
/* * Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ package a; public class Star extends Private {}
openjdk/jdk8
1,102
langtools/test/tools/javac/synthesize/Object.java
/* * Copyright (c) 2007, 2008, 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 java.lang; public class Object { }
openjdk/jtreg
1,105
test/modlibs/buildAction/patch/BuildPatch.java
/* * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ /* * @test * @build java.base/java.io.IOHelper */
oracle/coherence
1,055
prj/coherence-core/src/main/java/com/tangosol/io/pof/OptionalLongSerializer.java
/* * Copyright (c) 2000, 2020, Oracle and/or its affiliates. * * Licensed under the Universal Permissive License v 1.0 as shown at * http://oss.oracle.com/licenses/upl. */ package com.tangosol.io.pof; import java.io.IOException; import java.util.OptionalLong; /** * POF serializer for {@code java.util.OptionalLong}. * * @author as 2014.10.07 */ public class OptionalLongSerializer implements PofSerializer<OptionalLong> { public void serialize(PofWriter out, OptionalLong value) throws IOException { boolean fPresent = value.isPresent(); out.writeBoolean(0, fPresent); if (fPresent) { out.writeLong(1, value.getAsLong()); } out.writeRemainder(null); } public OptionalLong deserialize(PofReader in) throws IOException { boolean fPresent = in.readBoolean(0); OptionalLong value = fPresent ? OptionalLong.of(in.readLong(1)) : OptionalLong.empty(); in.readRemainder(); return value; } }
oracle/nosql
1,071
kvmain/src/main/java/oracle/kv/impl/query/compiler/FuncCollectRegroup.java
/*- * Copyright (C) 2011, 2025 Oracle and/or its affiliates. All rights reserved. * * This file was distributed by Oracle as part of a version of Oracle NoSQL * Database made available at: * * http://www.oracle.com/technetwork/database/database-technologies/nosqldb/downloads/index.html * * Please see the LICENSE file included in the top-level directory of the * appropriate version of Oracle NoSQL Database for a copy of the license and * additional information. */ package oracle.kv.impl.query.compiler; import oracle.kv.impl.api.table.FieldDefImpl; import oracle.kv.impl.query.types.ExprType; import oracle.kv.impl.query.types.ExprType.Quantifier; import oracle.kv.impl.query.types.TypeManager; class FuncCollectRegroup extends FuncCollect { FuncCollectRegroup(boolean distinct) { super(distinct); } @Override ExprType getRetType(ExprFuncCall caller) { FieldDefImpl inType = caller.getInput().getType().getDef(); assert(inType.isArray()); return TypeManager.createType(inType, Quantifier.ONE); } }
apache/commons-jcs
1,044
src/experimental/org/apache/commons/jcs/auxiliary/lateral/xmlrpc/behavior/IXMLRPCConstants.java
package org.apache.commons.jcs.auxiliary.lateral.xmlrpc.behavior; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.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. */ public interface IXMLRPCConstants { public static final String HANDLERNAME = "LATERAL_XMLRPC_CACHE"; public static final String NO_RESULTS = "NO_RESULTS"; }
apache/deltaspike
1,025
deltaspike/modules/security/api/src/main/java/org/apache/deltaspike/security/api/authorization/AccessDecisionState.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.deltaspike.security.api.authorization; /** * State-enum for {@link AccessDecisionVoterContext} */ public enum AccessDecisionState { INITIAL, VOTE_IN_PROGRESS, VIOLATION_FOUND, NO_VIOLATION_FOUND }
apache/deltaspike
1,042
deltaspike/examples/data-examples/src/main/java/org/apache/deltaspike/example/ArticleRepository.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.deltaspike.example; import org.apache.deltaspike.data.api.EntityRepository; import org.apache.deltaspike.data.api.Repository; @Repository public interface ArticleRepository extends EntityRepository<Article, Long> { }
apache/directory-server
1,040
protocol-dhcp/src/main/java/org/apache/directory/server/dhcp/options/perhost/package-info.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. * */ /** * Provides per-host options for the DHCP protocol. * * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a> */ package org.apache.directory.server.dhcp.options.perhost;
apache/directory-server
1,044
protocol-ldap/src/main/java/org/apache/directory/server/ldap/handlers/ssl/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. * */ /** * Contains support for SSL with the LDAP protocol (LDAPS). * * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a> */ package org.apache.directory.server.ldap.handlers.ssl;
apache/distributedlog
1,054
distributedlog-core/src/main/java/org/apache/distributedlog/limiter/RequestLimiter.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.distributedlog.limiter; import org.apache.distributedlog.exceptions.OverCapacityException; /** * RequestLimiter. */ public interface RequestLimiter<RequestT> { void apply(RequestT request) throws OverCapacityException; }
apache/dolphinscheduler
1,042
dolphinscheduler-dao/src/main/java/org/apache/dolphinscheduler/dao/repository/DsVersionDao.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.dolphinscheduler.dao.repository; import org.apache.dolphinscheduler.dao.entity.DsVersion; import java.util.Optional; public interface DsVersionDao extends IDao<DsVersion> { Optional<DsVersion> selectVersion(); }
apache/dolphinscheduler
1,048
dolphinscheduler-dao/src/main/java/org/apache/dolphinscheduler/dao/mapper/K8sMapper.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.dolphinscheduler.dao.mapper; import org.apache.dolphinscheduler.dao.entity.K8s; import com.baomidou.mybatisplus.core.mapper.BaseMapper; /** * k8s mapper interface */ public interface K8sMapper extends BaseMapper<K8s> { }
apache/drill
1,070
logical/src/main/java/org/apache/drill/common/expression/visitors/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. */ /** * Visitors for validating or optimizing logical expressions. * * These visitors are used to provide feedback to users on invalid expressions * as well as some basic optimizations applied during planning. */ package org.apache.drill.common.expression.visitors;
apache/drill
1,075
exec/java-exec/src/test/java/org/apache/drill/exec/compile/ExampleInner.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.compile; import org.apache.drill.exec.exception.SchemaChangeException; public interface ExampleInner { public abstract void doOutside() throws SchemaChangeException; public abstract void doInsideOutside() throws SchemaChangeException; }
apache/druid
1,059
processing/src/test/java/org/apache/druid/frame/allocation/ArenaMemoryAllocatorTest.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.druid.frame.allocation; public class ArenaMemoryAllocatorTest extends BaseMemoryAllocatorTest { @Override protected MemoryAllocator makeAllocator(int capacity) { return ArenaMemoryAllocator.createOnHeap(capacity); } }
apache/eagle
1,024
eagle-core/eagle-alert-parent/eagle-alert/alert-common/src/main/java/org/apache/eagle/alert/engine/codec/IEventSerializer.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.eagle.alert.engine.codec; import org.apache.eagle.alert.engine.model.AlertStreamEvent; /** * @since Jun 3, 2016. */ public interface IEventSerializer { Object serialize(AlertStreamEvent event); }
apache/eventmesh
1,034
eventmesh-common/src/main/java/org/apache/eventmesh/common/config/connector/rdb/canal/RdbTableDefinition.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.eventmesh.common.config.connector.rdb.canal; import lombok.Data; /** * Description: as class name */ @Data public class RdbTableDefinition { protected String schemaName; protected String tableName; }
apache/fesod
1,059
fesod-examples/src/test/java/org/apache/fesod/excel/demo/read/DemoExtraData.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.fesod.excel.demo.read; import lombok.EqualsAndHashCode; import lombok.Getter; import lombok.Setter; /** * */ @Getter @Setter @EqualsAndHashCode public class DemoExtraData { private String row1; private String row2; }
apache/fesod
1,069
fesod-examples/src/test/java/org/apache/fesod/excel/demo/read/Sample.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.fesod.excel.demo.read; import lombok.EqualsAndHashCode; import lombok.Getter; import lombok.NoArgsConstructor; import lombok.Setter; @Getter @Setter @EqualsAndHashCode @NoArgsConstructor public class Sample { private String header; }
apache/fineract
1,032
fineract-e2e-tests-core/src/test/java/org/apache/fineract/test/messaging/event/loan/LoanBalanceChangedEvent.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.fineract.test.messaging.event.loan; public class LoanBalanceChangedEvent extends AbstractLoanEvent { @Override public String getEventName() { return "LoanBalanceChangedBusinessEvent"; } }
apache/flex-blazeds
1,051
core/src/main/java/flex/management/runtime/messaging/services/MessageServiceControlMBean.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package flex.management.runtime.messaging.services; /** * Defines the runtime monitoring and management interface for managed message services. */ public interface MessageServiceControlMBean extends ServiceControlMBean { // Empty for now. }
apache/flink
1,036
flink-table/flink-table-common/src/main/java/org/apache/flink/table/data/columnar/vector/BooleanColumnVector.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.flink.table.data.columnar.vector; import org.apache.flink.annotation.Internal; /** Boolean column vector. */ @Internal public interface BooleanColumnVector extends ColumnVector { boolean getBoolean(int i); }
apache/flink
1,037
flink-table/flink-table-code-splitter/src/test/resources/block/expected/TestIfStatementRewrite3.java
public class TestIfStatementRewrite3 { public void myFun1(int[] a, int[] b) throws RuntimeException { if (a[0] == 0) { myFun1_0_0(a, b); } else if (a[1] == 22) { myFun1_0_1_2(a, b); } else if (a[3] == 0) { myFun1_0_1_3_4(a, b); } else if (a[4] == 0) { myFun1_0_1_3_5_6(a, b); } else { myFun1_0_1_3_5_7(a, b); } } void myFun1_0_1_3_4(int[] a, int[] b) throws RuntimeException { a[3] = b[3]; a[33] = b[33]; } void myFun1_0_1_2(int[] a, int[] b) throws RuntimeException { a[1] = b[12]; a[2] = b[22]; } void myFun1_0_1_3_5_6(int[] a, int[] b) throws RuntimeException { a[4] = b[4]; a[44] = b[44]; } void myFun1_0_1_3_5_7(int[] a, int[] b) throws RuntimeException { a[0] = b[0]; a[1] = b[1]; a[2] = b[2]; } void myFun1_0_0(int[] a, int[] b) throws RuntimeException { a[0] = 1; a[1] = 1; } }
apache/flink
1,048
flink-end-to-end-tests/flink-python-test/src/main/java/org/apache/flink/python/tests/util/AddOne.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.flink.python.tests.util; import org.apache.flink.table.functions.ScalarFunction; /** Scala UDF for testing. */ public class AddOne extends ScalarFunction { public long eval(Long input) { return input + 1; } }
apache/flink
1,065
flink-runtime/src/main/java/org/apache/flink/runtime/taskmanager/NoOpTaskActions.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.flink.runtime.taskmanager; /** A dummy implementation of the {@link TaskActions} which is mainly used for tests. */ public class NoOpTaskActions implements TaskActions { @Override public void failExternally(Throwable cause) {} }
apache/geaflow
1,034
geaflow-console/app/common/dal/src/main/java/org/apache/geaflow/console/common/dal/mapper/GeaflowBaseMapper.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.geaflow.console.common.dal.mapper; import com.github.yulichang.base.MPJBaseMapper; import org.apache.ibatis.annotations.Mapper; @Mapper public interface GeaflowBaseMapper<T> extends MPJBaseMapper<T> { }
apache/gobblin
1,055
gobblin-runtime/src/main/java/org/apache/gobblin/runtime/cli/EmbeddedGobblinCliFactory.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.gobblin.runtime.cli; import org.apache.gobblin.runtime.embedded.EmbeddedGobblin; /** * A factory for {@link EmbeddedGobblin} instances. */ public interface EmbeddedGobblinCliFactory extends CliObjectFactory<EmbeddedGobblin> { }
apache/hadoop-common
1,051
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/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. */ @InterfaceAudience.LimitedPrivate({"HBase", "HDFS", "MapReduce"}) @InterfaceStability.Evolving package org.apache.hadoop.ipc; import org.apache.hadoop.classification.InterfaceAudience; import org.apache.hadoop.classification.InterfaceStability;
apache/hadoop
1,030
hadoop-tools/hadoop-compat-bench/src/main/java/org/apache/hadoop/fs/compat/common/HdfsCompatIllegalArgumentException.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * <p> * http://www.apache.org/licenses/LICENSE-2.0 * <p> * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.hadoop.fs.compat.common; public class HdfsCompatIllegalArgumentException extends IllegalArgumentException { public HdfsCompatIllegalArgumentException(String message) { super(message); } }
apache/harmony
1,077
classlib/modules/rmi/src/main/java/java/rmi/NotBoundException.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * * See the License for the specific language governing permissions and * limitations under the License. */ package java.rmi; public class NotBoundException extends Exception { private static final long serialVersionUID = -1857741824849069317L; public NotBoundException(String msg) { super(msg); } public NotBoundException() { super(); } }
apache/hbase
1,066
hbase-hbtop/src/main/java/org/apache/hadoop/hbase/hbtop/terminal/Color.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.hadoop.hbase.hbtop.terminal; import org.apache.yetus.audience.InterfaceAudience; /** * Terminal color definitions. */ @InterfaceAudience.Private public enum Color { BLACK, RED, GREEN, YELLOW, BLUE, MAGENTA, CYAN, WHITE }
apache/hop
1,077
engine/src/main/java/org/apache/hop/pipeline/ISubPipelineAwareMeta.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.hop.pipeline; import org.apache.hop.pipeline.transform.TransformMeta; /** A transform "meta" that contains a reference to a sub-pipeline. */ public interface ISubPipelineAwareMeta { String getFilename(); TransformMeta getParentTransformMeta(); }
apache/hudi
1,045
hudi-flink-datasource/hudi-flink1.17.x/src/main/java/org/apache/hudi/adapter/RichSinkFunctionAdapter.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.hudi.adapter; import org.apache.flink.streaming.api.functions.sink.RichSinkFunction; /** * Adapter clazz for {@link RichSinkFunction}. */ public abstract class RichSinkFunctionAdapter<I> extends RichSinkFunction<I> { }
apache/hudi
1,045
hudi-flink-datasource/hudi-flink1.18.x/src/main/java/org/apache/hudi/adapter/RichSinkFunctionAdapter.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.hudi.adapter; import org.apache.flink.streaming.api.functions.sink.RichSinkFunction; /** * Adapter clazz for {@link RichSinkFunction}. */ public abstract class RichSinkFunctionAdapter<I> extends RichSinkFunction<I> { }
apache/hudi
1,045
hudi-flink-datasource/hudi-flink1.19.x/src/main/java/org/apache/hudi/adapter/RichSinkFunctionAdapter.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.hudi.adapter; import org.apache.flink.streaming.api.functions.sink.RichSinkFunction; /** * Adapter clazz for {@link RichSinkFunction}. */ public abstract class RichSinkFunctionAdapter<I> extends RichSinkFunction<I> { }
apache/hudi
1,045
hudi-flink-datasource/hudi-flink1.20.x/src/main/java/org/apache/hudi/adapter/RichSinkFunctionAdapter.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.hudi.adapter; import org.apache.flink.streaming.api.functions.sink.RichSinkFunction; /** * Adapter clazz for {@link RichSinkFunction}. */ public abstract class RichSinkFunctionAdapter<I> extends RichSinkFunction<I> { }
apache/hudi
1,066
hudi-common/src/main/java/org/apache/hudi/exception/HoodieTimeTravelException.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.hudi.exception; public class HoodieTimeTravelException extends HoodieException { public HoodieTimeTravelException(String msg) { super(msg); } public HoodieTimeTravelException(String msg, Throwable e) { super(msg, e); } }
apache/iceberg
1,077
core/src/main/java/org/apache/iceberg/avro/SupportsCustomRecords.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.iceberg.avro; import java.util.Map; /** An interface for Avro DatumReaders to support custom record classes by name. */ interface SupportsCustomRecords { void setClassLoader(ClassLoader loader); void setRenames(Map<String, String> renames); }
apache/iggy
1,069
foreign/java/java-sdk/src/main/java/org/apache/iggy/partition/Partition.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.iggy.partition; import java.math.BigInteger; public record Partition( Long id, BigInteger createdAt, Long segmentsCount, BigInteger currentOffset, String size, BigInteger messagesCount ) { }
apache/ignite
1,065
modules/binary/api/src/main/java/org/apache/ignite/marshaller/jdk/JdkMarshaller.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.ignite.marshaller.jdk; import org.apache.ignite.marshaller.Marshaller; /** * Implementation of {@link org.apache.ignite.marshaller.Marshaller} based on JDK serialization mechanism. */ public interface JdkMarshaller extends Marshaller { }
apache/ignite
1,066
examples/src/main/java/org/apache/ignite/examples/model/OrganizationType.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.ignite.examples.model; /** * Organization type enum. */ public enum OrganizationType { /** Non-profit organization. */ NON_PROFIT, /** Private organization. */ PRIVATE, /** Government organization. */ GOVERNMENT }
apache/ignite
1,074
modules/core/src/test/java/org/apache/ignite/platform/model/V1.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.ignite.platform.model; /** Test V1 object. */ public class V1 { /** */ private final String name; /** */ public V1(String name) { this.name = name; } /** */ public String getName() { return name; } }
apache/ignite
1,074
modules/core/src/test/java/org/apache/ignite/platform/model/V2.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.ignite.platform.model; /** Test V2 object. */ public class V2 { /** */ private final String name; /** */ public V2(String name) { this.name = name; } /** */ public String getName() { return name; } }
apache/ignite
1,074
modules/core/src/test/java/org/apache/ignite/platform/model/V3.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.ignite.platform.model; /** Test V3 object. */ public class V3 { /** */ private final String name; /** */ public V3(String name) { this.name = name; } /** */ public String getName() { return name; } }
apache/ignite
1,074
modules/core/src/test/java/org/apache/ignite/platform/model/V4.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.ignite.platform.model; /** Test V4 object. */ public class V4 { /** */ private final String name; /** */ public V4(String name) { this.name = name; } /** */ public String getName() { return name; } }
apache/incubator-brooklyn
1,029
brooklyn-library/software/messaging/src/main/java/org/apache/brooklyn/entity/zookeeper/ZooKeeperDriver.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.brooklyn.entity.zookeeper; import org.apache.brooklyn.entity.java.JavaSoftwareProcessDriver; public interface ZooKeeperDriver extends JavaSoftwareProcessDriver { Integer getZooKeeperPort(); }
apache/incubator-crail
1,080
client/src/main/java/org/apache/crail/CrailMultiFile.java
/* * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.crail; public interface CrailMultiFile extends CrailContainer { default CrailBufferedInputStream getMultiStream(int outstanding) throws Exception{ return new MultiFileBufferedInputStream(this.getFileSystem(), listEntries(), outstanding, files()); } }
apache/incubator-kie-drools
1,027
drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/event/AbstractKieServicesEventListerner.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.drools.compiler.kie.builder.impl.event; public abstract class AbstractKieServicesEventListerner implements KieServicesEventListerner { public void onKieModuleDiscovered(KieModuleDiscovered event) { } }
apache/incubator-kie-drools
1,051
drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/StaticMethods.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.drools.mvel.compiler; public class StaticMethods { public static String getString1(final String string) { return string; } public static String getString2(final String string) { return string; } }
apache/incubator-kie-drools
1,056
drools-templates/src/main/java/org/drools/template/parser/Generator.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.drools.template.parser; /** * <a href="stevearoonie@gmail.com">Steven Williams</a> * Generate the rules for a decision table */ public interface Generator { void generate(String templateName, Row row); String getDrl(); }
apache/incubator-kie-drools
1,075
kie-api/src/main/java/org/kie/api/runtime/Globals.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.kie.api.runtime; import java.util.Collection; public interface Globals { Object get(String identifier); void set(String identifier, Object value); void setDelegate(Globals delegate); Collection<String> getGlobalKeys(); }
apache/incubator-kie-kogito-runtimes
1,044
api/kogito-api/src/main/java/org/kie/kogito/uow/events/UnitOfWorkAbortEvent.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.kie.kogito.uow.events; import org.kie.kogito.uow.UnitOfWork; public class UnitOfWorkAbortEvent extends AbstractUnitOfWorkEvent { public UnitOfWorkAbortEvent(UnitOfWork unitOfWork) { super(unitOfWork); } }
apache/incubator-kie-kogito-runtimes
1,044
api/kogito-api/src/main/java/org/kie/kogito/uow/events/UnitOfWorkStartEvent.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.kie.kogito.uow.events; import org.kie.kogito.uow.UnitOfWork; public class UnitOfWorkStartEvent extends AbstractUnitOfWorkEvent { public UnitOfWorkStartEvent(UnitOfWork unitOfWork) { super(unitOfWork); } }
apache/incubator-nemo
1,059
common/src/main/java/org/apache/nemo/common/eventhandler/RuntimeEventHandler.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.nemo.common.eventhandler; /** * Class for handling events sent from Runtime. * * @param <T> type of the runtime event to handle. */ public interface RuntimeEventHandler<T extends RuntimeEvent> extends CommonEventHandler<T> { }
apache/incubator-retired-edgent
1,057
api/src/test/java/org/apache/edgent/oplet/functional/FilterTest.java
/* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ package org.apache.edgent.oplet.functional; import static org.junit.Assert.assertTrue; import org.apache.edgent.oplet.core.Pipe; import org.junit.Test; public class FilterTest { @Test public void testHierachy() { assertTrue(Pipe.class.isAssignableFrom(Filter.class)); } }
apache/incubator-retired-wave
1,048
wave/src/main/java/org/waveprotocol/wave/client/events/NetworkStatusEventHandler.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.waveprotocol.wave.client.events; import com.google.gwt.event.shared.EventHandler; public abstract class NetworkStatusEventHandler implements EventHandler { public abstract void onNetworkStatus(NetworkStatusEvent event); }
apache/incubator-seata
1,048
rm-datasource/src/main/java/org/apache/seata/rm/datasource/sql/struct/KeyType.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.seata.rm.datasource.sql.struct; /** * The enum Key type. * */ public enum KeyType { /** * Null key type. */ // Null NULL, /** * The Primary key. */ // Primary Key PRIMARY_KEY }
apache/incubator-seata
1,051
compatible/src/test/java/io/seata/integration/tx/api/interceptor/parser/Business.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package io.seata.integration.tx.api.interceptor.parser; /** * The interface Business. */ public interface Business { /** * Do biz string. * * @param msg the msg * @return the string */ String doBiz(String msg); }
apache/inlong
1,050
inlong-agent/agent-common/src/main/java/org/apache/inlong/agent/constant/CycleUnitType.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.inlong.agent.constant; public class CycleUnitType { public static final String DAY = "d"; public static final String HOUR = "H"; public static final String MINUTE = "m"; public static final String REAL_TIME = "R"; }
apache/iotdb
1,069
iotdb-client/jdbc/src/main/java/org/apache/iotdb/jdbc/IoTDBURLException.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.iotdb.jdbc; import java.sql.SQLException; public class IoTDBURLException extends SQLException { private static final long serialVersionUID = -5071922897222027267L; public IoTDBURLException(String reason) { super(reason); } }
apache/jackrabbit-oak
1,034
oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/spi/lease/package-info.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * Provides extensibility with regards to DocumentNodeStore leases. * * @version 1.0.0 */ @Version("1.0.0") package org.apache.jackrabbit.oak.plugins.document.spi.lease; import org.osgi.annotation.versioning.Version;
apache/jackrabbit-oak
1,037
oak-segment-tar/src/main/java/org/apache/jackrabbit/oak/segment/file/SuccessfulCompactionListener.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.jackrabbit.oak.segment.file; import org.apache.jackrabbit.oak.segment.compaction.SegmentGCOptions; interface SuccessfulCompactionListener { void onSuccessfulCompaction(SegmentGCOptions.GCType type); }