repo_id stringclasses 875 values | size int64 974 38.9k | file_path stringlengths 10 308 | content stringlengths 974 38.9k |
|---|---|---|---|
apache/paimon | 1,047 | paimon-common/src/main/java/org/apache/paimon/data/columnar/RowColumnVector.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.data.columnar;
import org.apache.paimon.data.InternalRow;
/** Row column vector. */
public interface RowColumnVector extends ColumnVector {
InternalRow getRow(int i);
VectorizedColumnBatch getBatch();
}
|
apache/parquet-java | 1,048 | parquet-generator/src/main/java/org/apache/parquet/version/Generator.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.parquet.version;
/**
* main class for code generation hook in build for version generation
*/
public class Generator {
public static void main(String[] args) throws Exception {
VersionGenerator.main(args);
}
}
|
apache/pekko-http | 1,041 | http-core/src/main/java/org/apache/pekko/http/javadsl/model/headers/CacheControl.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* license agreements; and to You under the Apache License, version 2.0:
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* This file is part of the Apache Pekko project, which was derived from Akka.
*/
/*
* Copyright (C) 2009-2022 Lightbend Inc. <https://www.lightbend.com>
*/
package org.apache.pekko.http.javadsl.model.headers;
/**
* Model for the `Cache-Control` header. Specification:
* http://tools.ietf.org/html/draft-ietf-httpbis-p6-cache-26#section-5.2
*/
public abstract class CacheControl extends org.apache.pekko.http.scaladsl.model.HttpHeader {
public abstract Iterable<CacheDirective> getDirectives();
public static CacheControl create(CacheDirective... directives) {
return new org.apache.pekko.http.scaladsl.model.headers.Cache$minusControl(
org.apache.pekko.http.impl.util.Util
.<CacheDirective, org.apache.pekko.http.scaladsl.model.headers.CacheDirective>
convertArray(directives));
}
}
|
apache/pinot | 1,033 | pinot-tools/src/main/java/org/apache/pinot/tools/segment/converter/PinotSegmentConverter.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.pinot.tools.segment.converter;
public interface PinotSegmentConverter {
/**
* Convert Pinot Segment into another format.
*
* @throws Exception
*/
void convert()
throws Exception;
}
|
apache/plc4x | 1,028 | plc4j/drivers/bacnet/src/main/java/org/apache/plc4x/java/bacnetip/ede/layouts/EdeVersion4Layout.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.plc4x.java.bacnetip.ede.layouts;
public class EdeVersion4Layout extends EdeVersion3Layout implements EdeLayout {
@Override
public int getNotificationClassPos() {
return 16;
}
}
|
apache/poi | 1,072 | poi/src/main/java/org/apache/poi/hssf/usermodel/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.
==================================================================== */
/**
* The usermodel package maps HSSF low level structures to familiar workbook/sheet model
*/
package org.apache.poi.hssf.usermodel;
|
apache/pulsar | 1,041 | structured-event-log/src/main/java/org/apache/pulsar/structuredeventlog/EventGroup.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.pulsar.structuredeventlog;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
@Retention(value = RetentionPolicy.RUNTIME)
public @interface EventGroup {
String component();
}
|
apache/ratis | 1,050 | ratis-test/src/test/java/org/apache/ratis/grpc/TestRequestLimitAsyncWithGrpc.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.RequestLimitAsyncBaseTest;
public class TestRequestLimitAsyncWithGrpc
extends RequestLimitAsyncBaseTest<MiniRaftClusterWithGrpc>
implements MiniRaftClusterWithGrpc.FactoryGet {
}
|
apache/royale-compiler | 1,025 | compiler/src/main/java/org/apache/royale/compiler/tree/mxml/IMXMLDataBindingNodeContainer.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package org.apache.royale.compiler.tree.mxml;
/**
* Marker Interface for things that contain or are IMXMLDataBindingNode
*/
public interface IMXMLDataBindingNodeContainer extends IMXMLInstanceNode
{
}
|
apache/shiro | 1,064 | web/src/main/java/org/apache/shiro/web/filter/authc/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.
*/
/**
* Servlet {@link javax.servlet.Filter Filter} implementations specific to controlling access based on a
* subject's authentication status, or those that can execute authentications (log-ins) directly.
*/
package org.apache.shiro.web.filter.authc;
|
apache/skywalking | 1,028 | oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/query/sql/Where.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package org.apache.skywalking.oap.server.core.query.sql;
import java.util.ArrayList;
import java.util.List;
import lombok.Getter;
@Getter
public class Where {
private List<KeyValues> keyValues = new ArrayList<>();
}
|
apache/solr | 1,064 | solr/solrj/src/java/org/apache/solr/common/cloud/NodesSysProps.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.common.cloud;
import java.util.Collection;
import java.util.Map;
/** Fetch a node's system properties. It should be cached. */
public interface NodesSysProps {
Map<String, Object> getSysProps(String node, Collection<String> tags);
}
|
apache/struts | 1,052 | core/src/main/java/org/apache/struts2/util/classloader/ResourceStore.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.struts2.util.classloader;
/**
* *interface taken from Apache JCI
*/
public interface ResourceStore {
void write(final String pResourceName, final byte[] pResourceData);
byte[] read(final String pResourceName);
}
|
apache/struts | 1,059 | plugins/spring/src/test/java/org/apache/struts2/TestSubBean.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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;
public class TestSubBean extends TestBean {
private String issueId;
public String getIssueId() {
return issueId;
}
public void setIssueId(String issueId) {
this.issueId = issueId;
}
}
|
apache/thrift | 1,041 | lib/java/src/main/java/org/apache/thrift/protocol/TReadProtocol.java | package org.apache.thrift.protocol;
import java.nio.ByteBuffer;
import java.util.UUID;
import org.apache.thrift.TException;
public interface TReadProtocol {
TMessage readMessageBegin() throws TException;
void readMessageEnd() throws TException;
TStruct readStructBegin() throws TException;
void readStructEnd() throws TException;
TField readFieldBegin() throws TException;
void readFieldEnd() throws TException;
TMap readMapBegin() throws TException;
void readMapEnd() throws TException;
TList readListBegin() throws TException;
void readListEnd() throws TException;
TSet readSetBegin() throws TException;
void readSetEnd() throws TException;
boolean readBool() throws TException;
byte readByte() throws TException;
short readI16() throws TException;
int readI32() throws TException;
long readI64() throws TException;
UUID readUuid() throws TException;
double readDouble() throws TException;
String readString() throws TException;
ByteBuffer readBinary() throws TException;
}
|
apache/tika | 1,029 | tika-pipes/tika-pipes-core/src/main/java/org/apache/tika/pipes/core/FailedToStartClientException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.pipes.core;
/**
* This should be catastrophic
*/
public class FailedToStartClientException extends RuntimeException {
public FailedToStartClientException(Throwable t) {
super(t);
}
}
|
apache/tika | 1,030 | tika-eval/tika-eval-core/src/main/java/org/apache/tika/eval/core/textstats/ContentLengthCalculator.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.eval.core.textstats;
public class ContentLengthCalculator implements StringStatsCalculator<Integer> {
@Override
public Integer calculate(String txt) {
return txt.trim().length();
}
}
|
apache/tika | 1,061 | tika-example/src/main/java/org/apache/tika/example/Pharmacy.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.tika.example;
import java.security.Key;
public class Pharmacy {
private static Key key = null;
public static Key getKey() {
return key;
}
public static void setKey(Key key) {
Pharmacy.key = key;
}
}
|
apache/tomcat | 1,042 | java/org/apache/catalina/tribes/group/interceptors/FragmentationInterceptorMBean.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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;
public interface FragmentationInterceptorMBean {
// Attributes
int getMaxSize();
long getExpire();
void setMaxSize(int maxSize);
void setExpire(long expire);
} |
apache/tomcat80 | 1,052 | modules/tomcat-lite/java/org/apache/tomcat/lite/http/HttpServer.java | /*
*/
package org.apache.tomcat.lite.http;
import org.apache.tomcat.lite.io.SocketConnector;
import org.apache.tomcat.lite.io.SslProvider;
import org.apache.tomcat.lite.io.jsse.JsseSslProvider;
/**
* Main entry point for HTTP server code.
*
* ( initial draft - will replace statics, add helpers, etc )
*/
public class HttpServer {
static SslProvider sslConC = new JsseSslProvider();
public synchronized static HttpConnector newServer(int port) {
return new HttpConnector(new SocketConnector()).
withSsl(sslConC).setPort(port);
}
public synchronized static HttpConnector newSslServer(int port) {
// DHE broken in harmony - will replace with a flag
// SslConnector.setEnabledCiphers(new String[] {
// "TLS_RSA_WITH_3DES_EDE_CBC_SHA"
// });
// -cipher DES-CBC3-SHA
SslProvider sslCon = new JsseSslProvider();
return new HttpConnector(new SocketConnector()).
withSsl(sslCon).setPort(port).setServerSsl(true);
}
}
|
apache/tsfile | 1,045 | java/tsfile/src/main/java/org/apache/tsfile/exception/NullFieldException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.tsfile.exception;
public class NullFieldException extends TsFileRuntimeException {
public NullFieldException() {
super("Field is null");
}
public NullFieldException(String msg) {
super(msg);
}
}
|
apache/twill | 1,060 | twill-common/src/main/java/org/apache/twill/common/Cancellable.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.twill.common;
/**
* Something, usually a task, that can be cancelled. Cancellation is performed by the cancel method.
*/
public interface Cancellable {
/**
* Attempts to cancel execution of this task.
*/
void cancel();
}
|
apache/xmlbeans | 1,052 | src/main/java/org/apache/xmlbeans/impl/values/XmlNormalizedStringImpl.java | /* Copyright 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 org.apache.xmlbeans.impl.values;
import org.apache.xmlbeans.SchemaType;
import org.apache.xmlbeans.XmlNormalizedString;
public class XmlNormalizedStringImpl extends JavaStringHolderEx implements XmlNormalizedString
{
public XmlNormalizedStringImpl()
{ super(XmlNormalizedString.type, false); }
public XmlNormalizedStringImpl(SchemaType type, boolean complex)
{ super(type, complex); }
}
|
apache/xmlgraphics-fop | 1,041 | fop-core/src/main/java/org/apache/fop/render/pdf/extensions/PDFVTElement.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* $Id$ */
package org.apache.fop.render.pdf.extensions;
import org.apache.fop.fo.FONode;
public class PDFVTElement extends PDFDictionaryElement {
PDFVTElement(FONode parent) {
super(parent, PDFDictionaryType.VT);
}
}
|
google/cdep | 1,047 | cdep/src/main/java/io/cdep/cdep/ast/finder/ParameterAssignmentExpression.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.ast.finder;
import io.cdep.annotations.NotNull;
@SuppressWarnings("unused")
public class ParameterAssignmentExpression extends Expression {
@NotNull
final public ParameterExpression parameter;
@NotNull
final public Expression expression;
public ParameterAssignmentExpression(@NotNull ParameterExpression parameter, @NotNull Expression expression) {
this.parameter = parameter;
this.expression = expression;
}
}
|
google/copybara | 1,055 | java/com/google/copybara/exception/AccessValidationException.java | /*
* Copyright (C) 2020 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.google.copybara.exception;
/**
* A special case of {@link ValidationException} when the error is likely to be a user error related
* to access to the repo (access denied, not found, etc.)
*/
public class AccessValidationException extends ValidationException {
public AccessValidationException(String message) {
super(message);
}
public AccessValidationException(String message, Throwable cause) {
super(message, cause);
}
}
|
google/guava | 1,065 | android/guava/src/com/google/common/eventbus/package-info.java | /*
* Copyright (C) 2007 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.
*/
/**
* {@linkplain EventBus Discouraged} in favor of dependency injection and concurrency frameworks,
* EventBus allows publish-subscribe-style communication.
*
* <p>See the Guava User Guide article on <a
* href="https://github.com/google/guava/wiki/EventBusExplained">{@code EventBus}</a>.
*/
@CheckReturnValue
@NullMarked
package com.google.common.eventbus;
import com.google.errorprone.annotations.CheckReturnValue;
import org.jspecify.annotations.NullMarked;
|
google/j2cl | 1,024 | transpiler/javatests/com/google/j2cl/integration/java/morebridgemethods/TestCase9226.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
*
* 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 morebridgemethods;
import static com.google.j2cl.integration.testing.Asserts.assertTrue;
public class TestCase9226 {
static class B<B1> {
public String get(String value) {
return "B get String";
}
}
static class C extends B<String> {}
public static void test() {
C c = new C();
assertTrue(((B) c).get("").equals("B get String"));
assertTrue(c.get("").equals("B get String"));
}
}
|
google/j2cl | 1,025 | junit/generator/javatests/com/google/j2cl/junit/apt/JUnit4TestCaseNonVoidReturnTypeClassMethod.java | /*
* Copyright 2022 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
package com.google.j2cl.junit.apt;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
/** A simple Unit test to test processing in {@link J2clTestingProcessingStepTest}. */
@RunWith(JUnit4.class)
public class JUnit4TestCaseNonVoidReturnTypeClassMethod {
@BeforeClass
public static Object beforeClass() {
return null;
}
@Test
public void test() {}
}
|
google/j2cl | 1,068 | jre/java/java/util/concurrent/ExecutionException.java | // CHECKSTYLE_OFF: Copyrighted to Guava Authors.
/*
* Copyright (C) 2011 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.
*/
// CHECKSTYLE_ON
package java.util.concurrent;
/** Emulation of ExecutionException. */
public class ExecutionException extends Exception {
protected ExecutionException() {}
protected ExecutionException(String message) {
super(message);
}
public ExecutionException(String message, Throwable cause) {
super(message, cause);
}
public ExecutionException(Throwable cause) {
super(cause);
}
}
|
google/j2objc | 1,033 | jre_emul/android/platform/libcore/luni/src/main/java/libcore/reflect/ListOfVariables.java | /*
* Copyright (C) 2008 The Android Open Source Project
*
* 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 libcore.reflect;
import java.lang.reflect.TypeVariable;
import java.util.ArrayList;
final class ListOfVariables {
final ArrayList<TypeVariable<?>> array = new ArrayList<TypeVariable<?>>();
void add (TypeVariable<?> elem) {
array.add(elem);
}
TypeVariable<?>[] getArray() {
TypeVariable<?>[] a = new TypeVariable[array.size()];
return array.toArray(a);
}
}
|
google/nomulus | 1,025 | prober/src/main/java/google/registry/monitoring/blackbox/exception/UnrecoverableStateException.java | // Copyright 2019 The Nomulus Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package google.registry.monitoring.blackbox.exception;
/**
* Exception thrown when error is severe enough that sequence cannot recover, and should be
* terminated as a result.
*/
public class UnrecoverableStateException extends UndeterminedStateException {
public UnrecoverableStateException(String msg) {
super(msg);
}
public UnrecoverableStateException(Throwable e) {
super(e);
}
}
|
google/startup-os | 1,068 | examples/dagger/example1/Class1Impl.java | /*
* Copyright 2018 The StartupOS Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.google.startupos.examples.dagger.example1;
class Class1Impl implements Class1Interface {
private boolean booleanValue;
@Override
public void setTrue() {
this.booleanValue = true;
System.out.println("Class1Impl.setTrue()");
}
@Override
public void setFalse() {
this.booleanValue = false;
System.out.println("Class1Impl.setFalse()");
}
@Override
public boolean getBooleanValue() {
return booleanValue;
}
}
|
google/startup-os | 1,068 | examples/dagger/example2/Class1Impl.java | /*
* Copyright 2018 The StartupOS Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.google.startupos.examples.dagger.example2;
class Class1Impl implements Class1Interface {
private boolean booleanValue;
@Override
public void setTrue() {
this.booleanValue = true;
System.out.println("Class1Impl.setTrue()");
}
@Override
public void setFalse() {
this.booleanValue = false;
System.out.println("Class1Impl.setFalse()");
}
@Override
public boolean getBooleanValue() {
return booleanValue;
}
}
|
googleapis/sdk-platform-java | 1,031 | java-core/google-cloud-core/src/main/java/com/google/cloud/ServiceDefaults.java | /*
* Copyright 2017 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES 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.cloud;
import com.google.cloud.spi.ServiceRpcFactory;
import java.io.Serializable;
public interface ServiceDefaults<
ServiceT extends Service<OptionsT>, OptionsT extends ServiceOptions<ServiceT, OptionsT>>
extends Serializable {
ServiceFactory<ServiceT, OptionsT> getDefaultServiceFactory();
ServiceRpcFactory<OptionsT> getDefaultRpcFactory();
TransportOptions getDefaultTransportOptions();
}
|
googlemaps/google-maps-services-java | 1,033 | src/main/java/com/google/maps/errors/AccessNotConfiguredException.java | /*
* Copyright 2015 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.maps.errors;
/**
* Indicates that the API call was not configured for the supplied credentials and environmental
* conditions. Check the error message for details.
*/
public class AccessNotConfiguredException extends ApiException {
private static final long serialVersionUID = -9167434506751721386L;
public AccessNotConfiguredException(String errorMessage) {
super(errorMessage);
}
}
|
hibernate/hibernate-orm | 1,026 | hibernate-core/src/main/java/org/hibernate/query/criteria/JpaMapJoin.java | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.query.criteria;
import java.util.Map;
import org.hibernate.metamodel.model.domain.EntityDomainType;
import jakarta.persistence.criteria.Expression;
import jakarta.persistence.criteria.MapJoin;
import jakarta.persistence.criteria.Predicate;
/**
* Specialization of {@link JpaJoin} for {@link java.util.Map} typed attribute joins
*
* @author Steve Ebersole
*/
public interface JpaMapJoin<O,K,V> extends JpaPluralJoin<O, Map<K, V>, V>, MapJoin<O,K,V> {
@Override
JpaMapJoin<O, K, V> on(JpaExpression<Boolean> restriction);
@Override
JpaMapJoin<O, K, V> on(Expression<Boolean> restriction);
@Override
JpaMapJoin<O, K, V> on(JpaPredicate... restrictions);
@Override
JpaMapJoin<O, K, V> on(Predicate... restrictions);
@Override
<S extends V> JpaTreatedJoin<O, V, S> treatAs(Class<S> treatAsType);
@Override
<S extends V> JpaTreatedJoin<O, V, S> treatAs(EntityDomainType<S> treatJavaType);
}
|
openjdk/jdk8 | 1,077 | langtools/test/com/sun/javadoc/testUseOption/UsedInC.java | /*
* Copyright (c) 2011, 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 UsedInC
{
}
|
openjdk/jdk8 | 1,077 | langtools/test/tools/javac/processing/6350124/Marked.java | /*
* Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
@Marker
class Marked {
}
|
openjdk/jdk8 | 1,082 | langtools/test/tools/javac/T6232928/package-info.java | /*
* Copyright (c) 2005, 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.
*/
@Deprecated
package T6232928;
|
openjdk/jdk8 | 1,084 | langtools/test/com/sun/javadoc/AccessH1/p1/C.java | /*
* Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package p1;
public class C {
}
|
openjdk/jtreg | 1,095 | test/libBuildArgs/lib/bad/Bad1.java | /*
* Copyright (c) 2016, 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 bad;
public class Bad1 {
#
}
|
openjdk/jtreg | 1,095 | test/libBuildArgs/lib/bad/Bad2.java | /*
* Copyright (c) 2016, 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 bad;
public class Bad2 {
#
}
|
oracle/nosql | 1,064 | kvmain/src/main/java/oracle/kv/impl/security/MethodHandler.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.security;
import java.lang.reflect.Method;
/**
* A common interface for calling proxy methods through reflection.
*/
interface MethodHandler {
/**
* Call the method with the provided arguments. The target of the method
* call is implied by the implementation.
*
* @param method a Method that should be called
* @param args an argument list that should be passed to the method
* @return an unspecified return type
* @throws Exception
*/
Object invoke(Method method, Object[] args)
throws Exception;
}
|
oracle/oci-java-sdk | 1,045 | bmc-common/src/main/java/com/oracle/bmc/http/signing/internal/KeySupplier.java | /**
* Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved.
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
*/
package com.oracle.bmc.http.signing.internal;
import jakarta.annotation.Nonnull;
import java.util.Optional;
import com.oracle.bmc.InternalSdk;
/**
* Interface for anything that can get supply a Key of type T given a keyId
*
* @param <T> the type of the key that will be supplied
*/
@InternalSdk(backwardCompatibilityRequired = true)
public interface KeySupplier<T> {
/**
* Try to get a key for the given KeyId
*
* @param keyId the identifier of the key to try to supply
* @return an Optional for the key, or empty if the key cannot be found.
*/
@InternalSdk(backwardCompatibilityRequired = true)
@Nonnull
Optional<T> supplyKey(@Nonnull final String keyId);
}
|
oracle/oci-java-sdk | 1,046 | bmc-common/src/main/java/com/oracle/bmc/auth/exception/AuthServerException.java | /**
* Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved.
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
*/
package com.oracle.bmc.auth.exception;
import com.oracle.bmc.model.BmcException;
/** Exception thrown when something goes wrong on the authentication server. */
public class AuthServerException extends BmcException {
private static final long serialVersionUID = 1L;
private static final String MESSAGE = "Error happened calling server. ";
public AuthServerException(BmcException e) {
this(MESSAGE + e.getMessage(), e);
}
public AuthServerException(String message, BmcException cause) {
super(
cause.getStatusCode(),
cause.getServiceCode(),
message,
cause.getOpcRequestId(),
cause);
}
}
|
apache/commons-io | 1,063 | src/main/java/org/apache/commons/io/input/buffer/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.
*/
/**
* Provides implementations of buffered input classes, such as
* {@link org.apache.commons.io.input.buffer.CircularBufferInputStream} and
* {@link org.apache.commons.io.input.buffer.PeekableInputStream}.
*/
package org.apache.commons.io.input.buffer;
|
apache/commons-ognl | 1,039 | src/test/java/org/apache/commons/ognl/test/objects/OtherObjectIndexed.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.commons.ognl.test.objects;
public class OtherObjectIndexed
extends BaseObjectIndexed
{
public OtherObjectIndexed()
{
setAttribute( "foo", "bar" );
setAttribute( "bar", "baz" );
}
}
|
apache/ctakes | 1,040 | ctakes-ytex/src/main/java/org/apache/ctakes/ytex/kernel/evaluator/CacheKeyGenerator.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.ctakes.ytex.kernel.evaluator;
import java.lang.reflect.Method;
public interface CacheKeyGenerator {
public Object getCacheKey(Method method, Object[] args);
public Object getCacheKey(Object o1, Object o2);
}
|
apache/cxf | 1,039 | systests/uncategorized/src/test/java/org/apache/cxf/systest/schemaimport/TestEndpoint.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.systest.schemaimport;
import jakarta.jws.WebService;
@WebService(name = "TestEndpoint", targetNamespace = "http://cxf.apache.org/schemaimport")
public interface TestEndpoint {
String echo(String message);
}
|
apache/cxf | 1,041 | rt/frontend/jaxrs/src/test/java/org/apache/cxf/jaxrs/fortest/jaxb/jaxbelement/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://jaxbelement/10",
elementFormDefault = jakarta.xml.bind.annotation.XmlNsForm.QUALIFIED)
package org.apache.cxf.jaxrs.fortest.jaxb.jaxbelement;
|
apache/cxf | 1,063 | tools/javato/ws/src/test/java/org/apache/xmladapter/Money.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.xmladapter;
import java.util.Currency;
public class Money {
protected Currency currency;
public Currency getCurrency() {
return currency;
}
public void setCurrency(Currency val) {
currency = val;
}
}
|
apache/directory-kerby | 1,026 | kerby-kerb/kerb-core/src/main/java/org/apache/kerby/kerberos/kerb/type/pa/pkinit/DhNonce.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.kerby.kerberos.kerb.type.pa.pkinit;
import org.apache.kerby.asn1.type.Asn1OctetString;
/**
* DHNonce ::= OCTET STRING
*/
public class DhNonce extends Asn1OctetString {
}
|
apache/directory-server | 1,028 | protocol-dhcp/src/main/java/org/apache/directory/server/dhcp/messages/package-info.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
/**
* Provides message objects for DHCP messages.
*
* @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
*/
package org.apache.directory.server.dhcp.messages;
|
apache/dolphinscheduler | 1,028 | dolphinscheduler-dao/src/main/java/org/apache/dolphinscheduler/dao/mapper/SessionMapper.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.dolphinscheduler.dao.mapper;
import org.apache.dolphinscheduler.dao.entity.Session;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
public interface SessionMapper extends BaseMapper<Session> {
}
|
apache/eventmesh | 1,034 | eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/boot/EventMeshBootstrap.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.eventmesh.runtime.boot;
/**
* concrete server bootstrap
*/
public interface EventMeshBootstrap {
void init() throws Exception;
void start() throws Exception;
void shutdown() throws Exception;
}
|
apache/felix-dev | 1,042 | gogo/runtime/src/main/java/org/apache/felix/gogo/runtime/util/function/Function.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.gogo.runtime.util.function;
// This interface was added to ease conversion of existing runtime bundle code
// targeting java 8 back to target java 7.
public interface Function<T, R> {
R apply(T t);
}
|
apache/geode | 1,025 | geode-membership/src/main/java/org/apache/geode/distributed/internal/membership/gms/messages/HasMemberID.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional information regarding
* copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License. You may obtain a
* copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.distributed.internal.membership.gms.messages;
import org.apache.geode.distributed.internal.membership.api.MemberIdentifier;
public interface HasMemberID<ID extends MemberIdentifier> {
ID getMemberID();
}
|
apache/geode | 1,045 | geode-lucene/src/main/java/org/apache/geode/cache/lucene/internal/directory/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.
*/
/**
* An implementation of Lucene's {@link org.apache.lucene.store.Directory} interface that uses the
* filesystem API in {@link org.apache.geode.cache.lucene.internal.filesystem.FileSystem}
*/
package org.apache.geode.cache.lucene.internal.directory;
|
apache/gobblin | 1,063 | gobblin-core/src/main/java/org/apache/gobblin/writer/Retriable.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.writer;
import com.github.rholder.retry.RetryerBuilder;
/**
* Interface that provides RetryerBuilder so that specific Retry logic can be injected.
*/
public interface Retriable {
public RetryerBuilder<Void> getRetryerBuilder();
} |
apache/groovy | 1,049 | src/test/groovy/org/codehaus/groovy/ast/decompiled/support/Groovy8632Abstract.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.codehaus.groovy.ast.decompiled.support;
public abstract class Groovy8632Abstract {
Groovy8632Abstract(Builder builder) {}
public abstract static class Builder {}
public abstract class InnerBuilder {}
}
|
apache/hadoop-common | 1,025 | hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/compress/lz4/package-info.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
@InterfaceAudience.Private
@InterfaceStability.Unstable
package org.apache.hadoop.io.compress.lz4;
import org.apache.hadoop.classification.InterfaceAudience;
import org.apache.hadoop.classification.InterfaceStability;
|
apache/hama | 1,074 | core/src/main/java/org/apache/hama/bsp/InputFormat.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.hama.bsp;
import java.io.IOException;
public interface InputFormat<K, V> {
InputSplit[] getSplits(BSPJob job, int numBspTask) throws IOException;
RecordReader<K, V> getRecordReader(InputSplit split, BSPJob job)
throws IOException;
}
|
apache/harmony | 1,050 | classlib/modules/awt/src/main/java/common/java/awt/event/FocusListener.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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.event;
import java.util.EventListener;
public interface FocusListener extends EventListener {
public void focusGained(FocusEvent e);
public void focusLost(FocusEvent e);
}
|
apache/harmony | 1,065 | classlib/modules/beans/src/main/java/java/beans/Customizer.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package java.beans;
public interface Customizer {
public void setObject(Object bean);
public void removePropertyChangeListener(PropertyChangeListener listener);
public void addPropertyChangeListener(PropertyChangeListener listener);
}
|
apache/hbase | 1,049 | hbase-common/src/main/java/org/apache/hadoop/hbase/util/IOExceptionRunnable.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.util;
import java.io.IOException;
import org.apache.yetus.audience.InterfaceAudience;
@InterfaceAudience.Private
@FunctionalInterface
public interface IOExceptionRunnable {
void run() throws IOException;
}
|
apache/hive | 1,053 | ql/src/java/org/apache/hadoop/hive/ql/exec/vector/expressions/ILongInExpr.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.exec.vector.expressions;
/**
* Interface used for both filter and non-filter versions of IN to simplify
* VectorizationContext code.
*/
public interface ILongInExpr {
void setInListValues(long[] inVals);
}
|
apache/hudi | 1,031 | hudi-flink-datasource/hudi-flink2.0.x/src/main/java/org/apache/hudi/adapter/SinkFunctionAdapter.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.hudi.adapter;
import org.apache.flink.streaming.api.functions.sink.legacy.SinkFunction;
/**
* Adapter clazz for {@link SinkFunction}.
*/
public interface SinkFunctionAdapter<I> extends SinkFunction<I> {
}
|
apache/iggy | 1,052 | foreign/java/java-sdk/src/main/java/org/apache/iggy/stream/StreamBase.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.iggy.stream;
import java.math.BigInteger;
public record StreamBase(
Long id,
BigInteger createdAt,
String name,
String size,
BigInteger messagesCount,
Long topicsCount
) {
}
|
apache/ignite-3 | 1,044 | modules/cli/src/main/java/org/apache/ignite/internal/cli/sql/SchemaProvider.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.ignite.internal.cli.sql;
/**
* Database schema provider.
*/
public interface SchemaProvider {
/**
* Retrieves DB schema.
*
* @return instance of {@link SqlSchema}.
*/
SqlSchema getSchema();
}
|
apache/ignite | 1,037 | modules/core/src/main/java/org/apache/ignite/internal/processors/port/GridPortListener.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.ignite.internal.processors.port;
import java.util.EventListener;
/**
* Listener for port change events.
*/
public interface GridPortListener extends EventListener {
/** */
public void onPortChange();
}
|
apache/impala | 1,058 | fe/src/main/java/org/apache/impala/common/NotImplementedException.java | // Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.
package org.apache.impala.common;
/**
* Thrown for SQL statements that require as yet unimplemented functionality.
*
*/
public class NotImplementedException extends ImpalaException {
public NotImplementedException(String msg) {
super(msg);
}
}
|
apache/incubator-kie-drools | 1,025 | drools-drl/drools-drl-extensions/src/main/java/org/drools/drl/extensions/YamlProvider.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.drools.drl.extensions;
import org.kie.api.internal.utils.KieService;
import org.kie.api.io.Resource;
public interface YamlProvider extends KieService {
String loadFromResource(Resource resource);
}
|
apache/incubator-kie-drools | 1,048 | drools-core/src/main/java/org/drools/core/common/MemoryFactory.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.drools.core.common;
import org.drools.core.RuleBaseConfiguration;
public interface MemoryFactory<T extends Memory> {
int getMemoryId();
T createMemory(RuleBaseConfiguration config, ReteEvaluator reteEvaluator);
}
|
apache/incubator-livy | 1,028 | thriftserver/session/src/main/java/org/apache/livy/thriftserver/session/CatalogJobState.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.livy.thriftserver.session;
import java.util.Iterator;
public class CatalogJobState {
final Iterator<Object[]> iter;
public CatalogJobState(Iterator<Object[]> iter) {
this.iter = iter;
}
}
|
apache/incubator-weex | 1,051 | android/sdk/src/main/java/org/apache/weex/common/IWXDebugConfig.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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;
import org.apache.weex.bridge.WXBridgeManager;
import org.apache.weex.bridge.WXDebugJsBridge;
public interface IWXDebugConfig {
WXBridgeManager getWXJSManager();
WXDebugJsBridge getWXDebugJsBridge();
}
|
apache/inlong | 1,028 | inlong-manager/manager-common/src/main/java/org/apache/inlong/manager/common/conversion/MBToMB.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.inlong.manager.common.conversion;
/**
* Convert MB to MB.
*/
public class MBToMB implements ConversionStrategy {
@Override
public Integer unitConversion(Integer value) {
return value;
}
}
|
apache/inlong | 1,038 | inlong-common/src/main/java/org/apache/inlong/common/pojo/dataproxy/IRepository.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.inlong.common.pojo.dataproxy;
/**
* IRepository
*/
public interface IRepository {
long DEFAULT_HEARTBEAT_INTERVAL_MS = 60000;
String SEPARATOR = "&";
String KEY_VALUE_SEPARATOR = "=";
void reload();
}
|
apache/iotdb-web-workbench | 1,043 | backend/src/main/java/org/apache/iotdb/admin/model/vo/DataInfo.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.iotdb.admin.model.vo;
import lombok.Data;
import java.io.Serializable;
@Data
public class DataInfo implements Serializable {
private String dataType;
private String newValue;
private Integer dataCount;
}
|
apache/jena | 1,036 | jena-integration-tests/src/test/java/org/apache/jena/test/txn/TS_TranactionIntegration.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.jena.test.txn;
import org.junit.platform.suite.api.SelectClasses;
import org.junit.platform.suite.api.Suite;
@Suite
@SelectClasses({
TestDataset2Graph.class
})
public class TS_TranactionIntegration {
}
|
apache/jena | 1,060 | jena-arq/src/main/java/org/apache/jena/http/auth/AuthException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.http.auth;
import org.apache.jena.shared.JenaException;
public class AuthException extends JenaException {
public AuthException() {
super();
}
public AuthException(String msg) {
super(msg);
}
}
|
apache/jmeter | 1,047 | src/components/src/main/java/org/apache/jmeter/timers/BeanShellTimerBeanInfo.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to you under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.jmeter.timers;
import org.apache.jmeter.util.BeanShellBeanInfoSupport;
public class BeanShellTimerBeanInfo extends BeanShellBeanInfoSupport {
public BeanShellTimerBeanInfo() {
super(BeanShellTimer.class);
}
}
|
apache/kafka | 1,042 | storage/src/main/java/org/apache/kafka/storage/internals/checkpoint/OffsetCheckpoints.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.storage.internals.checkpoint;
import org.apache.kafka.common.TopicPartition;
import java.util.Optional;
public interface OffsetCheckpoints {
Optional<Long> fetch(String logDir, TopicPartition topicPartition);
}
|
apache/nifi | 1,008 | nifi-framework-bundle/nifi-framework/nifi-framework-core-api/src/main/java/org/apache/nifi/events/ComponentBulletin.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.events;
import org.apache.nifi.reporting.Bulletin;
/**
*
*/
public class ComponentBulletin extends Bulletin {
ComponentBulletin(final long id) {
super(id);
}
}
|
apache/openmeetings | 1,038 | openmeetings-core/src/main/java/org/apache/openmeetings/core/util/ws/WsMessageAll.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License") + you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.openmeetings.core.util.ws;
import org.apache.openmeetings.util.ws.IClusterWsMessage;
public record WsMessageAll(String msg) implements IClusterWsMessage {
private static final long serialVersionUID = 1L;
}
|
apache/openwebbeans | 1,017 | webbeans-impl/src/test/java/org/apache/webbeans/test/injection/injectionpoint/beans/PropertyEncryptor.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.webbeans.test.injection.injectionpoint.beans;
public class PropertyEncryptor {
public String decryptProperty(String decryptPropertyValue) {
return decryptPropertyValue;
}
}
|
apache/ozone | 1,039 | hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/fs/ozone/TestO3FSWithFSO.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.hadoop.fs.ozone;
import org.junit.jupiter.api.TestInstance;
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
class TestO3FSWithFSO extends AbstractOzoneFileSystemTestWithFSO {
TestO3FSWithFSO() {
super();
}
}
|
apache/ozone | 1,060 | hadoop-hdds/common/src/main/java/org/apache/hadoop/ozone/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.
*/
/**
* This package contains class that support ozone implementation on the datanode
* side. Datanode container classes support persistence of ozone objects on
* datanode. These classes live under container directory.
*/
package org.apache.hadoop.ozone;
|
apache/paimon-webui | 1,032 | paimon-web-server/src/main/java/org/apache/paimon/web/server/data/dto/MetadataDTO.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.web.server.data.dto;
import lombok.Data;
/** DTO of metadata. */
@Data
public class MetadataDTO {
private Integer catalogId;
private String databaseName;
private String tableName;
}
|
apache/paimon | 1,058 | paimon-api/src/main/java/org/apache/paimon/rest/auth/AuthProvider.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.paimon.rest.auth;
import java.util.Map;
/** Authentication provider. */
public interface AuthProvider {
Map<String, String> mergeAuthHeader(
Map<String, String> baseHeader, RESTAuthParameter restAuthParameter);
}
|
apache/pdfbox | 1,055 | pdfbox/src/main/java/org/apache/pdfbox/rendering/RenderDestination.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.pdfbox.rendering;
/**
* Optional content groups are visible depending on the render purpose.
*/
public enum RenderDestination
{
/** graphics export */
EXPORT,
/** viewing */
VIEW,
/** printing */
PRINT
} |
apache/pekko | 1,057 | actor/src/main/java/org/apache/pekko/actor/AbstractActorRef.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* license agreements; and to You under the Apache License, version 2.0:
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* This file is part of the Apache Pekko project, which was derived from Akka.
*/
/*
* Copyright (C) 2009-2022 Lightbend Inc. <https://www.lightbend.com>
*/
package org.apache.pekko.actor;
import java.lang.invoke.MethodHandles;
import java.lang.invoke.VarHandle;
final class AbstractActorRef {
static final VarHandle cellHandle;
static final VarHandle lookupHandle;
static {
try {
MethodHandles.Lookup lookup =
MethodHandles.privateLookupIn(RepointableActorRef.class, MethodHandles.lookup());
cellHandle =
lookup.findVarHandle(RepointableActorRef.class, "_cellDoNotCallMeDirectly", Cell.class);
lookupHandle =
lookup.findVarHandle(RepointableActorRef.class, "_lookupDoNotCallMeDirectly", Cell.class);
} catch (Throwable t) {
throw new ExceptionInInitializerError(t);
}
}
}
|
apache/phoenix | 1,031 | phoenix-core-client/src/main/java/org/apache/phoenix/expression/util/regex/AbstractBaseSplitter.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.phoenix.expression.util.regex;
import org.apache.hadoop.hbase.io.ImmutableBytesWritable;
public abstract interface AbstractBaseSplitter {
public abstract boolean split(ImmutableBytesWritable srcPtr);
}
|
apache/poi | 1,057 | poi-ooxml/src/main/java/org/apache/poi/xddf/usermodel/text/XDDFBulletSize.java | /* ====================================================================
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
==================================================================== */
package org.apache.poi.xddf.usermodel.text;
import org.apache.poi.util.Beta;
@Beta
public interface XDDFBulletSize {
}
|
apache/poi | 1,077 | poi/src/main/java/org/apache/poi/ss/formula/SheetRange.java | /* ====================================================================
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
==================================================================== */
package org.apache.poi.ss.formula;
public interface SheetRange {
public int getFirstSheetIndex();
public int getLastSheetIndex();
}
|
apache/polygene-java | 1,031 | tutorials/services/src/main/java/org/apache/polygene/tutorials/services/step3/Library.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.tutorials.services.step3;
public interface Library
{
void createInitialData();
Book borrowBook( String author, String title );
void returnBook( Book book );
} |
apache/reef | 1,049 | lang/java/reef-tang/tang/src/main/java/org/apache/reef/tang/types/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.
*/
/**
* The interfaces that define Tang's ClassHierarchy objects. ClassHierarchies
* can be thought of as read-only caches of the reflection data that is
* produced when applications are compiled.
*/
package org.apache.reef.tang.types;
|
apache/rocketmq-dashboard | 1,047 | src/main/java/org/apache/rocketmq/dashboard/service/ProxyService.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.dashboard.service;
import java.util.Map;
public interface ProxyService {
void addProxyAddrList(String proxyAddr);
void updateProxyAddrList(String proxyAddr);
Map<String, Object> getProxyHomePage();
}
|
apache/rocketmq | 1,035 | auth/src/main/java/org/apache/rocketmq/auth/authentication/strategy/AuthenticationStrategy.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.auth.authentication.strategy;
import org.apache.rocketmq.auth.authentication.context.AuthenticationContext;
public interface AuthenticationStrategy {
void evaluate(AuthenticationContext context);
}
|
apache/royale-asjs | 1,057 | mustella/src/main/java/marmotinni/TestOutput.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package marmotinni;
/**
* The class that collects TestResults for a TestCase
*/
public class TestOutput
{
/**
* get printable version of phase
*/
public static void logResult(String message) {
System.out.println(message);
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.