repo_id
stringclasses
875 values
size
int64
974
38.9k
file_path
stringlengths
10
308
content
stringlengths
974
38.9k
apache/harmony
1,031
classlib/modules/awt/src/main/java/common/java/awt/dnd/DragGestureListener.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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 Michael Danilov */ package java.awt.dnd; import java.util.EventListener; public interface DragGestureListener extends EventListener { public void dragGestureRecognized(DragGestureEvent dge); }
apache/hive
1,043
streaming/src/java/org/apache/hive/streaming/StreamingIOFailure.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.streaming; public class StreamingIOFailure extends StreamingException { StreamingIOFailure(String msg, Exception cause) { super(msg, cause); } StreamingIOFailure(String msg) { super(msg); } }
apache/ignite-3
1,042
modules/api/src/main/java/org/apache/ignite/lang/CancellationToken.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.lang; /** * Cancellation token is an object that is issued by {@link CancelHandle} and can be used by an operation or a resource to observe a signal * to terminate it. */ public interface CancellationToken { }
apache/incubator-seata
1,033
compatible/src/main/java/io/seata/discovery/registry/RegistryService.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package io.seata.discovery.registry; /** * The interface Registry service. * * @param <T> the type parameter */ @Deprecated public interface RegistryService<T> extends org.apache.seata.discovery.registry.RegistryService<T> {}
apache/incubator-weex
1,034
android/sdk/src/main/java/org/apache/weex/common/WXRefreshData.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.common; public class WXRefreshData { public String data; public boolean isDirty; public WXRefreshData(String data, boolean isDirty) { this.data = data; this.isDirty = isDirty; } }
apache/jclouds
1,040
apis/ec2/src/test/java/org/jclouds/ec2/internal/BaseEC2ApiLiveTest.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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.ec2.internal; import org.jclouds.apis.BaseApiLiveTest; import org.jclouds.ec2.EC2Api; public class BaseEC2ApiLiveTest extends BaseApiLiveTest<EC2Api> { public BaseEC2ApiLiveTest() { provider = "ec2"; } }
apache/jena
1,028
jena-arq/src/main/java/org/apache/jena/sparql/function/scripting/ScriptDenyException.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.function.scripting; import org.apache.jena.sparql.expr.ExprException; public class ScriptDenyException extends ExprException { public ScriptDenyException(String msg) { super(msg); } }
apache/logging-flume
1,045
flume-ng-tests/src/main/java/org/apache/flume/Dummy.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.flume; /** * Placeholder class so the git mirror does not leave out the src/main/java dir */ public class Dummy { public Dummy() { throw new UnsupportedOperationException("Dummy class meant for use"); } }
apache/logging-log4j1
1,039
tests/src/java/org/apache/log4j/util/UnexpectedFormatException.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.log4j.util; public class UnexpectedFormatException extends Exception { private static final long serialVersionUID = 1787725660780924147L; public UnexpectedFormatException(String msg) { super(msg); } }
apache/marmotta
1,037
commons/marmotta-commons/src/ext/java/javolution/util/function/package-info.java
/** <p> Basic functions for lambda expressions and method references.</p> Most often, functions do not have a state and can be called concurrently, as indicated by the annotation {@link javolution.lang.Parallelizable Parallelizable}.</p> <p> Functions may take an arbitrary number of arguments through the use of {@link javolution.util.function.MultiVariable multi-variables} or no argument at all using the standard {@link java.lang.Void} class. [code] // Function populating a list of integer and returning void. Function<MultiVariable<List<Integer>, Integer>, Void> fill = new Function<>() { public Void apply(MultiVariable<List<Integer>, Integer> params) { List<Integer> list = params.getLeft(); for (int i = 0, n = params.getRight(); i < n; i++) { list.add(i); } return null; } }; FastTable<Integer> list = new FastTable<Integer>(); fill.apply(new MultiVariable(list, 100)); // Populates with numbers [0 .. 100[ [/code]</p> */ package javolution.util.function;
apache/maven-plugins
1,040
maven-jar-plugin/src/it/mjar-90/src/test/java/FooTest.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT 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 junit.framework.Test; import junit.framework.TestCase; import junit.framework.TestSuite; /** * Unit test */ public class FooTest extends TestCase { public void testFoo() { assertTrue( true ); } }
apache/maven
1,024
impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/LifecycleStarter.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.lifecycle.internal; import org.apache.maven.execution.MavenSession; /** * Starts the build life cycle * */ public interface LifecycleStarter { void execute(MavenSession session); }
apache/olingo-odata4
1,024
ext/client-proxy/src/main/java/org/apache/olingo/ext/proxy/api/StructuredInvoker.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.olingo.ext.proxy.api; public interface StructuredInvoker<T extends StructuredType<?>> extends StructuredQuery<StructuredInvoker<T>>, Invoker<T> { //No additional methods needed for now. }
apache/openjpa
1,026
openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/openjpa2018/User2018.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.openjpa2018; import jakarta.persistence.Entity; import jakarta.persistence.GeneratedValue; import jakarta.persistence.Id; @Entity public class User2018 { @Id @GeneratedValue Long id; }
apache/openwebbeans-meecrowave
1,026
meecrowave-core/src/test/java/org/superbiz/app/InterfaceBased.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.superbiz.app; import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped public class InterfaceBased implements InterfaceApi { @Override public String get() { return "api"; } }
apache/orc
1,055
java/core/src/java/org/apache/orc/FileFormatException.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.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.orc; import java.io.IOException; /** * Thrown when an invalid file format is encountered. */ public class FileFormatException extends IOException { public FileFormatException(String errMsg) { super(errMsg); } }
apache/polygene-java
1,030
core/spi/src/main/java/org/apache/polygene/spi/query/QueryBuilderSPI.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * */ package org.apache.polygene.spi.query; import org.apache.polygene.api.query.Query; /** * QueryBuilder SPI. */ public interface QueryBuilderSPI<T> { Query<T> newQuery( QuerySource querySource ); }
apache/polygene-java
1,030
core/testsupport/src/main/java/org/apache/polygene/test/model/Domain.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * */ package org.apache.polygene.test.model; import org.apache.polygene.api.property.Property; /** * JAVADOC Add JavaDoc */ public interface Domain extends Nameable { Property<String> description(); }
apache/ranger
1,036
ugsync-util/src/main/java/org/apache/ranger/ugsyncutil/transform/Mapper.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.ugsyncutil.transform; import java.util.List; public interface Mapper { void init(String baseProperty, List<String> regexPatterns, String regexSeparator); String transform(String attrValue); }
apache/ranger
1,047
kms/src/main/java/org/apache/ranger/kms/dao/RangerMasterKeyDao.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.kms.dao; import org.apache.ranger.entity.XXRangerMasterKey; public class RangerMasterKeyDao extends BaseDao<XXRangerMasterKey> { RangerMasterKeyDao(DaoManagerBase daoManager) { super(daoManager); } }
apache/ratis
1,039
ratis-test/src/test/java/org/apache/ratis/grpc/TestRaftExceptionWithGrpc.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.ratis.grpc; import org.apache.ratis.RaftExceptionBaseTest; public class TestRaftExceptionWithGrpc extends RaftExceptionBaseTest<MiniRaftClusterWithGrpc> implements MiniRaftClusterWithGrpc.FactoryGet { }
apache/rocketmq
1,035
store/src/main/java/org/apache/rocketmq/store/queue/ReferredIterator.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.rocketmq.store.queue; import java.util.Iterator; public interface ReferredIterator<T> extends Iterator<T> { /** * Release the referred resources. */ void release(); T nextAndRelease(); }
apache/shindig
1,028
java/social-api/src/main/java/org/apache/shindig/social/core/oauth2/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. */ /** * Implementation of OAuth 2.0. * * This implementation currently complies to * <a href="http://tools.ietf.org/html/draft-ietf-oauth-v2-21">OAuth 2.0 DRAFT 21</a> */ package org.apache.shindig.social.core.oauth2;
apache/solr
1,042
solr/core/src/java/org/apache/solr/util/plugin/MapInitializedPlugin.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.solr.util.plugin; import java.util.Map; /** * A plugin that can be initialized with a Map&lt;String,String&gt; * * @since solr 1.3 */ public interface MapInitializedPlugin { void init(Map<String, String> args); }
apache/stanbol
1,028
enhancer/generic/nlp/src/main/java/org/apache/stanbol/enhancer/nlp/model/Chunk.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.stanbol.enhancer.nlp.model; public interface Chunk extends Section { /** * Returns {@link SpanTypeEnum#Chunk} * @see Span#getType() * @see SpanTypeEnum#Chunk */ SpanTypeEnum getType(); }
apache/storm
1,032
storm-client/src/jvm/org/apache/storm/trident/operation/OperationAwareFlatMapFunction.java
/** * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version * 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package org.apache.storm.trident.operation; /** * A one to many transformation function which is aware of Operation (lifecycle of the Trident component). */ public interface OperationAwareFlatMapFunction extends FlatMapFunction, Operation { }
apache/storm
1,045
storm-client/src/jvm/org/apache/storm/callback/ZKStateChangedCallback.java
/** * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version * 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.callback; import org.apache.storm.shade.org.apache.zookeeper.Watcher; @SuppressWarnings("checkstyle:AbbreviationAsWordInName") public interface ZKStateChangedCallback { void changed(Watcher.Event.EventType type, String path); }
apache/struts
1,041
core/src/test/java/org/apache/struts2/UserSpecifiedDefaultAction.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.struts2; /** * <code>UserSpecifiedDefaultAction</code> * * @author <a href="mailto:hermanns@aixcept.de">Rainer Hermanns</a> * @version $Id$ */ public class UserSpecifiedDefaultAction extends ActionSupport { }
apache/systemds
1,030
src/main/java/org/apache/sysds/runtime/compress/estim/encoding/AEncode.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.sysds.runtime.compress.estim.encoding; public abstract class AEncode implements IEncode { @Override public boolean equals(Object e) { return e instanceof IEncode && this.equals((IEncode) e); } }
apache/thrift
1,047
lib/javame/src/org/apache/thrift/protocol/TProtocolFactory.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.thrift.protocol; import org.apache.thrift.transport.TTransport; /** * Factory interface for constructing protocol instances. * */ public interface TProtocolFactory { public TProtocol getProtocol(TTransport trans); }
apache/tika
1,053
tika-core/src/main/java/org/apache/tika/fork/ForkResource.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.tika.fork; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; public interface ForkResource { Throwable process(DataInputStream input, DataOutputStream output) throws IOException; }
apache/tomcat
1,027
java/org/apache/catalina/tribes/group/interceptors/StaticMembershipInterceptorMBean.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.catalina.tribes.group.interceptors; import org.apache.catalina.tribes.Member; public interface StaticMembershipInterceptorMBean { int getOptionFlag(); Member getLocalMember(boolean incAlive); }
google/cdep
1,051
cdep/src/main/java/io/cdep/cdep/utils/GithubUtils.java
/* * Copyright 2017 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package io.cdep.cdep.utils; import java.net.MalformedURLException; import java.net.URL; /* * Methods for dealing with github. */ public class GithubUtils { /* * Replace characters that are special to Github URLs (in particular the releases URLs). */ public static URL escapeGithubSpecialCharacters(URL url) throws MalformedURLException { String value = url.toString(); value = value.replace("@", "%40"); return new URL(value); } }
google/gdata-java-client
1,025
java/src/com/google/gdata/client/spreadsheet/WorksheetQuery.java
/* Copyright (c) 2008 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.google.gdata.client.spreadsheet; import com.google.gdata.client.DocumentQuery; import java.net.URL; /** * Simple class for worksheets-feed-specific queries. * * */ public class WorksheetQuery extends DocumentQuery { /** * Constructs a query for querying worksheets within a spreadsheet. * * @param feedUrl the feed's URI */ public WorksheetQuery(URL feedUrl) { super(feedUrl); } }
google/graphicsfuzz
1,027
ast/src/test/java/com/graphicsfuzz/common/ast/stmt/DiscardStmtTest.java
/* * Copyright 2018 The GraphicsFuzz Project Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.graphicsfuzz.common.ast.stmt; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotSame; import org.junit.Test; public class DiscardStmtTest { @Test public void testDiscardStmt() { assertEquals("discard;\n", new DiscardStmt().getText()); final DiscardStmt discardStmt = new DiscardStmt(); assertNotSame(discardStmt, discardStmt.clone()); } }
google/guava
1,041
android/guava/src/com/google/common/collect/FilteredSetMultimap.java
/* * Copyright (C) 2012 The Guava Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.google.common.collect; import com.google.common.annotations.GwtCompatible; import org.jspecify.annotations.Nullable; /** * A supertype for filtered {@link SetMultimap} implementations. * * @author Louis Wasserman */ @GwtCompatible interface FilteredSetMultimap<K extends @Nullable Object, V extends @Nullable Object> extends FilteredMultimap<K, V>, SetMultimap<K, V> { @Override SetMultimap<K, V> unfiltered(); }
google/makani
1,042
analysis/cfd-tools/cfd_aero_runner/GeometricObject/Config.java
/* Copyright 2020 Makani Technologies LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ package GeometricObject; import java.util.ArrayList; import star.common.GeometryPart; import star.common.PartSurface; import star.common.Simulation; import Tools.*; public class Config extends AerodynamicSurface{ public Config(Simulation simu, ArrayList<PartSurface> partSurfaces,int preFixSize,ReportTool repTool,MonitorTool monTool){ super(simu,partSurfaces,preFixSize); } }
google/paco
1,052
Shared/src/com/pacoapp/paco/shared/model2/Validator.java
package com.pacoapp.paco.shared.model2; import java.util.Collection; public interface Validator { int MANDATORY = 1; int OPTIONAL = 2; void addError(String errorMessage); boolean isNonEmptyString(String value, String errorMsg); boolean isNotNullAndNonEmptyCollection(Collection collection, String errorMessage); boolean isValidEmail(String address, String errorMessage); boolean isValidCollectionOfEmailAddresses(Collection<String> collection, String errorMessage); boolean isNotNullCollection(Collection actionTriggers, String errorMessage); boolean isValidDateString(String dateStr, String errorMessage); boolean isNotNull(Object obj, String errorMessage); boolean isValidJavascript(String customRenderingCode, String errorMessage); boolean isValidHtmlOrJavascript(String text, String errorMessage); boolean isTrue(boolean b, String string); boolean isNotNullAndNonEmptyArray(String[] arr, String errorMessage); boolean isValidConditionalExpression(String conditionExpression, String errorMessage); }
google/schemaorg-java
1,034
src/main/java/com/google/schemaorg/core/datatype/URL.java
/* * Copyright 2016 Google Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.google.schemaorg.core.datatype; import com.google.schemaorg.core.CoreConstants; /** * Represents <a href="http://schema.org/URL">http://schema.org/URL</a>. */ public class URL extends Text { URL(String value) { super(value); } @Override public String getFullTypeName() { return CoreConstants.NAMESPACE + "URL"; } public static URL of(String value) { return new URL(value); } }
openjdk/jdk8
1,034
jaxp/src/com/sun/org/apache/xerces/internal/xni/parser/XMLDTDFilter.java
/* * reserved comment block * DO NOT REMOVE OR ALTER! */ /* * Copyright 2001, 2002,2004 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.sun.org.apache.xerces.internal.xni.parser; import com.sun.org.apache.xerces.internal.xni.XMLDTDHandler; /** * Defines a DTD filter that acts as both a receiver and an emitter * of DTD events. * * @author Andy Clark, IBM * */ public interface XMLDTDFilter extends XMLDTDHandler, XMLDTDSource { } // interface XMLDTDFilter
openjdk/jdk8
1,083
langtools/test/tools/jdeps/c/C.java
/* * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ package c; public class C { }
openjdk/jdk8
1,083
langtools/test/tools/jdeps/d/D.java
/* * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ package d; public class D { }
openjdk/jtreg
1,077
test/testngLibs/extlibs/extLib/ExtLib.java
/* * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ public class ExtLib { }
oracle/coherence
1,026
prj/coherence-rest/src/main/java/com/tangosol/coherence/rest/KeyConverter.java
/* * Copyright (c) 2000, 2020, Oracle and/or its affiliates. * * Licensed under the Universal Permissive License v 1.0 as shown at * http://oss.oracle.com/licenses/upl. */ package com.tangosol.coherence.rest; /** * An interface that must be implemented by key converters. * <p> * Key converters are used to convert cache entry keys to string and string * representations of the keys that are used in RESTful URLs into * appropriate object instance that can be used to access cache entries. * * @author as 2011.06.08 */ public interface KeyConverter { /** * Convert a string representation of a key into its object form. * * @param sKey key as a string * * @return key in its object form */ public Object fromString(String sKey); /** * Convert an object representation of a key into its string form. * * @param oKey key in its original object form * * @return string representation of a key */ String toString(Object oKey); }
apache/commons-text
1,049
src/main/java/org/apache/commons/text/diff/package-info.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** * <p>Provides algorithms for diff between strings.</p> * * <p>The initial implementation of the Myers algorithm was adapted from the * commons-collections sequence package.</p> * * @since 1.0 */ package org.apache.commons.text.diff;
apache/crunch
1,050
crunch-core/src/main/java/org/apache/crunch/TableSourceTarget.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.crunch; /** * An interface for classes that implement both the {@code TableSource} and the * {@code Target} interfaces. */ public interface TableSourceTarget<K, V> extends TableSource<K, V>, SourceTarget<Pair<K, V>> { }
apache/cxf
1,026
rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/wsdl/extensions/SoapAddress.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.binding.soap.wsdl.extensions; import javax.wsdl.extensions.soap.SOAPAddress; import javax.wsdl.extensions.soap12.SOAP12Address; public interface SoapAddress extends SOAPAddress, SOAP12Address { }
apache/cxf
1,026
rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/wsdl/extensions/SoapBinding.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.binding.soap.wsdl.extensions; import javax.wsdl.extensions.soap.SOAPBinding; import javax.wsdl.extensions.soap12.SOAP12Binding; public interface SoapBinding extends SOAPBinding, SOAP12Binding { }
apache/cxf
1,030
systests/cdi/base/src/main/java/org/apache/cxf/systests/cdi/base/AtomFeedEntry.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.systests.cdi.base; public class AtomFeedEntry { private String link; public void addLink(String l) { this.link = l; } public String getLink() { return link; } }
apache/daffodil
1,039
daffodil-core/src/main/java/org/apache/daffodil/api/debugger/Debugger.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.daffodil.api.debugger; import org.apache.daffodil.runtime1.events.EventHandler; /** * Debugger interface for receiving debug events during Daffodil processing */ public interface Debugger extends EventHandler { }
apache/drill
1,038
logical/src/main/java/org/apache/drill/common/expression/visitors/OpVisitor.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.expression.visitors; import org.apache.drill.common.graph.GraphVisitor; import org.apache.drill.common.logical.data.LogicalOperator; public interface OpVisitor extends GraphVisitor<LogicalOperator> { }
apache/druid
1,029
server/src/main/java/org/apache/druid/metadata/SegmentsMetadataManagerProvider.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.druid.metadata; import com.google.inject.Provider; /** */ public interface SegmentsMetadataManagerProvider extends Provider<SegmentsMetadataManager> { @Override SegmentsMetadataManager get(); }
apache/druid
1,044
processing/src/main/java/org/apache/druid/utils/Runnables.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.druid.utils; import org.apache.druid.guice.annotations.PublicApi; /** */ @PublicApi public class Runnables { @SuppressWarnings("unused") public static Runnable getNoopRunnable() { return () -> {}; } }
apache/dubbo
1,031
dubbo-cluster/src/test/java/org/apache/dubbo/rpc/cluster/filter/DemoServiceMock.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.dubbo.rpc.cluster.filter; class DemoServiceMock implements DemoService { public String sayHello(String name) { return name; } public int plus(int a, int b) { return a + b; } }
apache/dubbo
1,034
dubbo-common/src/test/java/org/apache/dubbo/rpc/executor/Mock1ExecutorSupport.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.dubbo.rpc.executor; import java.util.concurrent.Executor; public class Mock1ExecutorSupport implements ExecutorSupport { @Override public Executor getExecutor(Object data) { return null; } }
apache/dubbo
1,034
dubbo-common/src/test/java/org/apache/dubbo/rpc/executor/Mock2ExecutorSupport.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.dubbo.rpc.executor; import java.util.concurrent.Executor; public class Mock2ExecutorSupport implements ExecutorSupport { @Override public Executor getExecutor(Object data) { return null; } }
apache/falcon
1,030
titan/src/main/java/com/thinkaurelius/titan/diskstorage/hbase/ConnectionMask.java
/* * Copyright 2012-2013 Aurelius LLC * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.thinkaurelius.titan.diskstorage.hbase; import java.io.Closeable; import java.io.IOException; /** * This interface hides ABI/API breaking changes that HBase has made to its (H)Connection class over the course * of development from 0.94 to 1.0 and beyond. */ public interface ConnectionMask extends Closeable { TableMask getTable(String name) throws IOException; AdminMask getAdmin() throws IOException; }
apache/falcon
1,033
addons/designer/core/src/main/java/org/apache/falcon/designer/primitive/Code.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.falcon.designer.primitive; /** * For now a simple marker interface for holding source code * corresponding to a primitive. */ public interface Code { //TODO Details to be figured out as go along. }
apache/falcon
1,042
rerun/src/main/java/org/apache/falcon/rerun/policy/PeriodicPolicy.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.falcon.rerun.policy; /** * An implementation of the Rerun policy that is periodic. */ public class PeriodicPolicy extends ExpBackoffPolicy { @Override protected int getPower() { return 1; } }
apache/felix-dev
1,048
connect/src/main/java/org/apache/felix/connect/Revision.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.connect; import java.net.URL; import java.util.Enumeration; public interface Revision { public long getLastModified(); public URL getEntry(String entryName); public Enumeration<String> getEntries(); }
apache/geode
1,025
geode-junit/src/main/java/org/apache/geode/test/junit/categories/BackwardCompatibilityTest.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more contributor license * agreements. See the NOTICE file distributed with this work for additional information regarding * copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance with the License. You may obtain a * copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.test.junit.categories; /** * JUnit Test Category that specifies a test involving multiple members of a distributed system and * multiple versions of Geode. */ public interface BackwardCompatibilityTest { }
apache/geode
1,041
geode-core/src/main/java/org/apache/geode/internal/cache/ServerFactory.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more contributor license * agreements. See the NOTICE file distributed with this work for additional information regarding * copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance with the License. You may obtain a * copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.cache; /** * Creates an instance of {@link InternalCacheServer}. */ public interface ServerFactory { /** * Creates a new instance of {@link InternalCacheServer}. */ InternalCacheServer createServer(); }
apache/gobblin
1,026
gobblin-api/src/main/java/org/apache/gobblin/configuration/ConfigurationException.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.configuration; import java.io.IOException; public class ConfigurationException extends IOException { public ConfigurationException(String message, Exception e) { super(message, e); } }
apache/hive
1,048
ql/src/java/org/apache/hadoop/hive/ql/parse/ParsedQueryTables.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.hive.ql.parse; import org.apache.hadoop.hive.ql.metadata.Table; /** * Interface to fetch hash map containing query tables. **/ public interface ParsedQueryTables { public Table getParsedTable(String name); }
apache/ignite-3
1,027
modules/bytecode/src/main/java/com/facebook/presto/bytecode/CompilationException.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.facebook.presto.bytecode; public class CompilationException extends RuntimeException { public CompilationException(String message, RuntimeException cause) { super(message, cause); } }
apache/incubator-atlas
1,045
client/src/main/java/org/apache/atlas/ResourceCreator.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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; import com.sun.jersey.api.client.WebResource; /** * An interface to capture the closure of how a WebResource is created. */ @Deprecated public interface ResourceCreator { WebResource createResource(); }
apache/incubator-crail
1,041
client/src/main/java/org/apache/crail/rpc/RpcGetLocation.java
/* * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.crail.rpc; import java.io.IOException; import org.apache.crail.metadata.BlockInfo; public interface RpcGetLocation extends RpcResponse { public BlockInfo getBlockInfo() throws IOException; public long getFd(); }
apache/incubator-weex
1,033
android/sdk/src/main/java/org/apache/weex/common/WXRuntimeException.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.common; public class WXRuntimeException extends RuntimeException { private static final long serialVersionUID = 5732315311747521491L; public WXRuntimeException(String e) { super(e); } }
apache/jena
1,027
jena-extras/jena-commonsrdf/src/main/java/org/apache/jena/commonsrdf/impl/JenaDataset.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.commonsrdf.impl; import org.apache.jena.sparql.core.DatasetGraph; /** Access the Jena dataset graph backing this object */ public interface JenaDataset { public DatasetGraph getDataset(); }
apache/jena
1,032
jena-tdb1/src/test/java/org/apache/jena/tdb1/base/recordfile/TS_RecordFile.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.jena.tdb1.base.recordfile; import org.junit.runner.RunWith; import org.junit.runners.Suite; @RunWith(Suite.class) @Suite.SuiteClasses( { TestRecordBufferPage.class }) public class TS_RecordFile { }
apache/kafka
1,051
clients/src/test/java/org/apache/kafka/test/ValuelessCallable.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.kafka.test; /** * Like a {@link Runnable} that allows exceptions to be thrown or a {@link java.util.concurrent.Callable} * that does not return a value. */ public interface ValuelessCallable { void call() throws Exception; }
apache/kylin
1,026
src/common-service/src/main/java/org/apache/kylin/rest/request/YarnQueueRequest.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.request; import com.fasterxml.jackson.annotation.JsonProperty; import lombok.Data; @Data public class YarnQueueRequest { @JsonProperty("queue_name") private String queueName; }
apache/kylin
1,048
src/tool/src/main/java/org/apache/kylin/tool/ISparkLogExtractor.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.tool; import org.apache.kylin.common.KylinConfig; public interface ISparkLogExtractor { String getSparkLogsDir(String project, KylinConfig kylinConfig); String getSparderLogsDir(KylinConfig kylinConfig); }
apache/lens
1,037
lens-api/src/main/java/org/apache/lens/api/scheduler/SchedulerJobEvent.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.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.lens.api.scheduler; /** * All events(actions) which can happen on a Scheduler Job. */ public enum SchedulerJobEvent { ON_SUBMIT, ON_SCHEDULE, ON_SUSPEND, ON_RESUME, ON_EXPIRE, ON_DELETE }
apache/logging-log4j2
1,027
log4j-1.2-api/src/main/java/org/apache/log4j/builders/layout/LayoutBuilder.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to you under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.log4j.builders.layout; import org.apache.log4j.Layout; import org.apache.log4j.builders.Parser; /** * Define a Layout Builder. */ public interface LayoutBuilder extends Parser<Layout> { // empty }
apache/manifoldcf
1,024
connectors/documentum/build-stub/src/main/java/com/documentum/fc/client/IDfType.java
/* $Id$ */ /** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.documentum.fc.client; import com.documentum.fc.common.*; /** Stub interface to allow the connector to build fully. */ public interface IDfType { public boolean isSubTypeOf(String theType) throws DfException; }
apache/maven-plugins
1,030
maven-compiler-plugin/src/it/non-english-warnings/src/test/java/MyTest.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ public class MyTest { public static void main( String[] args ) { // the date constructor is deprecated and will cause a warning System.out.println( new java.util.Date( 2010, 8, 29 ) ); } }
apache/nifi
1,034
nifi-framework-api/src/main/java/org/apache/nifi/asset/AssetReferenceLookup.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.asset; import java.util.Set; public interface AssetReferenceLookup { /** * The Set of all Assets that are currently referenced by any parameters. */ Set<Asset> getReferencedAssets(); }
apache/paimon
1,045
paimon-core/src/main/java/org/apache/paimon/utils/RowIterator.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.paimon.utils; import org.apache.paimon.data.InternalRow; import javax.annotation.Nullable; /** A simple iterator which provides simple next. */ public interface RowIterator { @Nullable InternalRow next(); }
apache/phoenix
1,036
phoenix-core-server/src/main/java/org/apache/hadoop/hbase/ipc/RpcUtil.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.ipc; public class RpcUtil { public static RpcCall getRpcContext() { return RpcServer.CurCall.get(); } public static void setRpcContext(RpcCall c) { RpcServer.CurCall.set(c); } }
apache/ratis
1,036
ratis-test/src/test/java/org/apache/ratis/grpc/TestReConfigPropertyWithGrpc.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.ratis.grpc; import org.apache.ratis.TestReConfigProperty; public class TestReConfigPropertyWithGrpc extends TestReConfigProperty<MiniRaftClusterWithGrpc> implements MiniRaftClusterWithGrpc.FactoryGet{ }
apache/reef
1,044
lang/java/reef-common/src/main/java/org/apache/reef/client/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. */ /** * Client APIs for REEF. A Client in REEF is the program that submits a Driver to a resource manager. * This submission is done via the REEF.submit() method which accepts a Driver Configuration. */ package org.apache.reef.client;
apache/seatunnel
1,038
seatunnel-api/src/main/java/org/apache/seatunnel/api/event/Event.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.seatunnel.api.event; import java.io.Serializable; public interface Event extends Serializable { long getCreatedTime(); void setJobId(String jobId); String getJobId(); EventType getEventType(); }
apache/stanbol
1,027
enhancer/generic/nlp/src/main/java/org/apache/stanbol/enhancer/nlp/model/Token.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.stanbol.enhancer.nlp.model; public interface Token extends Span { /** * Returns {@link SpanTypeEnum#Token} * @see Span#getType() * @see SpanTypeEnum#Token */ SpanTypeEnum getType(); }
apache/systemds
1,052
src/main/java/org/apache/sysds/utils/EnvironmentHelper.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.sysds.utils; /** * This class is useful in setting environment variable for loading MKL library (done by Native Helper) */ public class EnvironmentHelper { public static native void setEnv(String key, String value); }
apache/tez
1,038
tez-common/src/main/java/org/apache/tez/dag/history/logging/EntityTypes.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.tez.dag.history.logging; public enum EntityTypes { TEZ_APPLICATION, TEZ_APPLICATION_ATTEMPT, TEZ_CONTAINER_ID, TEZ_DAG_ID, TEZ_DAG_EXTRA_INFO, TEZ_VERTEX_ID, TEZ_TASK_ID, TEZ_TASK_ATTEMPT_ID, }
apache/tomee
1,025
examples/java-modules/src/main/java/org/superbiz/javamodules/rest/HelloResource.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.superbiz.javamodules.rest; import jakarta.ws.rs.GET; import jakarta.ws.rs.Path; @Path("/hello") public class HelloResource { @GET public String sayHello() { return "Hello World"; } }
apache/tomee
1,040
server/openejb-ssh/src/test/java/org/apache/openejb/server/ssh/Foo.java
/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.openejb.server.ssh; import jakarta.ejb.Lock; import jakarta.ejb.LockType; import jakarta.ejb.Singleton; @Singleton @Lock(LockType.READ) public class Foo { public String foo() { return "foo"; } }
apache/uima-uimaj
1,032
uimaj-cpe/src/main/java/org/apache/uima/collection/impl/cpm/CPMException.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.uima.collection.impl.cpm; public class CPMException extends Exception { private static final long serialVersionUID = -8398570626529912770L; public CPMException(String msg) { super(msg); } }
apache/wicket
1,026
wicket-core-tests/src/test/java/org/apache/wicket/core/util/tester/cookies/EndPage.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.wicket.core.util.tester.cookies; import org.apache.wicket.util.tester.DummyHomePage; /** * simple page as request cycle end point * @author mosmann */ public class EndPage extends DummyHomePage { }
google/gitiles
1,062
java/com/google/gitiles/FileJsonData.java
// Copyright (C) 2017 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. package com.google.gitiles; import org.eclipse.jgit.lib.ObjectId; class FileJsonData { static class File { String id; String repo; String revision; String path; } static File toJsonData(ObjectId id, String repo, String revision, String path) { File file = new File(); file.id = id.name(); file.repo = repo; file.revision = revision; file.path = path; return file; } private FileJsonData() {} }
google/j2objc
1,049
jre_emul/stub_classes/java/com/google/j2objc/NSFastEnumeration.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.google.j2objc; /** * This stub is mapped to the iOS NSFastEnumeration protocol. We need the Java * stub class so that java.lang.Iterable instances can support fast enumeration. */ public interface NSFastEnumeration { }
hibernate/hibernate-orm
1,026
hibernate-core/src/main/java/org/hibernate/cache/spi/CacheKeysFactory.java
/* * SPDX-License-Identifier: Apache-2.0 * Copyright Red Hat Inc. and Hibernate Authors */ package org.hibernate.cache.spi; import org.hibernate.engine.spi.SessionFactoryImplementor; import org.hibernate.engine.spi.SharedSessionContractImplementor; import org.hibernate.persister.collection.CollectionPersister; import org.hibernate.persister.entity.EntityPersister; /** * A factory for keys into the second-level cache. * * @author Radim Vansa &lt;rvansa@redhat.com&gt; */ public interface CacheKeysFactory { Object createCollectionKey(Object id, CollectionPersister persister, SessionFactoryImplementor factory, String tenantIdentifier); Object createEntityKey(Object id, EntityPersister persister, SessionFactoryImplementor factory, String tenantIdentifier); Object createNaturalIdKey(Object naturalIdValues, EntityPersister persister, SharedSessionContractImplementor session); Object getEntityId(Object cacheKey); Object getCollectionId(Object cacheKey); Object getNaturalIdValues(Object cacheKey); }
hibernate/hibernate-shards
1,033
src/main/java/org/hibernate/shards/strategy/ShardStrategyFactory.java
/** * Copyright (C) 2007 Google Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ package org.hibernate.shards.strategy; import org.hibernate.shards.ShardId; import java.util.List; /** * @author maxr@google.com (Max Ross) */ public interface ShardStrategyFactory { ShardStrategy newShardStrategy(List<ShardId> shardIds); }
openjdk/jdk8
1,075
jdk/test/java/lang/annotation/loaderLeak/B.java
/* * Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ public @interface B {}
oracle/nosql
1,041
kvmain/src/main/java/oracle/kv/impl/admin/NonfatalAssertionException.java
/*- * Copyright (C) 2011, 2025 Oracle and/or its affiliates. All rights reserved. * * This file was distributed by Oracle as part of a version of Oracle NoSQL * Database made available at: * * http://www.oracle.com/technetwork/database/database-technologies/nosqldb/downloads/index.html * * Please see the LICENSE file included in the top-level directory of the * appropriate version of Oracle NoSQL Database for a copy of the license and * additional information. */ package oracle.kv.impl.admin; /** * Exception to indicate that an assertion-style condition has failed, but it * should not cause the Admin to exit and restart. Such exceptions are logged * at Level.SEVERE and abort the current operation. */ public class NonfatalAssertionException extends RuntimeException { private static final long serialVersionUID = 1L; public NonfatalAssertionException(String message) { super(message); } public NonfatalAssertionException(String message, Throwable t) { super(message, t); } }
apache/cxf
1,030
systests/jaxws/src/test/java/org/apache/cxf/systest/jaxws/schemavalidation/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. */ @jakarta.xml.bind.annotation.XmlSchema(namespace = "http://org.apache.cxf/service/PersonService", elementFormDefault = jakarta.xml.bind.annotation.XmlNsForm.QUALIFIED) package org.apache.cxf.systest.jaxws.schemavalidation;
apache/dubbo
1,042
dubbo-common/src/main/java/org/apache/dubbo/common/context/ApplicationExt.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.context; import org.apache.dubbo.common.extension.ExtensionScope; import org.apache.dubbo.common.extension.SPI; @SPI(scope = ExtensionScope.APPLICATION) public interface ApplicationExt extends Lifecycle {}
apache/flink
1,033
flink-core/src/main/java/org/apache/flink/configuration/SchedulerExecutionMode.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.configuration; import org.apache.flink.annotation.Experimental; /** Enum for controlling whether REACTIVE mode is enabled or not. */ @Experimental public enum SchedulerExecutionMode { REACTIVE }
apache/giraph
1,030
giraph-core/src/main/java/org/apache/giraph/writable/kryo/markers/NonKryoWritable.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.giraph.writable.kryo.markers; /** * Marker interface saying that class should never be serialized, * that it is code error for it to be tried to be serialized. */ public interface NonKryoWritable { }