repo_id stringclasses 875
values | size int64 974 38.9k | file_path stringlengths 10 308 | content stringlengths 974 38.9k |
|---|---|---|---|
apache/polaris | 1,131 | polaris-core/src/main/java/org/apache/polaris/core/persistence/resolver/ResolverFactory.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.polaris.core.persistence.resolver;
import jakarta.annotation.Nonnull;
import jakarta.annotation.Nullable;
import jakarta.ws.rs.core.SecurityContext;
public interface ResolverFactory {
Resolver createResolver(
@Nonnull SecurityContext securityContext, @Nullable String referenceCatalogName);
}
|
apache/polygene-java | 1,107 | libraries/logging/src/main/java/org/apache/polygene/library/logging/debug/records/EntityDebugRecordEntity.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.library.logging.debug.records;
import org.apache.polygene.api.association.Association;
import org.apache.polygene.api.entity.EntityComposite;
public interface EntityDebugRecordEntity extends DebugRecord
{
Association<EntityComposite> source();
}
|
apache/polygene-java | 1,116 | libraries/rest/src/main/java/org/apache/polygene/library/rest/admin/RestServerConfiguration.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.library.rest.admin;
import org.apache.polygene.api.common.UseDefaults;
import org.apache.polygene.api.property.Property;
/**
* RestServer Configuration.
*/
public interface RestServerConfiguration
{
@UseDefaults( "8192" )
Property<Integer> port();
}
|
apache/polygene-java | 1,120 | manual/src/main/java/org/apache/polygene/manual/recipes/createEntity/CarEntityFactoryService.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.manual.recipes.createEntity;
import org.apache.polygene.api.mixin.Mixins;
// START SNIPPET: carFactoryService
@Mixins( { CarEntityFactoryMixin.class } )
public interface CarEntityFactoryService
extends CarEntityFactory
{}
// END SNIPPET: carFactoryService
|
apache/pulsar | 1,114 | tests/integration/src/test/java/org/apache/pulsar/tests/integration/docker/ContainerExecResultBytes.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.tests.integration.docker;
import lombok.Data;
/**
* Represents the result of executing a command.
*/
@Data(staticConstructor = "of")
public class ContainerExecResultBytes {
private final long exitCode;
private final byte[] stdout;
private final byte[] stderr;
}
|
apache/qpid-jms | 1,120 | qpid-jms-client/src/main/java/org/apache/qpid/jms/transports/netty/NettySslTransportFactory.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.qpid.jms.transports.netty;
/**
* Creates a Netty based SSL transport.
*/
public class NettySslTransportFactory extends NettyTcpTransportFactory {
@Override
public String getName() {
return "SSL";
}
@Override
public boolean isSecure() {
return true;
}
}
|
apache/rocketmq | 1,143 | client/src/main/java/org/apache/rocketmq/client/consumer/PullStatus.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.rocketmq.client.consumer;
public enum PullStatus {
/**
* Founded
*/
FOUND,
/**
* No new message can be pull
*/
NO_NEW_MSG,
/**
* Filtering results can not match
*/
NO_MATCHED_MSG,
/**
* Illegal offset,may be too big or too small
*/
OFFSET_ILLEGAL
}
|
apache/royale-compiler | 1,144 | linter/src/main/java/org/apache/royale/linter/problems/ILinterProblem.java | ////////////////////////////////////////////////////////////////////////////////
//
// Licensed to the Apache Software Foundation (ASF) under one or more
// contributor license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright ownership.
// The ASF licenses this file to You under the Apache License, Version 2.0
// (the "License"); you may not use this file except in compliance with
// the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS 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.linter.problems;
import org.apache.royale.compiler.problems.ICompilerProblem;
public interface ILinterProblem extends ICompilerProblem {
}
|
apache/samza | 1,142 | samza-api/src/main/java/org/apache/samza/system/chooser/MessageChooserFactory.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.samza.system.chooser;
import org.apache.samza.config.Config;
import org.apache.samza.metrics.MetricsRegistry;
/**
* Build an instance of a {@link org.apache.samza.system.chooser.MessageChooser}
*/
public interface MessageChooserFactory {
MessageChooser getChooser(Config config, MetricsRegistry registry);
}
|
apache/seatunnel-web | 1,105 | seatunnel-server/seatunnel-app/src/main/java/org/apache/seatunnel/app/domain/request/job/transform/Split.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.seatunnel.app.domain.request.job.transform;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.List;
@Data
@EqualsAndHashCode(callSuper = true)
public class Split extends TransformOption {
private String separator;
private List<String> outputFields;
}
|
apache/sedona | 1,143 | common/src/test/java/org/apache/sedona/common/telemetry/TelemetryTest.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.sedona.common.telemetry;
import org.apache.sedona.common.utils.TelemetryCollector;
import org.junit.Test;
public class TelemetryTest {
@Test
public void testTelemetryCollector() {
assert TelemetryCollector.send("test", "java")
.contains("https://sedona.gateway.scarf.sh/packages/java/test");
}
}
|
apache/servicecomb-java-chassis | 1,084 | swagger/swagger-generator/generator-core/src/main/java/org/apache/servicecomb/swagger/generator/rest/RestSwaggerGenerator.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.servicecomb.swagger.generator.rest;
import org.apache.servicecomb.swagger.generator.core.AbstractSwaggerGenerator;
public abstract class RestSwaggerGenerator extends AbstractSwaggerGenerator {
public RestSwaggerGenerator(Class<?> cls) {
super(cls);
}
}
|
apache/servicecomb-java-chassis | 1,103 | common/common-rest/src/main/java/org/apache/servicecomb/common/rest/codec/header/HeaderCodecCsv.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.servicecomb.common.rest.codec.header;
public class HeaderCodecCsv extends HeaderCodecWithDelimiter {
public static final String CODEC_NAME = "form:0";
public static final String DELIMITER = ",";
public HeaderCodecCsv() {
super(CODEC_NAME, DELIMITER, DELIMITER);
}
}
|
apache/servicecomb-java-chassis | 1,106 | common/common-rest/src/main/java/org/apache/servicecomb/common/rest/definition/path/UrlParamWriter.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.servicecomb.common.rest.definition.path;
import java.util.Map;
import org.apache.servicecomb.common.rest.definition.path.URLPathBuilder.URLPathStringBuilder;
public interface UrlParamWriter {
void write(URLPathStringBuilder builder, Map<String, Object> args) throws Exception;
}
|
apache/servicecomb-java-chassis | 1,120 | governance/src/main/java/org/apache/servicecomb/governance/policy/MapperPolicy.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.servicecomb.governance.policy;
import java.util.Map;
public class MapperPolicy extends AbstractPolicy {
private Map<String, String> target;
public Map<String, String> getTarget() {
return target;
}
public void setTarget(Map<String, String> target) {
this.target = target;
}
}
|
apache/shardingsphere | 1,117 | infra/spi/src/test/java/org/apache/shardingsphere/infra/spi/type/ordered/fixture/OrderedSPIFixture.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.shardingsphere.infra.spi.type.ordered.fixture;
import org.apache.shardingsphere.infra.spi.type.ordered.OrderedSPI;
import org.apache.shardingsphere.infra.spi.annotation.SingletonSPI;
@SingletonSPI
public interface OrderedSPIFixture<T extends OrderedInterfaceFixture> extends OrderedSPI<T> {
}
|
apache/shenyu | 1,116 | shenyu-protocol/shenyu-protocol-tcp/src/main/java/org/apache/shenyu/protocol/tcp/connection/Bridge.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.shenyu.protocol.tcp.connection;
import reactor.netty.Connection;
/**
* Bridge.
*/
public interface Bridge {
/**
* bridge.
*
* @param server tcp server connection
* @param client tcp client connection
*/
void bridge(Connection server, Connection client);
}
|
apache/skywalking-satellite | 1,123 | test/e2e/base/consumer/src/main/java/org/apache/skywalking/e2e/E2EConfiguration.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.e2e;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
@Data
@Configuration
@ConfigurationProperties("e2e")
public class E2EConfiguration {
private String providerBaseUrl;
}
|
apache/skywalking | 1,100 | oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/query/type/ContinuousProfilingURICause.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package org.apache.skywalking.oap.server.core.query.type;
import lombok.Data;
/**
* Continuous profiling task URI-based cause
*/
@Data
public class ContinuousProfilingURICause {
private String uriRegex;
private String uriPath;
private long threshold;
private long current;
} |
apache/solr | 1,160 | solr/core/src/java/org/apache/solr/core/ShutdownAwareDirectory.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.core;
import java.io.IOException;
import org.apache.lucene.store.Directory;
/**
* {@link CachingDirectoryFactory} will call this method rather than {@link Directory#close()} on
* shutdown if a Directory implements this interface.
*/
public interface ShutdownAwareDirectory {
public void closeOnShutdown() throws IOException;
}
|
apache/stanbol | 1,127 | entityhub/model/sesame/src/main/java/org/apache/stanbol/entityhub/model/sesame/RdfWrapper.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.stanbol.entityhub.model.sesame;
import org.openrdf.model.Value;
/**
* Interface that allows access to the wrapped Sesame {@link Value}
* @author Rupert Westenthaler
*
*/
public interface RdfWrapper {
/**
* Getter for the wrapped Sesame {@link Value}
* @return the value
*/
Value getValue();
} |
apache/storm | 1,157 | storm-client/src/jvm/org/apache/storm/streams/operations/Consumer.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version
* 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package org.apache.storm.streams.operations;
/**
* Represents an operation that accepts a single input argument and returns no result.
*
* @param <T> the type of the input argument
*/
public interface Consumer<T> extends Operation {
/**
* Performs an operation on the given argument.
*
* @param input the input
*/
void accept(T input);
}
|
apache/stratos | 1,092 | components/org.apache.stratos.metadata.service/src/main/java/org/apache/stratos/metadata/service/exception/MetadataException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.stratos.metadata.service.exception;
public class MetadataException extends Exception {
public MetadataException(String message, Throwable cause) {
super(message, cause);
}
public MetadataException(String message) {
super(message);
}
}
|
apache/streampark | 1,061 | streampark-flink/streampark-flink-connector/streampark-flink-connector-base/src/main/java/org/apache/streampark/flink/connector/function/RunningFunction.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.streampark.flink.connector.function;
import java.io.Serializable;
@FunctionalInterface
public interface RunningFunction extends Serializable {
/**
* Is it running...
*
* @return Boolean: isRunning
*/
Boolean running();
}
|
apache/streampipes | 1,100 | streampipes-wrapper-siddhi/src/main/java/org/apache/streampipes/wrapper/siddhi/query/expression/LesserEqualsExpression.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package org.apache.streampipes.wrapper.siddhi.query.expression;
public class LesserEqualsExpression extends RelationalOperatorExpression {
public LesserEqualsExpression(PropertyExpressionBase exp1, PropertyExpressionBase exp2) {
super(RelationalOperator.LESSER_EQUALS, exp1, exp2);
}
}
|
apache/streams | 1,140 | streams-core/src/main/java/org/apache/streams/core/StreamsPersistReader.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.streams.core;
import org.joda.time.DateTime;
import java.math.BigInteger;
/**
* Currently a duplicate interface. Has exact same methods as StreamsProvider.
*/
public interface StreamsPersistReader extends StreamsProvider {
StreamsResultSet readAll();
StreamsResultSet readNew(BigInteger sequence);
StreamsResultSet readRange(DateTime start, DateTime end);
}
|
apache/struts | 1,153 | core/src/main/java/org/apache/struts2/util/ContentTypeMatcher.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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;
import java.util.Map;
/**
* Matches content type of uploaded files, similar to {@link org.apache.struts2.util.PatternMatcher}
*
* @since 2.3.22
*/
public interface ContentTypeMatcher<E extends Object> {
E compilePattern(String data);
boolean match(Map<String,String> map, String data, E expr);
}
|
apache/struts | 1,155 | core/src/main/java/org/apache/struts2/inject/Factory.java | /**
* Copyright (C) 2006 Google Inc.
* <p>
* 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
* </p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.struts2.inject;
/**
* A custom factory. Creates objects which will be injected.
*
* @author crazybob@google.com (Bob Lee)
*/
public interface Factory<T> {
/**
* Creates an object to be injected.
*
* @param context of this injection
* @return instance to be injected
* @throws Exception if unable to create object
*/
T create(Context context) throws Exception;
/**
* Returns a class of <T>
*
* @return class of the object
*/
Class<? extends T> type();
}
|
apache/syncope | 1,113 | common/am/lib/src/main/java/org/apache/syncope/common/lib/clientapps/DefaultUsernameAttributeProviderConf.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.syncope.common.lib.clientapps;
public class DefaultUsernameAttributeProviderConf extends AbstractAttributeProviderConf {
private static final long serialVersionUID = 4315599812817709524L;
@Override
public void map(final Mapper mapper) {
mapper.map(this);
}
}
|
apache/syncope | 1,120 | core/provisioning-api/src/main/java/org/apache/syncope/core/provisioning/api/data/RoleDataBinder.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.syncope.core.provisioning.api.data;
import org.apache.syncope.common.lib.to.RoleTO;
import org.apache.syncope.core.persistence.api.entity.Role;
public interface RoleDataBinder {
Role create(RoleTO roleTO);
Role update(Role role, RoleTO roleTO);
RoleTO getRoleTO(Role role);
}
|
apache/systemds | 1,150 | src/main/java/org/apache/sysds/runtime/matrix/data/Converter.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.sysds.runtime.matrix.data;
import org.apache.hadoop.io.Writable;
public interface Converter<K1 extends Writable, V1 extends Writable,
K2 extends Writable, V2 extends Writable>
{
public void convert(K1 k1, V1 v1);
public void setBlockSize(int rl, int cl);
public boolean hasNext();
public Pair<K2, V2> next();
}
|
apache/tajo | 1,149 | tajo-algebra/src/main/java/org/apache/tajo/algebra/BooleanLiteral.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.tajo.algebra;
public class BooleanLiteral extends LiteralValue {
public static final String TRUE = "TRUE";
public static final String FALSE = "FALSE";
public BooleanLiteral(boolean value) {
super(value ? TRUE : FALSE, LiteralType.Boolean);
}
public boolean isTrue() {
return value.equals(TRUE);
}
}
|
apache/tapestry-5 | 1,138 | tapestry-clojure/src/main/java/org/apache/tapestry5/clojure/ClojureBuilder.java | // Copyright 2012 The Apache Software Foundation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package org.apache.tapestry5.clojure;
/**
* Creates a proxy for the interface that delegates each method to a Clojure function.
*/
public interface ClojureBuilder
{
/**
* Creates the proxy. Method names are converted to Clojure function names.
*
* @param interfaceType
* type of interface. Must have the {@link Namespace} annotation. Not null.
* @return the proxy
* @param <T> the interface type.
* @see MethodToFunctionSymbolMapper
*/
<T> T build(Class<T> interfaceType);
}
|
apache/tomee | 1,125 | itests/openejb-itests-beans/src/main/java/org/apache/openejb/test/AnnotatedApplicationException.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.openejb.test;
@jakarta.ejb.ApplicationException(rollback = true)
public class AnnotatedApplicationException extends RuntimeException {
public AnnotatedApplicationException(final String message) {
super(message);
}
public AnnotatedApplicationException() {
super();
}
}
|
apache/tomee | 1,130 | server/openejb-rest/src/main/java/org/apache/openejb/server/rest/OpenEJBRestRuntimeException.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.openejb.server.rest;
public class OpenEJBRestRuntimeException extends RuntimeException {
public OpenEJBRestRuntimeException(String message) {
super(message);
}
public OpenEJBRestRuntimeException(final String message, final Throwable cause) {
super(message, cause);
}
}
|
apache/uima-uimaj | 1,118 | uimaj-ep-cas-editor/src/main/java/org/apache/uima/caseditor/editor/fsview/ITypePaneListener.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.uima.caseditor.editor.fsview;
import org.apache.uima.cas.Type;
/**
* Notifies clients about type changes.
*/
public interface ITypePaneListener {
/**
* Called after the type was changed.
*
* @param newType
* the new type
*/
void typeChanged(Type newType);
} |
apache/uniffle | 1,145 | client/src/main/java/org/apache/uniffle/client/api/ShuffleReadClient.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.uniffle.client.api;
import org.apache.uniffle.client.response.ShuffleBlock;
import org.apache.uniffle.common.ShuffleReadTimes;
public interface ShuffleReadClient {
ShuffleBlock readShuffleBlockData();
void checkProcessedBlockIds();
void close();
void logStatics();
ShuffleReadTimes getShuffleReadTimes();
}
|
apache/xmlbeans | 1,163 | src/main/java/org/apache/xmlbeans/XmlAnyURI.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;
import org.apache.xmlbeans.impl.schema.XmlObjectFactory;
/**
* Corresponds to the XML Schema
* <a target="_blank" href="http://www.w3.org/TR/xmlschema-2/#anyURI">xs:anyURI</a> type.
* <p>
* Convertible to {@link String}.
*/
public interface XmlAnyURI extends XmlAnySimpleType {
XmlObjectFactory<XmlAnyURI> Factory = new XmlObjectFactory<>("_BI_anyURI");
/**
* The constant {@link SchemaType} object representing this schema type.
*/
SchemaType type = Factory.getType();
}
|
apache/xmlgraphics-fop | 1,134 | fop-core/src/main/java/org/apache/fop/fo/properties/BreakPropertySet.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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.fo.properties;
/**
* Defines property access methods for the break-before and break-after properties.
*/
public interface BreakPropertySet {
/** @return the "break-after" property. */
int getBreakAfter();
/** @return the "break-before" property. */
int getBreakBefore();
}
|
apache/zeppelin | 1,138 | zeppelin-server/src/main/java/org/apache/zeppelin/server/JsonExclusionStrategy.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.zeppelin.server;
import com.google.gson.ExclusionStrategy;
import com.google.gson.FieldAttributes;
public class JsonExclusionStrategy implements ExclusionStrategy {
public boolean shouldSkipClass(Class<?> arg0) {
return false;
}
public boolean shouldSkipField(FieldAttributes f) {
return false;
}
}
|
google/bindiff | 1,093 | java/ui/src/main/java/com/google/security/zynamics/bindiff/gui/dialogs/criteriadialog/operators/OrCriterionPanel.java | // Copyright 2011-2024 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.security.zynamics.bindiff.gui.dialogs.criteriadialog.operators;
public class OrCriterionPanel extends AbstractOperatorPanel {
public OrCriterionPanel() {
super();
}
@Override
public String getBorderTitle() {
return "OR Operator";
}
@Override
public String getInvalidInfoString() {
return "OR operator needs at least two child conditions or operators.";
}
@Override
public String getValidInfoString() {
return "OR Operator is valid.";
}
}
|
google/copybara | 1,133 | javatests/com/google/copybara/git/gitlab/api/entities/ListUsersParamsTest.java | /*
* Copyright (C) 2025 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.copybara.git.gitlab.api.entities;
import static com.google.common.truth.Truth.assertThat;
import com.google.copybara.git.gitlab.api.entities.GitLabApiParams.Param;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
@RunWith(JUnit4.class)
public class ListUsersParamsTest {
@Test
public void params_setCorrectly() {
ListUsersParams underTest = new ListUsersParams("capybara");
assertThat(underTest.params()).containsExactly(new Param("username", "capybara"));
}
}
|
google/crunchy | 1,147 | crunchy/java/src/main/java/com/google/security/crunchy/CrunchyVerifier.java | // Copyright 2017 The CrunchyCrypt Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.security.crunchy;
import java.security.GeneralSecurityException;
/** An interface for asymmetric cryptographic verification. */
public interface CrunchyVerifier {
/**
* Verifies a message.
*
* @param message The message to be verified.
* @param message The signature to be verified.
* @throws GeneralSecurityException If the signature is invalid or if the underlying crypto
* library returns an error.
*/
public void verify(byte[] message, byte[] signature) throws GeneralSecurityException;
}
|
google/filament | 1,141 | android/filament-android/src/main/java/com/google/android/filament/Entity.java | /*
* Copyright (C) 2017 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 com.google.android.filament;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.LOCAL_VARIABLE;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.ElementType.PARAMETER;
import static java.lang.annotation.RetentionPolicy.CLASS;
@Retention(CLASS)
@Target({PARAMETER, METHOD, LOCAL_VARIABLE, FIELD})
public @interface Entity {
int NULL = 0;
}
|
google/gitiles | 1,168 | java/com/google/gitiles/doc/MultiColumnBlock.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.gitiles.doc;
import org.commonmark.node.CustomBlock;
import org.commonmark.node.Heading;
/**
* Multi-column layout delineated by {@code |||---|||}.
*
* <p>Each {@link Heading} or {@link BlockNote} within the layout begins a new {@link Column} in the
* HTML.
*/
public class MultiColumnBlock extends CustomBlock {
/** Grid is 12 columns wide. */
public static final int GRID_WIDTH = 12;
/** Column within a {@link MultiColumnBlock}. */
public static class Column extends CustomBlock {
int span;
boolean empty;
}
}
|
google/guava | 1,141 | guava-tests/test/com/google/common/collect/CompactLinkedHashMapFloodingTest.java | /*
* Copyright (C) 2012 The Guava Authors
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
package com.google.common.collect;
import static java.lang.Math.log;
import com.google.common.annotations.GwtIncompatible;
import java.util.Map;
import org.jspecify.annotations.NullUnmarked;
@GwtIncompatible
@NullUnmarked
public class CompactLinkedHashMapFloodingTest
extends AbstractHashFloodingTest<Map<Object, Object>> {
public CompactLinkedHashMapFloodingTest() {
super(
ImmutableList.of(Construction.mapFromKeys(CompactLinkedHashMap::create)),
n -> n * log(n),
ImmutableList.of(QueryOp.MAP_GET));
}
}
|
google/shipshape | 1,134 | third_party/kythe/java/com/google/devtools/kythe/platform/shared/FileDataProvider.java | /*
* Copyright 2014 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.devtools.kythe.platform.shared;
import java.util.concurrent.Future;
/**
* Arbitrary provider of file data that could be backed by local/networked filesystems, cloud
* storage, SQL database, etc.
*/
public interface FileDataProvider {
/**
* Returns a {@link Future<byte[]>} for the contents of the file described by the given path and
* digest. At least one of path or digest must be specified for each file lookup.
*/
public Future<byte[]> startLookup(String path, String digest);
} |
googleapis/google-cloud-java | 1,037 | java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1/src/main/java/com/google/shopping/merchant/datasources/v1/ProductReviewDataSourceOrBuilder.java | /*
* Copyright 2025 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/shopping/merchant/datasources/v1/datasourcetypes.proto
// Protobuf Java Version: 3.25.8
package com.google.shopping.merchant.datasources.v1;
public interface ProductReviewDataSourceOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.shopping.merchant.datasources.v1.ProductReviewDataSource)
com.google.protobuf.MessageOrBuilder {}
|
googleapis/google-cloud-java | 1,042 | java-bare-metal-solution/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/EnableInteractiveSerialConsoleResponseOrBuilder.java | /*
* Copyright 2025 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/baremetalsolution/v2/instance.proto
// Protobuf Java Version: 3.25.8
package com.google.cloud.baremetalsolution.v2;
public interface EnableInteractiveSerialConsoleResponseOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.EnableInteractiveSerialConsoleResponse)
com.google.protobuf.MessageOrBuilder {}
|
googleapis/google-cloud-java | 1,047 | java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DiscardBlueprintChangesResponseOrBuilder.java | /*
* Copyright 2025 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto
// Protobuf Java Version: 3.25.8
package com.google.cloud.telcoautomation.v1alpha1;
public interface DiscardBlueprintChangesResponseOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesResponse)
com.google.protobuf.MessageOrBuilder {}
|
googleapis/sdk-platform-java | 1,096 | gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/grpc/ServiceSettingsClassComposer.java | // Copyright 2021 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.api.generator.gapic.composer.grpc;
import com.google.api.generator.gapic.composer.common.AbstractServiceSettingsClassComposer;
public class ServiceSettingsClassComposer extends AbstractServiceSettingsClassComposer {
private static final ServiceSettingsClassComposer INSTANCE = new ServiceSettingsClassComposer();
protected ServiceSettingsClassComposer() {
super(GrpcContext.instance());
}
public static ServiceSettingsClassComposer instance() {
return INSTANCE;
}
}
|
googleapis/sdk-platform-java | 1,096 | gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/rest/ServiceSettingsClassComposer.java | // Copyright 2021 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.api.generator.gapic.composer.rest;
import com.google.api.generator.gapic.composer.common.AbstractServiceSettingsClassComposer;
public class ServiceSettingsClassComposer extends AbstractServiceSettingsClassComposer {
private static final ServiceSettingsClassComposer INSTANCE = new ServiceSettingsClassComposer();
protected ServiceSettingsClassComposer() {
super(RestContext.instance());
}
public static ServiceSettingsClassComposer instance() {
return INSTANCE;
}
}
|
googleapis/sdk-platform-java | 1,113 | gapic-generator-java/src/main/java/com/google/api/generator/engine/ast/OperatorKind.java | // Copyright 2020 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.api.generator.engine.ast;
import java.util.EnumSet;
public enum OperatorKind {
ARITHMETIC_ADDITION,
LOGICAL_AND,
LOGICAL_OR,
ASSIGNMENT_XOR,
ASSIGNMENT_MULTIPLY,
RELATIONAL_EQUAL_TO,
RELATIONAL_NOT_EQUAL_TO,
RELATIONAL_LESS_THAN,
UNARY_LOGICAL_NOT,
UNARY_POST_INCREMENT;
private static final EnumSet<OperatorKind> PREFIX_OPERATORS_SET =
EnumSet.of(OperatorKind.UNARY_LOGICAL_NOT);
public boolean isPrefixOperator() {
return PREFIX_OPERATORS_SET.contains(this);
}
}
|
googlearchive/caja | 1,164 | src/com/google/caja/parser/js/SimpleOperation.java | // Copyright (C) 2008 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.caja.parser.js;
import com.google.caja.lexer.FilePosition;
import java.util.List;
/**
* An Operation that simply evaluates all its children in order as rValues and
* then returns a result computed from the resulting values.
*
* @author erights@gmail.com
*/
public final class SimpleOperation extends Operation {
private static final long serialVersionUID = 5200781674229059403L;
@ReflectiveCtor
public SimpleOperation(
FilePosition pos, Operator value, List<? extends Expression> children) {
super(pos, value, children);
}
}
|
googlemaps/google-maps-services-java | 1,135 | src/main/java/com/google/maps/model/DistanceMatrixRow.java | /*
* Copyright 2014 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.model;
import java.io.Serializable;
/**
* Represents a single row in a Distance Matrix API response. A row represents the results for a
* single origin.
*/
public class DistanceMatrixRow implements Serializable {
private static final long serialVersionUID = 1L;
/** The results for this row, or individual origin. */
public DistanceMatrixElement[] elements;
@Override
public String toString() {
return String.format("[DistanceMatrixRow %d elements]", elements.length);
}
}
|
hibernate/hibernate-orm | 1,081 | hibernate-core/src/main/java/org/hibernate/event/spi/PostUpdateEvent.java | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.event.spi;
import org.hibernate.engine.spi.SharedSessionContractImplementor;
import org.hibernate.persister.entity.EntityPersister;
/**
* Occurs after the datastore is updated
*
* @author Gavin King
*/
public class PostUpdateEvent extends AbstractPostDatabaseOperationEvent {
private final Object[] state;
private final Object[] oldState;
// list of dirty properties as computed during a FlushEntityEvent
private final int[] dirtyProperties;
public PostUpdateEvent(
Object entity,
Object id,
Object[] state,
Object[] oldState,
int[] dirtyProperties,
EntityPersister persister,
SharedSessionContractImplementor source) {
super( source, entity, id, persister );
this.state = state;
this.oldState = oldState;
this.dirtyProperties = dirtyProperties;
}
public Object[] getOldState() {
return oldState;
}
public Object[] getState() {
return state;
}
public int[] getDirtyProperties() {
return dirtyProperties;
}
}
|
hibernate/hibernate-orm | 1,138 | hibernate-core/src/main/java/org/hibernate/query/sqm/ParsingException.java | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.query.sqm;
import org.hibernate.QueryException;
/**
* Occurs when an unexpected condition is encountered while interpreting the
* output of the HQL parser. This exception represents some sort of bug in
* the parser, whereas {@link org.hibernate.query.SyntaxException} indicates
* a problem with the query itself.
*
* @apiNote This exception type should not be used to report any expected
* kind of failure which could occur due to user error. It should
* only be used to assert that a condition should never occur. Of
* course, this exception usually occurs when a query has some sort
* of error. But its occurrence indicates that the query parser
* should have detected and reported that error earlier, in a more
* meaningful way, via a {@code SyntaxException}.
*
* @author Steve Ebersole
*
* @see InterpretationException
*/
public class ParsingException extends QueryException {
public ParsingException(String message) {
super( message );
}
}
|
hibernate/hibernate-search | 1,034 | integrationtest/mapper/orm/src/test/java/org/hibernate/search/integrationtest/mapper/orm/schema/management/strategy/SchemaManagementStrategyCreateOrValidateIT.java | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.search.integrationtest.mapper.orm.schema.management.strategy;
import org.hibernate.search.mapper.orm.schema.management.SchemaManagementStrategyName;
import org.hibernate.search.util.impl.integrationtest.common.extension.SchemaManagementWorkBehavior;
import org.hibernate.search.util.impl.integrationtest.common.stub.backend.index.StubSchemaManagementWork;
public class SchemaManagementStrategyCreateOrValidateIT extends AbstractSchemaManagementStrategyValidatingIT {
@Override
protected SchemaManagementStrategyName getStrategyName() {
return SchemaManagementStrategyName.CREATE_OR_VALIDATE;
}
@Override
protected void expectWork(String indexName, SchemaManagementWorkBehavior behavior) {
backendMock.expectSchemaManagementWorks( indexName )
.work( StubSchemaManagementWork.Type.CREATE_OR_VALIDATE, behavior );
}
@Override
protected void expectOnClose(String indexName) {
// No expectation
}
}
|
hibernate/hibernate-search | 1,042 | lucene-next/backend/lucene/src/main/java/org/hibernate/search/backend/lucene/lowlevel/collector/impl/TimeoutCountCollector.java | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.search.backend.lucene.lowlevel.collector.impl;
import org.hibernate.search.engine.common.timing.Deadline;
import org.apache.lucene.search.ScoreMode;
import org.apache.lucene.search.SimpleCollector;
/**
* Counts the total hit, as {@link org.apache.lucene.search.TotalHitCountCollector} does.
* Moreover, it periodically checks for timeout.
*
*/
public class TimeoutCountCollector extends SimpleCollector {
private final Deadline deadline;
public TimeoutCountCollector(Deadline deadline) {
this.deadline = deadline;
}
private int totalHits;
/** Returns how many hits matched the search. */
public int getTotalHits() {
return totalHits;
}
@Override
public void collect(int doc) {
// Check for timeout each 256 elements:
if ( totalHits % 256 == 0 ) {
deadline.checkRemainingTimeMillis();
}
totalHits++;
}
@Override
public ScoreMode scoreMode() {
return ScoreMode.COMPLETE_NO_SCORES;
}
}
|
hibernate/hibernate-validator | 1,040 | integrationtest/java/modules/cdi/src/test/java/org/hibernate/validator/integrationtest/java/module/cdi/constraint/JavaModulePathIT.java | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.validator.integrationtest.java.module.cdi.constraint;
import static org.hibernate.validator.testutil.ConstraintViolationAssert.assertThat;
import static org.hibernate.validator.testutil.ConstraintViolationAssert.violationOf;
import jakarta.validation.Validation;
import jakarta.validation.Validator;
import org.hibernate.validator.HibernateValidator;
import org.hibernate.validator.integrationtest.java.module.cdi.model.Car;
import org.testng.annotations.Test;
public class JavaModulePathIT {
@Test
public void test() {
Validator validator = Validation.byProvider( HibernateValidator.class )
.configure()
.buildValidatorFactory()
.getValidator();
assertThat( validator.validate( new Car() ) ).containsOnlyViolations(
violationOf( CarServiceConstraint.class ).withMessage( "CarServiceConstraint:message" ),
violationOf( CarConstraint.class ).withMessage( "CarConstraint:message" )
);
}
}
|
openjdk/jdk8 | 1,151 | jaxp/src/com/sun/org/apache/xpath/internal/axes/PathComponent.java | /*
* reserved comment block
* DO NOT REMOVE OR ALTER!
*/
/*
* Copyright 1999-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.
*/
/*
* $Id: PathComponent.java,v 1.1.2.1 2005/08/01 01:30:27 jeffsuttor Exp $
*/
package com.sun.org.apache.xpath.internal.axes;
/**
* Classes who implement this information provide information needed for
* static analysis of a path component.
*/
public interface PathComponent
{
/**
* Get the analysis bits for this path component, as defined in the WalkerFactory.
* @return One of WalkerFactory#BIT_DESCENDANT, etc.
*/
public int getAnalysisBits();
}
|
openjdk/jdk8 | 1,160 | jdk/test/sun/rmi/rmic/RMIGenerator/packagedir/RmicMeInterface.java | /*
* Copyright (c) 1999, 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 packagedir;
import java.rmi.Remote;
public interface RmicMeInterface extends Remote {}
|
openjdk/jdk8 | 1,162 | langtools/test/tools/javac/diags/examples/InvalidAnnoMemberType.java | /*
* Copyright (c) 2010, 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.
*/
// key: compiler.err.invalid.annotation.member.type
@interface InvalidAnnoMemberType {
Object value();
}
|
openjdk/jdk8 | 1,171 | langtools/test/tools/javac/policy/test1/A.java | /*
* Copyright (c) 2005, 2008, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
class A
{
A() {
D d = new D();
}
}
class A1
{
A1() {
}
}
class A2
{
A2() {
}
}
|
openjdk/jdk8 | 1,172 | langtools/test/tools/javac/diags/examples/LambdaStat.java | /*
* Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
// key: compiler.note.lambda.stat
// options: -XDdumpLambdaToMethodStats
class LambdaStat {
Runnable r = ()->{};
}
|
openjdk/jtreg | 1,185 | test/ignoreTag/IgnoreTest.java | /*
* Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @ignore
*/
/*
* @test
* @run ignore
*/
/*
* @test
* @ignore reason
*/
/*
* @test
* @run ignore reason
*/
|
openjdk/skara | 1,178 | args/src/main/java/org/openjdk/skara/args/Main.java | /*
* Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package org.openjdk.skara.args;
@FunctionalInterface
public interface Main {
void main(String[] args) throws Exception;
}
|
oracle/coherence | 1,094 | prj/coherence-core/src/main/java/com/tangosol/coherence/config/builder/storemanager/BinaryStoreManagerBuilderCustomization.java | /*
* Copyright (c) 2000, 2020, Oracle and/or its affiliates.
*
* Licensed under the Universal Permissive License v 1.0 as shown at
* http://oss.oracle.com/licenses/upl.
*/
package com.tangosol.coherence.config.builder.storemanager;
import com.tangosol.io.BinaryStoreManager;
/**
* A {@link BinaryStoreManagerBuilderCustomization} class is one that allows or potentially requires,
* a {@link BinaryStoreManagerBuilder} for the purposes of realizing a {@link BinaryStoreManager}.
*
* @author bo 2012.02.10
* @since Coherence 12.1.2
*/
public interface BinaryStoreManagerBuilderCustomization
{
/**
* Obtains the {@link BinaryStoreManagerBuilder} for the {@link BinaryStoreManager}.
*
* @return the {@link BinaryStoreManagerBuilder}
*/
public BinaryStoreManagerBuilder getBinaryStoreManagerBuilder();
/**
* Sets the {@link BinaryStoreManagerBuilder} for the {@link BinaryStoreManager}.
*
* @param bldr the {@link BinaryStoreManagerBuilder}
*/
public void setBinaryStoreManagerBuilder(BinaryStoreManagerBuilder bldr);
}
|
apache/commons-logging | 1,155 | src/test/java/org/apache/commons/logging/DummyException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.commons.logging;
/**
* Dummy exception that unit tests create instances of when they want to test
* logging of an Exception object.
*/
public class DummyException extends Exception {
private static final long serialVersionUID = 1L;
public DummyException() {
// super("Dummy Exception for unit testing");
}
}
|
apache/cxf | 1,128 | rt/rs/security/jose-parent/jose/src/main/java/org/apache/cxf/rs/security/jose/jwe/JweEncryption.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.rs.security.jose.jwe;
public class JweEncryption extends AbstractJweEncryption {
public JweEncryption(KeyEncryptionProvider keyEncryptionAlgorithm,
ContentEncryptionProvider contentEncryptionAlgo) {
super(contentEncryptionAlgo, keyEncryptionAlgorithm);
}
}
|
apache/cxf | 1,155 | rt/frontend/jaxrs/src/test/java/org/apache/cxf/jaxrs/Customer2.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.jaxrs;
public class Customer2 extends Customer {
public Customer2() {
}
public Customer2(String name) {
if (Character.isLowerCase(((CharSequence)name).charAt(0))) {
throw new IllegalArgumentException();
}
//CHECKSTYLE:OFF
setName(name);
//CHECKSTYLE:ON
}
}
|
apache/deltaspike | 1,102 | deltaspike/modules/data/impl/src/main/java/org/apache/deltaspike/data/impl/builder/part/ConnectingQueryPart.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.deltaspike.data.impl.builder.part;
abstract class ConnectingQueryPart extends QueryPart
{
protected final boolean first;
public ConnectingQueryPart(boolean first)
{
this.first = first;
}
public boolean isFirst()
{
return first;
}
}
|
apache/derby | 1,139 | java/org.apache.derby.engine/org/apache/derby/iapi/util/Matchable.java | /*
Derby - Class org.apache.derby.iapi.util.Matchable
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to you under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package org.apache.derby.iapi.util;
/**
Provides the ability for an object to
match a subset of a group of other objects.
E.g in a cache.
*/
public interface Matchable {
/**
Return true if the passed in object matches
this object.
*/
public boolean match(Object other);
}
|
apache/directory-server | 1,127 | core-avl/src/main/java/org/apache/directory/server/core/avltree/Position.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.directory.server.core.avltree;
/**
* Enum to track the position of a cursor.
*
* @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
*/
enum Position
{
BEFORE_FIRST,
BEFORE_NODE,
ON_NODE,
AFTER_NODE,
AFTER_LAST
} |
apache/dolphinscheduler | 1,065 | dolphinscheduler-task-plugin/dolphinscheduler-task-api/src/main/java/org/apache/dolphinscheduler/plugin/task/api/loop/LoopTaskCancelMethodDefinition.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.plugin.task.api.loop;
import javax.annotation.Nullable;
public interface LoopTaskCancelMethodDefinition extends LoopTaskMethodDefinition {
void cancelTaskInstance(@Nullable LoopTaskInstanceInfo loopTaskInstanceInfo);
}
|
apache/doris-manager | 1,120 | manager/dm-common/src/main/java/org/apache/doris/manager/common/heartbeat/HeartBeatContext.java | // Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.
package org.apache.doris.manager.common.heartbeat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.List;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class HeartBeatContext {
List<HeartBeatEventInfo> events;
List<InstanceInfo> instanceInfos;
}
|
apache/doris-manager | 1,132 | manager/resource-common/src/main/java/org/apache/doris/stack/util/StringUtil.java | // Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.
package org.apache.doris.stack.util;
public class StringUtil {
private StringUtil() {
throw new UnsupportedOperationException();
}
public static boolean trimStrEmpty(String str) {
if (str == null) {
return true;
}
str = str.trim();
return str.isEmpty();
}
}
|
apache/druid | 1,145 | processing/src/test/java/org/apache/druid/segment/TestObjectColumnSelector.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.druid.segment;
import org.apache.druid.query.monomorphicprocessing.RuntimeShapeInspector;
public abstract class TestObjectColumnSelector<T> extends ObjectBasedColumnSelector<T>
{
@Override
public void inspectRuntimeShape(RuntimeShapeInspector inspector)
{
// Don't care about runtime shape in tests
}
}
|
apache/druid | 1,145 | server/src/main/java/org/apache/druid/query/RetryQueryRunnerConfig.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.druid.query;
import com.fasterxml.jackson.annotation.JsonProperty;
public class RetryQueryRunnerConfig
{
@JsonProperty
private int numTries = 1;
public int getNumTries()
{
return numTries;
}
// exists for testing and overrides
public boolean isReturnPartialResults()
{
return false;
}
}
|
apache/dubbo | 1,104 | dubbo-remoting/dubbo-remoting-netty4/src/main/java/org/apache/dubbo/remoting/transport/netty4/NettySslContextOperator.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.dubbo.remoting.transport.netty4;
import org.apache.dubbo.remoting.api.ssl.ContextOperator;
import io.netty.handler.ssl.SslContext;
public class NettySslContextOperator implements ContextOperator {
@Override
public SslContext buildContext() {
return null;
}
}
|
apache/dubbo | 1,118 | dubbo-remoting/dubbo-remoting-api/src/main/java/org/apache/dubbo/remoting/exchange/HeartBeatRequest.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.dubbo.remoting.exchange;
public class HeartBeatRequest extends Request {
private byte proto;
public HeartBeatRequest(long id) {
super(id);
}
public byte getProto() {
return proto;
}
public void setProto(byte proto) {
this.proto = proto;
}
}
|
apache/eagle | 1,108 | eagle-core/eagle-query/eagle-audit-base/src/main/java/org/apache/eagle/audit/entity/repo/AuditEntityRepository.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.eagle.audit.entity.repo;
import org.apache.eagle.audit.entity.GenericAuditEntity;
import org.apache.eagle.log.entity.repo.EntityRepository;
public class AuditEntityRepository extends EntityRepository {
public AuditEntityRepository() {
entitySet.add(GenericAuditEntity.class);
}
}
|
apache/eagle | 1,127 | eagle-jpm/eagle-jpm-service/src/main/java/org/apache/eagle/service/jpm/suggestion/SuggestionFunc.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.eagle.service.jpm.suggestion;
import org.apache.eagle.service.jpm.MRTaskExecutionResponse.JobSuggestionResponse;
import org.apache.eagle.service.jpm.MRTaskExecutionResponse.TaskGroupResponse;
public interface SuggestionFunc {
JobSuggestionResponse apply(TaskGroupResponse data);
}
|
apache/eventmesh | 1,105 | eventmesh-admin-server/src/main/java/org/apache/eventmesh/admin/server/web/db/service/EventMeshJobInfoExtService.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.admin.server.web.db.service;
import org.apache.eventmesh.admin.server.web.db.entity.EventMeshJobInfo;
import java.util.List;
/**
* ext operator for table event_mesh_job
*/
public interface EventMeshJobInfoExtService {
int batchSave(List<EventMeshJobInfo> jobs);
}
|
apache/eventmesh | 1,108 | eventmesh-admin-server/src/main/java/org/apache/eventmesh/admin/server/web/db/service/EventMeshMonitorService.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.admin.server.web.db.service;
import org.apache.eventmesh.admin.server.web.db.entity.EventMeshMonitor;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* event_mesh_monitor
*/
public interface EventMeshMonitorService extends IService<EventMeshMonitor> {
}
|
apache/felix-dev | 1,078 | ipojo/runtime/core-it/ipojo-core-factory-test/src/main/java/org/apache/felix/ipojo/runtime/core/services/FooService.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.felix.ipojo.runtime.core.services;
import java.util.Properties;
public interface FooService {
boolean foo();
Properties fooProps();
Boolean getObject();
boolean getBoolean();
int getInt();
long getLong();
double getDouble();
}
|
apache/flink | 1,114 | flink-table/flink-table-common/src/main/java/org/apache/flink/table/data/columnar/vector/DecimalColumnVector.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.flink.table.data.columnar.vector;
import org.apache.flink.annotation.Internal;
import org.apache.flink.table.data.DecimalData;
/** Decimal column vector. */
@Internal
public interface DecimalColumnVector extends ColumnVector {
DecimalData getDecimal(int i, int precision, int scale);
}
|
apache/geaflow | 1,096 | geaflow/geaflow-core/geaflow-engine/geaflow-shuffle/src/main/java/org/apache/geaflow/shuffle/util/SliceNotFoundException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.geaflow.shuffle.util;
import java.io.IOException;
import org.apache.geaflow.shuffle.message.SliceId;
public class SliceNotFoundException extends IOException {
public SliceNotFoundException(SliceId sliceId) {
super("Slice not found:" + sliceId);
}
}
|
apache/geaflow | 1,108 | geaflow/geaflow-plugins/geaflow-store/geaflow-store-api/src/main/java/org/apache/geaflow/store/StoreDesc.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.geaflow.store;
/**
* The store descriptor is used for telling the store attributes.
*/
public interface StoreDesc {
/**
* Returns the store is local or not.
*/
boolean isLocalStore();
/**
* Returns the store type name.
*/
String name();
}
|
apache/geaflow | 1,111 | geaflow/geaflow-dsl/geaflow-dsl-runtime/src/main/java/org/apache/geaflow/dsl/runtime/command/IQueryCommand.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.geaflow.dsl.runtime.command;
import org.apache.calcite.sql.SqlNode;
import org.apache.geaflow.dsl.runtime.QueryContext;
import org.apache.geaflow.dsl.runtime.QueryResult;
public interface IQueryCommand {
QueryResult execute(QueryContext context);
SqlNode getSqlNode();
}
|
apache/geaflow | 1,120 | geaflow-console/app/biz/shared/src/main/java/org/apache/geaflow/console/biz/shared/StatementManager.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.geaflow.console.biz.shared;
import org.apache.geaflow.console.biz.shared.view.StatementView;
import org.apache.geaflow.console.common.dal.model.StatementSearch;
public interface StatementManager extends IdManager<StatementView, StatementSearch> {
boolean dropByJobId(String jobId);
}
|
apache/geode | 1,133 | geode-core/src/distributedTest/java/org/apache/geode/security/NoShowValue1PostProcessor.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional information regarding
* copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License. You may obtain a
* copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.security;
public class NoShowValue1PostProcessor implements PostProcessor {
@Override
public Object processRegionValue(final Object principal, final String regionName,
final Object key, final Object value) {
if (value.equals("value1")) {
return null;
} else {
return value;
}
}
}
|
apache/gobblin | 1,141 | gobblin-salesforce/src/main/java/org/apache/gobblin/salesforce/FileIdVO.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.salesforce;
import lombok.Data;
/**
* FileIdVO class
*/
@Data
public class FileIdVO {
private final String jobId;
private final String batchId;
private final String resultId;
public String toString() {
return String.format("[jobId=%s, batchId=%s, resultId=%s]", jobId, batchId, resultId);
}
}
|
apache/gobblin | 1,145 | gobblin-core-base/src/main/java/org/apache/gobblin/writer/WriteCallback.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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 org.apache.gobblin.async.Callback;
public interface WriteCallback<T> extends Callback<WriteResponse<T>> {
WriteCallback EMPTY = new WriteCallback<Object>() {
@Override
public void onSuccess(WriteResponse result) {}
@Override
public void onFailure(Throwable throwable) {}
};
}
|
apache/gobblin | 1,146 | gobblin-core-base/src/main/java/org/apache/gobblin/writer/LargeMessagePolicy.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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;
/**
* Describes how single messages that are larger than a batch message limit should be treated
*/
public enum LargeMessagePolicy {
DROP, // drop (and log) messages that exceed the threshold
ATTEMPT, // attempt to deliver messages that exceed the threshold
FAIL // throw an error when this happens
}
|
apache/groovy | 1,120 | subprojects/groovy-contracts/src/main/java/org/apache/groovy/contracts/ast/visitor/ASTNodeMetaData.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.groovy.contracts.ast.visitor;
/**
* Holds all constants to be used as AST node metadata keys.
*/
public interface ASTNodeMetaData {
String PROCESSED = "org.apache.groovy.contracts.PROCESSED";
String CLOSURE_REPLACED = "org.apache.groovy.contracts.CLOSURE_REPLACED";
}
|
apache/hadoop-common | 1,055 | hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-common/src/main/java/org/apache/hadoop/mapreduce/v2/api/protocolrecords/KillTaskRequest.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.mapreduce.v2.api.protocolrecords;
import org.apache.hadoop.mapreduce.v2.api.records.TaskId;
public interface KillTaskRequest {
public abstract TaskId getTaskId();
public abstract void setTaskId(TaskId taskId);
}
|
apache/hadoop | 1,123 | hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/compress/bzip2/package-info.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* Implementation of compression/decompression for the BZip2
* compression algorithm.
*/
@InterfaceAudience.Private
@InterfaceStability.Unstable
package org.apache.hadoop.io.compress.bzip2;
import org.apache.hadoop.classification.InterfaceAudience;
import org.apache.hadoop.classification.InterfaceStability;
|
apache/harmony | 1,109 | classlib/modules/swing/src/test/api/java.injected/javax/swing/text/html/StyleSheet_ConvertAttr_WordSpacingTest.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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 Alexey A. Ivanov
*/
package javax.swing.text.html;
public class StyleSheet_ConvertAttr_WordSpacingTest
extends StyleSheet_ConvertAttr_SpacingTestCase {
protected void setUp() throws Exception {
super.setUp();
cssKey = CSS.Attribute.WORD_SPACING;
}
}
|
apache/harmony | 1,118 | classlib/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/FakeFox031.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.harmony.beans.tests.support.mock;
public class FakeFox031 {
public int[] getDefault() {
return null;
}
public void setDefault( int[] i ) {}
public int indexedGetDefault( int i) {
return 0;
}
public void indexedSetDefault( int i, int b ) {}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.