repo_id
stringclasses
875 values
size
int64
974
38.9k
file_path
stringlengths
10
308
content
stringlengths
974
38.9k
oracle/json-in-db
1,107
JdbcExamples/src/main/java/movie/model/Movie.java
package movie.model; import java.math.BigDecimal; import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.List; public class Movie { String name; String genre; BigDecimal gross; OffsetDateTime release; List<Image> images = new ArrayList<Image>(); public Movie() { } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getGenre() { return genre; } public void setGenre(String genre) { this.genre = genre; } public BigDecimal getGross() { return gross; } public void setGross(BigDecimal gross) { this.gross = gross; } public List<Image> getImages() { return this.images; } public void setImages(List<Image> phones) { this.images = phones; } public OffsetDateTime getRelease() { return this.release; } public void setRelease(OffsetDateTime release) { this.release = release; } }
apache/ctakes
1,101
ctakes-core/src/main/java/org/apache/ctakes/core/resource/JdbcConnectionResource.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.ctakes.core.resource; import java.sql.Connection; /** * Resource for obtaining a JDBC database connection. * * @author Mayo Clinic */ public interface JdbcConnectionResource { /** * Gets the JDBC connection. */ public Connection getConnection(); }
apache/curator
1,109
curator-framework/src/main/java/org/apache/curator/framework/api/Statable.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.curator.framework.api; import org.apache.zookeeper.data.Stat; public interface Statable<T> { /** * Have the operation fill the provided stat object * * @param stat the stat to have filled in * @return this */ public T storingStatIn(Stat stat); }
apache/cxf
1,108
rt/frontend/jaxws/src/test/java/org/apache/cxf/jaxws/provider/PayloadProvider.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.cxf.jaxws.provider; import javax.xml.transform.Source; import jakarta.xml.ws.Provider; import jakarta.xml.ws.WebServiceProvider; @WebServiceProvider public class PayloadProvider implements Provider<Source> { public Source invoke(Source source) { return source; } }
apache/deltaspike
1,059
deltaspike/modules/test-control/impl/src/test/java/org/apache/deltaspike/test/testcontrol/uc011/InterceptedBeanClassLevel.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.deltaspike.test.testcontrol.uc011; import jakarta.enterprise.context.RequestScoped; @RequestScoped @TestInterceptor public class InterceptedBeanClassLevel { public void test() { //do nothing - any method is fine } }
apache/doris-manager
1,101
manager/manager/src/main/java/org/apache/doris/stack/model/palo/DorisNodes.java
// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use this file except in compliance // with the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. package org.apache.doris.stack.model.palo; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; import java.util.List; @Data @AllArgsConstructor @NoArgsConstructor public class DorisNodes { private List<String> frontend; private List<String> backend; }
apache/drill
1,107
exec/vector/src/main/java/org/apache/drill/exec/vector/complex/VectorWithOrdinal.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.vector.complex; import org.apache.drill.exec.vector.ValueVector; public class VectorWithOrdinal { public final ValueVector vector; public final int ordinal; public VectorWithOrdinal(ValueVector v, int ordinal) { this.vector = v; this.ordinal = ordinal; } }
apache/drill
1,115
common/src/main/java/org/apache/drill/common/exceptions/EmptyErrorContext.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.common.exceptions; import org.apache.drill.common.exceptions.UserException.Builder; public class EmptyErrorContext implements CustomErrorContext { public static final CustomErrorContext INSTANCE = new EmptyErrorContext(); @Override public void addContext(Builder builder) { } }
apache/dubbo-samples
1,034
2-advanced/dubbo-samples-spring-security/dubbo-samples-spring-security-interface/src/main/java/org/apache/dubbo/samples/security/api/UserService.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.dubbo.samples.security.api; import org.apache.dubbo.samples.security.model.User; import java.util.List; public interface UserService { User findByUsername(String username); List<User> queryAll(); }
apache/dubbo
1,103
dubbo-common/src/test/java/org/apache/dubbo/common/extension/ext8_add/impl/AddExt1Impl1.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.dubbo.common.extension.ext8_add.impl; import org.apache.dubbo.common.URL; import org.apache.dubbo.common.extension.ext8_add.AddExt1; public class AddExt1Impl1 implements AddExt1 { public String echo(URL url, String s) { return this.getClass().getSimpleName(); } }
apache/dubbo
1,103
dubbo-common/src/test/java/org/apache/dubbo/common/extension/ext8_add/impl/AddExt2Impl1.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.dubbo.common.extension.ext8_add.impl; import org.apache.dubbo.common.URL; import org.apache.dubbo.common.extension.ext8_add.AddExt2; public class AddExt2Impl1 implements AddExt2 { public String echo(URL url, String s) { return this.getClass().getSimpleName(); } }
apache/eventmesh
1,062
eventmesh-meta/eventmesh-meta-zookeeper/src/main/java/org/apache/eventmesh/meta/zookeeper/constant/ZookeeperConstant.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.meta.zookeeper.constant; public class ZookeeperConstant { public static final String NAMESPACE = "eventmesh"; public static final String IP_PORT_SEPARATOR = ":"; public static final String PATH_SEPARATOR = "/"; }
apache/felix-dev
1,038
ipojo/manipulator/manipulator-it/ipojo-manipulator-creation-test/src/main/java/org/apache/felix/ipojo/runtime/core/services/CheckService.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.felix.ipojo.runtime.core.services; import java.util.Properties; public interface CheckService { public static final String foo = "foo"; public boolean check(); public Properties getProps(); }
apache/felix-dev
1,042
ipojo/runtime/core-it/ipojo-core-service-dependency-test/src/main/java/org/apache/felix/ipojo/runtime/core/test/services/CheckService.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.felix.ipojo.runtime.core.test.services; import java.util.Properties; public interface CheckService { public static final String foo = "foo"; public boolean check(); public Properties getProps(); }
apache/fineract
1,092
fineract-provider/src/main/java/org/apache/fineract/portfolio/note/command/NoteCommand.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.portfolio.note.command; /** * Immutable command used for create or update of notes. */ public class NoteCommand { @SuppressWarnings("unused") private final String note; public NoteCommand(final String note) { this.note = note; } }
apache/flex-blazeds
1,063
samples/hello-world/backend/src/main/java/org/apache/flex/blazeds/samples/hello/HelloWorldService.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.flex.blazeds.samples.hello; public class HelloWorldService { public String sayHello(String name) { if (name == null || name.length() == 0) { return "I'm sorry, but I didn't catch your name…"; } return "Hello, " + name + "!"; } }
apache/flex-blazeds
1,127
core/src/main/java/flex/messaging/util/UUIDGenerator.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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.messaging.util; /** * A custom UUID generator can be set on MessageBroker in order to provide custom * uuid generation for NIO-HTTP session cookie and FlexClient id. */ public interface UUIDGenerator { /** * Creates and returns a UUID. * * @return UUID. */ String createUUID(); }
apache/flink-cdc
1,090
flink-cdc-common/src/main/java/org/apache/flink/cdc/common/configuration/description/InlineElement.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.cdc.common.configuration.description; import org.apache.flink.cdc.common.annotation.PublicEvolving; /** Part of description that represents an element inside a block e.g. a link. */ @PublicEvolving public interface InlineElement extends DescriptionElement {}
apache/flink
1,078
flink-filesystems/flink-s3-fs-hadoop/src/test/java/org/apache/flink/fs/s3hadoop/HAJobRunOnHadoopS3FileSystemITCase.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.fs.s3hadoop; import org.apache.flink.fs.s3.common.HAJobRunOnMinioS3StoreITCase; /** Runs the {@link HAJobRunOnMinioS3StoreITCase} on the Hadoop S3 file system. */ class HAJobRunOnHadoopS3FileSystemITCase extends HAJobRunOnMinioS3StoreITCase {}
apache/flink
1,078
flink-filesystems/flink-s3-fs-presto/src/test/java/org/apache/flink/fs/s3presto/HAJobRunOnPrestoS3FileSystemITCase.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.fs.s3presto; import org.apache.flink.fs.s3.common.HAJobRunOnMinioS3StoreITCase; /** Runs the {@link HAJobRunOnMinioS3StoreITCase} on the Presto S3 file system. */ class HAJobRunOnPrestoS3FileSystemITCase extends HAJobRunOnMinioS3StoreITCase {}
apache/flink
1,087
flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/trait/ModifyKind.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.planner.plan.trait; /** Lists all kinds of modify operations that happen in a changelog. */ public enum ModifyKind { /** Insertion operation. */ INSERT, /** Update operation. */ UPDATE, /** Deletion operation. */ DELETE }
apache/flink
1,107
flink-metrics/flink-metrics-core/src/main/java/org/apache/flink/metrics/Metric.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.flink.metrics; import org.apache.flink.annotation.Public; /** Common super interface for all metrics. */ @Public public interface Metric { default MetricType getMetricType() { throw new UnsupportedOperationException("Custom metric types are not supported."); } }
apache/flink
1,123
flink-core/src/main/java/org/apache/flink/util/WrappingProxy.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.util; import org.apache.flink.annotation.Internal; /** * Interface for objects that wrap another object and proxy (possibly a subset) of the methods of * that object. * * @param <T> The type that is wrapped. */ @Internal public interface WrappingProxy<T> { T getWrappedDelegate(); }
apache/freemarker
1,120
freemarker-core/src/main/java/freemarker/template/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. */ /** * <b>The fundamental, most commonly used API-s of FreeMarker;</b> * start with {@link freemarker.template.Configuration Configuration} (see also the * <a href="https://freemarker.apache.org/docs/pgui_quickstart.html" target="_blank">Getting Started</a> in the * Manual.) */ package freemarker.template;
apache/geaflow
1,071
geaflow/geaflow-core/geaflow-engine/geaflow-cluster/src/main/java/org/apache/geaflow/cluster/master/IMaster.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.cluster.master; import java.io.Serializable; public interface IMaster extends Serializable { /** * Initialize master. */ void init(MasterContext context); /** * Close master. */ void close(); }
apache/geaflow
1,104
geaflow/geaflow-common/src/main/java/org/apache/geaflow/common/type/IType.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.common.type; import java.io.Serializable; public interface IType<T> extends Serializable { String getName(); Class<T> getTypeClass(); byte[] serialize(T obj); T deserialize(byte[] bytes); int compare(T x, T y); boolean isPrimitive(); }
apache/geode
1,081
geode-core/src/main/java/org/apache/geode/internal/monitoring/executor/FunctionExecutionPooledExecutorGroup.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more contributor license * agreements. See the NOTICE file distributed with this work for additional information regarding * copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance with the License. You may obtain a * copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. */ package org.apache.geode.internal.monitoring.executor; public class FunctionExecutionPooledExecutorGroup extends AbstractExecutor { public static final String GROUPNAME = "FunctionExecutionPooledExecutor"; public FunctionExecutionPooledExecutorGroup() { super(GROUPNAME); } }
apache/geode
1,096
geode-core/src/test/resources/org/apache/geode/management/internal/deployment/AnnotatedFunction.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more contributor license * agreements. See the NOTICE file distributed with this work for additional information regarding * copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance with the License. You may obtain a * copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. */ package org.apache.geode.management.internal.deployment; import org.apache.geode.cache.execute.FunctionContext; public class AnnotatedFunction extends AbstractImplementsFunction { public void execute(FunctionContext context) { context.getResultSender().lastResult("AnnotatedFunctionResult"); } }
apache/geode
1,103
geode-common/src/test/java/org/apache/geode/annotations/experimentalpackage/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. */ /** * Used by <tt>ExperimentalJUnitTest</tt>. This is an <tt>Experimental</tt> package. * * @see org.apache.geode.annotations.ExperimentalJUnitTest */ @Experimental("This is an experimental package") package org.apache.geode.annotations.experimentalpackage; import org.apache.geode.annotations.Experimental;
apache/gobblin
1,092
gobblin-completeness/src/test/java/org/apache/gobblin/completeness/audit/TestAuditClientFactory.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.completeness.audit; import org.apache.gobblin.configuration.State; public class TestAuditClientFactory implements AuditCountClientFactory { @Override public AuditCountClient createAuditCountClient(State state) { return new TestAuditClient(state); } }
apache/hadoop
1,077
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/webapp/dao/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. */ /** * Data structures for scheduler configuration mutation info. */ @Private @Unstable package org.apache.hadoop.yarn.webapp.dao; import org.apache.hadoop.classification.InterfaceAudience.Private; import org.apache.hadoop.classification.InterfaceStability.Unstable;
apache/hadoop
1,099
hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/impl/streams/package-info.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** * Input and Output stream support. * <p> * A lot of the existing stream work is elsewhere, * this module is where ongoing work should take place. */ @InterfaceAudience.Private package org.apache.hadoop.fs.s3a.impl.streams; import org.apache.hadoop.classification.InterfaceAudience;
apache/harmony
1,085
classlib/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/SampleListener.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** * @author Maxim V. Berkultsev */ package org.apache.harmony.beans.tests.support; /** * @author Maxim V. Berkultsev */ import java.util.EventListener; public interface SampleListener extends EventListener { public void fireSampleEvent(SampleEvent event); }
apache/harmony
1,121
classlib/modules/rmi/src/main/java/java/rmi/UnmarshalException.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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 UnmarshalException extends RemoteException { private static final long serialVersionUID = 594380845140740218L; public UnmarshalException(String msg, Exception cause) { super(msg, cause); } public UnmarshalException(String msg) { super(msg); } }
apache/hbase
1,115
hbase-logging/src/test/java/org/apache/hadoop/hbase/logging/Target.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.logging; import java.io.PrintStream; public enum Target { SYSTEM_OUT(System.out), SYSTEM_ERR(System.err); private final PrintStream output; private Target(PrintStream output) { this.output = output; } public PrintStream output() { return output; } }
apache/helix
1,104
zookeeper-api/src/main/java/org/apache/helix/zookeeper/zkclient/IDefaultNameSpace.java
package org.apache.helix.zookeeper.zkclient; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT 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 IDefaultNameSpace { /** * Creates a set of default folder structure within a zookeeper . * * @param zkClient * The zkclient. */ public void createDefaultNameSpace(ZkClient zkClient); }
apache/hive
1,094
itests/hive-unit/src/test/java/org/apache/hive/service/auth/TestTrustDomainAuthenticationBinary.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.hive.service.auth; import org.junit.BeforeClass; public class TestTrustDomainAuthenticationBinary extends TrustDomainAuthenticationTest { @BeforeClass public static void setUp() throws Exception { initialize(HS2_TRANSPORT_MODE_BINARY, true); } }
apache/hop
1,124
ui/src/main/java/org/apache/hop/ui/core/bus/IHopGuiEventListener.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.hop.ui.core.bus; import org.apache.hop.core.exception.HopException; /** * This lamda allows you to be notified of certain events in the Hop GUI * * @param <T> The optional type of the event */ public interface IHopGuiEventListener<T> { void event(HopGuiEvent<T> event) throws HopException; }
apache/hudi
1,083
hudi-flink-datasource/hudi-flink2.0.x/src/main/java/org/apache/hudi/adapter/SupportsPreWriteTopologyAdapter.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.connector.sink2.SupportsPreWriteTopology; /** * Adapter clazz for {@link SupportsPreWriteTopology}. */ public interface SupportsPreWriteTopologyAdapter<InputT> extends SupportsPreWriteTopology<InputT> { }
apache/hudi
1,094
hudi-utilities/src/main/java/org/apache/hudi/utilities/exception/HoodieStreamerWriteException.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.utilities.exception; public class HoodieStreamerWriteException extends HoodieStreamerException { public HoodieStreamerWriteException(String msg) { super(msg); } public HoodieStreamerWriteException(String msg, Throwable e) { super(msg, e); } }
apache/iggy
1,118
foreign/java/java-sdk/src/main/java/org/apache/iggy/user/Permissions.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.user; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; import java.util.Map; public record Permissions( GlobalPermissions global, @JsonSetter(nulls = Nulls.AS_EMPTY) Map<Long, StreamPermissions> streams ) { }
apache/ignite-3
1,071
modules/sql-engine/src/integrationTest/java/org/apache/ignite/internal/sql/engine/systemviews/AbstractSystemViewTest.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.internal.sql.engine.systemviews; import org.apache.ignite.internal.sql.engine.BaseSqlMultiStatementTest; /** * Base class for SQL system views integration tests. */ public class AbstractSystemViewTest extends BaseSqlMultiStatementTest { }
apache/ignite-3
1,085
modules/rest-api/src/test/java/org/apache/ignite/internal/rest/exception/handler/ThrowableProvider.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.internal.rest.exception.handler; /** * Provides {@link Throwable} instance. */ public interface ThrowableProvider { /** * Returns {@link Throwable} instance. * * @return {@link Throwable} instance. */ Throwable throwable(); }
apache/ignite-3
1,087
modules/cli/src/main/java/org/apache/ignite/internal/cli/core/repl/registry/ClusterConfigRegistry.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.internal.cli.core.repl.registry; import com.typesafe.config.Config; import org.jetbrains.annotations.Nullable; /** Cluster config registry. */ public interface ClusterConfigRegistry { /** Returns cluster config. */ @Nullable Config config(); }
apache/ignite-3
1,094
modules/compute/src/main/java/org/apache/ignite/internal/compute/HybridTimestampProvider.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.internal.compute; /** * Hybrid timestamp provider. */ @FunctionalInterface public interface HybridTimestampProvider { /** * Returns the associated hybrid timestamp. * * @return Associated hybrid timestamp. */ long hybridTimestamp(); }
apache/ignite-extensions
1,076
modules/ml-ext/ml/h2o-model-parser/src/test/java/org/apache/ignite/ml/h2o/IgniteMLH2OMojoTestSuite.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.ml.h2o; import org.junit.runner.RunWith; import org.junit.runners.Suite; /** Test suite for all module tests. */ @RunWith(Suite.class) @Suite.SuiteClasses({ H2OMojoParserTest.class }) public class IgniteMLH2OMojoTestSuite { // No-op. }
apache/ignite
1,079
modules/calcite/src/main/java/org/apache/ignite/internal/processors/query/calcite/message/MessageListener.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.internal.processors.query.calcite.message; import java.util.UUID; /** * */ public interface MessageListener { /** * @param nodeId Sender node ID. * @param msg Message. */ void onMessage(UUID nodeId, CalciteMessage msg); }
apache/ignite
1,079
modules/core/src/main/java/org/apache/ignite/internal/processors/platform/datastreamer/PlatformStreamReceiver.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.internal.processors.platform.datastreamer; import org.apache.ignite.stream.StreamReceiver; /** * Platform data streamer filter marker interface. */ public interface PlatformStreamReceiver extends StreamReceiver<Object, Object> { // No-op. }
apache/incubator-atlas
1,096
catalog/src/main/java/org/apache/atlas/catalog/exception/ResourceNotFoundException.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.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.atlas.catalog.exception; /** * Exception used when an explicitly requested resource doesn't exist. */ public class ResourceNotFoundException extends CatalogException { public ResourceNotFoundException(String message) { super(message, 404); } }
apache/incubator-brooklyn
1,073
brooklyn-server/camp/camp-brooklyn/src/test/java/org/apache/brooklyn/camp/brooklyn/catalog/TestBasicApp.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.camp.brooklyn.catalog; import org.apache.brooklyn.api.entity.ImplementedBy; import org.apache.brooklyn.entity.stock.BasicApplication; @ImplementedBy(TestBasicAppImpl.class) public interface TestBasicApp extends BasicApplication { }
apache/incubator-brooklyn
1,089
brooklyn-server/core/src/test/java/org/apache/brooklyn/core/test/entity/NoopStartable.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.core.test.entity; import java.util.Collection; import org.apache.brooklyn.core.entity.trait.Startable; public class NoopStartable implements Startable { public void start(Collection loc) {} public void stop() {} public void restart() {} }
apache/incubator-heron
1,104
storm-compatibility/v0.10.2/src/java/org/apache/storm/topology/IRichBolt.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.storm.topology; import org.apache.storm.task.IBolt; /** * When writing topologies using Java, {@link IRichBolt} and {@link IRichSpout} are the main interfaces * to use to implement components of the topology. */ public interface IRichBolt extends IBolt, IComponent { }
apache/incubator-kie-drools
1,089
kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/identifiers/PredictionIds.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR 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.pmml.api.identifiers; import org.kie.efesto.common.api.identifiers.ComponentRoot; public class PredictionIds implements ComponentRoot { public LocalPredictionId get(String fileName, String name) { return new LocalPredictionId(fileName, name); } }
apache/incubator-kie-kogito-runtimes
1,082
jbpm/jbpm-flow/src/main/java/org/jbpm/workflow/instance/rule/DecisionRuleTypeEngine.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.jbpm.workflow.instance.rule; import org.jbpm.workflow.instance.node.RuleSetNodeInstance; public interface DecisionRuleTypeEngine extends AbstractRuleTypeEngine { void evaluate(RuleSetNodeInstance rsni, String namespace, String model, String decision); }
apache/incubator-kie-optaplanner-quickstarts
1,053
use-cases/vehicle-routing/src/main/java/org/acme/vehiclerouting/domain/Customer.java
package org.acme.vehiclerouting.domain; public class Customer { private long id; private Location location; private int demand; public Customer() { } public Customer(long id, Location location, int demand) { this.id = id; this.location = location; this.demand = demand; } public long getId() { return id; } public void setId(long id) { this.id = id; } public Location getLocation() { return location; } public void setLocation(Location location) { this.location = location; } public int getDemand() { return demand; } public void setDemand(int demand) { this.demand = demand; } // ************************************************************************ // Complex methods // ************************************************************************ @Override public String toString() { return "Customer{" + "id=" + id + '}'; } }
apache/incubator-kie-optaplanner
1,043
core/optaplanner-constraint-streams-bavet/src/main/java/org/optaplanner/constraint/streams/bavet/common/RightTupleLifecycle.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.optaplanner.constraint.streams.bavet.common; public interface RightTupleLifecycle<Tuple_ extends Tuple> { void insertRight(Tuple_ tuple); void updateRight(Tuple_ tuple); void retractRight(Tuple_ tuple); }
apache/incubator-seata-samples
1,092
e2e-test/e2e-test-builder/src/main/java/org/apache/seata/model/E2EWrapper.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.model; /** * @author jingliu_xiong@foxmail.com */ public class E2EWrapper { private E2EConfig e2e; // Getters and Setters public E2EConfig getE2e() { return e2e; } public void setE2e(E2EConfig e2e) { this.e2e = e2e; } }
apache/incubator-seata
1,110
server/src/test/java/org/apache/seata/server/raft/TestSecurity.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.server.raft; public class TestSecurity implements java.io.Serializable { private static final long serialVersionUID = 543214259201495900L; String a = "test"; public String getA() { return a; } public void setA(String a) { this.a = a; } }
apache/incubator-wayang
1,099
wayang-ml4all/src/main/java/org/apache/wayang/ml4all/abstraction/api/LocalStage.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.wayang.ml4all.abstraction.api; import org.apache.wayang.ml4all.abstraction.plan.ML4allModel; public abstract class LocalStage extends LogicalOperator { /* initialize variables and add them in the context */ public abstract void staging (ML4allModel context); }
apache/incubator-weex
1,120
android/sdk/src/main/java/org/apache/weex/base/FloatUtil.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.weex.base; public class FloatUtil { private static final float EPSILON = .00001f; public static boolean floatsEqual(float f1, float f2) { if (Float.isNaN(f1) || Float.isNaN(f2)) { return Float.isNaN(f1) && Float.isNaN(f2); } return Math.abs(f2 - f1) < EPSILON; } }
apache/iotdb-extras
1,094
connectors/hive-connector/src/test/java/org/apache/iotdb/hive/constant/TestConstant.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.hive.constant; import java.io.File; public class TestConstant { public static final String BASE_OUTPUT_PATH = "target".concat(File.separator); public static final String OUTPUT_DATA_DIR = BASE_OUTPUT_PATH.concat("data").concat(File.separator); }
apache/iotdb
1,087
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/utils/windowing/exception/WindowingException.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.db.utils.windowing.exception; public class WindowingException extends Exception { public WindowingException(String message) { super(message); } public WindowingException(String message, Throwable cause) { super(message, cause); } }
apache/iotdb
1,102
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/utils/datastructure/SortKey.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.db.utils.datastructure; import org.apache.tsfile.read.common.block.TsBlock; public class SortKey { public TsBlock tsBlock; public int rowIndex; public SortKey(TsBlock tsBlock, int rowIndex) { this.tsBlock = tsBlock; this.rowIndex = rowIndex; } }
apache/jackrabbit-oak
1,083
oak-segment-tar/src/main/java/org/apache/jackrabbit/oak/segment/standby/codec/GetHeadRequest.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.standby.codec; public class GetHeadRequest { private final String clientId; public GetHeadRequest(String clientId) { this.clientId = clientId; } public String getClientId() { return clientId; } }
apache/jclouds
1,126
apis/s3/src/main/java/org/jclouds/s3/functions/ObjectKey.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.jclouds.s3.functions; import jakarta.inject.Singleton; import org.jclouds.s3.domain.S3Object; import com.google.common.base.Function; @Singleton public class ObjectKey implements Function<Object, String> { public String apply(Object from) { return ((S3Object) from).getMetadata().getKey(); } }
apache/jena
1,102
jena-integration-tests/src/test/java/org/apache/jena/test/integration/TS_Integration.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.jena.test.integration; import org.junit.platform.suite.api.SelectClasses; import org.junit.platform.suite.api.Suite; @Suite @SelectClasses({ TestDatasetPrefixes.class , TestFusekiRDFS.class }) /** Various system integration tests. */ public class TS_Integration {}
apache/jena
1,111
jena-permissions/src/main/java/org/apache/jena/permissions/model/SecuredAlt.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.jena.permissions.model; import org.apache.jena.rdf.model.Alt; /** * The interface for secured Alt instances. * * Use the SecuredAlt.Factory to create instances * @deprecated To be removed. */ @Deprecated(forRemoval = true) public interface SecuredAlt extends Alt, SecuredContainer { }
apache/jena
1,116
jena-core/src/main/java/org/apache/jena/shared/AssertionFailureException.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.jena.shared; /** Exception to throw when an assertion fails. Probably obsolete in Java's with the assert statement ... */ public class AssertionFailureException extends JenaException { public AssertionFailureException( String message ) { super( message ); } }
apache/jena
1,133
jena-arq/src/main/java/org/apache/jena/sparql/path/Path.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.jena.sparql.path; import org.apache.jena.sparql.core.Prologue ; import org.apache.jena.sparql.util.NodeIsomorphismMap ; public interface Path { public void visit(PathVisitor visitor) ; public boolean equalTo(Path path2, NodeIsomorphismMap isoMap) ; public String toString(Prologue prolog) ; }
apache/jmeter
1,095
src/examples/src/main/java/org/apache/jmeter/examples/testbeans/example2/Example2BeanInfo.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to you under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.jmeter.examples.testbeans.example2; import org.apache.jmeter.testbeans.BeanInfoSupport; public class Example2BeanInfo extends BeanInfoSupport { public Example2BeanInfo() { super(Example2.class); property("myStringProperty").setValue(DEFAULT, ""); } }
apache/juneau
1,107
juneau-rest/juneau-rest-server/src/main/java/org/apache/juneau/rest/annotation/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. * ***************************************************************************************************************************/ /** * REST Annotations */ package org.apache.juneau.rest.annotation;
apache/karaf
1,106
shell/console/src/main/java/org/apache/karaf/shell/console/CompletableFunction.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.karaf.shell.console; import java.util.List; import java.util.Map; import org.apache.felix.service.command.Function; @Deprecated public interface CompletableFunction extends Function { List<Completer> getCompleters(); Map<String, Completer> getOptionalCompleters(); }
apache/kylin
1,091
src/core-metadata/src/main/java/org/apache/kylin/metadata/realization/RealizationRuntimeException.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.kylin.metadata.realization; public class RealizationRuntimeException extends RuntimeException { private static final long serialVersionUID = 7631508437415520091L; public RealizationRuntimeException(String message, Throwable t) { super(message, t); } }
apache/kylin
1,105
src/common-service/src/main/java/org/apache/kylin/rest/cache/CacheConstant.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.kylin.rest.cache; public class CacheConstant { public static final String NX = "NX"; public static final String XX = "XX"; public static final String PREFIX = "Kylin-"; private CacheConstant() { throw new IllegalStateException("Utility class"); } }
apache/linkis
1,056
linkis-computation-governance/linkis-manager/linkis-manager-common/src/main/java/org/apache/linkis/manager/common/entity/node/RMNode.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.linkis.manager.common.entity.node; import org.apache.linkis.manager.common.entity.resource.NodeResource; public interface RMNode extends Node { NodeResource getNodeResource(); void setNodeResource(NodeResource nodeResource); }
apache/linkis
1,070
linkis-public-enhancements/linkis-pes-common/src/main/java/org/apache/linkis/cs/common/entity/data/LinkisJobData.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.linkis.cs.common.entity.data; public class LinkisJobData implements JobData { private long jobID; @Override public long getJobID() { return this.jobID; } @Override public void setJobID(long jobID) { this.jobID = jobID; } }
apache/linkis
1,075
linkis-engineconn-plugins/nebula/src/main/java/org/apache/linkis/engineplugin/nebula/exception/NebulaExecuteError.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.linkis.engineplugin.nebula.exception; import org.apache.linkis.common.exception.ErrorException; public class NebulaExecuteError extends ErrorException { public NebulaExecuteError(int errorCode, String message) { super(errorCode, message); } }
apache/linkis
1,082
linkis-public-enhancements/linkis-cs-server/src/test/java/org/apache/linkis/cs/persistence/ProxyMethodA.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.linkis.cs.persistence; import org.apache.linkis.cs.common.exception.CSErrorException; public class ProxyMethodA { public <T> T getContextHAProxy(T persistence) throws CSErrorException { System.out.println("invoke proxy"); return persistence; } }
apache/lucene
1,117
lucene/test-framework/src/test/org/apache/lucene/tests/util/SorePoint.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.lucene.tests.util; /** A pointcut-like definition where we should trigger an assumption or error. */ public enum SorePoint { // STATIC_INITIALIZER, // I assume this will result in JUnit failure to load a suite. BEFORE_CLASS, INITIALIZER, RULE, BEFORE, TEST, AFTER, AFTER_CLASS }
apache/maven-dependency-plugin
1,118
src/it/projects/analyze-report/src/main/java/Main.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ import org.apache.maven.artifact.Artifact; import org.apache.maven.artifact.repository.metadata.Metadata; import org.apache.maven.model.Model; public class Main { public static final String SCOPE_COMPILE = Artifact.SCOPE_COMPILE; public Model model = null; public Metadata metadata = null; }
apache/maven-javadoc-plugin
1,089
src/it/projects/MJAVADOC-180/module1/src/main/java/edu/jhu/library/HelloWorld.java
package edu.jhu.library; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * Created by IntelliJ IDEA. * User: esm * Date: May 17, 2008 * Time: 11:26:25 AM * To change this template use File | Settings | File Templates. */ public class HelloWorld { public String hello( String s ) { return s; } }
apache/maven
1,097
api/maven-api-core/src/main/java/org/apache/maven/api/services/DependencyResolverException.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.maven.api.services; import org.apache.maven.api.annotations.Experimental; @Experimental public class DependencyResolverException extends MavenException { public DependencyResolverException(String message, Throwable cause) { super(message, cause); } }
apache/myfaces
1,097
impl/src/main/java/org/apache/myfaces/view/facelets/pool/RestoreViewFromPoolResult.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.myfaces.view.facelets.pool; /** * */ public enum RestoreViewFromPoolResult { /** * Indicate the view is ready to use. */ COMPLETE, /** * Indicate the view requires to be refreshed by facelets algorithm. */ REFRESH_REQUIRED }
apache/nifi
1,101
c2/c2-client-bundle/c2-client-base/src/main/java/org/apache/nifi/c2/util/Preconditions.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.nifi.c2.util; public abstract class Preconditions { private Preconditions() { } public static void requires(boolean criterion, String exceptionMessage) { if (!criterion) { throw new IllegalArgumentException(exceptionMessage); } } }
apache/nutch
1,115
src/plugin/protocol-foo/src/java/org/apache/nutch/protocol/foo/Handler.java
/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.nutch.protocol.foo; import java.net.URL; import java.net.URLConnection; import java.net.URLStreamHandler; public class Handler extends URLStreamHandler { @Override protected URLConnection openConnection(URL u) { throw new UnsupportedOperationException("not yet implemented"); } }
apache/olingo-odata4
1,098
lib/commons-api/src/main/java/org/apache/olingo/commons/api/edm/annotation/EdmNull.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.olingo.commons.api.edm.annotation; import org.apache.olingo.commons.api.edm.EdmAnnotatable; /** * The edm:Null expression returns an untyped null value. */ public interface EdmNull extends EdmDynamicExpression, EdmAnnotatable { // No additional methods needed for now. }
apache/oozie
1,127
core/src/test/java/org/apache/oozie/util/TestClassUtils.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.oozie.util; import org.json.simple.JSONArray; import org.junit.Test; import static junit.framework.Assert.assertTrue; public class TestClassUtils { @Test public void testContainingJar() { assertTrue(ClassUtils.findContainingJar(JSONArray.class).contains("json-simple")); } }
apache/openjpa
1,100
openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/UnenhancedType.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.openjpa.enhance; /** * Used in {@link AbstractUnenhancedClassTest} */ public interface UnenhancedType { int getId(); void setStringField(String s); String getStringField(); String getLazyField(); Object clone() throws CloneNotSupportedException; }
apache/ozone
1,112
hadoop-hdds/common/src/main/java/org/apache/hadoop/ozone/audit/Auditable.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.ozone.audit; import java.util.Map; /** * Interface to make an entity auditable. */ public interface Auditable { /** * Must override in implementation. * @return {@literal Map<String, String>} with values to be logged in audit. */ Map<String, String> toAuditMap(); }
apache/pekko
1,065
actor-testkit-typed/src/test/java/jdocs/org/apache/pekko/actor/testkit/typed/javadsl/TestConfigExample.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * license agreements; and to You under the Apache License, version 2.0: * * https://www.apache.org/licenses/LICENSE-2.0 * * This file is part of the Apache Pekko project, which was derived from Akka. */ /* * Copyright (C) 2019-2022 Lightbend Inc. <https://www.lightbend.com> */ package jdocs.org.apache.pekko.actor.testkit.typed.javadsl; // #default-application-conf import com.typesafe.config.ConfigFactory; // #default-application-conf public class TestConfigExample { void illustrateApplicationConfig() { // #default-application-conf ConfigFactory.load() // #default-application-conf ; // #parse-string ConfigFactory.parseString("pekko.loglevel = DEBUG \n" + "pekko.log-config-on-start = on \n") // #parse-string ; // #fallback-application-conf ConfigFactory.parseString("pekko.loglevel = DEBUG \n" + "pekko.log-config-on-start = on \n") .withFallback(ConfigFactory.load()) // #fallback-application-conf ; } }
apache/plc4x
1,076
plc4j/tools/scraper/src/main/java/org/apache/plc4x/java/scraper/triggeredscraper/TriggeredScraperTaskMBean.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.plc4x.java.scraper.triggeredscraper; /** * MBean for a scrape job. */ public interface TriggeredScraperTaskMBean { long getScrapesTotal(); long getScrapesSuccess(); double getPercentageFailed(); String[] getPercentiles(); }
apache/poi
1,127
poi/src/main/java/org/apache/poi/ddf/EscherPropertyTypesHolder.java
/* ==================================================================== Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==================================================================== */ package org.apache.poi.ddf; import org.apache.poi.util.Internal; @Internal public enum EscherPropertyTypesHolder { UNKNOWN, BOOLEAN, RGB, SHAPE_PATH, SIMPLE, ARRAY }
apache/poi
1,138
poi/src/main/java/org/apache/poi/sl/usermodel/FillStyle.java
/* ==================================================================== Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==================================================================== */ package org.apache.poi.sl.usermodel; /** * This interface is the counterpart to {@link StrokeStyle} - it specifies the filling of a shape */ public interface FillStyle { PaintStyle getPaint(); }
apache/ranger
1,118
security-admin/src/main/java/org/apache/ranger/common/MyCallBack.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * */ package org.apache.ranger.common; public interface MyCallBack { /** * Make sure to add @Transactional annotation to the implementation method. * * @Override * @Transactional(readOnly = false, propagation = Propagation.REQUIRES_NEW) */ Object process(Object data); }
apache/ratis
1,096
ratis-common/src/main/java/org/apache/ratis/protocol/exceptions/LeaderSteppingDownException.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.ratis.protocol.exceptions; public class LeaderSteppingDownException extends RaftException { public LeaderSteppingDownException(String message) { super(message); } public LeaderSteppingDownException(String message, Throwable t) { super(message, t); } }
apache/ratis
1,096
ratis-common/src/main/java/org/apache/ratis/protocol/exceptions/TransferLeadershipException.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.ratis.protocol.exceptions; public class TransferLeadershipException extends RaftException { public TransferLeadershipException(String message) { super(message); } public TransferLeadershipException(String message, Throwable t) { super(message, t); } }
apache/reef
1,099
lang/java/reef-tests/src/main/java/org/apache/reef/tests/statepassing/Counter.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.reef.tests.statepassing; import javax.inject.Inject; /** * Simple counter. */ public class Counter { private int value = 0; @Inject public Counter() { } public void increment() { this.value += 1; } public int getValue() { return value; } }
apache/royale-compiler
1,094
compiler/src/main/java/org/apache/royale/compiler/tree/as/ITransparentContainerNode.java
/* * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ package org.apache.royale.compiler.tree.as; /** * A marker interface to represent a transparent container node which is * identical to a regular ContainerNode except that it is never returned from * getContainingNode. */ public interface ITransparentContainerNode { }
apache/seatunnel
1,043
seatunnel-connectors-v2/connector-typesense/src/main/java/org/apache/seatunnel/connectors/seatunnel/typesense/state/TypesenseAggregatedCommitInfo.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.seatunnel.connectors.seatunnel.typesense.state; import java.io.Serializable; public class TypesenseAggregatedCommitInfo implements Serializable { private static final long serialVersionUID = -3563751133397833772L; }
apache/sentry
1,093
sentry-provider/sentry-provider-common/src/main/java/org/apache/sentry/provider/common/TableCache.java
/** * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE * file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file * to You under the Apache License, Version 2.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.sentry.provider.common; import com.google.common.collect.Table; import java.util.Set; public interface TableCache { /** * Returns backing cache. Caller must not modify the returned cache. * @return backing cache. */ Table<String, String, Set<String>> getCache(); }